qlqz-frame 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/dist/assets/font/Alibaba_PuHuiTi_2.0_55_Regular_55_Regular.ttf +0 -0
  3. package/dist/assets/font/q7rMqNhDDqMxqZ7PsnEkf.woff +0 -0
  4. package/dist/assets/font/q7rMqNhDDqMxqZ7PsnEkf.woff2 +0 -0
  5. package/dist/config/config.js +8 -0
  6. package/dist/files/20-30.png +0 -0
  7. package/dist/files/20-30_0.5X0.5.png +0 -0
  8. package/dist/files/bosi.png +0 -0
  9. package/dist/files/shp.rar +0 -0
  10. package/dist/files//345/205/203/346/225/260/346/215/256.xml +382 -0
  11. package/dist/holomap/imgs/header-2.png +0 -0
  12. package/dist/holomap/imgs/header-bottom.png +0 -0
  13. package/dist/holomap/imgs/header-tottom-l.png +0 -0
  14. package/dist/holomap/imgs/header-tottom-r.png +0 -0
  15. package/dist/holomap/imgs/sensor.png +0 -0
  16. package/dist/holomap/imgs/station.png +0 -0
  17. package/dist/holomap/imgs//344/270/273/350/217/234/345/215/225dark.svg +103 -0
  18. package/dist/holomap/imgs//344/270/273/350/217/234/345/215/225light.svg +103 -0
  19. package/dist/iconfont/demo.css +539 -0
  20. package/dist/iconfont/demo_index.html +1499 -0
  21. package/dist/iconfont/iconfont.css +243 -0
  22. package/dist/iconfont/iconfont.js +1 -0
  23. package/dist/iconfont/iconfont.json +408 -0
  24. package/dist/iconfont/iconfont.ttf +0 -0
  25. package/dist/iconfont/iconfont.woff +0 -0
  26. package/dist/iconfont/iconfont.woff2 +0 -0
  27. package/dist/imgs/bg.4ad07e23.png +0 -0
  28. package/dist/imgs/button/button1.png +0 -0
  29. package/dist/imgs/button//344/270/273/350/217/234/345/215/225dark.svg +103 -0
  30. package/dist/imgs/button//344/270/273/350/217/234/345/215/225light.svg +103 -0
  31. package/dist/imgs/components/RectangleTitle.png +0 -0
  32. package/dist/imgs/components/count-1.png +0 -0
  33. package/dist/imgs/components/count-2.png +0 -0
  34. package/dist/imgs/components/count3.png +0 -0
  35. package/dist/imgs/components/count4.png +0 -0
  36. package/dist/imgs/components/number.png +0 -0
  37. package/dist/imgs/decoration/header-bottom.png +0 -0
  38. package/dist/imgs/decoration/header-tottom-l.png +0 -0
  39. package/dist/imgs/decoration/header-tottom-r.png +0 -0
  40. package/dist/imgs/frame/frame1-w.png +0 -0
  41. package/dist/imgs/frame/frame1.png +0 -0
  42. package/dist/imgs/frame/frameL.png +0 -0
  43. package/dist/imgs/frame/frameR.png +0 -0
  44. package/dist/imgs/frameL.png +0 -0
  45. package/dist/imgs/frameR.png +0 -0
  46. package/dist/imgs/hds.png +0 -0
  47. package/dist/imgs/header/header-2.png +0 -0
  48. package/dist/imgs/header/header.png +0 -0
  49. package/dist/imgs/header/header1.png +0 -0
  50. package/dist/imgs/header/header3.png +0 -0
  51. package/dist/imgs/label/label1.png +0 -0
  52. package/dist/imgs/label/label2.png +0 -0
  53. package/dist/imgs/label/label3.png +0 -0
  54. package/dist/imgs/label/label4.png +0 -0
  55. package/dist/imgs/label/label5.png +0 -0
  56. package/dist/imgs/label/label6.png +0 -0
  57. package/dist/imgs/list.png +0 -0
  58. package/dist/imgs/login/bg1.jpg +0 -0
  59. package/dist/imgs/map/center.png +0 -0
  60. package/dist/imgs/map/fly.png +0 -0
  61. package/dist/imgs/map/item.png +0 -0
  62. package/dist/imgs/onemap/RectangleTitle.png +0 -0
  63. package/dist/imgs/onemap/header.png +0 -0
  64. package/dist/imgs/onemap/label1.png +0 -0
  65. package/dist/imgs/onemap/larc.png +0 -0
  66. package/dist/imgs/onemap/mask.png +0 -0
  67. package/dist/imgs/onemap/rarc.png +0 -0
  68. package/dist/imgs/title.png +0 -0
  69. package/dist/imgs/yic.png +0 -0
  70. package/dist/index.d.ts +21 -0
  71. package/dist/index.mjs +51695 -0
  72. package/dist/index.umd.js +673 -0
  73. package/dist/map/hole.png +0 -0
  74. package/dist/mds/article.md +11 -0
  75. package/dist/sensormap/equip/sensor.png +0 -0
  76. package/dist/sensormap/equip//345/234/237/345/243/244/345/242/222/346/203/205/347/233/221/346/265/213/344/273/252.png +0 -0
  77. package/dist/sensormap/equip//345/260/217/346/260/224/345/200/231/350/247/202/346/265/213/347/263/273/347/273/237.png +0 -0
  78. package/dist/sensormap/equip//346/240/207/345/207/206/346/260/224/350/261/241/350/247/202/346/265/213/347/263/273/347/273/237.png +0 -0
  79. package/dist/sensormap/equip//346/260/264/345/234/237/346/260/224/344/270/200/344/275/223/345/214/226/347/233/221/346/265/213/347/263/273/347/273/237.png +0 -0
  80. package/dist/sensormap/equip//346/266/241/345/272/246/347/233/270/345/205/263/347/263/273/347/273/237.png +0 -0
  81. package/dist/sensormap/imgs/equip.png +0 -0
  82. package/dist/sensormap/imgs/sample_plot.png +0 -0
  83. package/dist/sensormap/imgs/sensor.png +0 -0
  84. package/dist/sensormap/imgs/sjzx.jpg +0 -0
  85. package/dist/sensormap/imgs/sjzx.png +0 -0
  86. package/dist/sensormap/imgs/station-exception.png +0 -0
  87. package/dist/sensormap/imgs/station-normal.png +0 -0
  88. package/dist/sensormap/imgs/station.png +0 -0
  89. package/dist/sensormap/imgs//345/234/237/345/234/260.png +0 -0
  90. package/dist/sensormap/imgs//346/225/260/346/215/256.png +0 -0
  91. package/dist/sensormap/imgs//347/233/221/346/216/247.png +0 -0
  92. package/dist/sensormap/plot/sensor.png +0 -0
  93. package/dist/sensormap/plot//344/270/264/346/227/266/346/240/267/345/234/260.png +0 -0
  94. package/dist/sensormap/plot//346/260/270/344/271/205/346/240/267/345/234/260.png +0 -0
  95. package/dist/sensormap/plot//347/237/255/346/234/237/346/240/267/345/234/260.png +0 -0
  96. package/dist/sensormap/plot//351/225/277/346/234/237/346/240/267/345/234/260.png +0 -0
  97. package/dist/style.css +1 -0
  98. package/package.json +130 -0
  99. package/readme.md +9 -0
@@ -0,0 +1,673 @@
1
+ (function(jr,at){typeof exports=="object"&&typeof module<"u"?at(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],at):(jr=typeof globalThis<"u"?globalThis:jr||self,at(jr.OnemapLib={},jr.React))})(this,function(jr,at){"use strict";function eB(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const Jp=eB(at);var eg=function(r,e){return eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},eg(r,e)};function Cx(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");eg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tg=function(){return tg=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tg.apply(this,arguments)};/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var rg=function(r,e){return rg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},rg(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tB=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),rB=function(){function r(){this.browser=new tB,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),eo=new rB;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(eo.wxa=!0,eo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?eo.worker=!0:typeof navigator>"u"?(eo.node=!0,eo.svgSupported=!0):nB(navigator.userAgent,eo);function nB(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const Ve=eo;var ng=12,Ax="sans-serif",si=ng+"px "+Ax,aB=20,iB=100,oB="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sB(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-aB)/iB;e[n]=a}return e}var lB=sB(oB),An={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var a=An.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||si),r.measureText(t);t=t||"",n=n||si;var i=/^([0-9]*?)px$/.exec(n),o=+(i&&i[1])||ng,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=lB[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}};function Mx(r){for(var e in An)r[e]&&(An[e]=r[e])}var Ex=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Ix=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),As=Object.prototype.toString,Fc=Array.prototype,uB=Fc.forEach,fB=Fc.filter,ag=Fc.slice,cB=Fc.map,Px=(function(){}).constructor,Gc=Px?Px.prototype:null,ig="__proto__",hB=2311;function og(){return hB++}function Xr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function se(r){if(r==null||typeof r!="object")return r;var e=r,t=As.call(r);if(t==="[object Array]"){if(!Ms(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=se(r[n])}}else if(Ix[t]){if(!Ms(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!Ex[t]&&!Ms(r)&&!to(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ig&&(e[o]=se(r[o]))}return e}function ye(r,e,t){if(!re(e)||!re(r))return t?se(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==ig){var a=r[n],i=e[n];re(i)&&re(a)&&!F(i)&&!F(a)&&!to(i)&&!to(a)&&!lg(i)&&!lg(a)&&!Ms(i)&&!Ms(a)?ye(a,i,t):(t||!(n in r))&&(r[n]=se(e[n]))}return r}function Hc(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=ye(t,r[n],e);return t}function z(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==ig&&(r[t]=e[t]);return r}function ae(r,e,t){for(var n=Me(e),a=0;a<n.length;a++){var i=n[a];(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}return r}var vB=An.createCanvas;function we(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function sg(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function _t(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ae(r,e,t)}function Ut(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function C(r,e,t){if(r&&e)if(r.forEach&&r.forEach===uB)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function G(r,e,t){if(!r)return[];if(!e)return Wc(r);if(r.map&&r.map===cB)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function qr(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function Ye(r,e,t){if(!r)return[];if(!e)return Wc(r);if(r.filter&&r.filter===fB)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function Lx(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function Me(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function dB(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(ag.call(arguments)))}}var j=Gc&&Q(Gc.bind)?Gc.call.bind(Gc.bind):dB;function de(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(ag.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):As.call(r)==="[object Array]"}function Q(r){return typeof r=="function"}function $(r){return typeof r=="string"}function hu(r){return As.call(r)==="[object String]"}function Re(r){return typeof r=="number"}function re(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function lg(r){return!!Ex[As.call(r)]}function vr(r){return!!Ix[As.call(r)]}function to(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function vu(r){return r.colorStops!=null}function kx(r){return r.image!=null}function ug(r){return As.call(r)==="[object RegExp]"}function li(r){return r!==r}function St(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function me(r,e){return r??e}function Kr(r,e,t){return r??e??t}function Wc(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ag.apply(r,e)}function Yc(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function ie(r,e){if(!r)throw new Error(e)}function Qr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Rx="__ec_primitive__";function du(r){r[Rx]=!0}function Ms(r){return r[Rx]}var Ox=function(){function r(e){this.data={};var t=F(e);this.data={};var n=this;e instanceof r?e.each(a):e&&C(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},r.prototype.set=function(e,t){return this.data[e]=t},r.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},r.prototype.keys=function(){return Me(this.data)},r.prototype.removeKey=function(e){delete this.data[e]},r}();function te(r){return new Ox(r)}function pu(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function gu(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&z(t,e),t}function fg(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function X(r,e){return r.hasOwnProperty(e)}function bt(){}var yu=180/Math.PI;const pB=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Ox,RADIAN_TO_DEGREE:yu,assert:ie,bind:j,clone:se,concatArray:pu,createCanvas:vB,createHashMap:te,createObject:gu,curry:de,defaults:ae,disableUserSelect:fg,each:C,eqNaN:li,extend:z,filter:Ye,find:Lx,guid:og,hasOwn:X,indexOf:we,inherits:sg,isArray:F,isArrayLike:Ut,isBuiltInObject:lg,isDom:to,isFunction:Q,isGradientObject:vu,isImagePatternObject:kx,isNumber:Re,isObject:re,isPrimitive:Ms,isRegExp:ug,isString:$,isStringSafe:hu,isTypedArray:vr,keys:Me,logError:Xr,map:G,merge:ye,mergeAll:Hc,mixin:_t,noop:bt,normalizeCssArray:Yc,reduce:qr,retrieve:St,retrieve2:me,retrieve3:Kr,setAsPrimitive:du,slice:Wc,trim:Qr},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
15
+ Copyright (c) Microsoft Corporation.
16
+
17
+ Permission to use, copy, modify, and/or distribute this software for any
18
+ purpose with or without fee is hereby granted.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
+ PERFORMANCE OF THIS SOFTWARE.
27
+ ***************************************************************************** */var cg=function(r,e){return cg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},cg(r,e)};function it(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ui(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Qt(r,e){return r[0]=e[0],r[1]=e[1],r}function Qn(r){return[r[0],r[1]]}function Nx(r,e,t){return r[0]=e,r[1]=t,r}function hg(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function $c(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function fi(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function mu(r){return Math.sqrt(vg(r))}var gB=mu;function vg(r){return r[0]*r[0]+r[1]*r[1]}var yB=vg;function mB(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function _B(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function SB(r,e){return r[0]*e[0]+r[1]*e[1]}function _u(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ro(r,e){var t=mu(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Uc(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Da=Uc;function Vx(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ci=Vx;function bB(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Su(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Gt(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Ca(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Aa(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const xB=Object.freeze(Object.defineProperty({__proto__:null,add:hg,applyTransform:Gt,clone:Qn,copy:Qt,create:ui,dist:Da,distSquare:ci,distance:Uc,distanceSquare:Vx,div:_B,dot:SB,len:mu,lenSquare:vg,length:gB,lengthSquare:yB,lerp:Su,max:Aa,min:Ca,mul:mB,negate:bB,normalize:ro,scale:_u,scaleAndAdd:$c,set:Nx,sub:fi},Symbol.toStringTag,{value:"Module"}));var Es=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),wB=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Es(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new Es(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Es(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Es(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Es(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Es(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const TB=wB;var DB=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}();const Jr=DB;var CB=Math.log(2);function dg(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/CB);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&a||(c+=(v%2?-1:1)*r[t][h]*dg(r,e-1,f,u,a|d,i),v++)}return i[o]=c,c}function Bx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=dg(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*dg(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var zx="___zrEVENTSAVED",pg=[];function AB(r,e,t,n,a){return gg(pg,e,n,a,!0)&&gg(r,t,pg[0],pg[1])}function gg(r,e,t,n,a){if(e.getBoundingClientRect&&Ve.domSupported&&!Fx(e)){var i=e[zx]||(e[zx]={}),o=MB(e,i),s=EB(o,i,a);if(s)return s(r,t,n),!0}return!1}function MB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function EB(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&i&&h===i[c]&&v===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?Bx(s,o):Bx(o,s))}function Fx(r){return r.nodeName.toUpperCase()==="CANVAS"}var IB=/([&<>"'])/g,PB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function dr(r){return r==null?"":(r+"").replace(IB,function(e,t){return PB[t]})}var LB=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yg=[],kB=Ve.browser.firefox&&+Ve.browser.version.split(".")[0]<39;function mg(r,e,t,n){return t=t||{},n?Gx(r,e,t):kB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Gx(r,e,t),t}function Gx(r,e,t){if(Ve.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Fx(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(gg(yg,r,n,a)){t.zrX=yg[0],t.zrY=yg[1];return}}t.zrX=t.zrY=0}function _g(r){return r||window.event}function en(r,e,t){if(e=_g(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&mg(r,o,e,t)}else{mg(r,e,e,t);var i=RB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&LB.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function RB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Sg(r,e,t,n){r.addEventListener(e,t,n)}function OB(r,e,t,n){r.removeEventListener(e,t,n)}var Ma=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Hx(r){return r.which===2||r.which===3}var NB=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=mg(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in bg)if(bg.hasOwnProperty(t)){var n=bg[t](this._track,e);if(n)return n}},r}();function Wx(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function VB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var bg={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Wx(n)/Wx(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=VB(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Or(){return[1,0,0,1,0,0]}function bu(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Zc(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Jn(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Mn(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function hi(r,e,t){var n=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=a*f+s*u,r[3]=-a*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function jc(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function no(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function Yx(r){var e=Or();return Zc(e,r),e}const BB=Object.freeze(Object.defineProperty({__proto__:null,clone:Yx,copy:Zc,create:Or,identity:bu,invert:no,mul:Jn,rotate:hi,scale:jc,translate:Mn},Symbol.toStringTag,{value:"Module"}));var zB=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r}();const be=zB;var Xc=Math.min,qc=Math.max,ao=new be,io=new be,oo=new be,so=new be,xu=new be,wu=new be,FB=function(){function r(e,t,n,a){n<0&&(e=e+n,n=-n),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=n,this.height=a}return r.prototype.union=function(e){var t=Xc(e.x,this.x),n=Xc(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qc(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qc(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=Or();return Mn(i,i,[-t.x,-t.y]),jc(i,i,[n,a]),Mn(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(i<l||u<a||s<f||c<o);if(t){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<a?_>d&&(d=_,p<g?be.set(wu,-p,0):be.set(wu,g,0)):_<v&&(v=_,p<g?be.set(xu,p,0):be.set(xu,-g,0)),s<f||c<o?S>d&&(d=S,y<m?be.set(wu,0,-y):be.set(wu,0,m)):_<v&&(v=_,y<m?be.set(xu,0,y):be.set(xu,0,-m))}return t&&be.copy(t,h?xu:wu),h},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ao.x=oo.x=t.x,ao.y=so.y=t.y,io.x=so.x=t.x+t.width,io.y=oo.y=t.y+t.height,ao.transform(n),so.transform(n),io.transform(n),oo.transform(n),e.x=Xc(ao.x,io.x,oo.x,so.x),e.y=Xc(ao.y,io.y,oo.y,so.y);var l=qc(ao.x,io.x,oo.x,so.x),u=qc(ao.y,io.y,oo.y,so.y);e.width=l-e.x,e.height=u-e.y},r}();const xe=FB;var $x="silent";function GB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:HB}}function HB(){Ma(this.event)}var WB=function(r){it(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Jr),Tu=function(){function r(e,t){this.x=e,this.y=t}return r}(),YB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xg=new xe(0,0,0,0),Ux=function(r){it(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Tu(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new WB,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new TB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(YB,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=jx(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Tu(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Tu(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=GB(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new Tu(t,n);if(Zx(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new xe(t-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(xg.copy(h.getBoundingRect()),h.transform&&xg.applyTransform(h.transform),xg.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=n+g*Math.sin(y);if(Zx(s,o,m,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new NB);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Tu;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Jr);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Ux.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=jx(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Da(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function $B(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?$x:!0}return!1}function Zx(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=$B(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==$x)){e.target=o;break}}}function jx(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}const UB=Ux;var Xx=32,Du=7;function ZB(r){for(var e=0;r>=Xx;)e|=r&1,r>>=1;return r+e}function qx(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;jB(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function jB(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Kx(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function wg(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Tg(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function XB(r,e){var t=Du,n,a,i=0;r.length;var o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=a[v],g=n[v+1],y=a[v+1];a[v]=p+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var m=Tg(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=wg(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=Tg(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=wg(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Du||w>=Du);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,D=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,D=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],D++,T=0,--g===1){M=!0;break}while((T|D)<w);if(M)break;do{if(T=d-Tg(o[_],r,v,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(D=g-wg(r[m],o,0,g,g-1,e),D!==0){for(S-=D,_-=D,g-=D,b=S+1,x=_+1,y=0;y<D;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}w--}while(T>=Du||D>=Du);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Kc(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<Xx){i=qx(r,t,n,e),Kx(r,t,n,t+i,e);return}var o=XB(r,e),s=ZB(a);do{if(i=qx(r,t,n,e),i<s){var l=a;l>s&&(l=s),Kx(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Nr=1,Cu=2,Is=4,Qx=!1;function Dg(){Qx||(Qx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jx(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var qB=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jx}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Kc(n,Jx)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t?t=t.slice():t=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Nr),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Dg(),f.z=0),isNaN(f.z2)&&(Dg(),f.z2=0),isNaN(f.zlevel)&&(Dg(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=we(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const KB=qB;var ew;ew=Ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Cg=ew;var Qc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Qc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Qc.bounceIn(r*2)*.5:Qc.bounceOut(r*2-1)*.5+.5}};const tw=Qc;var Jc=Math.pow,vi=Math.sqrt,eh=1e-8,rw=1e-4,nw=vi(3),th=1/3,ea=ui(),tn=ui(),Ps=ui();function di(r){return r>-eh&&r<eh}function aw(r){return r>eh||r<-eh}function Ot(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function iw(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function rh(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(di(f)&&di(c))if(di(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=c*c-4*f*h;if(di(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y)}else if(p>0){var m=vi(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Jc(-_,th):_=Jc(_,th),S<0?S=-Jc(-S,th):S=Jc(S,th);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*vi(f*f*f)),b=Math.acos(x)/3,w=vi(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+nw*Math.sin(b)))/(3*o),D=(-s+w*(T-nw*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y),D>=0&&D<=1&&(i[v++]=D)}}return v}function ow(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(di(o)){if(aw(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(di(f))a[0]=-i/(2*o);else if(f>0){var c=vi(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function pi(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function sw(r,e,t,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;ea[0]=l,ea[1]=u;for(var m=0;m<1;m+=.05)tn[0]=Ot(r,t,a,o,m),tn[1]=Ot(e,n,i,s,m),g=ci(ea,tn),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<rw);_++)d=c-h,p=c+h,tn[0]=Ot(r,t,a,o,d),tn[1]=Ot(e,n,i,s,d),g=ci(tn,ea),d>=0&&g<v?(c=d,v=g):(Ps[0]=Ot(r,t,a,o,p),Ps[1]=Ot(e,n,i,s,p),y=ci(Ps,ea),p<=1&&y<v?(c=p,v=y):h*=.5);return f&&(f[0]=Ot(r,t,a,o,c),f[1]=Ot(e,n,i,s,c)),vi(v)}function QB(r,e,t,n,a,i,o,s,l){for(var u=r,f=e,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Ot(r,t,a,o,d),g=Ot(e,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Ht(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function Ag(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function JB(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(di(i)){if(aw(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(di(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=vi(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function lw(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Au(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function uw(r,e,t,n,a,i,o,s,l){var u,f=.005,c=1/0;ea[0]=o,ea[1]=s;for(var h=0;h<1;h+=.05){tn[0]=Ht(r,t,a,h),tn[1]=Ht(e,n,i,h);var v=ci(ea,tn);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<rw);d++){var p=u-f,g=u+f;tn[0]=Ht(r,t,a,p),tn[1]=Ht(e,n,i,p);var v=ci(tn,ea);if(p>=0&&v<c)u=p,c=v;else{Ps[0]=Ht(r,t,a,g),Ps[1]=Ht(e,n,i,g);var y=ci(Ps,ea);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Ht(r,t,a,u),l[1]=Ht(e,n,i,u)),vi(c)}function ez(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Ht(r,t,a,h),d=Ht(e,n,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var tz=/cubic-bezier\(([0-9,\.e ]+)\)/;function Mg(r){var e=r&&tz.exec(r);if(e){var t=e[1].split(","),n=+Qr(t[0]),a=+Qr(t[1]),i=+Qr(t[2]),o=+Qr(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:rh(0,n,i,1,l,s)&&Ot(0,a,o,1,s[0])}}}var rz=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||bt,this.ondestroy=e.ondestroy||bt,this.onrestart=e.onrestart||bt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:tw[e]||Mg(e)},r}();const nz=rz;var fw=function(){function r(e){this.value=e}return r}(),az=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new fw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),iz=function(){function r(e){this._list=new az,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new fw(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Mu=iz;var cw={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function En(r){return r=Math.round(r),r<0?0:r>255?255:r}function oz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Eu(r){return r<0?0:r>1?1:r}function Eg(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?En(parseFloat(e)/100*255):En(parseInt(e,10))}function lo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Eu(parseFloat(e)/100):Eu(parseFloat(e))}function Ig(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function gi(r,e,t){return r+(e-r)*t}function rn(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function Pg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var hw=new Mu(20),nh=null;function Ls(r,e){nh&&Pg(nh,e),nh=hw.put(r,nh||e.slice())}function pr(r,e){if(r){e=e||[];var t=hw.get(r);if(t)return Pg(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in cw)return Pg(e,cw[n]),Ls(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){rn(e,0,0,0,1);return}return rn(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Ls(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){rn(e,0,0,0,1);return}return rn(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Ls(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?rn(e,+u[0],+u[1],+u[2],1):rn(e,0,0,0,1);f=lo(u.pop());case"rgb":if(u.length>=3)return rn(e,Eg(u[0]),Eg(u[1]),Eg(u[2]),u.length===3?f:lo(u[3])),Ls(r,e),e;rn(e,0,0,0,1);return;case"hsla":if(u.length!==4){rn(e,0,0,0,1);return}return u[3]=lo(u[3]),Lg(u,e),Ls(r,e),e;case"hsl":if(u.length!==3){rn(e,0,0,0,1);return}return Lg(u,e),Ls(r,e),e;default:return}}rn(e,0,0,0,1)}}function Lg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=lo(r[1]),a=lo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],rn(e,En(Ig(o,i,t+1/3)*255),En(Ig(o,i,t)*255),En(Ig(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function sz(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-e)/6+o/2)/o,c=((i-t)/6+o/2)/o,h=((i-n)/6+o/2)/o;e===i?l=h-c:t===i?l=1/3+f-h:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ah(r,e){var t=pr(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return In(t,t.length===4?"rgba":"rgb")}}function lz(r){var e=pr(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Iu(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=En(gi(o[0],s[0],l)),t[1]=En(gi(o[1],s[1],l)),t[2]=En(gi(o[2],s[2],l)),t[3]=Eu(gi(o[3],s[3],l)),t}}var uz=Iu;function kg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=pr(e[a]),s=pr(e[i]),l=n-a,u=In([En(gi(o[0],s[0],l)),En(gi(o[1],s[1],l)),En(gi(o[2],s[2],l)),Eu(gi(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var fz=kg;function ks(r,e,t,n){var a=pr(r);if(r)return a=sz(a),e!=null&&(a[0]=oz(e)),t!=null&&(a[1]=lo(t)),n!=null&&(a[2]=lo(n)),In(Lg(a),"rgba")}function Pu(r,e){var t=pr(r);if(t&&e!=null)return t[3]=Eu(e),In(t,"rgba")}function In(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lu(r,e){var t=pr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function cz(){return In([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const hz=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Iu,fastMapToColor:uz,lerp:kg,lift:ah,lum:Lu,mapToColor:fz,modifyAlpha:Pu,modifyHSL:ks,parse:pr,random:cz,stringify:In,toHex:lz},Symbol.toStringTag,{value:"Module"}));var ih=Math.round;function Rs(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=pr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var vw=1e-4;function yi(r){return r<vw&&r>-vw}function oh(r){return ih(r*1e3)/1e3}function Rg(r){return ih(r*1e4)/1e4}function vz(r){return"matrix("+oh(r[0])+","+oh(r[1])+","+oh(r[2])+","+oh(r[3])+","+Rg(r[4])+","+Rg(r[5])+")"}var dz={left:"start",right:"end",center:"middle",middle:"middle"};function pz(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function gz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function yz(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function dw(r){return r&&!!r.image}function mz(r){return r&&!!r.svgElement}function _z(r){return dw(r)||mz(r)}function pw(r){return r.type==="linear"}function gw(r){return r.type==="radial"}function Sz(r){return r&&(r.type==="linear"||r.type==="radial")}function sh(r){return"url(#"+r+")"}function yw(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function mw(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*yu,a=me(r.scaleX,1),i=me(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+ih(o*yu)+"deg, "+ih(s*yu)+"deg)"),l.join(" ")}var bz=function(){return Ve.hasGlobalWindow&&Q(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&Xr("Base64 isn't natively supported in the current environment."),null}}(),Og=Array.prototype.slice;function Ea(r,e,t){return(e-r)*t+r}function Ng(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=Ea(e[i],t[i],n);return r}function xz(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Ea(e[o][s],t[o][s],n)}return r}function lh(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function _w(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function wz(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Tz(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:Og.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function ku(r){if(Ut(r)){var e=r.length;if(Ut(r[0])){for(var t=[],n=0;n<e;n++)t.push(Og.call(r[n]));return t}return Og.call(r)}return r}function uh(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 Dz(r){return Ut(r&&r[0])?2:1}var fh=0,ch=1,Sw=2,Ru=3,Vg=4,Bg=5,bw=6;function xw(r){return r===Vg||r===Bg}function hh(r){return r===ch||r===Sw}var Ou=[0,0,0,0],Cz=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=bw,l=t;if(Ut(t)){var u=Dz(t);s=u,(u===1&&!Re(t[0])||u===2&&!Re(t[0][0]))&&(o=!0)}else if(Re(t)&&!li(t))s=fh;else if($(t))if(!isNaN(+t))s=fh;else{var f=pr(t);f&&(l=f,s=Ru)}else if(vu(t)){var c=z({},l);c.colorStops=G(t.colorStops,function(v){return{offset:v.offset,color:pr(v.color)}}),pw(t)?s=Vg:gw(t)&&(s=Bg),l=c}i===0?this.valType=s:(s!==this.valType||s===bw)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Q(n)?n:tw[n]||Mg(n)),a.push(h),h},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=hh(a),u=xw(a),f=0;f<i;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(l&&f!==i-1?Tz(h,v,a):u&&wz(h.colorStops,v.colorStops))}if(!s&&a!==Bg&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<i;f++)a===fh?n[f].additiveValue=n[f].value-d:a===Ru?n[f].additiveValue=lh([],n[f].value,d,-1):hh(a)&&(n[f].additiveValue=a===ch?lh([],n[f].value,d,-1):_w([],n[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ru,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>t);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-v.percent,y=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Ou:e[l];if((hh(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:d.rawValue;else if(hh(i))i===ch?Ng(m,v[a],d[a],y):xz(m,v[a],d[a],y);else if(xw(i)){var _=v[a],S=d[a],x=i===Vg;e[l]={type:x?"linear":"radial",x:Ea(_.x,S.x,y),y:Ea(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var D=S.colorStops[T];return{offset:Ea(w.offset,D.offset,y),color:uh(Ng([],w.color,D.color,y))}}),global:S.global},x?(e[l].x2=Ea(_.x2,S.x2,y),e[l].y2=Ea(_.y2,S.y2,y)):e[l].r=Ea(_.r,S.r,y)}else if(u)Ng(m,v[a],d[a],y),n||(e[l]=uh(m));else{var b=Ea(v[a],d[a],y);n?this._additiveValue=b:e[l]=b}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===fh?e[n]=e[n]+a:t===Ru?(pr(e[n],Ou),lh(Ou,Ou,a,1),e[n]=uh(Ou)):t===ch?lh(e[n],e[n],a,1):t===Sw&&_w(e[n],e[n],a,1)},r}(),Az=function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Xr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Me(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Cz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Ru&&u&&(u=uh(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ku(u),a),this._trackKeys.push(s)}l.addKeyframe(e,ku(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new nz({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(t._target,v);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=ku(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Me(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();const zg=Az;function Os(){return new Date().getTime()}var Mz=function(r){it(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Os()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Cg(n),!t._paused&&t.update())}Cg(n)},e.prototype.start=function(){this._running||(this._time=Os(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Os(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Os()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new zg(t,n.loop);return this.addAnimator(a),a},e}(Jr);const Ez=Mz;var Iz=300,Fg=Ve.domSupported,Gg=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}}(),ww={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Tw=!1;function Hg(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Pz(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 Wg(r){r&&(r.zrByTouch=!0)}function Lz(r,e){return en(r.dom,new kz(r,e),!0)}function Dw(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var kz=function(){function r(e,t){this.stopPropagation=bt,this.stopImmediatePropagation=bt,this.preventDefault=bt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Pn={mousedown:function(r){r=en(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=en(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=en(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=en(this.dom,r);var e=r.toElement||r.relatedTarget;Dw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Tw=!0,r=en(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Tw||(r=en(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=en(this.dom,r),Wg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Pn.mousemove.call(this,r),Pn.mousedown.call(this,r)},touchmove:function(r){r=en(this.dom,r),Wg(r),this.handler.processGesture(r,"change"),Pn.mousemove.call(this,r)},touchend:function(r){r=en(this.dom,r),Wg(r),this.handler.processGesture(r,"end"),Pn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Iz&&Pn.click.call(this,r)},pointerdown:function(r){Pn.mousedown.call(this,r)},pointermove:function(r){Hg(r)||Pn.mousemove.call(this,r)},pointerup:function(r){Pn.mouseup.call(this,r)},pointerout:function(r){Hg(r)||Pn.mouseout.call(this,r)}};C(["click","dblclick","contextmenu"],function(r){Pn[r]=function(e){e=en(this.dom,e),this.trigger(r,e)}});var Yg={pointermove:function(r){Hg(r)||Yg.mousemove.call(this,r)},pointerup:function(r){Yg.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Rz(r,e){var t=e.domHandlers;Ve.pointerEventsSupported?C(Gg.pointer,function(n){vh(e,n,function(a){t[n].call(r,a)})}):(Ve.touchEventsSupported&&C(Gg.touch,function(n){vh(e,n,function(a){t[n].call(r,a),Pz(e)})}),C(Gg.mouse,function(n){vh(e,n,function(a){a=_g(a),e.touching||t[n].call(r,a)})}))}function Oz(r,e){Ve.pointerEventsSupported?C(ww.pointer,t):Ve.touchEventsSupported||C(ww.mouse,t);function t(n){function a(i){i=_g(i),Dw(r,i.target)||(i=Lz(r,i),e.domHandlers[n].call(r,i))}vh(e,n,a,{capture:!0})}}function vh(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Sg(r.domTarget,e,t,n)}function $g(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&OB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Cw=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),Nz=function(r){it(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new Cw(t,Pn),Fg&&(a._globalHandlerScope=new Cw(document,Yg)),Rz(a,a._localHandlerScope),a}return e.prototype.dispose=function(){$g(this._localHandlerScope),Fg&&$g(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Fg&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?Oz(this,n):$g(n)}},e}(Jr);const Vz=Nz;var Aw=1;Ve.hasGlobalWindow&&(Aw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var dh=Aw,Ug=.4,Zg="#333",jg="#ccc",Bz="#eee",Mw=bu,Ew=5e-5;function uo(r){return r>Ew||r<-Ew}var fo=[],Ns=[],Xg=Or(),qg=Math.abs,zz=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return uo(this.rotation)||uo(this.x)||uo(this.y)||uo(this.scaleX-1)||uo(this.scaleY-1)||uo(this.skewX)||uo(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&Mw(n);return}n=n||Or(),t?this.getLocalTransform(n):Mw(n),e&&(t?Jn(n,e,n):Zc(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(fo);var n=fo[0]<0?-1:1,a=fo[1]<0?-1:1,i=((fo[0]-n)*t+n)/fo[0]||0,o=((fo[1]-a)*t+a)/fo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Or(),no(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Jn(Ns,e.invTransform,t),t=Ns);var n=this.originX,a=this.originY;(n||a)&&(Xg[4]=n,Xg[5]=a,Jn(Ns,t,Xg),Ns[4]-=n,Ns[5]-=a,t=Ns),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&Gt(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&Gt(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&qg(e[0]-1)>1e-10&&qg(e[3]-1)>1e-10?Math.sqrt(qg(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Iw(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&hi(t,t,u),t[4]+=n+f,t[5]+=a+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ta=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Iw(r,e){for(var t=0;t<ta.length;t++){var n=ta[t];r[n]=e[n]}}const Ia=zz;var Pw={};function Vr(r,e){e=e||si;var t=Pw[e];t||(t=Pw[e]=new Mu(500));var n=t.get(r);return n==null&&(n=An.measureText(r,e).width,t.put(r,n)),n}function Lw(r,e,t,n){var a=Vr(r,e),i=ph(e),o=Vu(0,a,t),s=Vs(0,i,n),l=new xe(o,s,a,i);return l}function Nu(r,e,t,n){var a=((r||"")+"").split(`
28
+ `),i=a.length;if(i===1)return Lw(a[0],e,t,n);for(var o=new xe(0,0,0,0),s=0;s<a.length;s++){var l=Lw(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Vu(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Vs(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function ph(r){return Vr("国",r)}function Ln(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function gh(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",c="top";if(n instanceof Array)l+=Ln(n[0],t.width),u+=Ln(n[1],t.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Kg="__zr_normal__",Qg=ta.concat(["ignore"]),Fz=qr(ta,function(r,e){return r[e]=!0,r},{ignore:!1}),Bs={},Gz=new xe(0,0,0,0),Jg=function(){function r(e){this.id=og(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),n.position!=null){var f=Gz;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bs,n,f):gh(Bs,n,f),i.x=Bs.x,i.y=Bs.y,o=Bs.align,s=Bs.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Ln(c[0],f.width),v=Ln(c[1],f.height)),u=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Nr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?jg:Zg},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&pr(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,In(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},z(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(re(e))for(var n=e,a=Me(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Kg)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Qg)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Kg,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===Kg,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(we(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Xr("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,t,n,f),h&&h.useState(e,t,n,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Nr)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=we(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=we(a,e),o=we(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];z(t,i),i.textConfig&&(n=n||{},z(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=z({},a?this.textConfig:n.textConfig),z(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Qg.length;f++){var c=Qg[f],h=i&&Fz[c];t&&t[c]!=null?h?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Ia,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Nr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){Xr('Property "'+e+'" is not existed in element '+this.id);return}var i=new zg(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=we(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){ey(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){ey(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=ey(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Nr;var t={};function n(i,o,s){t[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(e,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(h){f[s]=h}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(h){f[l]=h}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),r}();_t(Jg,Jr),_t(Jg,Ia);function ey(r,e,t,n,a){t=t||{};var i=[];kw(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),c&&v.aborted(c),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function ty(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function Hz(r){return Ut(r[0])}function Wz(r,e,t){if(Ut(e[t]))if(Ut(r[t])||(r[t]=[]),vr(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),ty(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(Hz(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?ty(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else ty(i,a,o);i.length=a.length}else r[t]=e[t]}function Yz(r,e){return r===e||Ut(r)&&Ut(e)&&$z(r,e)}function $z(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function kw(r,e,t,n,a,i,o,s){for(var l=Me(n),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,v=!re(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&t[y]!=null&&(v||i[y]))if(re(m)&&!Ut(m)&&!vu(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}kw(r,y,t[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var b=x.stopTracks(p);if(b){var w=we(d,x);d.splice(w,1)}}}if(a.force||(p=Ye(p,function(A){return!Yz(n[A],t[A])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,D=void 0,M=void 0;if(s){D={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];D[y]=t[y],h?T[y]=n[y]:t[y]=n[y]}}else if(h){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=ku(t[y]),Wz(t,n,y)}}var x=new zg(t,!1,!1,c?Ye(d,function(E){return E.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),h&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?D:n,p).delay(f||0),r.addAnimator(x,e),o.push(x)}}const Rw=Jg;var Ow=function(r){it(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=we(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=we(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new xe(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(xe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Rw);Ow.prototype.type="group";const fe=Ow;/*!
29
+ * ZRender, a high performance 2d drawing library.
30
+ *
31
+ * Copyright (c) 2013, Baidu Inc.
32
+ * All rights reserved.
33
+ *
34
+ * LICENSE
35
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
36
+ */var Bu={},co={};function Uz(r){delete co[r]}function Zz(r){if(!r)return!1;if(typeof r=="string")return Lu(r,1)<Ug;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=Lu(e[a].color,1);return t/=n,t<Ug}return!1}var jz=function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new KB,o=n.renderer||"canvas";if(Bu[o]||(o=Me(Bu)[0]),process.env.NODE_ENV!=="production"&&!Bu[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Bu[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ve.node&&!Ve.worker&&!l?new Vz(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Ve.touchEventsSupported:!!f,h=44,v;c&&(v=me(n.pointerSize,h)),this.handler=new UB(i,s,u,s.root,v),this.animation=new Ez({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Zz(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,n=Os();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=Os();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof fe&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Uz(this.id)},r}();function ry(r,e){var t=new jz(og(),r,e);return co[t.id]=t,t}function Xz(r){r.dispose()}function qz(){for(var r in co)co.hasOwnProperty(r)&&co[r].dispose();co={}}function Kz(r){return co[r]}function Nw(r,e){Bu[r]=e}var Qz="5.4.0";const Jz=Object.freeze(Object.defineProperty({__proto__:null,dispose:Xz,disposeAll:qz,getInstance:Kz,init:ry,registerPainter:Nw,version:Qz},Symbol.toStringTag,{value:"Module"}));var Vw=1e-4,Bw=20;function e3(r){return r.replace(/^\s+|\s+$/g,"")}function He(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function Y(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?e3(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function gt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Bw),r=(+r).toFixed(e),t?r:+r}function Br(r){return r.sort(function(e,t){return e-t}),r}function kn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return yh(r)}function yh(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function ny(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function t3(r,e,t){if(!r[e])return 0;var n=zw(r,t);return n[e]||0}function zw(r,e){var t=qr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=G(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=G(a,function(v){return Math.floor(v)}),s=qr(o,function(v,d){return v+d},0),l=G(a,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return G(o,function(v){return v/n})}function r3(r,e){var t=Math.max(kn(r),kn(e)),n=r+e;return t>Bw?n:gt(n,t)}var ay=9007199254740991;function iy(r){var e=Math.PI*2;return(r%e+e)%e}function zu(r){return r>-Vw&&r<Vw}var n3=/^(?:(\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 zr(r){if(r instanceof Date)return r;if($(r)){var e=n3.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Fw(r){return Math.pow(10,Fu(r))}function Fu(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function oy(r,e){var t=Fu(r),n=Math.pow(10,t),a=r/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function mh(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function sy(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ra(r){var e=parseFloat(r);return e==r&&(e!==0||!$(r)||r.indexOf("x")<=0)?e:NaN}function _h(r){return!isNaN(ra(r))}function Gw(){return Math.round(Math.random()*9)}function Hw(r,e){return e===0?r:Hw(e,r%e)}function Ww(r,e){return r==null?e:e==null?r:r*e/Hw(r,e)}var a3="[ECharts] ",Yw={},i3=typeof console<"u"&&console.warn&&console.log;function Sh(r,e,t){if(i3){if(t){if(Yw[e])return;Yw[e]=!0}console[r](a3+e)}}function o3(r,e){Sh("log",r,e)}function Jt(r,e){Sh("warn",r,e)}function Zt(r,e){Sh("error",r,e)}function nn(r){process.env.NODE_ENV!=="production"&&Sh("warn","DEPRECATED: "+r,!0)}function xt(r,e,t){process.env.NODE_ENV!=="production"&&nn((t?"["+t+"]":"")+(r+" is deprecated, use "+e+" instead."))}function gr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":li(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":Q(a)?"function () { ... }":ug(a)?a+"":null};t=G(r,function(a){if($(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function Ge(r){throw new Error(r)}function $w(r,e,t){return(e-r)*t+r}var Uw="series\0",Zw="\0_ec_\0";function Ze(r){return r instanceof Array?r:r==null?[]:[r]}function ho(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var jw=["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 zs(r){return re(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function s3(r){return re(r)&&!(r instanceof Array)}function Xw(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=te();C(e,function(l,u){if(!re(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Qw(l.id)&&Kw(l.id),l.name!=null&&!Qw(l.name)&&Kw(l.name))});var s=l3(r,o,t);return(n||a)&&u3(s,r,o,e),n&&f3(s,e),n||a?c3(s,e,a):i&&h3(s,e),v3(s),s}function l3(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Fs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function u3(r,e,t,n){C(n,function(a,i){if(!(!a||a.id==null)){var o=Gu(a.id),s=t.get(o);if(s!=null){var l=r[s];ie(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function f3(r,e){C(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Fs(t)&&!Fs(i)&&qw("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function c3(r,e,t){C(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Fs(a.existing)||a.existing&&n.id!=null&&!qw("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function h3(r,e){C(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function v3(r){var e=te();C(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),C(r,function(t){var n=t.newOption;ie(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),C(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(re(i)){if(o.name=i.name!=null?Gu(i.name):a?a.name:Uw+n,a)o.id=Gu(a.id);else if(i.id!=null)o.id=Gu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function qw(r,e,t){var n=Lt(e[r],null),a=Lt(t[r],null);return n!=null&&a!=null&&n===a}function Gu(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return Lt(r,"")}function Lt(r,e){return r==null?e:$(r)?r:Re(r)||hu(r)?r+"":e}function Kw(r){process.env.NODE_ENV!=="production"&&Jt("`"+r+"` is invalid id or name. Must be a string or number.")}function Qw(r){return hu(r)||_h(r)}function ly(r){var e=r.name;return!!(e&&e.indexOf(Uw))}function Fs(r){return r&&r.id!=null&&Gu(r.id).indexOf(Zw)===0}function d3(r){return Zw+r}function p3(r,e,t){C(r,function(n){var a=n.newOption;re(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=g3(e,a,n.existing,t))})}function g3(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function y3(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=Lt(o[u].seriesId,null);if(c==null)return;for(var h=Ze(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function vo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return F(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return F(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Be(){var r="__ec_inner_"+m3++;return function(e){return e[r]||(e[r]={})}}var m3=Gw();function Hu(r,e,t){var n=uy(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=Wu(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function uy(r,e){var t;if($(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=te(),i={},o=!1;return C(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&we(e.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var At={useDefault:!0,enableAll:!1,enableNone:!1},_3={useDefault:!1,enableAll:!0,enableNone:!0};function Wu(r,e,t,n){n=n||At;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(ie(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ie(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function Jw(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function S3(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function b3(r){return r==="auto"?Ve.domSupported?"html":"richText":r||"html"}function fy(r,e){var t=te(),n=[];return C(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function eT(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Re(n)){var o=$w(t||0,n,a);return gt(o,i?Math.max(kn(t||0),kn(n)):e)}else{if($(n))return a<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=$w(v,d,a);s[c]=gt(o,i?Math.max(kn(v),kn(d)):e)}}return s}}var x3=".",po="___EC__COMPONENT__CONTAINER___",tT="___EC__EXTENDED_CLASS___";function na(r){var e={main:"",sub:""};if(r){var t=r.split(x3);e.main=t[0]||"",e.sub=t[1]||""}return e}function w3(r){ie(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function T3(r){return!!(r&&r[tT])}function cy(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&C(e,function(i){t[i]||console.warn("Method `"+i+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,a;return D3(n)?a=function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(t.$constructor||n).apply(this,arguments)},sg(a,this)),z(a.prototype,t),a[tT]=!0,a.extend=this.extend,a.superCall=M3,a.superApply=E3,a.superClass=n,a}}function D3(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function rT(r,e){r.extend=e.extend}var C3=Math.round(Math.random()*10);function A3(r){var e=["__\0is_clz",C3++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&ie(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function M3(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function E3(r,e,t){return this.superClass.prototype[e].apply(r,t)}function bh(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){w3(a),n.prototype.type=a;var i=na(a);if(!i.sub)process.env.NODE_ENV!=="production"&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==po){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[po]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=na(n),i=[],o=e[a.main];return o&&o[po]?C(o,function(s,l){l!==po&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=na(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return C(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=na(n),i=e[a.main];return i&&i[po]};function t(n){var a=e[n.main];return(!a||!a[po])&&(a=e[n.main]={},a[po]=!0),a}}function go(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&we(a,l)>=0||i&&we(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var I3=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],P3=go(I3),L3=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return P3(this,e,t)},r}(),hy=new Mu(50);function k3(r){if(typeof r=="string"){var e=hy.get(r);return e&&e.image}else return r}function vy(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=hy.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!xh(e)&&i.pending.push(o)):(e=An.loadImage(r,nT,nT),e.__zrImageSrc=r,hy.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function nT(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function xh(r){return r&&r.width&&r.height}var dy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function aT(r,e,t,n,a){if(!e)return"";var i=(r+"").split(`
37
+ `);a=iT(e,t,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=oT(i[o],a);return i.join(`
38
+ `)}function iT(r,e,t,n){n=n||{};var a=z({},n);a.font=e,t=me(t,"..."),a.maxIterations=me(n.maxIterations,2);var i=a.minChar=me(n.minChar,0);a.cnCharWidth=Vr("国",e);var o=a.ascCharWidth=Vr("a",e);a.placeholder=me(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Vr(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function oT(r,e){var t=e.containerWidth,n=e.font,a=e.contentWidth;if(!t)return"";var i=Vr(r,n);if(i<=t)return r;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?R3(r,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=Vr(r,n)}return r===""&&(r=e.placeholder),r}function R3(r,e,t,n){for(var a=0,i=0,o=r.length;i<o&&a<e;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?t:n}return i}function O3(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,a=e.font,i=t==="truncate",o=ph(a),s=me(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,c;f!=null&&(t==="break"||t==="breakAll")?c=r?lT(r,e.font,f,t==="breakAll",0).lines:[]:c=r?r.split(`
39
+ `):[];var h=c.length*s,v=me(e.height,h);if(h>v&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(r&&i&&f!=null)for(var p=iT(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<c.length;g++)c[g]=oT(c[g],p);for(var y=v,m=0,g=0;g<c.length;g++)m=Math.max(Vr(c[g],a),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:h,width:f}}var N3=function(){function r(){}return r}(),sT=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),V3=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function B3(r,e){var t=new V3;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=dy.lastIndex=0,l;(l=dy.exec(r))!=null;){var u=l.index;u>s&&py(t,r.substring(s,u),e,o),py(t,l[2],e,o,l[1]),s=dy.lastIndex}s<r.length&&py(t,r.substring(s,r.length),e,o);var f=[],c=0,h=0,v=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate";function g(O,B,H){O.width=B,O.lineHeight=H,c+=H,h=Math.max(h,B)}e:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,x=0;x<m.tokens.length;x++){var b=m.tokens[x],w=b.styleName&&e.rich[b.styleName]||{},T=b.textPadding=w.padding,D=T?T[1]+T[3]:0,M=b.font=w.font||e.font;b.contentHeight=ph(M);var A=me(w.height,b.contentHeight);if(b.innerHeight=A,T&&(A+=T[0]+T[2]),b.height=A,b.lineHeight=Kr(w.lineHeight,e.lineHeight,A),b.align=w&&w.align||e.align,b.verticalAlign=w&&w.verticalAlign||"middle",p&&a!=null&&c+b.lineHeight>a){x>0?(m.tokens=m.tokens.slice(0,x),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var E=w.width,I=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")b.percentWidth=E,f.push(b),b.contentWidth=Vr(b.text,M);else{if(I){var P=w.backgroundColor,L=P&&P.image;L&&(L=k3(L),xh(L)&&(b.width=Math.max(b.width,L.width*A/L.height)))}var k=d&&n!=null?n-S:null;k!=null&&k<b.width?!I||k<D?(b.text="",b.width=b.contentWidth=0):(b.text=aT(b.text,k-D,M,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Vr(b.text,M)):b.contentWidth=Vr(b.text,M)}b.width+=D,S+=b.width,w&&(_=Math.max(_,b.lineHeight))}g(m,S,_)}t.outerWidth=t.width=me(n,h),t.outerHeight=t.height=me(a,c),t.contentHeight=c,t.contentWidth=h,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var b=f[y],V=b.percentWidth;b.width=parseInt(V,10)/100*t.width}return t}function py(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ln(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
40
+ `),u=!0),n.accumWidth=d}else{var p=lT(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}else f=e.split(`
41
+ `);for(var g=0;g<f.length;g++){var y=f[g],m=new N3;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:Vr(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new sT)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new sT([m]))}}function z3(r){var e=r.charCodeAt(0);return e>=33&&e<=383}var F3=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function G3(r){return z3(r)?!!F3[r]:!0}function lT(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
42
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Vr(h,e),d=n?!1:!G3(h);if(i.length?f+v>t:a+f+v>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=v)):d?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var gy="__zr_style_"+Math.round(Math.random()*10),yo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},wh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yo[gy]=!0;var uT=["z","z2","invisible"],H3=["invisible"],W3=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=Me(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Y3(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new xe(0,0,0,0)),n?xe.applyTransform(t,a,n):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new xe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:z(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Cu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Cu)},e.prototype.styleUpdated=function(){this.__dirty&=~Cu},e.prototype.createStyle=function(t){return gu(yo,t)},e.prototype.useStyle=function(t){t[gy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[gy]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,uT)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Me(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Me(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?H3:uT,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return z(t,n),t},e.prototype.getAnimationStyleProps=function(){return wh},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Nr|Cu}(),e}(Rw),yy=new xe(0,0,0,0),my=new xe(0,0,0,0);function Y3(r,e,t){return yy.copy(r.getBoundingRect()),r.transform&&yy.applyTransform(r.transform),my.width=e,my.height=t,!yy.intersect(my)}const an=W3;var Dr=Math.min,Cr=Math.max,_y=Math.sin,Sy=Math.cos,mo=Math.PI*2,Th=ui(),Dh=ui(),Ch=ui();function Ah(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=Dr(a,n[0]),i=Cr(i,n[0]),o=Dr(o,n[1]),s=Cr(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function fT(r,e,t,n,a,i){a[0]=Dr(r,t),a[1]=Dr(e,n),i[0]=Cr(r,t),i[1]=Cr(e,n)}var cT=[],hT=[];function $3(r,e,t,n,a,i,o,s,l,u){var f=ow,c=Ot,h=f(r,t,a,o,cT);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(r,t,a,o,cT[v]);l[0]=Dr(d,l[0]),u[0]=Cr(d,u[0])}h=f(e,n,i,s,hT);for(var v=0;v<h;v++){var p=c(e,n,i,s,hT[v]);l[1]=Dr(p,l[1]),u[1]=Cr(p,u[1])}l[0]=Dr(r,l[0]),u[0]=Cr(r,u[0]),l[0]=Dr(o,l[0]),u[0]=Cr(o,u[0]),l[1]=Dr(e,l[1]),u[1]=Cr(e,u[1]),l[1]=Dr(s,l[1]),u[1]=Cr(s,u[1])}function U3(r,e,t,n,a,i,o,s){var l=lw,u=Ht,f=Cr(Dr(l(r,t,a),1),0),c=Cr(Dr(l(e,n,i),1),0),h=u(r,t,a,f),v=u(e,n,i,c);o[0]=Dr(r,a,h),o[1]=Dr(e,i,v),s[0]=Cr(r,a,h),s[1]=Cr(e,i,v)}function Z3(r,e,t,n,a,i,o,s,l){var u=Ca,f=Aa,c=Math.abs(a-i);if(c%mo<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(Th[0]=Sy(a)*t+r,Th[1]=_y(a)*n+e,Dh[0]=Sy(i)*t+r,Dh[1]=_y(i)*n+e,u(s,Th,Dh),f(l,Th,Dh),a=a%mo,a<0&&(a=a+mo),i=i%mo,i<0&&(i=i+mo),a>i&&!o?i+=mo:a<i&&o&&(a+=mo),o){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Ch[0]=Sy(v)*t+r,Ch[1]=_y(v)*n+e,u(s,Ch,s),f(l,Ch,l))}var Qe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_o=[],So=[],aa=[],mi=[],ia=[],oa=[],by=Math.min,xy=Math.max,bo=Math.cos,xo=Math.sin,Pa=Math.abs,wy=Math.PI,_i=wy*2,Ty=typeof Float32Array<"u",Yu=[];function Dy(r){var e=Math.round(r/wy*1e8)/1e8;return e%2*wy}function vT(r,e){var t=Dy(r[0]);t<0&&(t+=_i);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=_i?a=t+_i:e&&t-a>=_i?a=t-_i:!e&&t>a?a=t+(_i-Dy(t-a)):e&&t<a&&(a=t-(_i-Dy(a-t))),r[0]=t,r[1]=a}var j3=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=Pa(n/dh/e)||0,this._uy=Pa(n/dh/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Qe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=Pa(e-this._xi),a=Pa(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Qe.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Qe.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Qe.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),Yu[0]=a,Yu[1]=i,vT(Yu,o),a=Yu[0],i=Yu[1];var s=i-a;return this.addData(Qe.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=bo(i)*n+e,this._yi=xo(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Qe.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qe.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Ty&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();Ty&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ty&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){aa[0]=aa[1]=ia[0]=ia[1]=Number.MAX_VALUE,mi[0]=mi[1]=oa[0]=oa[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Qe.M:t=a=e[o++],n=i=e[o++],ia[0]=a,ia[1]=i,oa[0]=a,oa[1]=i;break;case Qe.L:fT(t,n,e[o],e[o+1],ia,oa),t=e[o++],n=e[o++];break;case Qe.C:$3(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ia,oa),t=e[o++],n=e[o++];break;case Qe.Q:U3(t,n,e[o++],e[o++],e[o],e[o+1],ia,oa),t=e[o++],n=e[o++];break;case Qe.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(a=bo(v)*c+u,i=xo(v)*h+f),Z3(u,f,c,h,v,d,p,ia,oa),t=bo(d)*c+u,n=xo(d)*h+f;break;case Qe.R:a=t=e[o++],i=n=e[o++];var g=e[o++],y=e[o++];fT(a,i,a+g,i+y,ia,oa);break;case Qe.Z:t=a,n=i;break}Ca(aa,aa,ia),Aa(mi,mi,oa)}return o===0&&(aa[0]=aa[1]=mi[0]=mi[1]=0),new xe(aa[0],aa[1],mi[0]-aa[0],mi[1]-aa[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<t;){var v=e[h++],d=h===1;d&&(i=e[h],o=e[h+1],s=i,l=o);var p=-1;switch(v){case Qe.M:i=s=e[h++],o=l=e[h++];break;case Qe.L:{var g=e[h++],y=e[h++],m=g-i,_=y-o;(Pa(m)>n||Pa(_)>a||h===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Qe.C:{var S=e[h++],x=e[h++],g=e[h++],y=e[h++],b=e[h++],w=e[h++];p=QB(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case Qe.Q:{var S=e[h++],x=e[h++],g=e[h++],y=e[h++];p=ez(i,o,S,x,g,y,10),i=g,o=y;break}case Qe.A:var T=e[h++],D=e[h++],M=e[h++],A=e[h++],E=e[h++],I=e[h++],P=I+E;h+=1,e[h++],d&&(s=bo(E)*M+T,l=xo(E)*A+D),p=xy(M,A)*by(_i,Math.abs(I)),i=bo(P)*M+T,o=xo(P)*A+D;break;case Qe.R:{s=i=e[h++],l=o=e[h++];var L=e[h++],k=e[h++];p=L*2+k*2;break}case Qe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=t<1,d,p,g=0,y=0,m,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))e:for(var b=0;b<o;){var w=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),w!==Qe.L&&_>0&&(e.lineTo(S,x),_=0),w){case Qe.M:s=u=n[b++],l=f=n[b++],e.moveTo(u,f);break;case Qe.L:{c=n[b++],h=n[b++];var D=Pa(c-u),M=Pa(h-f);if(D>a||M>i){if(v){var A=d[y++];if(g+A>m){var E=(m-g)/A;e.lineTo(u*(1-E)+c*E,f*(1-E)+h*E);break e}g+=A}e.lineTo(c,h),u=c,f=h,_=0}else{var I=D*D+M*M;I>_&&(S=c,x=h,_=I)}break}case Qe.C:{var P=n[b++],L=n[b++],k=n[b++],V=n[b++],O=n[b++],B=n[b++];if(v){var A=d[y++];if(g+A>m){var E=(m-g)/A;pi(u,P,k,O,E,_o),pi(f,L,V,B,E,So),e.bezierCurveTo(_o[1],So[1],_o[2],So[2],_o[3],So[3]);break e}g+=A}e.bezierCurveTo(P,L,k,V,O,B),u=O,f=B;break}case Qe.Q:{var P=n[b++],L=n[b++],k=n[b++],V=n[b++];if(v){var A=d[y++];if(g+A>m){var E=(m-g)/A;Au(u,P,k,E,_o),Au(f,L,V,E,So),e.quadraticCurveTo(_o[1],So[1],_o[2],So[2]);break e}g+=A}e.quadraticCurveTo(P,L,k,V),u=k,f=V;break}case Qe.A:var H=n[b++],W=n[b++],q=n[b++],ee=n[b++],ue=n[b++],Ae=n[b++],Ce=n[b++],pe=!n[b++],J=q>ee?q:ee,Se=Pa(q-ee)>.001,he=ue+Ae,K=!1;if(v){var A=d[y++];g+A>m&&(he=ue+Ae*(m-g)/A,K=!0),g+=A}if(Se&&e.ellipse?e.ellipse(H,W,q,ee,Ce,ue,he,pe):e.arc(H,W,J,ue,he,pe),K)break e;T&&(s=bo(ue)*q+H,l=xo(ue)*ee+W),u=bo(he)*q+H,f=xo(he)*ee+W;break;case Qe.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var ge=n[b++],nt=n[b++];if(v){var A=d[y++];if(g+A>m){var Pe=m-g;e.moveTo(c,h),e.lineTo(c+by(Pe,ge),h),Pe-=ge,Pe>0&&e.lineTo(c+ge,h+by(Pe,nt)),Pe-=nt,Pe>0&&e.lineTo(c+xy(ge-Pe,0),h+nt),Pe-=ge,Pe>0&&e.lineTo(c,h+xy(nt-Pe,0));break e}g+=A}e.rect(c,h,ge,nt);break;case Qe.Z:if(v){var A=d[y++];if(g+A>m){var E=(m-g)/A;e.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break e}g+=A}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Qe,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const sa=j3;function Si(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function X3(r,e,t,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>i+c&&f>s+c||f<e-c&&f<n-c&&f<i-c&&f<s-c||u>r+c&&u>t+c&&u>a+c&&u>o+c||u<r-c&&u<t-c&&u<a-c&&u<o-c)return!1;var h=sw(r,e,t,n,a,i,o,s,u,f,null);return h<=c/2}function dT(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=uw(r,e,t,n,a,i,s,l,null);return f<=u/2}var pT=Math.PI*2;function bi(r){return r%=pT,r<0&&(r+=pT),r}var $u=Math.PI*2;function q3(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(n-a)%$u<1e-4)return!0;if(i){var c=n;n=bi(a),a=bi(c)}else n=bi(n),a=bi(a);n>a&&(a+=$u);var h=Math.atan2(l,s);return h<0&&(h+=$u),h>=n&&h<=a||h+$u>=n&&h+$u<=a}function La(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var xi=sa.CMD,wo=Math.PI*2,K3=1e-4;function Q3(r,e){return Math.abs(r-e)<K3}var yr=[-1,-1,-1],on=[-1,-1];function J3(){var r=on[0];on[0]=on[1],on[1]=r}function eF(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=rh(e,n,i,s,u,yr);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=yr[p],y=g===0||g===1?.5:1,m=Ot(r,t,a,o,g);m<l||(h<0&&(h=ow(e,n,i,s,on),on[1]<on[0]&&h>1&&J3(),v=Ot(e,n,i,s,on[0]),h>1&&(d=Ot(e,n,i,s,on[1]))),h===2?g<on[0]?c+=v<e?y:-y:g<on[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<on[0]?c+=v<e?y:-y:c+=s<v?y:-y)}return c}function tF(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=JB(e,n,i,s,yr);if(l===0)return 0;var u=lw(e,n,i);if(u>=0&&u<=1){for(var f=0,c=Ht(e,n,i,u),h=0;h<l;h++){var v=yr[h]===0||yr[h]===1?.5:1,d=Ht(r,t,a,yr[h]);d<o||(yr[h]<u?f+=c<e?v:-v:f+=i<c?v:-v)}return f}else{var v=yr[0]===0||yr[0]===1?.5:1,d=Ht(r,t,a,yr[0]);return d<o?0:i<e?v:-v}}function rF(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);yr[0]=-l,yr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=wo-1e-4){n=0,a=wo;var f=i?1:-1;return o>=yr[0]+r&&o<=yr[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=wo,a+=wo);for(var h=0,v=0;v<2;v++){var d=yr[v];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=wo+p),(p>=n&&p<=a||p+wo>=n&&p+wo<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function gT(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===xi.M&&d>1&&(t||(s+=La(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case xi.M:f=i[d++],c=i[d++],l=f,u=c;break;case xi.L:if(t){if(Si(l,u,i[d],i[d+1],e,n,a))return!0}else s+=La(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case xi.C:if(t){if(X3(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=eF(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case xi.Q:if(t){if(dT(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=tF(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case xi.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(x)*_+y,v=Math.sin(x)*S+m,g?(f=h,c=v):s+=La(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(t){if(q3(y,m,S,x,x+b,w,e,T,a))return!0}else s+=rF(y,m,S,x,x+b,w,T,a);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case xi.R:f=l=i[d++],c=u=i[d++];var D=i[d++],M=i[d++];if(h=f+D,v=c+M,t){if(Si(f,c,h,c,e,n,a)||Si(h,c,h,v,e,n,a)||Si(h,v,f,v,e,n,a)||Si(f,v,f,c,e,n,a))return!0}else s+=La(h,c,h,v,n,a),s+=La(f,v,f,c,n,a);break;case xi.Z:if(t){if(Si(l,u,f,c,e,n,a))return!0}else s+=La(l,u,f,c,n,a);l=f,u=c;break}}return!t&&!Q3(u,c)&&(s+=La(l,u,f,c,n,a)||0),s!==0}function nF(r,e,t){return gT(r,0,!1,e,t)}function aF(r,e,t,n){return gT(r,e,!0,t,n)}var Mh=ae({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yo),iF={style:ae({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wh.style)},Cy=ta.concat(["invisible","culling","z","z2","zlevel","parent"]),oF=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Cy.length;++s)a[Cy[s]]=this[Cy[s]];a.__dirty|=Nr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=Me(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if($(t)){var n=Lu(t,0);return n>.5?Zg:n>.2?Bz:jg}else if(t)return jg}return Zg},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if($(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Lu(t,0)<Ug;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Is},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new sa(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Is)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),aF(s,l/u,t,n)))return!0}if(this.hasFill())return nF(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Is,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:z(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Is)},e.prototype.createStyle=function(t){return gu(Mh,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=z({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=z({},a.shape),z(u,n.shape)):(u=z({},i?this.shape:a.shape),z(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=z({},this.shape);for(var f={},c=Me(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return iF},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(i){it(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return se(t.style)},o.prototype.getDefaultShape=function(){return se(t.shape)},o}(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Nr|Cu|Is}(),e}(an);const De=oF;var sF=ae({strokeFirst:!0,font:si,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Mh),yT=function(r){it(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return gu(sF,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var a=Nu(n,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(an);yT.prototype.type="tspan";const Uu=yT;var lF=ae({x:0,y:0},yo),uF={style:ae({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},wh.style)};function fF(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var mT=function(r){it(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return gu(lF,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=fF(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return uF},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new xe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(an);mT.prototype.type="image";const Wt=mT;function cF(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+f,n+i),f!==0&&r.arc(t+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var Gs=Math.round;function _T(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Gs(n*2)===Gs(a*2)&&(r.x1=r.x2=To(n,s,!0)),Gs(i*2)===Gs(o*2)&&(r.y1=r.y2=To(i,s,!0))),r}}function ST(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=To(n,s,!0),r.y=To(a,s,!0),r.width=Math.max(To(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(To(a+o,s,!1)-r.y,o===0?0:1)),r}}function To(r,e,t){if(!e)return r;var n=Gs(r*2);return(n+Gs(e))%2===0?n/2:(n+(t?1:-1))/2}var hF=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),vF={},bT=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new hF},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=ST(vF,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?cF(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(De);bT.prototype.type="rect";const Le=bT;var xT={fill:"#000"},wT=2,dF={style:ae({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},wh.style)},TT=function(r){it(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=xT,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,yF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new xe(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||xT},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return z(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=Me(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},z(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return dF},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||si,a=t.padding,i=kT(t),o=O3(i,t),s=Ay(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle,p=t.x||0,g=t.y||0,y=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",_=p,S=Vs(g,o.contentHeight,m);if(s||a){var x=Vu(p,f,y),b=Vs(g,u,m);s&&this._renderBackground(t,t,x,b,f,u)}S+=v/2,a&&(_=LT(p,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var w=0,T=!1,D=PT("fill"in t?t.fill:(T=!0,d.fill)),M=IT("stroke"in t?t.stroke:!l&&(!d.autoStroke||T)?(w=wT,d.stroke):null),A=t.textShadowBlur>0,E=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<h.length;P++){var L=this._getOrCreateChild(Uu),k=L.createStyle();L.useStyle(k),k.text=h[P],k.x=_,k.y=S,y&&(k.textAlign=y),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,A&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=M,k.fill=D,M&&(k.lineWidth=t.lineWidth||w,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=n,AT(k,t),S+=v,E&&L.setBoundingRect(new xe(Vu(k.x,t.width,k.textAlign),Vs(k.y,I,k.textBaseline),c,I))}},e.prototype._updateRichTexts=function(){var t=this.style,n=kT(t),a=B3(n,t),i=a.width,o=a.outerWidth,s=a.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,c=this._defaultStyle,h=t.align||c.align,v=t.verticalAlign||c.verticalAlign,d=Vu(u,o,h),p=Vs(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+i;Ay(t)&&this._renderBackground(t,t,d,p,o,s);for(var _=!!t.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],b=x.tokens,w=b.length,T=x.lineHeight,D=x.width,M=0,A=g,E=m,I=w-1,P=void 0;M<w&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,t,T,y,A,"left",_),D-=P.width,A+=P.width,M++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,t,T,y,E,"right",_),D-=P.width,E-=P.width,I--;for(A+=(i-(A-g)-(m-E)-D)/2;M<=I;)P=b[M],this._placeToken(P,t,T,y,A+P.width/2,"center",_),A+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=i+a/2;f==="top"?c=i+t.height/2:f==="bottom"&&(c=i+a-t.height/2);var h=!t.isLineHolder&&Ay(u);h&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=LT(o,s,d),c-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Uu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=PT("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=IT("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=wT,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||si,g.opacity=Kr(u.opacity,n.opacity,1),AT(g,u),x&&(g.lineWidth=Kr(u.lineWidth,n.lineWidth,_),g.lineDash=me(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;p.setBoundingRect(new xe(Vu(g.x,w,g.textAlign),Vs(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,h=l&&!c,v=t.borderRadius,d=this,p,g;if(h||t.lineHeight||u&&f){p=this._getOrCreateChild(Le),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=me(t.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Wt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=me(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Kr(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return MT(t)&&(n=[t.fontStyle,t.fontWeight,CT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Qr(n)||t.textFont||t.font},e}(an),pF={left:!0,right:1,center:1},gF={top:1,bottom:1,middle:1},DT=["fontStyle","fontWeight","fontSize","fontFamily"];function CT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ng+"px":r+"px"}function AT(r,e){for(var t=0;t<DT.length;t++){var n=DT[t],a=e[n];a!=null&&(r[n]=a)}}function MT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function yF(r){return ET(r),C(r.rich,ET),r}function ET(r){if(r){r.font=TT.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||pF[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||gF[t]?t:"top";var n=r.padding;n&&(r.padding=Yc(r.padding))}}function IT(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function PT(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function LT(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function kT(r){var e=r.text;return e!=null&&(e+=""),e}function Ay(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const ke=TT;var ve=Be(),My=function(r,e,t,n){if(n){var a=ve(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=ve(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},RT=1,OT={},NT=Be(),Ey=Be(),Iy=0,Zu=1,Eh=2,mr=["emphasis","blur","select"],ju=["normal","emphasis","blur","select"],Hs=10,mF=9,Do="highlight",Ih="downplay",Xu="select",Ph="unselect",qu="toggleSelect";function Ws(r){return r!=null&&r!=="none"}var VT=new Mu(100);function BT(r){if($(r)){var e=VT.get(r);return e||(e=ah(r,-.1),VT.put(r,e)),e}else if(vu(r)){var t=z({},r);return t.colorStops=G(r.colorStops,function(n){return{offset:n.offset,color:ah(n.color,-.1)}}),t}return r}function Lh(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function zT(r){Lh(r,"emphasis",Eh)}function FT(r){r.hoverState===Eh&&Lh(r,"normal",Iy)}function Py(r){Lh(r,"blur",Zu)}function GT(r){r.hoverState===Zu&&Lh(r,"normal",Iy)}function _F(r){r.selected=!0}function SF(r){r.selected=!1}function HT(r,e,t){e(r,t)}function ka(r,e,t){HT(r,e,t),r.isGroup&&r.traverse(function(n){HT(n,e,t)})}function kh(r,e){switch(e){case"emphasis":r.hoverState=Eh;break;case"normal":r.hoverState=Iy;break;case"blur":r.hoverState=Zu;break;case"select":r.selected=!0}}function bF(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function xF(r,e,t,n){var a=t&&we(t,"select")>=0,i=!1;if(r instanceof De){var o=NT(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ws(s)||Ws(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=z({},n),u=z({},u),u.fill=s):!Ws(u.fill)&&Ws(s)?(i=!0,n=z({},n),u=z({},u),u.fill=BT(s)):!Ws(u.stroke)&&Ws(l)&&(i||(n=z({},n),u=z({},u)),u.stroke=BT(l)),n.style=u}}if(n&&n.z2==null){i||(n=z({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Hs)}return n}function wF(r,e,t){if(t&&t.z2==null){t=z({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??mF)}return t}function TF(r,e,t){var n=we(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:bF(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=z({},t),o=z({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Ly(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return xF(this,r,e,t);if(r==="blur")return TF(this,r,t);if(r==="select")return wF(this,r,t)}return t}function Co(r){r.stateProxy=Ly;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Ly),t&&(t.stateProxy=Ly)}function WT(r,e){!jT(r,e)&&!r.__highByOuter&&ka(r,zT)}function YT(r,e){!jT(r,e)&&!r.__highByOuter&&ka(r,FT)}function Ra(r,e){r.__highByOuter|=1<<(e||0),ka(r,zT)}function Oa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&ka(r,FT)}function $T(r){ka(r,Py)}function ky(r){ka(r,GT)}function UT(r){ka(r,_F)}function ZT(r){ka(r,SF)}function jT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function XT(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=Ey(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){GT(u)}),s&&t.push(i)),o.isBlured=!1}),C(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Ry(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&ky(h)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){Py(g)}),Ut(e))i(u.getData(),e);else if(re(e))for(var d=Me(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),Ey(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function Oy(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Ey(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Py(i)})}}}function DF(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+e.dataType);return}var i=vo(a,e);i=(F(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ve(o);Ry(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Ry(n,f,c,t)}}function Ny(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ti(s[u])&&Zt("param should be highDownDispatcher"),ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function CF(r,e,t){process.env.NODE_ENV!=="production"&&!Ti(r)&&Zt("param should be highDownDispatcher");var n=ve(r),a=Ny(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&Oy(n.componentMainType,n.componentIndex,t),C(i,function(s){return WT(s,e)})):(Ry(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Oy(n.componentMainType,n.componentIndex,t),WT(r,e))}function AF(r,e,t){process.env.NODE_ENV!=="production"&&!Ti(r)&&Zt("param should be highDownDispatcher"),XT(t);var n=ve(r),a=Ny(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?C(a,function(i){return YT(i,e)}):YT(r,e)}function MF(r,e,t){if(By(e)){var n=e.dataType,a=r.getData(n),i=vo(a,e);F(i)||(i=[i]),r[e.type===qu?"toggleSelect":e.type===Xu?"select":"unselect"](i,n)}}function qT(r){var e=r.getAllData();C(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?UT(i):ZT(i)})})}function EF(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();C(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function wi(r,e,t){Ao(r,!0),ka(r,Co),Vy(r,e,t)}function IF(r){Ao(r,!1)}function yt(r,e,t,n){n?IF(r):wi(r,e,t)}function Vy(r,e,t){var n=ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var KT=["emphasis","blur","select"],PF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function jt(r,e,t,n){t=t||"itemStyle";for(var a=0;a<KT.length;a++){var i=KT[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[PF[t]]()}}function Ao(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Ti(r){return!!(r&&r.__highDownDispatcher)}function LF(r,e,t){var n=ve(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function kF(r){var e=OT[r];return e==null&&RT<=32&&(e=OT[r]=RT++),e}function By(r){var e=r.type;return e===Xu||e===Ph||e===qu}function QT(r){var e=r.type;return e===Do||e===Ih}function RF(r){var e=NT(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ys=sa.CMD,OF=[[],[],[]],JT=Math.sqrt,NF=Math.atan2;function eD(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,f=Ys.M,c=Ys.C,h=Ys.L,v=Ys.R,d=Ys.A,p=Ys.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case f:i=1;break;case h:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=JT(e[0]*e[0]+e[1]*e[1]),_=JT(e[2]*e[2]+e[3]*e[3]),S=NF(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Gt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Gt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var x=OF[l];x[0]=t[o++],x[1]=t[o++],Gt(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}}var zy=Math.sqrt,Rh=Math.sin,Oh=Math.cos,Ku=Math.PI;function tD(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Fy(r,e){return(r[0]*e[0]+r[1]*e[1])/(tD(r)*tD(e))}function rD(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Fy(r,e))}function nD(r,e,t,n,a,i,o,s,l,u,f){var c=l*(Ku/180),h=Oh(c)*(r-t)/2+Rh(c)*(e-n)/2,v=-1*Rh(c)*(r-t)/2+Oh(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=zy(d),s*=zy(d));var p=(a===i?-1:1)*zy((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(r+t)/2+Oh(c)*g-Rh(c)*y,_=(e+n)/2+Rh(c)*g+Oh(c)*y,S=rD([1,0],[(h-g)/o,(v-y)/s]),x=[(h-g)/o,(v-y)/s],b=[(-1*h-g)/o,(-1*v-y)/s],w=rD(x,b);if(Fy(x,b)<=-1&&(w=Ku),Fy(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Ku*1e6)/1e6;w=Ku*2+T%2*Ku}f.addData(u,m,_,o,s,S,w,c,i)}var VF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,BF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function zF(r){var e=new sa;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=sa.CMD,l=r.match(VF);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(BF)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=t,D=n,M=void 0,A=void 0;switch(c){case"l":t+=v[g++],n+=v[g++],h=s.L,e.addData(h,t,n);break;case"L":t=v[g++],n=v[g++],h=s.L,e.addData(h,t,n);break;case"m":t+=v[g++],n+=v[g++],h=s.M,e.addData(h,t,n),a=t,i=n,c="l";break;case"M":t=v[g++],n=v[g++],h=s.M,e.addData(h,t,n),a=t,i=n,c="L";break;case"h":t+=v[g++],h=s.L,e.addData(h,t,n);break;case"H":t=v[g++],h=s.L,e.addData(h,t,n);break;case"v":n+=v[g++],h=s.L,e.addData(h,t,n);break;case"V":n=v[g++],h=s.L,e.addData(h,t,n);break;case"C":h=s.C,e.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],n=v[g-1];break;case"c":h=s.C,e.addData(h,v[g++]+t,v[g++]+n,v[g++]+t,v[g++]+n,v[g++]+t,v[g++]+n),t+=v[g-2],n+=v[g-1];break;case"S":y=t,m=n,M=e.len(),A=e.data,o===s.C&&(y+=t-A[M-4],m+=n-A[M-3]),h=s.C,T=v[g++],D=v[g++],t=v[g++],n=v[g++],e.addData(h,y,m,T,D,t,n);break;case"s":y=t,m=n,M=e.len(),A=e.data,o===s.C&&(y+=t-A[M-4],m+=n-A[M-3]),h=s.C,T=t+v[g++],D=n+v[g++],t+=v[g++],n+=v[g++],e.addData(h,y,m,T,D,t,n);break;case"Q":T=v[g++],D=v[g++],t=v[g++],n=v[g++],h=s.Q,e.addData(h,T,D,t,n);break;case"q":T=v[g++]+t,D=v[g++]+n,t+=v[g++],n+=v[g++],h=s.Q,e.addData(h,T,D,t,n);break;case"T":y=t,m=n,M=e.len(),A=e.data,o===s.Q&&(y+=t-A[M-4],m+=n-A[M-3]),t=v[g++],n=v[g++],h=s.Q,e.addData(h,y,m,t,n);break;case"t":y=t,m=n,M=e.len(),A=e.data,o===s.Q&&(y+=t-A[M-4],m+=n-A[M-3]),t+=v[g++],n+=v[g++],h=s.Q,e.addData(h,y,m,t,n);break;case"A":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=t,D=n,t=v[g++],n=v[g++],h=s.A,nD(T,D,t,n,b,w,_,S,x,h,e);break;case"a":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=t,D=n,t+=v[g++],n+=v[g++],h=s.A,nD(T,D,t,n,b,w,_,S,x,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),t=a,n=i),o=h}return e.toStatic(),e}var aD=function(r){it(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(De);function iD(r){return r.setData!=null}function oD(r,e){var t=zF(r),n=z({},e);return n.buildPath=function(a){if(iD(a)){a.setData(t.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;t.rebuildPath(i,1)}},n.applyTransform=function(a){eD(t,a),this.dirtyShape()},n}function sD(r,e){return new aD(oD(r,e))}function FF(r,e){var t=oD(r,e),n=function(a){it(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i}(aD);return n}function GF(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new De(e);return o.createPathProxy(),o.buildPath=function(s){if(iD(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Gy(r,e){e=e||{};var t=new De;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?eD(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var HF=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),lD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new HF},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(De);lD.prototype.type="circle";const Rn=lD;var WF=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),uD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WF},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e}(De);uD.prototype.type="ellipse";const Nh=uD;var fD=Math.PI,Hy=fD*2,Mo=Math.sin,$s=Math.cos,YF=Math.acos,er=Math.atan2,cD=Math.abs,Qu=Math.sqrt,Ju=Math.max,la=Math.min,On=1e-4;function $F(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=c*l-f*u;if(!(h*h<On))return h=(f*(e-i)-c*(r-a))/h,[r+h*l,e+h*u]}function Vh(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/Qu(s*s+l*l),f=u*l,c=-u*s,h=r+f,v=e+c,d=t+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,_=p-v,S=m*m+_*_,x=a-i,b=h*p-d*v,w=(_<0?-1:1)*Qu(Ju(0,x*x*S-b*b)),T=(b*_-m*w)/S,D=(-b*m-_*w)/S,M=(b*_+m*w)/S,A=(-b*m+_*w)/S,E=T-g,I=D-y,P=M-g,L=A-y;return E*E+I*I>P*P+L*L&&(T=M,D=A),{cx:T,cy:D,x0:-f,y0:-c,x1:T*(a/x-1),y1:D*(a/x-1)}}function UF(r){var e;if(F(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function ZF(r,e){var t,n=Ju(e.r,0),a=Ju(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=cD(u-l),d=v>Hy&&v%Hy;if(d>On&&(v=d),!(n>On))r.moveTo(f,c);else if(v>Hy-On)r.moveTo(f+n*$s(l),c+n*Mo(l)),r.arc(f,c,n,l,u,!h),a>On&&(r.moveTo(f+a*$s(u),c+a*Mo(u)),r.arc(f,c,a,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=void 0,D=void 0,M=void 0,A=void 0,E=void 0,I=void 0,P=void 0,L=n*$s(l),k=n*Mo(l),V=a*$s(u),O=a*Mo(u),B=v>On;if(B){var H=e.cornerRadius;H&&(t=UF(H),p=t[0],g=t[1],y=t[2],m=t[3]);var W=cD(n-a)/2;if(_=la(W,y),S=la(W,m),x=la(W,p),b=la(W,g),D=w=Ju(_,S),M=T=Ju(x,b),(w>On||T>On)&&(A=n*$s(u),E=n*Mo(u),I=a*$s(l),P=a*Mo(l),v<fD)){var q=$F(L,k,I,P,A,E,V,O);if(q){var ee=L-q[0],ue=k-q[1],Ae=A-q[0],Ce=E-q[1],pe=1/Mo(YF((ee*Ae+ue*Ce)/(Qu(ee*ee+ue*ue)*Qu(Ae*Ae+Ce*Ce)))/2),J=Qu(q[0]*q[0]+q[1]*q[1]);D=la(w,(n-J)/(pe+1)),M=la(T,(a-J)/(pe-1))}}}if(!B)r.moveTo(f+L,c+k);else if(D>On){var Se=la(y,D),he=la(m,D),K=Vh(I,P,L,k,n,Se,h),ge=Vh(A,E,V,O,n,he,h);r.moveTo(f+K.cx+K.x0,c+K.cy+K.y0),D<w&&Se===he?r.arc(f+K.cx,c+K.cy,D,er(K.y0,K.x0),er(ge.y0,ge.x0),!h):(Se>0&&r.arc(f+K.cx,c+K.cy,Se,er(K.y0,K.x0),er(K.y1,K.x1),!h),r.arc(f,c,n,er(K.cy+K.y1,K.cx+K.x1),er(ge.cy+ge.y1,ge.cx+ge.x1),!h),he>0&&r.arc(f+ge.cx,c+ge.cy,he,er(ge.y1,ge.x1),er(ge.y0,ge.x0),!h))}else r.moveTo(f+L,c+k),r.arc(f,c,n,l,u,!h);if(!(a>On)||!B)r.lineTo(f+V,c+O);else if(M>On){var Se=la(p,M),he=la(g,M),K=Vh(V,O,A,E,a,-he,h),ge=Vh(L,k,I,P,a,-Se,h);r.lineTo(f+K.cx+K.x0,c+K.cy+K.y0),M<T&&Se===he?r.arc(f+K.cx,c+K.cy,M,er(K.y0,K.x0),er(ge.y0,ge.x0),!h):(he>0&&r.arc(f+K.cx,c+K.cy,he,er(K.y0,K.x0),er(K.y1,K.x1),!h),r.arc(f,c,a,er(K.cy+K.y1,K.cx+K.x1),er(ge.cy+ge.y1,ge.cx+ge.x1),h),Se>0&&r.arc(f+ge.cx,c+ge.cy,Se,er(ge.y1,ge.x1),er(ge.y0,ge.x0),!h))}else r.lineTo(f+V,c+O),r.arc(f,c,a,u,l,h)}r.closePath()}}}var jF=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}(),hD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jF},e.prototype.buildPath=function(t,n){ZF(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(De);hD.prototype.type="sector";const _r=hD;var XF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),vD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e}(De);vD.prototype.type="ring";const ef=vD;function qF(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)Ca(f,f,r[h]),Aa(c,c,r[h]);Ca(f,f,n[0]),Aa(c,c,n[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(t)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){a.push(Qn(r[h]));continue}else l=r[h-1],u=r[h+1];fi(i,u,l),_u(i,i,e);var p=Uc(d,l),g=Uc(d,u),y=p+g;y!==0&&(p/=y,g/=y),_u(o,i,-p),_u(s,i,g);var m=hg([],d,o),_=hg([],d,s);n&&(Aa(m,m,f),Ca(m,m,c),Aa(_,_,f),Ca(_,_,c)),a.push(m),a.push(_)}return t&&a.push(a.shift()),a}function dD(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=qF(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var KF=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),pD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new KF},e.prototype.buildPath=function(t,n){dD(t,n,!0)},e}(De);pD.prototype.type="polygon";const Sr=pD;var QF=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),gD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QF},e.prototype.buildPath=function(t,n){dD(t,n,!1)},e}(De);gD.prototype.type="polyline";const br=gD;var JF={},e4=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),yD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new e4},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=_T(JF,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(De);yD.prototype.type="line";const Nt=yD;var Ar=[],t4=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 mD(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?iw:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?iw:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Ag:Ht)(r.x1,r.cpx1,r.x2,e),(t?Ag:Ht)(r.y1,r.cpy1,r.y2,e)]}var _D=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new t4},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(t.moveTo(a,i),f==null||c==null?(h<1&&(Au(a,l,o,h,Ar),l=Ar[1],o=Ar[2],Au(i,u,s,h,Ar),u=Ar[1],s=Ar[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(pi(a,l,f,o,h,Ar),l=Ar[1],f=Ar[2],o=Ar[3],pi(i,u,c,s,h,Ar),u=Ar[1],c=Ar[2],s=Ar[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return mD(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=mD(this.shape,t,!0);return ro(n,n)},e}(De);_D.prototype.type="bezier-curve";const tf=_D;var r4=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}(),SD=function(r){it(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new r4},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);t.moveTo(f*o+a,c*o+i),t.arc(a,i,o,s,l,!u)},e}(De);SD.prototype.type="arc";const Bh=SD;var n4=function(r){it(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),De.prototype.getBoundingRect.call(this)},e}(De);const zh=n4;var a4=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const bD=a4;var i4=function(r){it(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(bD);const Us=i4;var o4=function(r){it(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(bD);const Wy=o4;var Eo=[0,0],Io=[0,0],Fh=new be,Gh=new be,s4=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new be;for(var n=0;n<2;n++)this._axes[n]=new be;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);be.sub(a[0],n[1],n[0]),be.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,a=!t;return Fh.set(1/0,1/0),Gh.set(0,0),!this._intersectCheckOneSide(this,e,Fh,Gh,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,Fh,Gh,a,-1)&&(n=!1,a)||a||be.copy(t,n?Fh:Gh),n},r.prototype._intersectCheckOneSide=function(e,t,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Eo),this._getProjMinMaxOnAxis(l,t._corners,Io),Eo[1]<Io[0]||Eo[0]>Io[1]){if(s=!1,i)return s;var f=Math.abs(Io[0]-Eo[1]),c=Math.abs(Eo[0]-Io[1]);Math.min(f,c)>a.len()&&(f<c?be.scale(a,u,-f*o):be.scale(a,u,c*o))}else if(n){var f=Math.abs(Io[0]-Eo[1]),c=Math.abs(Eo[0]-Io[1]);Math.min(f,c)<n.len()&&(f<c?be.scale(n,u,f*o):be.scale(n,u,-c*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+i[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Hh=s4;var l4=[],u4=function(r){it(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new xe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(l4)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(an);const xD=u4;var wD=Be();function Zs(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=me(n.duration,200),f=me(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Q(c)&&(c=c(t,a)),Q(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Yy(r,e,t,n,a,i,o){var s=!1,l;Q(a)?(o=i,i=a,a=null):re(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Zs(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Oe(r,e,t,n,a,i){Yy("update",r,e,t,n,a,i)}function lt(r,e,t,n,a,i){Yy("enter",r,e,t,n,a,i)}function js(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Di(r,e,t,n,a,i){js(r)||Yy("leave",r,e,t,n,a,i)}function TD(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),Di(r,{style:{opacity:0}},e,t,n)}function rf(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||TD(a,e,t,n)}):TD(r,e,t,n)}function Nn(r){wD(r).oldStyle=r.style}function f4(r){return wD(r).oldStyle}var Wh=Math.max,Yh=Math.min,$y={};function DD(r){return De.extend(r)}var c4=FF;function CD(r,e){return c4(r,e)}function sn(r,e){$y[r]=e}function $h(r){if($y.hasOwnProperty(r))return $y[r]}function nf(r,e,t,n){var a=sD(r,e);return t&&(n==="center"&&(t=AD(t,a.getBoundingRect())),Zy(a,t)),a}function Uy(r,e,t){var n=new Wt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(AD(e,i))}}});return n}function AD(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Fr=GF;function Zy(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Xs(r,e){return _T(r,r,{lineWidth:e}),r}function h4(r){return ST(r.shape,r.shape,r.style),r}var Uh=To;function Ci(r,e){for(var t=bu([]);r&&r!==e;)Jn(t,r.getLocalTransform(),t),r=r.parent;return t}function Vn(r,e,t){return e&&!Ut(e)&&(e=Ia.getLocalTransform(e)),t&&(e=no([],e)),Gt([],r,e)}function Zh(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Vn(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function MD(r){return!r.isGroup}function v4(r){return r.shape!=null}function af(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){MD(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return v4(o)&&(s.shape=z({},o.shape)),s}var i=n(r);e.traverse(function(o){if(MD(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Oe(o,l,t,ve(o).dataIndex)}}})}function jy(r,e){return G(r,function(t){var n=t[0];n=Wh(n,e.x),n=Yh(n,e.x+e.width);var a=t[1];return a=Wh(a,e.y),a=Yh(a,e.y+e.height),[n,a]})}function ED(r,e){var t=Wh(r.x,e.x),n=Yh(r.x+r.width,e.x+e.width),a=Wh(r.y,e.y),i=Yh(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function qs(r,e,t){var n=z({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),ae(a,t),new Wt(n)):nf(r.replace("path://",""),n,t,"center")}function of(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(ID(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ID(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=Xy(f,c,l,u);if(d4(h))return!1;var v=r-a,d=e-i,p=Xy(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Xy(v,d,f,c)/h;return!(g<0||g>1)}function Xy(r,e,t,n){return r*n-t*e}function d4(r){return r<=1e-6&&r>=-1e-6}function Ks(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(Me(l),function(f){X(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ae({content:n,formatterParams:s},a)}}function PD(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Ai(r,e){if(r)if(F(r))for(var t=0;t<r.length;t++)PD(r[t],e);else PD(r,e)}sn("circle",Rn),sn("ellipse",Nh),sn("sector",_r),sn("ring",ef),sn("polygon",Sr),sn("polyline",br),sn("rect",Le),sn("line",Nt),sn("bezierCurve",tf),sn("arc",Bh);const sf=Object.freeze(Object.defineProperty({__proto__:null,Arc:Bh,BezierCurve:tf,BoundingRect:xe,Circle:Rn,CompoundPath:zh,Ellipse:Nh,Group:fe,Image:Wt,IncrementalDisplayable:xD,Line:Nt,LinearGradient:Us,OrientedBoundingRect:Hh,Path:De,Point:be,Polygon:Sr,Polyline:br,RadialGradient:Wy,Rect:Le,Ring:ef,Sector:_r,Text:ke,applyTransform:Vn,clipPointsByRect:jy,clipRectByRect:ED,createIcon:qs,extendPath:CD,extendShape:DD,getShapeClass:$h,getTransform:Ci,groupTransition:af,initProps:lt,isElementRemoved:js,lineLineIntersect:ID,linePolygonIntersect:of,makeImage:Uy,makePath:nf,mergePath:Fr,registerShape:sn,removeElement:Di,removeElementWithFadeOut:rf,resizePath:Zy,setTooltipConfig:Ks,subPixelOptimize:Uh,subPixelOptimizeLine:Xs,subPixelOptimizeRect:h4,transformDirection:Zh,traverseElements:Ai,updateProps:Oe},Symbol.toStringTag,{value:"Module"}));var jh={};function LD(r,e){for(var t=0;t<mr.length;t++){var n=mr[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function qy(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<mr.length;u++){var f=mr[u],c=e[f];l[f]=me(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function tr(r,e,t,n){t=t||jh;for(var a=r instanceof ke,i=!1,o=0;o<ju.length;o++){var s=e[ju[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new ke,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=qy(t,e),f=e.normal,c=!!f.getShallow("show"),h=Je(f,n&&n.normal,t,!1,!a);h.text=u.normal,a||r.setTextConfig(Xh(f,t,!1));for(var o=0;o<mr.length;o++){var v=mr[o],s=e[v];if(s){var d=l.ensureState(v),p=!!me(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Je(s,n&&n[v],t,!0,!a),d.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=Xh(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),t.enableTextSetter&&(Qs(l).setLabelText=function(y){var m=qy(t,e,y);LD(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Yt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<mr.length;n++){var a=mr[n];t[a]=r.getModel([a,e])}return t}function Je(r,e,t,n,a){var i={};return p4(i,r,t,n,a),e&&z(i,e),i}function Xh(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=me(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function p4(r,e,t,n,a){t=t||jh;var i=e.ecModel,o=i&&i.option.textStyle,s=g4(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);ND(l[u]={},f,o,t,n,a,!1,!0)}}l&&(r.rich=l);var c=e.get("overflow");c&&(r.overflow=c);var h=e.get("minMargin");h!=null&&(r.margin=h),ND(r,e,o,t,n,a,!0,!1)}function g4(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||jh).rich;if(t){e=e||{};for(var n=Me(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var kD=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],RD=["align","lineHeight","width","height","tag","verticalAlign"],OD=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ND(r,e,t,n,a,i,o,s){t=!a&&t||jh;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=me(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&xt("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&xt("color: 'auto'","color: 'inherit'"),l?f=l:f=null),i||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=me(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var v=me(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=me(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<kD.length;p++){var g=kD[p],y=me(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var p=0;p<RD.length;p++){var g=RD[p],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<OD.length;p++){var g=OD[p],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&xt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&xt("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function VD(r,e){var t=e&&e.getModel("textStyle");return Qr([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Qs=Be();function BD(r,e,t,n){if(r){var a=Qs(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function zD(r,e,t,n,a){var i=Qs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=me(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=eT(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=qy({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);LD(r,h)}r.percent=0,(i.prevValue==null?lt:Oe)(r,{percent:1},n,e,null,u)}var y4=["textStyle","color"],Ky=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qy=new ke,m4=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(y4):null)},r.prototype.getFont=function(){return VD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ky.length;n++)t[Ky[n]]=this.getShallow(Ky[n]);return Qy.useStyle(t),Qy.update(),Qy.getBoundingRect()},r}();const _4=m4;var FD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],S4=go(FD),b4=function(){function r(){}return r.prototype.getLineStyle=function(e){return S4(this,e)},r}(),GD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],x4=go(GD),w4=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return x4(this,e,t)},r}(),Po=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){ye(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(se(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ve.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();cy(Po),A3(Po),_t(Po,b4),_t(Po,w4),_t(Po,L3),_t(Po,_4);const je=Po;var T4=Math.round(Math.random()*10);function Js(r){return[r||"",T4++].join("_")}function D4(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=na(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=na(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function C4(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(C(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),C(d.successor,p?y:g)}C(h,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=gr("Circular dependency may exists: ",h,i,o)),new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function t(i){var o={},s=[];return C(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),C(c,function(h){we(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);we(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return C(i,function(l){we(o,l)>=0&&s.push(l)}),s}}function Mi(r,e){return ye(ye({},r,!0),e,!0)}const A4={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"}},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:". "}}}},M4={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var qh="ZH",Jy="EN",lf=Jy,Kh={},em={},HD=Ve.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(qh)>-1?qh:lf}():lf;function tm(r,e){r=r.toUpperCase(),em[r]=new je(e),Kh[r]=e}function E4(r){if($(r)){var e=Kh[r.toUpperCase()]||{};return r===qh||r===Jy?se(e):ye(se(e),se(Kh[lf]),!1)}else return ye(se(r),se(Kh[lf]),!1)}function rm(r){return em[r]}function I4(){return em[lf]}tm(Jy,A4),tm(qh,M4);var nm=1e3,am=nm*60,uf=am*60,ln=uf*24,WD=ln*365,ff={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}"},Qh="{yyyy}-{MM}-{dd}",YD={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qh,hour:Qh+" "+ff.hour,minute:Qh+" "+ff.minute,second:Qh+" "+ff.second,millisecond:ff.none},im=["year","month","day","hour","minute","second","millisecond"],$D=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mr(r,e){return r+="","0000".substr(0,e-r.length)+r}function el(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 P4(r){return r===el(r)}function L4(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function cf(r,e,t,n){var a=zr(r),i=a[om(t)](),o=a[tl(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Jh(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[hf(t)](),c=(f-1)%12+1,h=a[ev(t)](),v=a[tv(t)](),d=a[rv(t)](),p=n instanceof je?n:rm(n||HD)||I4(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Mr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Mr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Mr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Mr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Mr(d,3)).replace(/{S}/g,d+"")}function k4(r,e,t,n,a){var i=null;if($(t))i=t;else if(Q(t))i=t(r.value,e,{level:r.level});else{var o=z({},ff);if(r.level>0)for(var s=0;s<im.length;++s)o[im[s]]="{primary|"+o[im[s]]+"}";var l=t?t.inherit===!1?t:ae(t,o):o,u=UD(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=$D.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(F(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return cf(new Date(r.value),i,a,n)}function UD(r,e){var t=zr(r),n=t[tl(e)]()+1,a=t[Jh(e)](),i=t[hf(e)](),o=t[ev(e)](),s=t[tv(e)](),l=t[rv(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function ZD(r,e,t){var n=Re(r)?zr(r):r;switch(e=e||UD(r,t),e){case"year":return n[om(t)]();case"half-year":return n[tl(t)]()>=6?1:0;case"quarter":return Math.floor((n[tl(t)]()+1)/4);case"month":return n[tl(t)]();case"day":return n[Jh(t)]();case"half-day":return n[hf(t)]()/24;case"hour":return n[hf(t)]();case"minute":return n[ev(t)]();case"second":return n[tv(t)]();case"millisecond":return n[rv(t)]()}}function om(r){return r?"getUTCFullYear":"getFullYear"}function tl(r){return r?"getUTCMonth":"getMonth"}function Jh(r){return r?"getUTCDate":"getDate"}function hf(r){return r?"getUTCHours":"getHours"}function ev(r){return r?"getUTCMinutes":"getMinutes"}function tv(r){return r?"getUTCSeconds":"getSeconds"}function rv(r){return r?"getUTCMilliseconds":"getMilliseconds"}function R4(r){return r?"setUTCFullYear":"setFullYear"}function jD(r){return r?"setUTCMonth":"setMonth"}function XD(r){return r?"setUTCDate":"setDate"}function qD(r){return r?"setUTCHours":"setHours"}function KD(r){return r?"setUTCMinutes":"setMinutes"}function QD(r){return r?"setUTCSeconds":"setSeconds"}function JD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function O4(r,e,t,n,a,i,o,s){var l=new ke({style:{text:r,font:e,align:t,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function sm(r){if(!_h(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lm(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Lo=Yc;function um(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Qr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?zr(r):r;if(isNaN(+l)){if(s)return"-"}else return cf(l,n,t)}if(e==="ordinal")return hu(r)?a(r):Re(r)&&i(r)?r+"":"-";var u=ra(r);return i(u)?sm(u):hu(r)?a(r):typeof r=="boolean"?r+"":"-"}var eC=["a","b","c","d","e","f","g"],fm=function(r,e){return"{"+r+(e??"")+"}"};function cm(r,e,t){F(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=eC[i];r=r.replace(fm(o),fm(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(fm(eC[l],s),t?dr(u):u)}return r}function N4(r,e,t){return C(e,function(n,a){r=r.replace("{"+a+"}",t?dr(n):n)}),r}function tC(r,e){var t=$(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dr(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function V4(r,e,t){process.env.NODE_ENV!=="production"&&xt("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
43
+ yyyy`);var n=zr(e),a=t?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return r=r.replace("MM",Mr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Mr(i%100+"",2)).replace("dd",Mr(s,2)).replace("d",s).replace("hh",Mr(l,2)).replace("h",l).replace("mm",Mr(u,2)).replace("m",u).replace("ss",Mr(f,2)).replace("s",f).replace("SSS",Mr(c,3)),r}function B4(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function ko(r,e){return e=e||"transparent",$(r)?r:re(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function nv(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var av=C,rC=["left","right","top","bottom","width","height"],Ro=[["width","left","right"],["height","top","bottom"]];function hm(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var Oo=hm;de(hm,"vertical"),de(hm,"horizontal");function z4(r,e,t){var n=e.width,a=e.height,i=Y(r.left,n),o=Y(r.top,a),s=Y(r.right,n),l=Y(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=Lo(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Mt(r,e,t){t=Lo(t||0);var n=e.width,a=e.height,i=Y(r.left,n),o=Y(r.top,a),s=Y(r.right,n),l=Y(r.bottom,a),u=Y(r.width,n),f=Y(r.height,a),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new xe(i+t[3],o+t[0],u,f);return d.margin=t,d}function iv(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new xe(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=Mt(ae({width:u.width,height:u.height},e),t,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function F4(r,e){return r[Ro[e][0]]!=null||r[Ro[e][1]]!=null&&r[Ro[e][2]]!=null}function vf(r){var e=r.layoutMode||r.constructor.layoutMode;return re(e)?e:e?{type:e}:null}function Ei(r,e,t){var n=t&&t.ignoreSize;!F(n)&&(n=[n,n]);var a=o(Ro[0],0),i=o(Ro[1],1);u(Ro[0],r,a),u(Ro[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(av(f,function(_){d[_]=r[_]}),av(f,function(_){s(e,_)&&(h[_]=d[_]=e[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y<f.length;y++){var m=f[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){av(f,function(v){c[v]=h[v]})}}function rl(r){return nC({},r)}function nC(r,e){return e&&r&&av(rC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var G4=Be(),nl=function(r){N(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Js("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=vf(this),i=a?rl(t):{},o=n.getTheme();ye(t,o.get(this.mainType)),ye(t,this.getDefaultOption()),a&&Ei(t,i,a)},e.prototype.mergeOption=function(t,n){ye(this.option,t,!0);var a=vf(this);a&&Ei(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!T3(t))return t.defaultOption;var n=G4(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ye(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return Wu(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(je);rT(nl,je),bh(nl),D4(nl),C4(nl,H4);function H4(r){var e=[];return C(nl.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return na(t).main}),r!=="dataset"&&we(e,"dataset")<=0&&e.unshift("dataset"),e}const Ie=nl;var aC="";typeof navigator<"u"&&(aC=navigator.platform||"");var al="rgba(0, 0, 0, 0.2)";const W4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:al,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:al,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:al,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:al,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:al,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:al,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aC.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 vm=te(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),un="original",rr="arrayRows",fn="objectRows",ua="keyedColumns",Na="typedArray",iC="unknown",fa="column",il="row",Xt={Must:1,Might:2,Not:3},oC=Be();function Y4(r){oC(r).datasetMap=te()}function sC(r,e,t){var n={},a=pm(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=oC(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),C(r,function(p,g){var y=re(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});C(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function dm(r,e,t){var n={},a=pm(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===fn||i===ua)&&C(o,function(f,c){(re(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=uC(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===Xt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===Xt.Not)&&(f.n=v),y(f)&&h[f.n]!==Xt.Not)return f;g||(p===Xt.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function pm(r){var e=r.get("data",!0);if(!e)return Wu(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},At).models[0]}function $4(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Wu(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},At).models}function lC(r,e){return uC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function uC(r,e,t,n,a,i){var o,s=5;if(vr(r))return Xt.Not;var l,u;if(n){var f=n[i];re(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Xt.Must:Xt.Not;if(e===rr){var c=r;if(t===il){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(e===fn){var p=r;if(!l)return Xt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(e===ua){var y=r;if(!l)return Xt.Not;var h=y[l];if(!h||vr(h))return Xt.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===un)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=zs(g);if(!F(_))return Xt.Not;if((o=S(_[i]))!=null)return o}function S(x){var b=$(x);if(x!=null&&isFinite(x)&&x!=="")return b?Xt.Might:Xt.Not;if(b&&x!=="-")return Xt.Must}return Xt.Not}var gm=te();function U4(r,e){ie(gm.get(r)==null&&e),gm.set(r,e)}function Z4(r,e,t){var n=gm.get(e);if(!n)return t;var a=n(r);if(!a)return t;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)ie(Fs(a[i]));return t.concat(a)}var fC=Be(),j4=Be(),ym=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Ze(this.get("color",!0)),i=this.get("colorLayer",!0);return cC(this,fC,a,i,e,t,n)},r.prototype.clearColorPalette=function(){q4(this,fC)},r}();function mm(r,e,t,n){var a=Ze(r.get(["aria","decal","decals"]));return cC(r,j4,a,null,e,t,n)}function X4(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function cC(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:X4(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function q4(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var ov,df,hC,_m="\0_ec_inner",vC=1,K4={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Q4={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},sv={};function J4(r){C(r,function(e,t){if(!Ie.hasClass(t)){var n=K4[t];n&&!sv[n]&&(Zt("Component "+t+` is used but not imported.
44
+ import { `+n+` } from 'echarts/components';
45
+ echarts.use([`+n+"]);"),sv[n]=!0)}})}var dC=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new je(i),this._locale=new je(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){process.env.NODE_ENV!=="production"&&(ie(t!=null,"option is null/undefined"),ie(t[_m]!==vC,"please use chart.getOption()"));var i=yC(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,yC(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&J4(o),!this.option||t==="recreate"?hC(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=te(),u=n&&n.replaceMergeMainTypeMap;Y4(this),C(t,function(c,h){c!=null&&(Ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?se(c):ye(a[h],c,!0))}),u&&u.each(function(c,h){Ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ie.topologicalTravel(s,Ie.getAllClassMainTypes(),f,this);function f(c){var h=Z4(this,c,Ze(t[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Xw(v,h,d);p3(p,c,Ie),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_,S;C(p,function(x,b){var w=x.existing,T=x.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var D=c==="series",M=Ie.getClass(c,x.keyInfo.subType,!D);if(!M){if(process.env.NODE_ENV!=="production"){var A=x.keyInfo.subType,E=Q4[A];sv[A]||(sv[A]=!0,Zt(E?"Series "+A+` is used but not imported.
46
+ import { `+E+` } from 'echarts/charts';
47
+ echarts.use([`+E+"]);":"Unkown series "+A))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Jt("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(w&&w.constructor===M)w.name=x.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=z({componentIndex:b},x.keyInfo);w=new M(T,this,this,I),z(w,I),x.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&ov(this)}this._seriesIndices||ov(this)},e.prototype.getOption=function(){var t=se(this.option);return C(t,function(n,a){if(Ie.hasClass(a)){for(var i=Ze(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Fs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_m],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],C(Ze(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=pC("id",i,s):o!=null?l=pC("name",o,s):l=Ye(s,function(u){return!!u}),gC(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):Ye(this._componentsMap.get(a),function(u){return!!u});return l(gC(o,t));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?Ye(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(Q(t)){var o=n,s=t;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=$(t)?i.get(t):re(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=Lt(t,null);return Ye(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){df(this),C(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){C(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){df(this),C(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return C(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return df(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){df(this);var a=[];C(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=te(a)},e.prototype.restoreData=function(t){ov(this);var n=this._componentsMap,a=[];n.each(function(i,o){Ie.hasClass(o)&&a.push(o)}),Ie.topologicalTravel(a,Ie.getAllClassMainTypes(),function(i){C(n.get(i),function(o){o&&(i!=="series"||!eG(o,t))&&o.restoreData()})})},e.internalField=function(){ov=function(t){var n=t._seriesIndices=[];C(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=te(n)},df=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},hC=function(t,n){t.option={},t.option[_m]=vC,t._componentsMap=te({series:[]}),t._componentsCount=te();var a=n.aria;re(a)&&a.enabled==null&&(a.enabled=!0),tG(n,t._theme.option),ye(n,W4,!1),t._mergeOption(n,null)}}(),e}(je);function eG(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function tG(r,e){var t=r.color&&!r.colorLayer;C(e,function(n,a){a==="colorLayer"&&t||Ie.hasClass(a)||(typeof n=="object"?r[a]=r[a]?ye(r[a],n,!1):se(n):r[a]==null&&(r[a]=n))})}function pC(r,e,t){if(F(e)){var n=te();return C(e,function(i){if(i!=null){var o=Lt(i,null);o!=null&&n.set(i,!0)}}),Ye(t,function(i){return i&&n.get(i[r])})}else{var a=Lt(e,null);return Ye(t,function(i){return i&&a!=null&&i[r]===a})}}function gC(r,e){return e.hasOwnProperty("subType")?Ye(r,function(t){return t&&t.subType===e.subType}):r}function yC(r){var e=te();return r&&C(Ze(r.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&ie(Ie.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}_t(dC,ym);const mC=dC;var rG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nG=function(){function r(e){C(rG,function(t){this[t]=j(e[t],e)},this)}return r}();const _C=nG;var Sm={},aG=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];C(Sm,function(a,i){var o=a.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){C(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Sm[e]=t},r.get=function(e){return Sm[e]},r}();const No=aG;var iG=/^(min|max)?(.+)$/,oG=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(C(Ze(e.series),function(o){o&&o.data&&vr(o.data)&&du(o.data)}),C(Ze(e.dataset),function(o){o&&o.source&&vr(o.source)&&du(o.source)})),e=se(e);var a=this._optionBackup,i=sG(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],se(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=se(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)lG(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!fG(o,this._currentMediaIndices)&&(s=G(o,function(f){return se(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function sG(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&(F(u)?C(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&re(v.query)&&re(v.query.option)&&Zt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):a||(a=v))}):process.env.NODE_ENV!=="production"&&Zt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(i),C(l,function(v){return h(v)}),C(n,function(v){return h(v.option)});function h(v){C(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function lG(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return C(r,function(i,o){var s=o.match(iG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();uG(n[u],i,l)||(a=!1)}}),a}function uG(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function fG(r,e){return r.join(",")===e.join(",")}const cG=oG;var cn=C,pf=re,SC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function bm(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=SC.length;t<n;t++){var a=SC[t],i=e.normal,o=e.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&xt("itemStyle.normal."+a,a),r[a]=r[a]||{},r[a].normal?ye(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&xt("itemStyle.emphasis."+a,"emphasis."+a),r[a]=r[a]||{},r[a].emphasis?ye(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function nr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&nn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(r[e].normal=r[e].emphasis=null,ae(r[e],n)):r[e]=n),a&&(process.env.NODE_ENV!=="production"&&nn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function gf(r){nr(r,"itemStyle"),nr(r,"lineStyle"),nr(r,"areaStyle"),nr(r,"label"),nr(r,"labelLine"),nr(r,"upperLabel"),nr(r,"edgeLabel")}function Et(r,e){var t=pf(r)&&r[e],n=pf(t)&&t.textStyle;if(n){process.env.NODE_ENV!=="production"&&nn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=jw.length;a<i;a++){var o=jw[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}}function hn(r){r&&(gf(r),Et(r,"label"),r.emphasis&&Et(r.emphasis,"label"))}function hG(r){if(pf(r)){bm(r),gf(r),Et(r,"label"),Et(r,"upperLabel"),Et(r,"edgeLabel"),r.emphasis&&(Et(r.emphasis,"label"),Et(r.emphasis,"upperLabel"),Et(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(bm(e),hn(e));var t=r.markLine;t&&(bm(t),hn(t));var n=r.markArea;n&&hn(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!vr(i))for(var o=0;o<i.length;o++)hn(i[o]);C(r.categories,function(u){gf(u)})}if(a&&!vr(a))for(var o=0;o<a.length;o++)hn(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)hn(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)F(l[o])?(hn(l[o][0]),hn(l[o][1])):hn(l[o]);r.type==="gauge"?(Et(r,"axisLabel"),Et(r,"title"),Et(r,"detail")):r.type==="treemap"?(nr(r.breadcrumb,"itemStyle"),C(r.levels,function(u){gf(u)})):r.type==="tree"&&gf(r.leaves)}}function Va(r){return F(r)?r:r?[r]:[]}function bC(r){return(F(r)?r[0]:r)||{}}function vG(r,e){cn(Va(r.series),function(n){pf(n)&&hG(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),cn(t,function(n){cn(Va(r[n]),function(a){a&&(Et(a,"axisLabel"),Et(a.axisPointer,"label"))})}),cn(Va(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Et(a,"axisLabel"),Et(a&&a.axisPointer,"label")}),cn(Va(r.calendar),function(n){nr(n,"itemStyle"),Et(n,"dayLabel"),Et(n,"monthLabel"),Et(n,"yearLabel")}),cn(Va(r.radar),function(n){Et(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&nn("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&nn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&cn(n.indicator,function(a){a.text&&xt("text","name","radar.indicator")})}),cn(Va(r.geo),function(n){pf(n)&&(hn(n),cn(Va(n.regions),function(a){hn(a)}))}),cn(Va(r.timeline),function(n){hn(n),nr(n,"label"),nr(n,"itemStyle"),nr(n,"controlStyle",!0);var a=n.data;F(a)&&C(a,function(i){re(i)&&(nr(i,"label"),nr(i,"itemStyle"))})}),cn(Va(r.toolbox),function(n){nr(n,"iconStyle"),cn(n.feature,function(a){nr(a,"iconStyle")})}),Et(bC(r.axisPointer),"label"),Et(bC(r.tooltip).axisPointer,"label")}function dG(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function pG(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=t)}function xC(r){r&&C(gG,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var gG=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yG=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function yf(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<xm.length;t++){var n=xm[t][1],a=xm[t][0];e[n]!=null&&(e[a]=e[n],process.env.NODE_ENV!=="production"&&xt(n,a))}}function wC(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&xt("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function TC(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&xt("downplay","blur","sunburst"))}function mG(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&xt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function DC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&DC(r[t].children,e)}function CC(r,e){vG(r,e),r.series=Ze(r.series),C(r.series,function(t){if(re(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&xt("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&xt("clockWise","clockwise")),wC(t.label);var a=t.data;if(a&&!vr(a))for(var i=0;i<a.length;i++)wC(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&xt("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=dG(t,"pointer.color");o!=null&&pG(t,"itemStyle.color",o)}else if(n==="bar"){yf(t),yf(t.backgroundStyle),yf(t.emphasis);var a=t.data;if(a&&!vr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(yf(a[i]),yf(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&xt("highlightPolicy","emphasis.focus","sunburst"))),TC(t),DC(t.data,TC)}else n==="graph"||n==="sankey"?mG(t):n==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&xt("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&nn("`mapLocation` is not used anymore."),ae(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&xt("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),xC(t)}}),r.dataRange&&(r.visualMap=r.dataRange),C(yG,function(t){var n=r[t];n&&(F(n)||(n=[n]),C(n,function(a){xC(a)}))})}function _G(r){var e=te();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(SG)}function SG(r){C(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=r3(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var lv=function(){function r(e){this.data=e.data||(e.sourceFormat===ua?{}:[]),this.sourceFormat=e.sourceFormat||iC,this.seriesLayoutBy=e.seriesLayoutBy||fa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&lC(this,n)===Xt.Must&&(a.type="ordinal")}}return r}();function wm(r){return r instanceof lv}function Tm(r,e,t){t=t||AC(r);var n=e.seriesLayoutBy,a=xG(r,t,n,e.sourceHeader,e.dimensions),i=new lv({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:se(e)});return i}function Dm(r){return new lv({data:r,sourceFormat:vr(r)?Na:un})}function bG(r){return new lv({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:se(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function AC(r){var e=iC;if(vr(r))e=Na;else if(F(r)){r.length===0&&(e=rr);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(F(a)){e=rr;break}else if(re(a)){e=fn;break}}}}else if(re(r)){for(var i in r)if(X(r,i)&&Ut(r[i])){e=ua;break}}return e}function xG(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:MC(a),startIndex:o,dimensionsDetectedCount:i};if(e===rr){var s=r;n==="auto"||n==null?EC(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},t,s,10):o=Re(n)?n:n?1:0,!a&&o===1&&(a=[],EC(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===il?s.length:s[0]?s[0].length:null}else if(e===fn)a||(a=wG(r));else if(e===ua)a||(a=[],C(r,function(u,f){a.push(f)}));else if(e===un){var l=zs(r[0]);i=F(l)&&l.length||1}else e===Na&&process.env.NODE_ENV!=="production"&&ie(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:MC(a),dimensionsDetectedCount:i}}function wG(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t){var n=[];return C(t,function(a,i){n.push(i)}),n}}function MC(r){if(r){var e=te();return G(r,function(t,n){t=re(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function EC(r,e,t,n){if(e===il)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function IC(r){var e=r.sourceFormat;return e===fn||e===ua}var Vo,Bo,zo,PC,LC,kC=function(){function r(e,t){var n=wm(e)?e:Dm(e);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Na){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=a}LC(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;LC=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=PC[Am(u,f)];if(process.env.NODE_ENV!=="production"&&ie(v,"Invalide sourceFormat: "+u),z(o,v),u===Na)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=OC(u,f);o.getItem=j(d,null,s,c,h);var p=VC(u,f);o.count=j(p,null,s,c,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*c+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};PC=(e={},e[rr+"_"+fa]={pure:!0,appendData:i},e[rr+"_"+il]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[fn]={pure:!0,appendData:i},e[ua]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[un]={appendData:i},e[Na]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ie(vr(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),RC=function(r,e,t,n){return r[n]},TG=(Vo={},Vo[rr+"_"+fa]=function(r,e,t,n){return r[n+e]},Vo[rr+"_"+il]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Vo[fn]=RC,Vo[ua]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=r[s];i[o]=l?l[n]:null}return i},Vo[un]=RC,Vo);function OC(r,e){var t=TG[Am(r,e)];return process.env.NODE_ENV!=="production"&&ie(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var NC=function(r,e,t){return r.length},DG=(Bo={},Bo[rr+"_"+fa]=function(r,e,t){return Math.max(0,r.length-e)},Bo[rr+"_"+il]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Bo[fn]=NC,Bo[ua]=function(r,e,t){var n=t[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=r[n];return a?a.length:0},Bo[un]=NC,Bo);function VC(r,e){var t=DG[Am(r,e)];return process.env.NODE_ENV!=="production"&&ie(t,'Do not suppport count on "'+r+'", "'+e+'".'),t}var Cm=function(r,e,t){return r[e]},CG=(zo={},zo[rr]=Cm,zo[fn]=function(r,e,t){return r[t]},zo[ua]=Cm,zo[un]=function(r,e,t){var n=zs(r);return n instanceof Array?n[e]:n},zo[Na]=Cm,zo);function BC(r){var e=CG[r];return process.env.NODE_ENV!=="production"&&ie(e,'Do not suppport get value on "'+r+'".'),e}function Am(r,e){return r===rr?r+"_"+e:r}function ol(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return BC(i)(n,o,s)}else{var l=n;return i===un&&(l=zs(n)),l}}}}var AG=/\{@(.+?)\}/g,Mm=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&F(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Q(i))return l.status=t,l.dimensionIndex=a,i(l);if($(i)){var f=cm(i,l);return f.replace(AG,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&Zt("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var p=ol(s,e,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return ol(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function zC(r){var e,t;return re(r)?r.type?t=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+gr(r)):e=r,{text:e,frag:t}}function mf(r){return new MG(r)}var MG=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&ie(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&ie(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&ie(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,a,i){FC.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:FC.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),F(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&ie(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),FC=function(){var r,e,t,n,a,i={reset:function(l,u,f,c){e=l,r=u,t=f,n=c,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}}();function Ii(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Re(r)&&r!=null&&r!=="-"&&(r=+zr(r)),r==null||r===""?NaN:+r)}var EG=te({number:function(r){return parseFloat(r)},time:function(r){return+zr(r)},trim:function(r){return $(r)?Qr(r):r}});function GC(r){return EG.get(r)}var HC={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},IG=function(){function r(e,t){if(!Re(t)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ge(n)}this._opFn=HC[e],this._rvalFloat=ra(t)}return r.prototype.evaluate=function(e){return Re(e)?this._opFn(e,this._rvalFloat):this._opFn(ra(e),this._rvalFloat)},r}(),WC=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=Re(e)?e:ra(e),a=Re(t)?t:ra(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),PG=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ra(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=ra(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function LG(r,e){return r==="eq"||r==="ne"?new PG(r==="eq",e):X(HC,r)?new IG(r,e):null}var kG=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ii(e,t)},r}();function RG(r,e){var t=new kG,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==fa&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ge(o));var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";X(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),Ge(_)),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=OC(a,fa);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(n,i,s,p)},t.getRawData=j(OG,null,r)),t.cloneRawData=j(NG,null,r);var h=VC(a,fa);t.count=j(h,null,n,i,s);var v=BC(a);t.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return t.getDimensionInfo=j(VG,null,s,l),t.cloneAllDimensionInfo=j(BG,null,s),t}function OG(r){var e=r.sourceFormat;if(!Em(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),Ge(t)}return r.data}function NG(r){var e=r.sourceFormat,t=r.data;if(!Em(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Ge(n)}if(e===rr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===fn){for(var a=[],i=0,o=t.length;i<o;i++)a.push(z({},t[i]));return a}}function VG(r,e,t){if(t!=null){if(Re(t)||!isNaN(t)&&!X(e,t))return r[t];if(X(e,t))return e[t]}}function BG(r){return se(r)}var YC=te();function zG(r){r=se(r);var e=r.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),Ge(t));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),Ge(t));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,YC.set(e,r)}function FG(r,e,t){var n=Ze(r),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),Ge(i));for(var o=0,s=a;o<s;o++){var l=n[o];e=GG(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function GG(r,e,t,n){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),Ge(a)),re(r)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof r+"."),Ge(a));var i=r.type,o=YC.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),Ge(a));var s=G(e,function(f){return RG(f,o)}),l=Ze(o.transform({upstream:s[0],upstreamList:s,config:se(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=G(l,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+t.datasetIndex+c+" ===","- transform result data:",gr(f.data),"- transform result dimensions:",gr(f.dimensions)].join(`
48
+ `)}).join(`
49
+ `);o3(u)}return G(l,function(f,c){var h="";re(f)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),Ge(h)),f.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),Ge(h));var v=AC(f.data);Em(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),Ge(h));var d,p=e[0];if(p&&c===0&&!f.dimensions){var g=p.startIndex;g&&(f.data=p.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:fa,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:fa,sourceHeader:0,dimensions:f.dimensions};return Tm(f.data,d,null)})}function Em(r){return r===rr||r===fn}var uv="undefined",HG=typeof Uint32Array===uv?Array:Uint32Array,WG=typeof Uint16Array===uv?Array:Uint16Array,$C=typeof Int32Array===uv?Array:Int32Array,UC=typeof Float64Array===uv?Array:Float64Array,ZC={float:UC,int:$C,ordinal:Array,number:Array,time:UC},Im;function _f(r){return r>65535?HG:WG}function sl(){return[1/0,-1/0]}function YG(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function jC(r,e,t,n,a){var i=ZC[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var $G=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=te()}return r.prototype.initData=function(e,t,n){process.env.NODE_ENV!=="production"&&ie(Q(e.getItem)&&Q(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Im[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=IC(a);this._dimensions=G(t,function(s){return process.env.NODE_ENV!=="production"&&o&&ie(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new ZC[t||"float"](this._rawCount),this._rawExtent[i]=sl(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=sl());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&ie(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];jC(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=Im.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=sl()),jC(i,f,c.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=t-i[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=_f(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=_f(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=c[f][d];v=t(p,h)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=Me(e),i=a.length;if(!i)return this;var o=t.count(),s=_f(t._rawCount),l=new s(o),u=0,f=a[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=v[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=e[a[1]][0],x=e[a[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=c&&m<=h||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=t.getRawIndex(y),m=v[a[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=t.getRawIndex(y),D=0;D<i;D++){var M=a[D],m=v[M][w];(m<e[M][0]||m>e[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=sl();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=a[t[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=a[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(_f(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),T=d-1,D=i[u];f=-1,h=b;for(var M=-1,A=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){A++,M<0&&(M=S);continue}c=Math.abs((T-y)*(x-D)-(T-_)*(m-D)),c>f&&(f=c,h=S)}A>0&&A<w-b&&(v[s++]=Math.min(M,h),h=Math.max(M,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=i._rawExtent[e]=sl(),h=new(_f(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=sl();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),c=t[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&qr(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?YG(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=se(this._extent),e._rawExtent=se(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,a,i){return Ii(t[i],this._dimensions[i])}Im={arrayRows:e,objectRows:function(t,n,a,i){return Ii(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Ii(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}}(),r}();const Pm=$G;var XC=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(Sf(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=vr(s)?Na:un,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=me(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=me(c.sourceHeader,h.sourceHeader),p=me(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Tm(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[Tm(_,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&ie(a&&i),this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&ie(a!=null||n!=null),a!=null){var i="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),KC(i))}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+a),KC(c)),s.push(f),l.push(u._getVersionSign())}),n?o=FG(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[bG(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&ie(Sf(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Sf(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new Pm,s.initData(new kC(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Sf(e)){var t=pm(e);return t?[t.getSourceManager()]:[]}else return G($4(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(Sf(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r}();function qC(r){var e=r.option.transform;e&&du(r.option.transform)}function Sf(r){return r.mainType==="series"}function KC(r){throw new Error(r)}var QC="line-height:1";function JC(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+dr(n+"")+"px;color:"+dr(t)+";font-weight:"+dr(a+""),valueStyle:"font-size:"+dr(o+"")+"px;color:"+dr(i)+";font-weight:"+dr(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var UG=[0,10,20,30],ZG=["",`
50
+ `,`
51
+
52
+ `,`
53
+
54
+
55
+ `];function Vt(r,e){return e.type=r,e}function Lm(r){return r.type==="section"}function eA(r){return Lm(r)?jG:XG}function tA(r){if(Lm(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return C(r.blocks,function(a){var i=tA(a);i>=e&&(e=i+ +(n&&(!i||Lm(a)&&!a.noHeader)))}),e}return 0}function jG(r,e,t,n){var a=e.noHeader,i=qG(tA(e)),o=[],s=e.blocks||[];ie(!s||F(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(X(u,l)){var f=new WC(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(d,p){var g=e.valueFormatter,y=eA(d)(g?z(z({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):km(o.join(""),a?t:i.html);if(a)return c;var h=um(e.header,"ordinal",r.useUTC),v=JC(n,r.renderMode).nameStyle;return r.renderMode==="richText"?nA(r,h,v)+i.richText+c:km('<div style="'+v+";"+QC+';">'+dr(h)+"</div>"+c,t)}function XG(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],G(S,function(x,b){return um(x,F(v)?v[b]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),h=i?"":um(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,y=JC(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":nA(r,h,m))+(o?"":JG(r,d,p,g,_)):km((s?"":c)+(i?"":KG(h,!s,m))+(o?"":QG(d,p,g,_)),t)}}function rA(r,e,t,n,a,i){if(r){var o=eA(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function qG(r){return{html:UG[r],richText:ZG[r]}}function km(r,e){var t='<div style="clear:both"></div>',n="margin: "+e+"px 0 0";return'<div style="'+n+";"+QC+';">'+r+t+"</div>"}function KG(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+dr(r)+"</span>"}function QG(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=F(r)?r:[r],'<span style="'+i+";"+n+'">'+G(r,function(o){return dr(o)}).join("&nbsp;&nbsp;")+"</span>"}function nA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function JG(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,i)}function aA(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return ko(n)}function iA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Rm=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Gw()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=tC({color:t,type:e,renderMode:n,markerId:a});return $(i)?i:(process.env.NODE_ENV!=="production"&&ie(a),this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};F(t)?C(t,function(i){return z(n,i)}):z(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function oA(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=F(s),u=aA(e,t),f,c,h,v;if(o>1||l&&!o){var d=eH(s,e,t,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=ol(a,t,i[0]),c=p.type}else v=f=l?s[0]:s;var g=ly(e),y=g&&e.name||"",m=a.getName(t),_=n?y:m;return Vt("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Vt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Qr(_),value:f,valueType:c})].concat(h||[])})}function eH(r,e,t,n,a){var i=e.getData(),o=qr(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(c){f(ol(i,t,c),c)}):C(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Vt("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pi=Be();function fv(r,e){return r.getName(e)||r.getId(e)}var cv="__universalTransitionEnabled",hv=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=mf({count:rH,reset:nH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Pi(this).sourceManager=new XC(this);i.prepareSource();var o=this.getInitialData(t,a);lA(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ie(o,"getInitialData returned invalid data."),Pi(this).dataBeforeProcessed=o,sA(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=vf(this),i=a?rl(t):{},o=this.subType;Ie.hasClass(o)&&(o+="Series"),ye(t,n.getTheme().get(this.subType)),ye(t,this.getDefaultOption()),ho(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Ei(t,i,a)},e.prototype.mergeOption=function(t,n){t=ye(this.option,t,!0),this.fillDataTextStyle(t.data);var a=vf(this);a&&Ei(this.option,t,a);var i=Pi(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);lA(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,sA(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!vr(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&ho(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Om(this);if(n){var a=n.context.data;return t==null?a:a.getLinkedData(t)}else return Pi(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Om(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Pi(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return te(t)},e.prototype.getSourceManager=function(){return Pi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Pi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,n,a){return oA({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ve.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=ym.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=fv(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=Me(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[fv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[cv])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=fv(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=fv(t,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Ie.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Ie);_t(hv,Mm),_t(hv,ym),rT(hv,Ie);function sA(r){var e=r.name;ly(r)||(r.name=tH(r)||e)}function tH(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return C(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function rH(r){return r.model.getRawData().count()}function nH(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),aH}function aH(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lA(r,e){C(pu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,de(iH,e))})}function iH(r,e){var t=Om(r);return t&&t.setOutputEnd((e||this).count()),e}function Om(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const tt=hv;var Nm=function(){function r(){this.group=new fe,this.uid=Js("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();cy(Nm),bh(Nm);const ut=Nm;function ll(){var r=Be();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var uA=Be(),oH=ll(),Vm=function(){function r(){this.group=new fe,this.uid=Js("viewChart"),this.renderTask=mf({plan:sH,reset:lH}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+a.dataType);return}cA(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+a.dataType);return}cA(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){Ai(this.group,e)},r.markUpdateMethod=function(e,t){uA(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function fA(r,e,t){r&&Ti(r)&&(e==="emphasis"?Ra:Oa)(r,t)}function cA(r,e,t){var n=vo(r,e),a=e&&e.highlightKey!=null?kF(e.highlightKey):null;n!=null?C(Ze(n),function(i){fA(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){fA(i,t,a)})}cy(Vm,["dispose"]),bh(Vm);function sH(r){return oH(r.model)}function lH(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&uA(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),uH[l]}var uH={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Xe=Vm;var vv="\0__throttleOriginMethod",hA="\0__throttleRate",vA="\0__throttleType";function dv(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||e,g=f||t;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ul(r,e,t,n){var a=r[e];if(a){var i=a[vv]||a,o=a[vA],s=a[hA];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=dv(i,t,n==="debounce"),a[vv]=i,a[vA]=n,a[hA]=t}return a}}function bf(r,e){var t=r[e];t&&t[vv]&&(t.clear&&t.clear(),r[e]=t[vv])}var dA=Be(),pA={itemStyle:go(GD,!0),lineStyle:go(FD,!0)},fH={lineStyle:"stroke",itemStyle:"fill"};function gA(r,e){var t=r.visualStyleMapper||pA[e];return t||(console.warn("Unkown style type '"+e+"'."),pA.itemStyle)}function yA(r,e){var t=r.visualDrawType||fH[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var cH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=gA(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=yA(r,n),u=o[l],f=Q(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=z({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},xf=new je,hH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=gA(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){xf.option=l[n];var u=a(xf),f=o.ensureUniqueItemVisual(s,"style");z(f,u),xf.option.decal&&(o.setItemVisual(s,"decal",xf.option.decal),xf.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vH={performRawSeries:!0,overallReset:function(r){var e=te();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),dA(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=dA(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=yA(t,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},pv=Math.PI;function dH(r,e){e=e||{},ae(e,{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 t=new fe,n=new Le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new ke({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Le({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Bh({shape:{startAngle:-pv/2,endAngle:-pv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:pv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:pv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var pH=function(){function r(e,t,n,a){this._stageTaskMap=te(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=te();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;C(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),ie(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;C(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||mf({plan:SH,reset:bH,count:wH}));v.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||mf({reset:gH});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=te(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),ie(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,C(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,mf({reset:yH,onDirty:_H})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:TH(e)}),e.uid=Js("stageHandler"),t&&(e.visualType=t),e},r}();function gH(r){r.overallReset(r.ecModel,r.api,r.payload)}function yH(r){return r.overallProgress&&mH}function mH(){this.agent.dirty(),this.getDownstream().dirty()}function _H(){this.agent&&this.agent.dirty()}function SH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function bH(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ze(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,n){return mA(n)}):xH}var xH=mA(0);function mA(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function wH(r){return r.data.count()}function TH(r){gv=null;try{r(wf,_A)}catch{}return gv}var wf={},_A={},gv;SA(wf,mC),SA(_A,_C),wf.eachSeriesByType=wf.eachRawSeriesByType=function(r){gv=r},wf.eachComponent=function(r){r.mainType==="series"&&r.subType&&(gv=r.subType)};function SA(r,e){for(var t in e.prototype)r[t]=bt}const bA=pH;var xA=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const DH={color:xA,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xA]};var xr="#B9B8CE",wA="#100C2A",yv=function(){return{axisLine:{lineStyle:{color:xr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},TA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],DA={darkMode:!0,color:TA,backgroundColor:wA,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:xr}},textStyle:{color:xr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:xr}},dataZoom:{borderColor:"#71708A",textStyle:{color:xr},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:xr}},timeline:{lineStyle:{color:xr},label:{color:xr},controlStyle:{color:xr,borderColor:xr}},calendar:{itemStyle:{color:wA},dayLabel:{color:xr},monthLabel:{color:xr},yearLabel:{color:xr}},timeAxis:yv(),logAxis:yv(),valueAxis:yv(),categoryAxis:yv(),line:{symbol:"circle"},graph:{color:TA},gauge:{title:{color:xr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:xr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};DA.categoryAxis.splitLine.show=!1;const CH=DA;var AH=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if($(e)){var i=na(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Bm=["symbol","symbolSize","symbolRotate","symbolOffset"],CA=Bm.concat(["symbolKeepAspect"]),MH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Bm.length;o++){var s=Bm[o],l=r.get(s);Q(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(z({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=Me(a);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},EH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<CA.length;s++){var l=CA[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function zm(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Tf(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function AA(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function MA(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}C([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=z({},a),process.env.NODE_ENV!=="production"&&xt(a.type,n[1]),o.dispatchAction(z(a,{type:n[1],seriesIndex:t(i,a)}))})})}function fl(r,e,t,n,a){var i=r+e;t.isSilent(i)||(process.env.NODE_ENV!=="production"&&nn("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=vo(c,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:F(h)?c.getName(h[0]):c.getName(h),selected:$(l)?l:z({},l)})}}))}function IH(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(fl("map","selectchanged",e,a,n),fl("pie","selectchanged",e,a,n)):n.fromAction==="select"?(fl("map","selected",e,a,n),fl("pie","selected",e,a,n)):n.fromAction==="unselect"&&(fl("map","unselected",e,a,n),fl("pie","unselected",e,a,n))})}function Fo(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var PH=Math.round(Math.random()*9),LH=typeof Object.defineProperty=="function",kH=function(){function r(){this._id="__ec_inner_"+PH++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return LH?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}();const RH=kH;var OH=De.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),NH=De.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),VH=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*v,l+s+h*v,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+c*v,l+s+h*v,t-f,l+s),r.closePath()}}),BH=De.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),zH={line:Nt,rect:Le,roundRect:Le,square:Le,circle:Rn,diamond:NH,pin:VH,arrow:BH,triangle:OH},FH={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},mv={};C(zH,function(r,e){mv[e]=new r});var GH=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=gh(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=mv[n];a||(n="rect",a=mv[n]),FH[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function HH(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function wt(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Uy(r.slice(8),new xe(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=nf(r.slice(7),{},new xe(e,t,n,a),o?"center":"cover"):l=new GH({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=HH,i&&l.setColor(i),l}function Df(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function cl(r,e){if(r!=null)return F(r)||(r=[r,r]),[Y(r[0],e[0])||0,Y(me(r[1],r[0]),e[1])||0]}function Go(r){return isFinite(r)}function WH(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=Go(n)?n:0,a=Go(a)?a:1,i=Go(i)?i:0,o=Go(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function YH(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,l=l*i),o=Go(o)?o:.5,s=Go(s)?s:.5,l=l>=0&&Go(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Fm(r,e,t){for(var n=e.type==="radial"?YH(r,e,t):WH(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function $H(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function _v(r){return parseInt(r,10)}function hl(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||_v(s[n])||_v(r.style[n]))-(_v(s[i])||0)-(_v(s[o])||0)|0}function UH(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Re(r)?[r]:F(r)?r:null}function Gm(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&UH(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=G(t,function(i){return i/a}),n/=a)}return[t,n]}var ZH=new sa(!0);function Sv(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function EA(r){return typeof r=="string"&&r!=="none"}function bv(r){var e=r.fill;return e!=null&&e!=="none"}function IA(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function PA(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Hm(r,e,t){var n=vy(e.image,e.__image,t);if(xh(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*yu),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function jH(r,e,t,n){var a,i=Sv(t),o=bv(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||ZH,c=e.__dirty;if(!n){var h=t.fill,v=t.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=e.getBoundingRect()),d&&(m=c?Fm(r,h,b):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=c?Fm(r,v,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=c||!e.__canvasFillPattern?Hm(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(x=c||!e.__canvasStrokePattern?Hm(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,D;r.setLineDash&&t.lineDash&&(a=Gm(e),T=a[0],D=a[1]);var M=!0;(u||c&Is)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=D),n||(t.strokeFirst?(i&&PA(r,t),o&&IA(r,t)):(o&&IA(r,t),i&&PA(r,t))),T&&r.setLineDash([])}function XH(r,e,t){var n=e.__image=vy(t.image,e.__image,e,e.onload);if(!(!n||!xh(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function qH(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||si,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Gm(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Sv(t)&&r.strokeText(a,t.x,t.y),bv(t)&&r.fillText(a,t.x,t.y)):(bv(t)&&r.fillText(a,t.x,t.y),Sv(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var LA=["shadowBlur","shadowOffsetX","shadowOffsetY"],kA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function RA(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){Er(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?yo.opacity:o}(n||e.blend!==t.blend)&&(i||(Er(r,a),i=!0),r.globalCompositeOperation=e.blend||yo.blend);for(var s=0;s<LA.length;s++){var l=LA[s];(n||e[l]!==t[l])&&(i||(Er(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(Er(r,a),i=!0),r.shadowColor=e.shadowColor||yo.shadowColor),i}function OA(r,e,t,n,a){var i=Cf(e,a.inHover),o=n?null:t&&Cf(t,a.inHover)||{};if(i===o)return!1;var s=RA(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Er(r,a),s=!0),EA(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Er(r,a),s=!0),EA(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Er(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Er(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<kA.length;f++){var c=kA[f],h=c[0];(n||i[h]!==o[h])&&(s||(Er(r,a),s=!0),r[h]=i[h]||c[1])}return s}function KH(r,e,t,n,a){return RA(r,Cf(e,a.inHover),t&&Cf(t,a.inHover),n,a)}function NA(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function QH(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),NA(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function JH(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var VA=1,BA=2,zA=3,FA=4;function e6(r){var e=bv(r),t=Sv(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Er(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function Cf(r,e){return e&&r.__hoverStyle||r.style}function Wm(r,e){Ho(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ho(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Nr,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||$H(i,o))&&(o&&o.length&&(Er(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(Er(r,t),r.save(),QH(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof De&&e.autoBatch&&e6(e.style);s||JH(a,u.transform)?(Er(r,t),NA(r,e)):f||Er(r,t);var c=Cf(e,t.inHover);e instanceof De?(t.lastDrawType!==VA&&(l=!0,t.lastDrawType=VA),OA(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),jH(r,e,c,f),f&&(t.batchFill=c.fill||"",t.batchStroke=c.stroke||"")):e instanceof Uu?(t.lastDrawType!==zA&&(l=!0,t.lastDrawType=zA),OA(r,e,u,l,t),qH(r,e,c)):e instanceof Wt?(t.lastDrawType!==BA&&(l=!0,t.lastDrawType=BA),KH(r,e,u,l,t),XH(r,e,c)):e.getTemporalDisplayables&&(t.lastDrawType!==FA&&(l=!0,t.lastDrawType=FA),t6(r,e,t)),f&&n&&Er(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function t6(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ho(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ho(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Ym=new RH,GA=new Mu(100),HA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function vl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&Ym.delete(r);var i=Ym.get(r);if(i)return i;var o=ae(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,Ym.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<HA.length;++h){var v=o[HA[h]];if(v!=null&&!F(v)&&!$(v)&&!Re(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=GA.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=YA(o.dashArrayX),y=r6(o.dashArrayY),m=WA(o.symbol),_=n6(g),S=$A(y),x=!a&&An.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=D(),T;x&&(x.width=w.width*t,x.height=w.height*t,T=x.getContext("2d")),M(),c&&GA.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function D(){for(var A=1,E=0,I=_.length;E<I;++E)A=Ww(A,_[E]);for(var P=1,E=0,I=m.length;E<I;++E)P=Ww(P,m[E].length);A*=P;var L=S*_.length*m.length;if(process.env.NODE_ENV!=="production"){var k=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&k("maxTileWidth"),L>o.maxTileHeight&&k("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var A=0,E=0;E<y.length;++E)A+=y[E];if(A<=0)return;for(var I=-S,P=0,L=0,k=0;I<w.height;){if(P%2===0){for(var V=L/2%m.length,O=0,B=0,H=0;O<w.width*2;){for(var W=0,E=0;E<g[k].length;++E)W+=g[k][E];if(W<=0)break;if(B%2===0){var q=(1-o.symbolSize)*.5,ee=O+g[k][B]*q,ue=I+y[P]*q,Ae=g[k][B]*o.symbolSize,Ce=y[P]*o.symbolSize,pe=H/2%m[V].length;J(ee,ue,Ae,Ce,m[V][pe])}O+=g[k][B],++H,++B,B===g[k].length&&(B=0)}++k,k===g.length&&(k=0)}I+=y[P],++L,++P,P===y.length&&(P=0)}function J(Se,he,K,ge,nt){var Pe=a?1:t,st=wt(nt,Se*Pe,he*Pe,K*Pe,ge*Pe,o.color,o.symbolKeepAspect);if(a){var ft=n.painter.renderOneToVNode(st);ft&&b.children.push(ft)}else Wm(T,st)}}}}function WA(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!$(r[t])){e=!1;break}if(e)return WA([r]);for(var n=[],t=0;t<r.length;++t)$(r[t])?n.push([r[t]]):n.push(r[t]);return n}function YA(r){if(!r||r.length===0)return[[0,0]];if(Re(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!Re(r[n])){t=!1;break}if(t)return YA([r]);for(var a=[],n=0;n<r.length;++n)if(Re(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=G(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function r6(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Re(r)){var e=Math.ceil(r);return[e,e]}var t=G(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function n6(r){return G(r,function(e){return $A(e)})}function $A(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function a6(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=vl(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=vl(a,e)}}})}var i6=new Jr;const Bn=i6;var xv={};function o6(r,e){process.env.NODE_ENV!=="production"&&xv[r]&&Zt("Already has an implementation of "+r+"."),xv[r]=e}function UA(r){return process.env.NODE_ENV!=="production"&&(xv[r]||Zt("Implementation of "+r+" doesn't exists.")),xv[r]}var ZA=typeof window<"u",s6="5.4.0",l6={zrender:"5.4.0"},u6=1,f6=800,c6=900,h6=1e3,v6=2e3,d6=5e3,jA=1e3,p6=1100,$m=2e3,XA=3e3,g6=4e3,wv=4500,y6=4600,m6=5e3,_6=6e3,qA=7e3,KA={PROCESSOR:{FILTER:h6,SERIES_FILTER:f6,STATISTIC:d6},VISUAL:{LAYOUT:jA,PROGRESSIVE_LAYOUT:p6,GLOBAL:$m,CHART:XA,POST_CHART_LAYOUT:y6,COMPONENT:g6,BRUSH:m6,CHART_ITEM:wv,ARIA:_6,DECAL:qA}},ar="__flagInMainProcess",Ir="__pendingUpdate",Um="__needsUpdateStatus",QA=/^[a-zA-Z0-9_]+$/,Zm="__connectUpdateStatus",JA=0,S6=1,b6=2;function eM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){Gr(this.id);return}return rM(this,r,e)}}function tM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rM(this,r,e)}}function rM(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Jr.prototype[e].apply(r,t)}var nM=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Jr),aM=nM.prototype;aM.on=tM("on"),aM.off=tM("off");var dl,jm,Tv,Li,Xm,qm,Km,Af,Mf,iM,oM,Qm,sM,Dv,lM,uM,vn,fM,Cv=function(r){N(e,r);function e(t,n,a){var i=r.call(this,new AH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},$(n)&&(n=cM[n]),i._dom=t;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ZA?window:global;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=me(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var f=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=f??l}var c=i._zr=ry(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:me(a.useDirtyRect,l),useCoarsePointer:me(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=dv(j(c.flush,c),17),n=se(n),n&&CC(n,!0),i._theme=n,i._locale=E4(a.locale||HD),i._coordSysMgr=new No;var h=i._api=lM(i);function v(d,p){return d.__prio-p.__prio}return Kc(Mv,v),Kc(e0,v),i._scheduler=new bA(i,h,e0,Mv),i._messageCenter=new nM,i._initEvents(),i.resize=j(i.resize,i),c.animation.on("frame",i._onframe,i),iM(c,i),oM(c,i),du(i),i}return e.prototype._onframe=function(){if(!this._disposed){fM(this);var t=this._scheduler;if(this[Ir]){var n=this[Ir].silent;this[ar]=!0;try{dl(this),Li.update.call(this,null,this[Ir].updateParams)}catch(l){throw this[ar]=!1,this[Ir]=null,l}this._zr.flush(),this[ar]=!1,this[Ir]=null,Af.call(this,n),Mf.call(this,n)}else if(t.unfinished){var a=u6,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),qm(this,i),t.performVisualTasks(i),Dv(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(this[ar]){process.env.NODE_ENV!=="production"&&Zt("`setOption` should not be called during main process.");return}if(this._disposed){Gr(this.id);return}var i,o,s;if(re(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ar]=!0,!this._model||n){var l=new cG(this._api),u=this._theme,f=this._model=new mC;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},t0);var c={seriesTransition:s,optionChanged:!0};if(a)this[Ir]={silent:i,updateParams:c},this[ar]=!1,this.getZr().wakeUp();else{try{dl(this),Li.update.call(this,null,c)}catch(h){throw this[Ir]=null,this[ar]=!1,h}this._ssr||this._zr.flush(),this[Ir]=null,this[ar]=!1,Af.call(this,i),Mf.call(this,i)}},e.prototype.setTheme=function(){nn("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ZA&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&xt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ve.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return C(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){Gr(this.id);return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;C(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Gr(this.id);return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Ev[a]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();C(Wo,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(se(t)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:x,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=An.createCanvas(),y=ry(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return C(h,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new Le({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),C(h,function(_){var S=new Wt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return Xm(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return Xm(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){Gr(this.id);return}var a=this._model,i,o=Hu(a,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?i=i||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&console.warn(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&console.warn(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Hu(a,t,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||console.warn("There is no specified seires model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?zm(s,l,n):Tf(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(x6,function(n){var a=function(i){var o=t.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Fo(s,function(d){var p=ve(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=z({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(h&&v)&&console.warn("model or view can not be found by params"),l.event=i,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},t.trigger(n,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)}),C(Ef,function(n,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),C(["selectchanged"],function(n){t._messageCenter.on(n,function(a){this.trigger(n,a)},t)}),IH(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Gr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Gr(this.id);return}this._disposed=!0;var t=this.getDom();t&&Jw(this.getDom(),n0,"");var n=this,a=n._api,i=n._model;C(n._componentsViews,function(o){o.dispose(i,a)}),C(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Wo[n.id]},e.prototype.resize=function(t){if(this[ar]){process.env.NODE_ENV!=="production"&&Zt("`resize` should not be called during main process.");return}if(this._disposed){Gr(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Ir]&&(i==null&&(i=this[Ir].silent),a=!0,this[Ir]=null),this[ar]=!0;try{a&&dl(this),Li.update.call(this,{type:"resize",animation:z({duration:0},t&&t.animation)})}catch(o){throw this[ar]=!1,o}this[ar]=!1,Af.call(this,i),Mf.call(this,i)}},e.prototype.showLoading=function(t,n){if(this._disposed){Gr(this.id);return}if(re(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!r0[t]){process.env.NODE_ENV!=="production"&&console.warn("Loading effects "+t+" not exists.");return}var a=r0[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){Gr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=z({},t);return n.type=Ef[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){Gr(this.id);return}if(re(n)||(n={silent:!!n}),!!Av[t.type]&&this._model){if(this[ar]){this._pendingActions.push(t);return}var a=n.silent;Km.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ve.browser.weChat&&this._throttledZrFlush(),Af.call(this,a),Mf.call(this,a)}},e.prototype.updateLabelLayout=function(){Bn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){Gr(this.id);return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ie(t.data&&i),i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){dl=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),jm(c,!0),jm(c,!1),h.plan()},jm=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(b,w){b!=="series"&&S(w)}):v.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,D=!w&&g[T];if(!D){var M=na(b.type),A=h?ut.getClass(M.main,M.sub):Xe.getClass(M.sub);process.env.NODE_ENV!=="production"&&ie(A,M.sub+" does not exist."),D=new A,D.init(v,m),g[T]=D,p.push(D),y.add(D.group)}b.__viewId=D.__id=T,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&d.prepareView(D,b,v,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),y.remove(x.group),x.dispose(v,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Tv=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){C([].concat(c._componentsViews).concat(c._chartsViews),x);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=te(),C(Ze(_),function(b){var w=Lt(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!==null;if(!w)if(QT(v))if(b instanceof tt)v.type===Do&&!v.notBlur&&!b.get(["emphasis","disabled"])&&DF(b,v,c._api);else{var T=Ny(b.mainType,b.componentIndex,v.name,c._api),D=T.focusSelf,M=T.dispatchers;v.type===Do&&D&&!v.notBlur&&Oy(b.mainType,b.componentIndex,c._api),M&&C(M,function(A){v.type===Do?Ra(A):Oa(A)})}else By(v)&&b instanceof tt&&(MF(b,v,c._api),qT(b),vn(c))},c),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!==null;w||x(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function x(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,c._api,v)}},Li={prepareAndUpdate:function(c){dl(this),Li.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),qm(this,v),g.update(v,d),t(v),y.performVisualTasks(v,c),Qm(this,v,d,c,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Bn.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=te();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),Dv(this,v,d,c,{},g),Bn.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Xe.markUpdateMethod(c,"updateView"),t(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Qm(this,h,this._api,c,{}),Bn.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Xe.markUpdateMethod(c,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Bn.trigger("afterupdate",v,this._api))},updateLayout:function(c){Li.update.call(this,c)}},Xm=function(c,h,v,d){if(c._disposed){Gr(c.id);return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=Hu(p,v),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](p,m,d))!=null)return y}process.env.NODE_ENV!=="production"&&console.warn("No coordinate system that supports "+h+" found by the given finder.")},qm=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Km=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Av[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&na(_[0]);this[ar]=!0;var b=[c],w=!1;c.batch&&(w=!0,b=G(c.batch,function(P){return P=ae(z({},P),c),P.batch=null,P}));var T=[],D,M=By(c),A=QT(c);if(A&&XT(this._api),C(b,function(P){if(D=y.action(P,v._model,v._api),D=D||z({},P),D.type=m.event||D.type,T.push(D),A){var L=uy(c),k=L.queryOptionMap,V=L.mainTypeSpecified,O=V?k.keys()[0]:"series";Tv(v,S,P,O),vn(v)}else M?(Tv(v,S,P,"series"),vn(v)):x&&Tv(v,S,P,x.main,x.sub)}),S!=="none"&&!A&&!M&&!x)try{this[Ir]?(dl(this),Li.update.call(this,c),this[Ir]=null):Li[S].call(this,c)}catch(P){throw this[ar]=!1,P}if(w?D={type:m.event||p,escapeConnect:g,batch:T}:D=T[0],this[ar]=!1,!h){var E=this._messageCenter;if(E.trigger(D.type,D),M){var I={type:"selectchanged",escapeConnect:g,selected:EF(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(I.type,I)}}},Af=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Km.call(this,v,c)}},Mf=function(c){!c&&this.trigger("updated")},iM=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ir]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},oM=function(c,h){c.on("mouseover",function(v){var d=v.target,p=Fo(d,Ti);p&&(CF(p,v,h._api),vn(h))}).on("mouseout",function(v){var d=v.target,p=Fo(d,Ti);p&&(AF(p,v,h._api),vn(h))}).on("click",function(v){var d=v.target,p=Fo(d,function(m){return ve(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ve(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?v:h).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=h.concat(v),g,y;Kc(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),C(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Qm=function(c,h,v,d,p){n(h),sM(c,h,v,d,p),C(c._chartsViews,function(g){g.__alive=!1}),Dv(c,h,v,d,p),C(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},sM=function(c,h,v,d,p,g){C(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),f(m,y)})},Dv=function(c,h,v,d,p,g){var y=c._scheduler;p=z(p||{},{updatedSeries:h.getSeries()}),Bn.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),qT(_)}),y.unfinished=m||y.unfinished,Bn.trigger("series:layoutlabels",h,v,p),Bn.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(c,h),Bn.trigger("series:afterupdate",h,v,p)},vn=function(c){c[Um]=!0,c.getZr().wakeUp()},fM=function(c){c[Um]&&(c.getZr().storage.traverse(function(h){js(h)||a(h)}),c[Um]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Eh&&c.states.emphasis?h.push("emphasis"):c.hoverState===Zu&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Ve.node&&!Ve.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!js(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(js(y))return;if(y instanceof De&&RF(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}lM=function(c){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ra(d,p),vn(c)},v.prototype.leaveEmphasis=function(d,p){Oa(d,p),vn(c)},v.prototype.enterBlur=function(d){$T(d),vn(c)},v.prototype.leaveBlur=function(d){ky(d),vn(c)},v.prototype.enterSelect=function(d){UT(d),vn(c)},v.prototype.leaveSelect=function(d){ZT(d),vn(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(_C))(c)},uM=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Zm]=d}}C(Ef,function(v,d){c._messageCenter.on(d,function(p){if(Ev[c.group]&&c[Zm]!==JA){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];C(Wo,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,JA),C(y,function(m){m[Zm]!==S6&&m.dispatchAction(g)}),h(y,b6)}})})}}(),e}(Jr),Jm=Cv.prototype;Jm.on=eM("on"),Jm.off=eM("off"),Jm.one=function(r,e,t){var n=this;nn("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var x6=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Gr(r){process.env.NODE_ENV!=="production"&&console.warn("Instance "+r+" has been disposed")}var Av={},Ef={},e0=[],t0=[],Mv=[],cM={},r0={},Wo={},Ev={},w6=+new Date-0,T6=+new Date-0,n0="_echarts_instance_";function D6(r,e,t){var n=!(t&&t.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var a=a0(r);if(a)return process.env.NODE_ENV!=="production"&&console.warn("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&to(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&console.warn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new Cv(r,e,t);return i.id="ec_"+w6++,Wo[i.id]=i,n&&Jw(r,n0,i.id),uM(i),Bn.trigger("afterinit",i),i}function C6(r){if(F(r)){var e=r;r=null,C(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+T6++,C(e,function(t){t.group=r})}return Ev[r]=!0,r}function hM(r){Ev[r]=!1}var A6=hM;function M6(r){$(r)?r=Wo[r]:r instanceof Cv||(r=a0(r)),r instanceof Cv&&!r.isDisposed()&&r.dispose()}function a0(r){return Wo[S3(r,n0)]}function E6(r){return Wo[r]}function i0(r,e){cM[r]=e}function o0(r){we(t0,r)<0&&t0.push(r)}function s0(r,e){l0(e0,r,e,v6)}function vM(r){Iv("afterinit",r)}function dM(r){Iv("afterupdate",r)}function Iv(r,e){Bn.on(r,e)}function zn(r,e,t){Q(e)&&(t=e,e="");var n=re(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!Ef[e]&&(ie(QA.test(n)&&QA.test(e)),Av[n]||(Av[n]={action:t,actionInfo:r}),Ef[e]=n)}function pM(r,e){No.register(r,e)}function I6(r){var e=No.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function gM(r,e){l0(Mv,r,e,jA,"layout")}function ki(r,e){l0(Mv,r,e,XA,"visual")}var yM=[];function l0(r,e,t,n,a){if((Q(e)||re(e))&&(t=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");C(r,function(o){ie(o.__raw!==t)})}if(!(we(yM,t)>=0)){yM.push(t);var i=bA.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function u0(r,e){r0[r]=e}function P6(r){process.env.NODE_ENV!=="production"&&nn("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),Mx({createCanvas:r})}function mM(r,e,t){var n=UA("registerMap");n&&n(r,e,t)}function L6(r){var e=UA("getMap");return e&&e(r)}var _M=zG;ki($m,cH),ki(wv,hH),ki(wv,vH),ki($m,MH),ki(wv,EH),ki(qA,a6),o0(CC),s0(c6,_G),u0("default",dH),zn({type:Do,event:Do,update:Do},bt),zn({type:Ih,event:Ih,update:Ih},bt),zn({type:Xu,event:Xu,update:Xu},bt),zn({type:Ph,event:Ph,update:Ph},bt),zn({type:qu,event:qu,update:qu},bt),i0("light",DH),i0("dark",CH);var k6={},SM=[],R6={registerPreprocessor:o0,registerProcessor:s0,registerPostInit:vM,registerPostUpdate:dM,registerUpdateLifecycle:Iv,registerAction:zn,registerCoordinateSystem:pM,registerLayout:gM,registerVisual:ki,registerTransform:_M,registerLoading:u0,registerMap:mM,registerImpl:o6,PRIORITY:KA,ComponentModel:Ie,ComponentView:ut,SeriesModel:tt,ChartView:Xe,registerComponentModel:function(r){Ie.registerClass(r)},registerComponentView:function(r){ut.registerClass(r)},registerSeriesModel:function(r){tt.registerClass(r)},registerChartView:function(r){Xe.registerClass(r)},registerSubTypeDefaulter:function(r,e){Ie.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Nw(r,e)}};function Te(r){if(F(r)){C(r,function(e){Te(e)});return}we(SM,r)>=0||(SM.push(r),Q(r)&&(r={install:r}),r.install(R6))}function If(r){return r==null?0:r.length||1}function bM(r){return r}var O6=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||bM,this._newKeyGetter=a||bM,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=If(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=If(u),h=If(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=If(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=If(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}();const Ba=O6;var N6=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function V6(r,e){var t={},n=t.encode={},a=te(),i=[],o=[],s={};C(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&ie(vm.get(d)==null);var p=v.coordDimIndex;f0(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),B6(v.type)&&(i[0]=h),f0(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}vm.each(function(g,y){var m=f0(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new N6(s,e),t}function f0(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Pv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function B6(r){return!(r==="ordinal"||r==="time")}var z6=function(){function r(e){this.otherDims={},e!=null&&z(this,e)}return r}();const Lv=z6;var F6=Be(),G6={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xM=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=DM(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return me(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=IC(this.source),n=!CM(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=G6[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function wM(r){return r instanceof xM}function TM(r){for(var e=te(),t=0;t<(r||[]).length;t++){var n=r[t],a=re(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function DM(r){var e=F6(r);return e.dimNameMap||(e.dimNameMap=TM(r.dimensionsDefine))}function CM(r){return r>30}var Pf=re,Ri=G,H6=typeof Int32Array>"u"?Array:Int32Array,W6="e\0\0",AM=-1,Y6=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$6=["_approximateExtent"],MM,kv,Lf,pl,c0,Rv,h0,U6=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;wM(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=$(c)?new Lv({name:c}):c instanceof Lv?c:new Lv(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),process.env.NODE_ENV!=="production"&&ie(a||h.storeDimIndex>=0),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=te();C(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Re(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unkown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof Pm&&(i=e),!i){var o=this.dimensions,s=wm(e)||Ut(e)?new kC(e,o.length):e;i=new Pm;var l=Ri(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=V6(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&h0(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Na&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===un;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&s3(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=Lt(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=Lt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)h0(this,f);MM(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Pf(e)?z(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Lf(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return kv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return F(e)?a.getValues(Ri(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n[t];return a==null||isNaN(a)?AM:a},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ri(pl(e),this._getStoreDimIndex,this);this._store.each(i,a?j(t,a):t)},r.prototype.filterSelf=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ri(pl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?j(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=Me(e);return C(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Q(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Ri(pl(e),this._getStoreDimIndex,this),s=Rv(this);return s._store=this._store.map(o,i?j(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&C(pl(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Ri(pl(e),this._getStoreDimIndex,this);this._store.modify(s,o?j(t,o):t)},r.prototype.downSample=function(e,t,n,a){var i=Rv(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.lttbDownSample=function(e,t){var n=Rv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new je(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Ba(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return kv(e,n)},function(n){return kv(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Pf(e)?z(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),F(i)?i=i.slice():Pf(i)&&(i=z({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Pf(t)?z(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Pf(e)?z(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?z(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;My(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Ri(this.dimensions,this._getDimInfo,this),this.hostModel)),c0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(Wc(arguments)))})},r.internalField=function(){MM=function(e){var t=e._invertedIndicesMap;C(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new H6(o.categories.length);for(var l=0;l<n.length;l++)n[l]=AM;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Lf=function(e,t,n){return Lt(e._getCategory(t,n),null)},kv=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Lf(e,e._idDimIdx,t)),n==null&&(n=W6+t),n},pl=function(e){return F(e)||(e=e!=null?[e]:[]),e},Rv=function(e){var t=new r(e._schema?e._schema:Ri(e.dimensions,e._getDimInfo,e),e.hostModel);return c0(t,e),t},c0=function(e,t){C(Y6.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,C($6,function(n){e[n]=se(t[n])}),e._calculationInfo=z({},t._calculationInfo)},h0=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Lf(e,i,t)),l==null&&o!=null&&(a[t]=l=Lf(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}}(),r}();const ir=U6;function Z6(r,e){return gl(r,e).dimensions}function gl(r,e){wm(r)||(r=Dm(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=te(),i=[],o=X6(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&CM(o),l=n===r.dimensionsDefine,u=l?DM(r):TM(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=te(f),h=new $C(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var M=h[D];if(M<0){var A=n[D],E=re(A)?A:{name:A},I=new Lv,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 L=i.length;return h[D]=L,I.storeDimIndex=D,i.push(I),I}return i[M]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,M){var A=Ze(D).slice();if(A.length===1&&!$(A[0])&&A[0]<0){c.set(M,!1);return}var E=c.set(M,[]);C(A,function(I,P){var L=$(I)?u.get(I):I;L!=null&&L<o&&(E[P]=L,g(d(L),M,P))})});var p=0;C(t,function(D){var M,A,E,I;if($(D))M=D,I={};else{I=D,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=z({},I),I.ordinalMeta=P,A=I.dimsDef,E=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var L=c.get(M);if(L!==!1){if(L=Ze(L),!L.length)for(var k=0;k<(A&&A.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&L.push(p++)}C(L,function(V,O){var B=d(V);if(l&&I.type!=null&&(B.type=I.type),g(ae(B,I),M,O),B.name==null&&A){var H=A[O];!re(H)&&(H={name:H}),B.name=B.displayName=H.name,B.defaultTooltip=H.defaultTooltip}E&&ae(B.otherDims,E)})}});function g(D,M,A){vm.get(M)!=null?D.otherDims[M]=A:(D.coordDim=M,D.coordDimIndex=A,a.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)C(i,function(D){x(D)}),i.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),T=w.coordDim;T==null&&(w.coordDim=q6(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(lC(r,b)===Xt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return j6(i),new xM({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function j6(r){for(var e=te(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function X6(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return C(e,function(i){var o;re(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function q6(r,e,t){var n=e.data;if(t||n.hasOwnProperty(r)){for(var a=0;n.hasOwnProperty(r+a);)a++;r+=a}return e.set(r,!0),r}var K6=function(){function r(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return r}();function Q6(r){var e=r.get("coordinateSystem"),t=new K6(e),n=J6[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var J6={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",At).models[0],i=r.getReferringComponents("yAxis",At).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+St(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+St(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),yl(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),yl(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",At).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",a),yl(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",At).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),yl(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),yl(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),yl(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function yl(r){return r.get("type")==="category"}function EM(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;eW(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(C(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;C(i,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function eW(r){return!wM(r.schema)}function za(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function v0(r,e){return za(r,e)?r.getCalculationInfo("stackResultDimension"):e}function tW(r,e){var t=r.get("coordinateSystem"),n=No.get(t),a;return e&&e.coordSysDims&&(a=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Pv(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function rW(r,e,t){var n,a;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ca(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=Dm(r)):(a=n.getSource(),i=a.sourceFormat===un);var o=Q6(e),s=tW(e,o),l=t.useEncodeDefaulter,u=Q(l)?l:l?de(sC,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=gl(a,f),h=rW(c.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=EM(e,{schema:c,store:v}),p=new ir(c,e);p.setCalculationInfo(d);var g=h!=null&&nW(a)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function nW(r){if(r.sourceFormat===un){var e=aW(r.data||[]);return!F(zs(e))}}function aW(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var IM=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();bh(IM);const Fa=IM;var iW=0,oW=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iW}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&G(n,sW);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!$(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},r}();function sW(r){return re(r)&&r.value!=null?r.value:r+""}const d0=oW;function lW(r){var e=Math.pow(10,Fu(Math.abs(r))),t=Math.abs(r/e);return t===0||t===1||t===2||t===3||t===5}function p0(r){return r.type==="interval"||r.type==="log"}function uW(r,e,t,n){var a={},i=r[1]-r[0],o=a.interval=oy(i/e,!0);t!=null&&o<t&&(o=a.interval=t),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=PM(o),l=a.niceTickExtent=[gt(Math.ceil(r[0]/o)*o,s),gt(Math.floor(r[1]/o)*o,s)];return fW(l,r),a}function g0(r){var e=Math.pow(10,Fu(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,gt(t*e)}function PM(r){return kn(r)+2}function LM(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function fW(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),LM(r,0,e),LM(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ov(r,e){return r>=e[0]&&r<=e[1]}function Nv(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Vv(r,e){return r*(e[1]-e[0])+e[0]}var kM=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new d0({})),F(a)&&(a=new d0({categories:G(a,function(i){return re(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ov(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Nv(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Vv(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Fa);Fa.registerClass(kM);const y0=kM;var Yo=gt,RM=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ov(t,this._extent)},e.prototype.normalize=function(t){return Nv(t,this._extent)},e.prototype.scale=function(t){return Vv(t,this._extent)},e.prototype.setExtent=function(t,n){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=PM(t)},e.prototype.getTicks=function(t){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(t?s.push({value:Yo(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Yo(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(t?s.push({value:Yo(f+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/t;u<t-1;){var v=Yo(l.value+(u+1)*h);v>i[0]&&v<i[1]&&f.push(v),u++}a.push(f)}return a},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=kn(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Yo(t.value,a,!0);return sm(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=uW(i,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=Yo(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=Yo(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(Fa);Fa.registerClass(RM);const Oi=RM;var OM=typeof Float32Array<"u",cW=OM?Float32Array:Array;function ha(r){return F(r)?OM?new Float32Array(r):r:new cW(r)}var m0="__ec_stack_";function _0(r){return r.get("stack")||m0+r.seriesIndex}function S0(r){return r.dim+r.index}function hW(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),i=0;i<r.count;i++)e.push(ae({bandWidth:a,axisKey:n,stackId:m0+i},r));for(var o=BM(e),s=[],i=0;i<r.count;i++){var l=o[n][m0+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function NM(r,e){var t=[];return e.eachSeriesByType(r,function(n){GM(n)&&t.push(n)}),t}function vW(r){var e={};C(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);e[h]?e[h].push(y):e[h]=[y]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function VM(r){var e=vW(r),t=[];return C(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Y(n.get("barWidth"),s),p=Y(n.get("barMaxWidth"),s),g=Y(n.get("barMinWidth")||(HM(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:S0(i),stackId:_0(n)})}),BM(t)}function BM(r){var e={};C(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return C(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Me(i).length;s=Math.max(35-l*4,15)+"%"}var u=Y(s,o),f=Y(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),C(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;C(i,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;C(i,function(y,m){t[a][m]=t[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function dW(r,e,t){if(r&&e){var n=r[S0(e)];return n!=null&&t!=null?n[_0(t)]:n}}function zM(r,e){var t=NM(r,e),n=VM(t);C(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=_0(a),u=n[S0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function FM(r){return{seriesType:r,plan:ll(),reset:function(e){if(GM(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),c=za(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=pW(a,i),d=HM(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&ha(x*3),w=d&&l&&ha(x*3),T=d&&ha(x),D=n.master.getRect(),M=h?D.width:D.height,A,E=S.getStore(),I=0;(A=_.next())!=null;){var P=E.get(c?g:o,A),L=E.get(s,A),k=v,V=void 0;c&&(V=+P-E.get(o,A));var O=void 0,B=void 0,H=void 0,W=void 0;if(h){var q=n.dataToPoint([P,L]);if(c){var ee=n.dataToPoint([V,L]);k=ee[0]}O=k,B=q[1]+m,H=q[0]-k,W=y,Math.abs(H)<p&&(H=(H<0?-1:1)*p)}else{var q=n.dataToPoint([L,P]);if(c){var ee=n.dataToPoint([L,V]);k=ee[1]}O=q[0]+m,B=k,H=y,W=q[1]-k,Math.abs(W)<p&&(W=(W<=0?-1:1)*p)}d?(b[I]=O,b[I+1]=B,b[I+2]=h?H:W,w&&(w[I]=h?D.x:O,w[I+1]=h?B:D.y,w[I+2]=M),T[A]=A):S.setItemLayout(A,{x:O,y:B,width:H,height:W}),I+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function GM(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function HM(r){return r.pipelineContext&&r.pipelineContext.large}function pW(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var gW=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},WM=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return cf(t.value,YD[L4(el(this._minLevelUnit))]||YD.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return k4(t,n,a,o,i)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,a=[];if(!t)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=wW(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=ln,n[1]+=ln),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-ln}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Bv.length,l=Math.min(gW(Bv,this._approxInterval,0,s),s-1);this._interval=Bv[l][1],this._minLevelUnit=Bv[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Re(t)?t:+zr(t)},e.prototype.contain=function(t){return Ov(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Nv(this.parse(t),this._extent)},e.prototype.scale=function(t){return Vv(t,this._extent)},e.type="time",e}(Oi),Bv=[["second",nm],["minute",am],["hour",uf],["quarter-day",uf*6],["half-day",uf*12],["day",ln*1.2],["half-week",ln*3.5],["week",ln*7],["month",ln*31],["quarter",ln*95],["half-year",WD/2],["year",WD]];function yW(r,e,t,n){var a=zr(e),i=zr(t),o=function(d){return ZD(a,d,n)===ZD(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function mW(r,e){return r/=ln,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function _W(r){var e=30*ln;return r/=e,r>6?6:r>3?3:r>2?2:1}function SW(r){return r/=uf,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function YM(r,e){return r/=e?am:nm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function bW(r){return oy(r,!0)}function xW(r,e,t){var n=new Date(r);switch(el(e)){case"year":case"month":n[jD(t)](0);case"day":n[XD(t)](1);case"hour":n[qD(t)](0);case"minute":n[KD(t)](0);case"second":n[QD(t)](0),n[JD(t)](0)}return n.getTime()}function wW(r,e,t,n){var a=1e4,i=$D,o=0;function s(M,A,E,I,P,L,k){for(var V=new Date(A),O=A,B=V[I]();O<E&&O<=n[1];)k.push({value:O}),B+=M,V[P](B),O=V.getTime();k.push({value:O,notAdd:!0})}function l(M,A,E){var I=[],P=!A.length;if(!yW(el(M),n[0],n[1],t)){P&&(A=[{value:xW(new Date(n[0]),M,t)},{value:n[1]}]);for(var L=0;L<A.length-1;L++){var k=A[L].value,V=A[L+1].value;if(k!==V){var O=void 0,B=void 0,H=void 0,W=!1;switch(M){case"year":O=Math.max(1,Math.round(e/ln/365)),B=om(t),H=R4(t);break;case"half-year":case"quarter":case"month":O=_W(e),B=tl(t),H=jD(t);break;case"week":case"half-week":case"day":O=mW(e),B=Jh(t),H=XD(t),W=!0;break;case"half-day":case"quarter-day":case"hour":O=SW(e),B=hf(t),H=qD(t);break;case"minute":O=YM(e,!0),B=ev(t),H=KD(t);break;case"second":O=YM(e,!1),B=tv(t),H=QD(t);break;case"millisecond":O=bW(e),B=rv(t),H=JD(t);break}s(O,k,V,B,H,W,I),M==="year"&&E.length>1&&L===0&&E.unshift({value:E[0].value-O})}}for(var L=0;L<I.length;L++)E.push(I[L]);return I}}for(var u=[],f=[],c=0,h=0,v=0;v<i.length&&o++<a;++v){var d=el(i[v]);if(P4(i[v])){l(i[v],u[u.length-1]||[],f);var p=i[v+1]?el(i[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(M,A){return M.value-A.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/e;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===i[v]))break}f=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Jt("Exceed safe limit.");for(var S=Ye(G(u,function(M){return Ye(M,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(M){return M.length>0}),x=[],b=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)x.push({value:w[T].value,level:b-v});x.sort(function(M,A){return M.value-A.value});for(var D=[],v=0;v<x.length;++v)(v===0||x[v].value!==x[v-1].value)&&D.push(x[v]);return D}Fa.registerClass(WM);const $M=WM;var UM=Fa.prototype,kf=Oi.prototype,TW=gt,DW=Math.floor,CW=Math.ceil,zv=Math.pow,Fn=Math.log,b0=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Oi,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=kf.getTicks.call(this,t);return G(o,function(s){var l=s.value,u=gt(zv(this.base,l));return u=l===a[0]&&this._fixMin?Fv(u,i[0]):u,u=l===a[1]&&this._fixMax?Fv(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var a=Fn(this.base);t=Fn(Math.max(0,t))/a,n=Fn(Math.max(0,n))/a,kf.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=UM.getExtent.call(this);n[0]=zv(t,n[0]),n[1]=zv(t,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Fv(n[0],i[0])),this._fixMax&&(n[1]=Fv(n[1],i[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=Fn(t[0])/Fn(n),t[1]=Fn(t[1])/Fn(n),UM.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=Fw(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[gt(CW(n[0]/i)*i),gt(DW(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){kf.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Fn(t)/Fn(this.base),Ov(t,this._extent)},e.prototype.normalize=function(t){return t=Fn(t)/Fn(this.base),Nv(t,this._extent)},e.prototype.scale=function(t){return t=Vv(t,this._extent),zv(this.base,t)},e.type="log",e}(Fa),ZM=b0.prototype;ZM.getMinorTicks=kf.getMinorTicks,ZM.getLabel=kf.getLabel;function Fv(r,e){return TW(r,kn(e))}Fa.registerClass(b0);const AW=b0;var MW=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);Q(i)?this._modelMinNum=Gv(e,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=Gv(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(Q(o)?this._modelMaxNum=Gv(e,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Gv(e,o)),a)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=F(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Ln(l[0],1),Ln(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=li(s)||li(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&ie(!this.frozen),this[IW[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=EW[e];process.env.NODE_ENV!=="production"&&ie(!this.frozen&&this[n]==null),this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),EW={min:"_determinedMin",max:"_determinedMax"},IW={min:"_dataMin",max:"_dataMax"};function jM(r,e,t){var n=r.rawExtentInfo;return n||(n=new MW(r,e,t),r.rawExtentInfo=n,n)}function Gv(r,e){return e==null?null:li(e)?NaN:r.parse(e)}function XM(r,e){var t=r.type,n=jM(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=NM("bar",o),l=!1;if(C(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=VM(s),f=PW(a,i,e,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function PW(r,e,t,n){var a=t.axis.getExtent(),i=a[1]-a[0],o=dW(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;C(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,c=1-(s+l)/i,h=f/c-f;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function $o(r,e){var t=e,n=XM(r,t),a=n.extent,i=t.get("splitNumber");r instanceof AW&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Rf(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new y0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $M({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Fa.getClass(e)||Oi)}}function LW(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Of(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(e):$(e)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):Q(e)?function(n){return function(a,i){return t!=null&&(i=a.value-t),n(x0(r,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function x0(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function kW(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,a,i=t.getExtent();t instanceof y0?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=Of(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},h=s(c,f),v=o.getTextRect(h),d=RW(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function RW(r,e){var t=e*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(t))+Math.abs(a*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(a*Math.cos(t)),s=new xe(r.x,r.y,i,o);return s}function w0(r){var e=r.get("interval");return e??"auto"}function qM(r){return r.type==="category"&&w0(r.getLabelModel())===0}function Hv(r,e){var t={};return C(r.mapDimensionsAll(e),function(n){t[v0(r,n)]=!0}),Me(t)}function OW(r,e,t){e&&C(Hv(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var ml=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function NW(r){return ca(null,r)}var VW={isDimensionStacked:za,enableDataStack:EM,getStackedDimension:v0};function BW(r,e){var t=e;e instanceof je||(t=new je(e));var n=Rf(t);return n.setExtent(r[0],r[1]),$o(n,t),n}function zW(r){_t(r,ml)}function FW(r,e){return e=e||{},Je(r,null,null,e.state!=="normal")}const GW=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Z6,createList:NW,createScale:BW,createSymbol:wt,createTextStyle:FW,dataStack:VW,enableHoverEmphasis:wi,getECData:ve,getLayoutRect:Mt,mixinAxisModelCommonMethods:zW},Symbol.toStringTag,{value:"Module"}));var HW=1e-8;function KM(r,e){return Math.abs(r-e)<HW}function Uo(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=La(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!KM(a[0],s[0])||!KM(a[1],s[1]))&&(n+=La(a[0],a[1],s[0],s[1],e,t)),n!==0}var WW=[];function T0(r,e){for(var t=0;t<r.length;t++)Gt(r[t],r[t],e)}function QM(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ca(e,e,i),Aa(t,t,i))}}function YW(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var JM=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),e2=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),t2=function(){function r(e){this.type="linestring",this.points=e}return r}(),r2=function(r){N(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return YW(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?QM(s.exterior,a,i,t):C(s.points,function(l){QM(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new xe(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Uo(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Uo(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new xe(t,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(T0(h.exterior,u),C(h.interiors,function(v){T0(v,u)})):C(h.points,function(v){T0(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(JM),$W=function(r){N(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=bu(WW),o=t;o&&!o.isGeoSVGGraphicRoot;)Jn(i,o.getLocalTransform(),i),o=o.parent;return no(i,i),Gt(a,a,i),a},e}(JM);function UW(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return C(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=n2(s,o,t);break;case"Polygon":D0(s,o,t);break;case"MultiLineString":D0(s,o,t);break;case"MultiPolygon":C(s,function(l,u){return D0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function D0(r,e,t){for(var n=0;n<r.length;n++)r[n]=n2(r[n],e[n],t)}function n2(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function C0(r,e){return r=UW(r),G(Ye(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new e2(o[0],o.slice(1)));break;case"MultiPolygon":C(a.coordinates,function(l){l[0]&&i.push(new e2(l[0],l.slice(1)))});break;case"LineString":i.push(new t2([a.coordinates]));break;case"MultiLineString":i.push(new t2(a.coordinates))}var s=new r2(n[e||"name"],i,n.cp);return s.properties=n,s})}const ZW=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ay,asc:Br,getPercentWithPrecision:t3,getPixelPrecision:ny,getPrecision:kn,getPrecisionSafe:yh,isNumeric:_h,isRadianAroundZero:zu,linearMap:He,nice:oy,numericToNumber:ra,parseDate:zr,quantile:mh,quantity:Fw,quantityExponent:Fu,reformIntervals:sy,remRadian:iy,round:gt},Symbol.toStringTag,{value:"Module"})),jW=Object.freeze(Object.defineProperty({__proto__:null,format:cf,parse:zr},Symbol.toStringTag,{value:"Module"})),XW=Object.freeze(Object.defineProperty({__proto__:null,Arc:Bh,BezierCurve:tf,BoundingRect:xe,Circle:Rn,CompoundPath:zh,Ellipse:Nh,Group:fe,Image:Wt,IncrementalDisplayable:xD,Line:Nt,LinearGradient:Us,Polygon:Sr,Polyline:br,RadialGradient:Wy,Rect:Le,Ring:ef,Sector:_r,Text:ke,clipPointsByRect:jy,clipRectByRect:ED,createIcon:qs,extendPath:CD,extendShape:DD,getShapeClass:$h,getTransform:Ci,initProps:lt,makeImage:Uy,makePath:nf,mergePath:Fr,registerShape:sn,resizePath:Zy,updateProps:Oe},Symbol.toStringTag,{value:"Module"})),qW=Object.freeze(Object.defineProperty({__proto__:null,addCommas:sm,capitalFirst:B4,encodeHTML:dr,formatTime:V4,formatTpl:cm,getTextRect:O4,getTooltipMarker:tC,normalizeCssArray:Lo,toCamelCase:lm,truncateText:aT},Symbol.toStringTag,{value:"Module"})),KW=Object.freeze(Object.defineProperty({__proto__:null,bind:j,clone:se,curry:de,defaults:ae,each:C,extend:z,filter:Ye,indexOf:we,inherits:sg,isArray:F,isFunction:Q,isObject:re,isString:$,map:G,merge:ye,reduce:qr},Symbol.toStringTag,{value:"Module"}));var Nf=Be();function QW(r){return r.type==="category"?eY(r):rY(r)}function JW(r,e){return r.type==="category"?tY(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function eY(r){var e=r.getLabelModel(),t=a2(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function a2(r,e){var t=i2(r,"labels"),n=w0(e),a=o2(t,n);if(a)return a;var i,o;return Q(n)?i=u2(r,n):(o=n==="auto"?nY(r):n,i=l2(r,o)),s2(t,n,{labels:i,labelCategoryInterval:o})}function tY(r,e){var t=i2(r,"ticks"),n=w0(e),a=o2(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Q(n))i=u2(r,n,!0);else if(n==="auto"){var s=a2(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=n,i=l2(r,o,!0);return s2(t,n,{ticks:i,tickCategoryInterval:o})}function rY(r){var e=r.scale.getTicks(),t=Of(r);return{labels:G(e,function(n,a){return{level:n.level,formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function i2(r,e){return Nf(r)[e]||(Nf(r)[e]=[])}function o2(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function s2(r,e,t){return r.push({key:e,value:t}),t}function nY(r){var e=Nf(r).autoInterval;return e??(Nf(r).autoInterval=r.calculateCategoryInterval())}function aY(r){var e=iY(r),t=Of(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=Nu(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Nf(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function iY(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function l2(r,e,t){var n=Of(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=qM(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function u2(r,e,t){var n=r.scale,a=Of(r),i=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var f2=[0,1],oY=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return ny(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),c2(n,a.count())),He(e,f2,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),c2(n,a.count()));var i=He(e,n,f2,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=JW(this,t),a=n.ticks,i=G(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return sY(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=G(n,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return QW(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return aY(this)},r}();function c2(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function sY(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;C(e,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var c=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1]});function h(v,d){return v=gt(v),d=gt(d),c?v>d:v<d}}const dn=oY;function lY(r){var e=Ie.extend(r);return Ie.registerClass(e),e}function uY(r){var e=ut.extend(r);return ut.registerClass(e),e}function fY(r){var e=tt.extend(r);return tt.registerClass(e),e}function cY(r){var e=Xe.extend(r);return Xe.registerClass(e),e}var Vf=Math.PI*2,Zo=sa.CMD,hY=["top","right","bottom","left"];function vY(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function dY(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,c=s*t+e;if(Math.abs(n-a)%Vf<1e-4)return l[0]=f,l[1]=c,u-t;if(i){var h=n;n=bi(a),a=bi(h)}else n=bi(n),a=bi(a);n>a&&(a+=Vf);var v=Math.atan2(s,o);if(v<0&&(v+=Vf),v>=n&&v<=a||v+Vf>=n&&v+Vf<=a)return l[0]=f,l[1]=c,u-t;var d=t*Math.cos(n)+r,p=t*Math.sin(n)+e,g=t*Math.cos(a)+r,y=t*Math.sin(a)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Wv(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=e+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function h2(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Gn=[];function pY(r,e,t){var n=h2(e.x,e.y,e.width,e.height,r.x,r.y,Gn);return t.set(Gn[0],Gn[1]),n}function gY(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=u;switch(d){case Zo.M:i=f[v++],o=f[v++],n=i,a=o;break;case Zo.L:p=Wv(n,a,f[v],f[v+1],c,h,Gn,!0),n=f[v++],a=f[v++];break;case Zo.C:p=sw(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,Gn),n=f[v++],a=f[v++];break;case Zo.Q:p=uw(n,a,f[v++],f[v++],f[v],f[v+1],c,h,Gn),n=f[v++],a=f[v++];break;case Zo.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],x=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=dY(g,y,_,S,S+x,b,w,h,Gn),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case Zo.R:i=n=f[v++],o=a=f[v++];var T=f[v++],D=f[v++];p=h2(i,o,T,D,c,h,Gn);break;case Zo.Z:p=Wv(n,a,i,o,c,h,Gn,!0),n=i,a=o;break}p<u&&(u=p,t.set(Gn[0],Gn[1]))}return u}var Hn=new be,rt=new be,Tt=new be,va=new be,da=new be;function v2(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||hY,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&no([],f),h=e.get("length2")||0;u&&Tt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];vY(d,0,s,Hn,va),be.scaleAndAdd(rt,Hn,va,h),rt.transform(c);var p=r.getBoundingRect(),g=u?u.distance(rt):r instanceof De?gY(rt,r.path,Tt):pY(rt,p,Tt);g<l&&(l=g,rt.transform(f),Tt.transform(f),Tt.toArray(i[0]),rt.toArray(i[1]),Hn.toArray(i[2]))}d2(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Yv=[],wr=new be;function d2(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Hn.fromArray(r[0]),rt.fromArray(r[1]),Tt.fromArray(r[2]),be.sub(va,Hn,rt),be.sub(da,Tt,rt);var t=va.len(),n=da.len();if(!(t<.001||n<.001)){va.scale(1/t),da.scale(1/n);var a=va.dot(da),i=Math.cos(e);if(i<a){var o=Wv(rt.x,rt.y,Tt.x,Tt.y,Hn.x,Hn.y,Yv,!1);wr.fromArray(Yv),wr.scaleAndAdd(da,o/Math.tan(Math.PI-e));var s=Tt.x!==rt.x?(wr.x-rt.x)/(Tt.x-rt.x):(wr.y-rt.y)/(Tt.y-rt.y);if(isNaN(s))return;s<0?be.copy(wr,rt):s>1&&be.copy(wr,Tt),wr.toArray(r[1])}}}}function yY(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Hn.fromArray(r[0]),rt.fromArray(r[1]),Tt.fromArray(r[2]),be.sub(va,rt,Hn),be.sub(da,Tt,rt);var n=va.len(),a=da.len();if(!(n<.001||a<.001)){va.scale(1/n),da.scale(1/a);var i=va.dot(e),o=Math.cos(t);if(i<o){var s=Wv(rt.x,rt.y,Tt.x,Tt.y,Hn.x,Hn.y,Yv,!1);wr.fromArray(Yv);var l=Math.PI/2,u=Math.acos(da.dot(e)),f=l+u-t;if(f>=l)be.copy(wr,Tt);else{wr.scaleAndAdd(da,s/Math.tan(Math.PI/2-f));var c=Tt.x!==rt.x?(wr.x-rt.x)/(Tt.x-rt.x):(wr.y-rt.y)/(Tt.y-rt.y);if(isNaN(c))return;c<0?be.copy(wr,rt):c>1&&be.copy(wr,Tt)}wr.toArray(r[1])}}}}function p2(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function mY(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Da(n[0],n[1]),i=Da(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=Su([],n[1],n[0],o/a),l=Su([],n[1],n[2],o/i),u=Su([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function A0(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<ju.length;l++){var u=ju[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:me(a.states[u]&&a.states[u].ignore,s);if(v||!me(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new br,r.setTextGuideLine(n),!c&&(s||!o)&&p2(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),p2(n,!1,u,f)}}if(n){ae(n.style,t),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=mY}}function M0(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<mr.length;n++){var a=mr[n];t[a]=r.getModel([a,e])}return t}function g2(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Hh(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function y2(r,e,t,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,D){return T.rect[e]-D.rect[e]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[e]-s,l<0&&(v[e]-=l,h.label[e]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[e]+v[t]}f>0&&i&&x(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[e]-n,m=a-g.rect[e]-g.rect[t]}function S(T,D,M){if(T<0){var A=Math.min(D,-T);if(A>0){x(A*M,0,o);var E=A+T;E<0&&b(-E*M,1)}else b(-T*M,1)}}function x(T,D,M){T!==0&&(u=!0);for(var A=D;A<M;A++){var E=r[A],I=E.rect;I[e]+=T,E.label[e]+=T}}function b(T,D){for(var M=[],A=0,E=1;E<o;E++){var I=r[E-1].rect,P=Math.max(r[E].rect[e]-I[e]-I[t],0);M.push(P),A+=P}if(A){var L=Math.min(Math.abs(T)/A,D);if(T>0)for(var E=0;E<o-1;E++){var k=M[E]*L;x(k,0,E+1)}else for(var E=o-1;E>0;E--){var k=M[E-1]*L;x(-k,E,o)}}}function w(T){var D=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),A=0;A<o-1;A++)if(D>0?x(M,0,A+1):x(-M,o-A-1,o),T-=M,T<=0)return}return u}function _Y(r,e,t,n){return y2(r,"x","width",e,t,n)}function m2(r,e,t,n){return y2(r,"y","height",e,t,n)}function _2(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new xe(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var c=i.obb,h=!1,v=0;v<e.length;v++){var d=e[v];if(t.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Hh(d.localRect,d.transform)),c||(c=new Hh(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function SY(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function bY(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:SY(n&&n.shape.points)}}var S2=["align","verticalAlign","width","height","fontSize"],Hr=new Ia,E0=Be(),xY=Be();function $v(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var Uv=["x","y","rotation"],wY=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();xe.applyTransform(f,f,u),u?Hr.setLocalTransform(u):(Hr.x=Hr.y=Hr.rotation=Hr.originX=Hr.originY=0,Hr.scaleX=Hr.scaleY=1);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();xe.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Hr.x,y:Hr.y,scaleX:Hr.scaleX,scaleY:Hr.scaleY,rotation:Hr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(Q(a)||Me(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ve(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){v2(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Q(o.layoutOption)?f=o.layoutOption(bY(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=Y(f.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Y(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=E0(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<S2.length;p++){var g=S2[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=g2(this._labelList),i=Ye(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ye(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});_Y(i,0,t),m2(o,0,n);var s=Ye(a,function(l){return l.layoutOption.hideOverlap});_2(s)},r.prototype.processLabelsOverall=function(){var e=this;C(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=E0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=ve(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),f=o.getVisual("drawType");l.stroke=u[f];var c=s.getModel("labelLine");A0(e,M0(s),l),v2(e,c)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!js(e))){var i=E0(n),o=i.oldLayout,s=ve(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(we(h,"select")>=0&&n.attr(i.oldLayoutSelect),we(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Oe(n,u,t,l)}else if(n.attr(u),!Qs(n).valueAnimation){var c=me(n.style.opacity,1);n.style.opacity=0,lt(n,{style:{opacity:c}},t,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};$v(v,u,Uv),$v(v,n.states.select,Uv)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};$v(d,u,Uv),$v(d,n.states.emphasis,Uv)}zD(n,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var i=xY(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Oe(a,{shape:p},t)):(a.setShape(p),a.style.strokePercent=0,lt(a,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}();const TY=wY;var I0=Be();function DY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=I0(t).labelManager;a||(a=I0(t).labelManager=new TY),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=I0(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var P0=Math.sin,L0=Math.cos,b2=Math.PI,jo=Math.PI*2,CY=180/b2,AY=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=yi(c-jo)||(f?u>=jo:-u>=jo),v=u>0?u%jo:u%jo+jo,d=!1;h?d=!0:yi(c)?d=!1:d=v>=b2==!!f;var p=e+n*L0(o),g=t+a*P0(o);this._start&&this._add("M",p,g);var y=Math.round(i*CY);if(h){var m=1/this._p,_=(f?1:-1)*(jo-m);this._add("A",n,a,y,1,+f,e+n*L0(o+_),t+a*P0(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=e+n*L0(s),x=t+a*P0(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const x2=AY;var Bf="none",MY=Math.round;function EY(r){var e=r.fill;return e!=null&&e!==Bf}function IY(r){var e=r.stroke;return e!=null&&e!==Bf}var k0=["lineCap","miterLimit","lineJoin"],PY=G(k0,function(r){return"stroke-"+r.toLowerCase()});function LY(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Wt){r("opacity",a);return}if(EY(e)){var i=Rs(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&r("fill-opacity",o)}else r("fill",Bf);if(IY(e)){var s=Rs(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,c=e.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),e.lineDash){var h=Gm(t),v=h[0],d=h[1];v&&(d=MY(d||0),r("stroke-dasharray",v.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Bf);for(var p=0;p<k0.length;p++){var g=k0[p];if(n||e[g]!==Mh[g]){var y=e[g]||Mh[g];y&&r(PY[p],y)}}}else n&&r("stroke",Bf)}var w2="http://www.w3.org/2000/svg",T2="http://www.w3.org/1999/xlink",kY="http://www.w3.org/2000/xmlns/",RY="http://www.w3.org/XML/1998/namespace";function D2(r){return document.createElementNS(w2,r)}function Bt(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function OY(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function NY(r){return"</"+r+">"}function R0(r,e){e=e||{};var t=e.newline?`
56
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs;return OY(o,s)+dr(a.text)+(i?""+t+G(i,function(l){return n(l)}).join(t)+t:"")+NY(o)}return n(r)}function VY(r,e,t){t=t||{};var n=t.newline?`
57
+ `:"",a=" {"+n,i=n+"}",o=G(Me(r),function(l){return l+a+G(Me(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=G(Me(e),function(l){return"@keyframes "+l+a+G(Me(e[l]),function(u){return u+a+G(Me(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function O0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function C2(r,e,t,n){return Bt("svg","root",{width:r,height:e,xmlns:w2,"xmlns:xlink":T2,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var A2={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Xo="transform-origin";function BY(r,e,t){var n=z({},r.shape);z(n,e),r.buildPath(t,n);var a=new x2;return a.reset(yw(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function zY(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Xo]=t+"px "+n+"px")}var FY={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function M2(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function GY(r,e,t){var n=r.shape.paths,a={},i,o;if(C(n,function(l){var u=O0(t.zrId);u.animation=!0,Zv(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=Me(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=M2(a,t);return i.replace(o,s)}}function E2(r){return $(r)?A2[r]?"cubic-bezier("+A2[r]+")":Mg(r)?r:"":""}function Zv(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof zh){var s=GY(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=E2(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},T="animation-timing-function";function D(J,Se,he){for(var K=J.getTracks(),ge=J.getMaxTime(),nt=0;nt<K.length;nt++){var Pe=K[nt];if(Pe.needsAnimate()){var st=Pe.keyframes,ft=Pe.propName;if(he&&(ft=he(ft)),ft)for(var Ft=0;Ft<st.length;Ft++){var Rr=st[Ft],hr=Math.round(Rr.time/ge*100)+"%",Ta=E2(Rr.easing),Cn=Rr.rawValue;($(Cn)||Re(Cn))&&(Se[hr]=Se[hr]||{},Se[hr][ft]=Rr.rawValue,Ta&&(Se[hr][T]=Ta))}}}}for(var M=0;M<S;M++){var A=_[M],E=A.targetName;E?E==="shape"&&D(A,b):!n&&D(A,x)}for(var I in x){var P={};Iw(P,r),z(P,x[I]);var L=mw(P),k=x[I][T];w[I]=L?{transform:L}:{},zY(w[I],P),k&&(w[I][T]=k)}var V,O=!0;for(var I in b){w[I]=w[I]||{};var B=!V,k=b[I][T];B&&(V=new sa);var H=V.len();V.reset(),w[I].d=BY(r,b[I],V);var W=V.len();if(!B&&H!==W){O=!1;break}k&&(w[I][T]=k)}if(!O)for(var I in w)delete w[I].d;if(!n)for(var M=0;M<S;M++){var A=_[M],E=A.targetName;E==="style"&&D(A,w,function(K){return FY[K]})}for(var q=Me(w),ee=!0,ue,M=1;M<q.length;M++){var Ae=q[M-1],Ce=q[M];if(w[Ae][Xo]!==w[Ce][Xo]){ee=!1;break}ue=w[Ae][Xo]}if(ee&&ue){for(var I in w)w[I][Xo]&&delete w[I][Xo];e[Xo]=ue}if(Ye(q,function(J){return Me(w[J]).length>0}).length){var pe=M2(w,t);return pe+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var zf=Math.round;function I2(r){return r&&$(r.src)}function P2(r){return r&&Q(r.toDataURL)}function N0(r,e,t,n){LY(function(a,i){var o=a==="fill"||a==="stroke";o&&Sz(i)?XY(e,r,a,n):o&&_z(i)?qY(t,r,a,n):r[a]=i},e,t,!1),jY(t,r,n)}function L2(r){return yi(r[0]-1)&&yi(r[1])&&yi(r[2])&&yi(r[3]-1)}function HY(r){return yi(r[4])&&yi(r[5])}function V0(r,e,t){if(e&&!(HY(e)&&L2(e))){var n=t?10:1e4;r.transform=L2(e)?"translate("+zf(e[4]*n)/n+" "+zf(e[5]*n)/n+")":vz(e)}}function k2(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(zf(n[i][0]*t)/t),a.push(zf(n[i][1]*t)/t);e.points=a.join(" ")}function R2(r){return!r.smooth}function WY(r){var e=G(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=zf(s*a)/a)}}}var YY={circle:[WY(["cx","cy","r"])],polyline:[k2,R2],polygon:[k2,R2]};function $Y(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function O2(r,e){var t=r.style,n=r.shape,a=YY[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&yw(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&$Y(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{r.path||r.createPathProxy();var c=r.path;r.shapeChanged()&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new x2),d.reset(u),c.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=d.getStr()}return V0(i,r.transform),N0(i,t,r,e),e.animation&&Zv(r,i,e),Bt(s,r.id+"",i)}function UY(r,e){var t=r.style,n=t.image;if(n&&!$(n)&&(I2(n)?n=n.src:P2(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),V0(l,r.transform),N0(l,t,r,e),e.animation&&Zv(r,l,e),Bt("image",r.id+"",l)}}function ZY(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||si,i=t.x||0,o=pz(t.y||0,ph(a),t.textBaseline),s=dz[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(MT(t)){var u="",f=t.fontStyle,c=CT(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||Ax,v=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),V0(l,r.transform),N0(l,t,r,e),e.animation&&Zv(r,l,e),Bt("text",r.id+"",l,void 0,n)}}function N2(r,e){if(r instanceof De)return O2(r,e);if(r instanceof Wt)return UY(r,e);if(r instanceof Uu)return ZY(r,e)}function jY(r,e,t){var n=r.style;if(gz(n)){var a=yz(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=Rs(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Bt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}e.filter=sh(o)}}function XY(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(pw(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(gw(a))i="radialGradient",o.cx=me(a.x,.5),o.cy=me(a.y,.5),o.r=me(a.r,.5);else{process.env.NODE_ENV!=="production"&&Xr("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Rg(s[u].offset)*100+"%",h=s[u].color,v=Rs(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Bt("stop",u+"",g))}var y=Bt(i,"",o,l),m=R0(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Bt(i,S,o,l)),e[t]=sh(S)}function qY(r,e,t,n){var a=r.style[t],i={patternUnits:"userSpaceOnUse"},o;if(dw(a)){var s=a.imageWidth,l=a.imageHeight,u=void 0,f=a.image;if($(f)?u=f:I2(f)?u=f.src:P2(f)&&(u=f.toDataURL()),typeof Image>"u"){var c="Image width/height must been given explictly in svg-ssr renderer.";ie(s,c),ie(l,c)}else if(s==null||l==null){var h=function(m,_){if(m){var S=m.elm,x=m.attrs.width=s||_.width,b=m.attrs.height=l||_.height;S&&(S.setAttribute("width",x),S.setAttribute("height",b))}},v=vy(u,null,r,function(m){h(d,m),h(o,m)});v&&v.width&&v.height&&(s=s||v.width,l=l||v.height)}o=Bt("image","img",{href:u,width:s,height:l}),i.width=s,i.height=l}else a.svgElement&&(o=se(a.svgElement),i.width=a.svgWidth,i.height=a.svgHeight);if(o){i.patternTransform=mw(a);var d=Bt("pattern","",i,[o]),p=R0(d),g=n.patternCache,y=g[p];y||(y=n.zrId+"-p"+n.patternIdx++,g[p]=y,i.id=y,d=n.defs[y]=Bt("pattern",y,i,[o])),e[t]=sh(y)}}function KY(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Bt("clipPath",i,o,[O2(r,t)])}e["clip-path"]=sh(i)}function V2(r){return document.createTextNode(r)}function qo(r,e,t){r.insertBefore(e,t)}function B2(r,e){r.removeChild(e)}function z2(r,e){r.appendChild(e)}function F2(r){return r.parentNode}function G2(r){return r.nextSibling}function B0(r,e){r.textContent=e}var H2=58,QY=120,JY=Bt("","");function z0(r){return r===void 0}function pa(r){return r!==void 0}function e$(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Ff(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Gf(r){var e,t=r.children,n=r.tag;if(pa(n)){var a=r.elm=D2(n);if(F0(JY,r),F(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&z2(a,Gf(i))}else pa(r.text)&&!re(r.text)&&z2(a,V2(r.text))}else r.elm=V2(r.text);return r.elm}function W2(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&qo(r,Gf(i),e)}}function jv(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(pa(a.tag)){var i=F2(a.elm);B2(i,a.elm)}else B2(r,a.elm)}}function F0(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t.charCodeAt(0)!==QY?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(kY,t,o):t.charCodeAt(3)===H2?n.setAttributeNS(RY,t,o):t.charCodeAt(5)===H2?n.setAttributeNS(T2,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function t$(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],c,h,v,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:f==null?f=t[--l]:Ff(o,u)?(_l(o,u),o=e[++n],u=t[++a]):Ff(s,f)?(_l(s,f),s=e[--i],f=t[--l]):Ff(o,f)?(_l(o,f),qo(r,o.elm,G2(s.elm)),o=e[++n],f=t[--l]):Ff(s,u)?(_l(s,u),qo(r,s.elm,o.elm),s=e[--i],u=t[++a]):(z0(c)&&(c=e$(e,n,i)),h=c[u.key],z0(h)?qo(r,Gf(u),o.elm):(v=e[h],v.tag!==u.tag?qo(r,Gf(u),o.elm):(_l(v,u),e[h]=void 0,qo(r,v.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(d=t[l+1]==null?null:t[l+1].elm,W2(r,d,t,a,l)):jv(r,e,n,i))}function _l(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(F0(r,e),z0(e.text)?pa(n)&&pa(a)?n!==a&&t$(t,n,a):pa(a)?(pa(r.text)&&B0(t,""),W2(t,null,a,0,a.length-1)):pa(n)?jv(t,n,0,n.length-1):pa(r.text)&&B0(t,""):r.text!==e.text&&(pa(n)&&jv(t,n,0,n.length-1),B0(t,e.text)))}function r$(r,e){if(Ff(r,e))_l(r,e);else{var t=r.elm,n=F2(t);Gf(e),n!==null&&(qo(n,e.elm,G2(t)),jv(n,[r],0,0))}return e}var n$=0,a$=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=Y2("refreshHover"),this.configLayer=Y2("configLayer"),this.storage=t,this._opts=n=z({},n),this.root=e,this._id="zr"+n$++,this._oldVNode=C2(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=D2("svg");F0(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",r$(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return N2(e,O0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,a=this._width,i=this._height,o=O0(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(n&&n!=="none"){var l=Rs(n),u=l.color,f=l.opacity;this._bgVNode=Bt("rect","bg",{width:a,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=Bt("g","main",{},[]);this._paintList(t,o,c?c.children:s),c&&s.push(c);var h=G(Me(o.defs),function(p){return o.defs[p]});if(h.length&&s.push(Bt("defs","defs",{},h)),e.animation){var v=VY(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=Bt("style","stl",{},[],v);s.push(d)}}return C2(a,i,s,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},R0(this.renderToVNode({animation:me(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:me(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Rs(e),a=n.color,i=n.opacity;t.elm.setAttribute("fill",a),i<1&&t.elm.setAttribute("fill-opacity",i)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=e[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<v;y++){var m={};KY(h[y],m,t);var _=Bt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var S=N2(c,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=hl(a,0,n),t=hl(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=bz(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+t},r}();function Y2(r){return function(){process.env.NODE_ENV!=="production"&&Xr('In SVG mode painter not support method "'+r+'"')}}const i$=a$;function o$(r){r.registerPainter("svg",i$)}function $2(r,e,t){var n=An.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var s$=function(r){it(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||dh,typeof t=="string"?o=$2(t,n,a):re(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(fg(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=$2("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new xe(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new xe(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var D=new xe(0,0,0,0);D.copy(T),D.union(m),o[w]=D,S=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,A=T.width*T.height,E=u.width*u.height,I=E-M-A;I<x&&(x=I,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new xe(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var v=h.shouldBePainted(a,i,!0,!0),d=h.__isRendered&&(h.__dirty&Nr||!v)?h.getPrevPaintRect():null;d&&f(d);var p=v&&(h.__dirty&Nr||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;vu(n)?(_=n.__canvasGradient||Fm(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_):kx(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Hm(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&C(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},e}(Jr);const G0=s$;var U2=1e5,Ko=314159,Xv=.01,l$=.001;function u$(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function f$(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var c$=function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=z({},n||{}),this.dpr=n.devicePixelRatio||dh,this._singleCanvas=i,this.root=e;var o=e.style;o&&(fg(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new G0(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Ko]=v,v.zlevel=Ko,s.push(Ko),this._domRoot=e}else{this._width=hl(e,0,n),this._height=hl(e,1,n);var u=this._domRoot=f$(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(U2)),i||(i=n.ctx,i.save()),Ho(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(U2)},r.prototype.paintOne=function(e,t){Wm(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Cg(function(){l._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Ko).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],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||n)&&i.push(u)}for(var f=!0,c=!1,h=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(e,t,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var L=e[T];if(L.__inHover&&(c=!0),a._doPaintEl(L,g,o,I,P,T===g.__endIndex-1),S){var k=Date.now()-x;if(k>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=v.dpr,A=0;A<m.length;++A){var E=m[A];y.save(),y.beginPath(),y.rect(E.x*M,E.y*M,E.width*M,E.height*M),y.clip(),D(E),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)h(d);return Ve.wxa&&C(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Ho(s,e,i,o),e.setPrevPaintRect(l))}else Ho(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Ko);var n=this._layers[e];return n||(n=new G0("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ye(n,this._layerConfig[e],!0):this._layerConfig[e-Xv]&&ye(n,this._layerConfig[e-Xv],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Xr("ZLevel "+e+" has been used already");return}if(!u$(t)){process.env.NODE_ENV!=="production"&&Xr("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function t(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+l$,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Xv:0),this._needsManuallyCompositing),f.__builtin__||Xr("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),a.__dirty&Nr&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?ye(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Xv){var o=this._layers[i];ye(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(we(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=hl(i,0,a),t=hl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Ko).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ko].dom;var t=new G0("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.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];Ho(n,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const h$=c$;function v$(r){r.registerPainter("canvas",h$)}var d$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new fe,a=wt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=wt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(tt);const p$=d$;function Sl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=ol(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(ol(r,e,t[o]));return i.join(" ")}}function Z2(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var g$=function(r){N(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o){this.removeAll();var s=wt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=y$,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ra(this.childAt(0))},e.prototype.downplay=function(){Oa(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Oe(h,v,s,n),Nn(h)}if(this._updateCommon(t,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,lt(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Yt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=cl(t.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(n,"style"),w=b.fill;if(s instanceof Wt){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(z({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var A=o&&o.useNameLabel;tr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:w,defaultOpacity:b.opacity});function E(L){return A?t.getName(L):Sl(t,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),yt(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Di(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Di(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Df(t.getItemVisual(n,"symbolSize"))},e}(fe);function y$(r,e){this.parent.drift(r,e)}const Hf=g$;function H0(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function j2(r){return r!=null&&!re(r)&&(r={isIgnore:r}),r||{}}function X2(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Yt(e),cursorStyle:e.get("cursor")}}var m$=function(){function r(e){this.group=new fe,this._SymbolCtor=e||Hf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=j2(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=X2(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||n.removeAll(),e.diff(i).add(function(c){var h=f(c);if(H0(e,h,c,t)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!H0(e,d,c,t)){n.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Oe(v,y,a)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=X2(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=j2(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(H0(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Ai(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();const Wf=m$;function q2(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=_$(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=G(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return za(e,c[0])&&(h=!0,c[0]=v),za(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _$(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:Re(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function K2(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function S$(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function b$(r,e,t,n,a,i,o,s){for(var l=S$(r,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=q2(a,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var T=y[b],D=y[b+1],M=m[w],A=m[w+1];(isNaN(T)||isNaN(D))&&(T=M,D=A),u.push(T,D),f.push(M,A),c.push(t[b],t[b+1]),h.push(n[w],n[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var E=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([e.get(I[0],E),e.get(I[1],E)]);w=E*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var L=K2(g,a,e,E);c.push(L[0],L[1]),h.push(n[w],n[w+1]),p.push(e.getRawIndex(E));break;case"-":x=!1}x&&(v.push(S),d.push(d.length))}d.sort(function(Ae,Ce){return p[Ae]-p[Ce]});for(var k=u.length,V=ha(k),O=ha(k),B=ha(k),H=ha(k),W=[],_=0;_<d.length;_++){var q=d[_],ee=_*2,ue=q*2;V[ee]=u[ue],V[ee+1]=u[ue+1],O[ee]=f[ue],O[ee+1]=f[ue+1],B[ee]=c[ue],B[ee+1]=c[ue+1],H[ee]=h[ue],H[ee+1]=h[ue+1],W[_]=v[q]}return{current:V,next:O,stackedOnCurrent:B,stackedOnNext:H,status:W}}var Ni=Math.min,Vi=Math.max;function Qo(r,e){return isNaN(r)||isNaN(e)}function W0(r,e,t,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=t,g=0;g<n;g++){var y=e[p*2],m=e[p*2+1];if(p>=a||p<0)break;if(Qo(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,b=e[x*2],w=e[x*2+1];b===y&&w===m&&g<n;)g++,x+=i,p+=i,b=e[x*2],w=e[x*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;Qo(b,w)&&T<n;)T++,x+=i,b=e[x*2],w=e[x*2+1];var D=.5,M=0,A=0,E=void 0,I=void 0;if(T>=n||Qo(b,w))v=y,d=m;else{M=b-u,A=w-f;var P=y-u,L=b-y,k=m-f,V=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(L);var H=M>0?1:-1;v=y-H*O*o,d=m,E=y+H*B*o,I=m}else if(s==="y"){O=Math.abs(k),B=Math.abs(V);var W=A>0?1:-1;v=y,d=m-W*O*o,E=y,I=m+W*B*o}else O=Math.sqrt(P*P+k*k),B=Math.sqrt(L*L+V*V),D=B/(B+O),v=y-M*o*(1-D),d=m-A*o*(1-D),E=y+M*o*D,I=m+A*o*D,E=Ni(E,Vi(b,y)),I=Ni(I,Vi(w,m)),E=Vi(E,Ni(b,y)),I=Vi(I,Ni(w,m)),M=E-y,A=I-m,v=y-M*O/B,d=m-A*O/B,v=Ni(v,Vi(u,y)),d=Ni(d,Vi(f,m)),v=Vi(v,Ni(u,y)),d=Vi(d,Ni(f,m)),M=y-v,A=m-d,E=y+M*B/O,I=m+A*B/O}r.bezierCurveTo(c,h,v,d,y,m),c=E,h=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var Q2=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),x$=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Q2},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qo(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Qo(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=W0(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=sa.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var x=u?rh(s,v,p,y,t,f):rh(l,d,g,m,t,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?Ot(l,d,g,m,w):Ot(s,v,p,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(De),w$=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Q2),J2=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new w$},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Qo(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Qo(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=W0(t,a,o,s,s,1,n.smooth,l,n.connectNulls);W0(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(De);function eE(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Le({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Q(a)?function(g){a(g,c)}:null;lt(c,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return c}function tE(r,e,t){var n=r.getArea(),a=gt(n.r0,1),i=gt(n.r,1),o=new _r({shape:{cx:gt(r.cx,1),cy:gt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,lt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function qv(r,e,t,n,a){if(r){if(r.type==="polar")return tE(r,e,t);if(r.type==="cartesian2d")return eE(r,e,t,n,a)}else return null;return null}function Jo(r,e){return r.type===e}function rE(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function nE(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function aE(r,e){var t=nE(r),n=t[0],a=t[1],i=nE(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function iE(r){return Re(r)?r:r?.5:0}function T$(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=ha(n*2),i=0;i<n;i++){var o=K2(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Bi(r,e,t,n){var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&c.push(r[s],r[s+1]);r=c}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+f[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function D$(r,e){var t=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=kg(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function C$(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(a),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=D$(u,a==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";C(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Us(0,0,0,0,h,!0);return m[a]=p,m[a+"2"]=g,m}}function A$(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&M$(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function M$(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Hf.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function E$(r,e){return isNaN(r)||isNaN(e)}function I$(r){for(var e=r.length/2;e>0&&E$(r[e*2-2],r[e*2-1]);e--);return e-1}function oE(r,e){return[r[e*2],r[e*2+1]]}function P$(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function sE(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<mr.length;e++)if(r.get([mr[e],"endLabel","show"]))return!0;return!1}function Y0(r,e,t,n){if(Jo(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=sE(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=eE(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),tE(e,t,n)}function L$(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var k$=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new fe,n=new Wf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),_=!f.isEmpty(),S=f.get("origin"),x=q2(o,l,S),b=_&&T$(o,l,x),w=t.get("showSymbol"),T=t.get("connectNulls"),D=w&&!h&&A$(t,l,o),M=this._data;M&&M.eachItemGraphicEl(function(Ce,pe){Ce.__temp&&(s.remove(Ce),M.setItemGraphicEl(pe,null))}),w||d.remove(),s.add(y);var A=h?!1:t.get("step"),E;o&&o.getArea&&t.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var I=C$(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&A===this._step))w&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Ce){return[c[Ce*2],c[Ce*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,E),A&&(c=Bi(c,o,A,T),b&&(b=Bi(b,o,A,T))),p=this._newPolyline(c),_?g=this._newPolygon(c,b):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,ko(I)),y.setClipPath(Y0(this,o,!0,t));else{_&&!g?g=this._newPolygon(c,b):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,ko(I));var P=y.getClipPath();if(P){var L=Y0(this,o,!1,t);lt(P,{shape:L.shape},t)}else y.setClipPath(Y0(this,o,!0,t));w&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Ce){return[c[Ce*2],c[Ce*2+1]]}}),(!rE(this._stackedOnPoints,b)||!rE(this._points,c))&&(m?this._doUpdateAnimation(l,b,o,a,A,S,T):(A&&(c=Bi(c,o,A,T),b&&(b=Bi(b,o,A,T))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:b})))}var k=t.getModel("emphasis"),V=k.get("focus"),O=k.get("blurScope"),B=k.get("disabled");if(p.useStyle(ae(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),jt(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}ve(p).seriesIndex=t.seriesIndex,yt(p,V,O,B);var W=iE(t.get("smooth")),q=t.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:q,connectNulls:T}),g){var ee=l.getCalculationInfo("stackedOnSeries"),ue=0;g.useStyle(ae(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ee&&(ue=iE(ee.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:ue,smoothMonotone:q,connectNulls:T}),jt(g,t,"areaStyle"),ve(g).seriesIndex=t.seriesIndex,yt(g,V,O,B)}var Ae=function(Ce){i._changePolyState(Ce)};l.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=Ae)}),this._polyline.onHoverStateChange=Ae,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,n){ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=vo(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Hf(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xe.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=vo(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Xe.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;kh(this._polyline,t),n&&kh(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new x$({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new J2({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Q(c)?c(null):c;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=a;i?(y=b.x,m=b.x+b.width,_=v.x):(y=b.y+b.height,m=b.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=Q(c)?c(d):f*w+h,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(sE(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ke({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=I$(l);f>=0&&(tr(s,Yt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?Z2(o,v):Sl(o,c)},enableTextSetter:!0},L$(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=P$(c,S,w),D=T.range,M=D[1]-D[0],A=void 0;if(M>=1){if(M>1&&!v){var E=oE(c,D[0]);u.attr({x:E[0]+x,y:E[1]+b}),o&&(A=h.getRawValue(D[0]))}else{var E=f.getPointOn(S,w);E&&u.attr({x:E[0]+x,y:E[1]+b});var I=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(A=eT(a,d,I,P,T.t))}i.lastFrameIndex=D[0]}else{var L=t===1||i.lastFrameIndex>0?D[0]:0,E=oE(c,L);o&&(A=h.getRawValue(L)),u.attr({x:E[0]+x,y:E[1]+b})}o&&Qs(u).setLabelText(A)}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=b$(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Bi(h.current,a,o,l),d=Bi(h.stackedOnCurrent,a,o,l),p=Bi(h.next,a,o,l),g=Bi(h.stackedOnNext,a,o,l)),aE(v,p)>3e3||f&&aE(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Oe(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Oe(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=t.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,M=m[T].ptIdx*2;D.x=w[M],D.y=w[M+1],D.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Xe);const R$=k$;function Yf(r,e){return{seriesType:r,plan:ll(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=G(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");za(n,s[0])&&(s[0]=u),za(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&ha(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var x=void 0;if(l===1){var b=f.get(c,_);x=a.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),x=a.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&d.setLayout("points",g)}}}}}}var O$={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},N$=function(r){return Math.round(r.length/2)};function lE(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;$(i)?d=O$[i]:Q(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,d,N$))}}}}}function V$(r){r.registerChartView(R$),r.registerSeriesModel(p$),r.registerLayout(Yf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lE("line"))}var uE=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(t)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(tt);tt.registerClass(uE);const Kv=uE;var B$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ca(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Mi(Kv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Kv);const z$=B$;var F$=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),G$=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new F$},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(t.moveTo(p*o+a,g*o+i),t.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!h)):t.moveTo(p*s+a,g*s+i),t.arc(a,i,s,f,c,!h),t.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(a,i,o,c,f,h)},e}(De);const Qv=G$;function H$(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return gh(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,x=f+h*_(p),b=c+h*S(p),w="left",T="top";switch(s){case"startArc":x=f+(v-l)*_(y),b=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":x=f+(v+l)*_(y),b=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Jv(p,l+m,!1),b=c+d*S(p)+ed(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Jv(p,-l+m,!1),b=c+d*S(p)+ed(p,-l+m,!1),w="left",T="middle";break;case"middle":x=f+d*_(y),b=c+d*S(y),w="center",T="middle";break;case"endArc":x=f+(h+l)*_(y),b=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":x=f+(h-l)*_(y),b=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":x=f+d*_(g)+Jv(g,l+m,!0),b=c+d*S(g)+ed(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Jv(g,-l+m,!0),b=c+d*S(g)+ed(g,-l+m,!0),w="right",T="middle";break;default:return gh(n,a,i)}return n=n||{},n.x=x,n.y=b,n.align=w,n.verticalAlign=T,n}}function W$(r,e,t,n){if(Re(n)){r.setTextConfig({rotation:n});return}else if(F(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Jv(r,e,t){return e*Math.sin(r)*(t?-1:1)}function ed(r,e,t){return e*Math.cos(r)*(t?1:-1)}var $0=Math.max,U0=Math.min;function Y$(r,e){var t=r.getArea&&r.getArea();if(Jo(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var $$=function(r){N(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i)):process.env.NODE_ENV!=="production"&&Jt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){Ai(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=U$(t,u);v&&this._enableRealtimeSort(v,s,a);var d=t.get("clip",!0)||v,p=Y$(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(A){var E=td[u.type](s,A),I=J$(u,c,E);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&I.setShape("r",_),S[A]=I,I}s.diff(l).add(function(A){var E=s.getItemModel(A),I=td[u.type](s,A,E);if(y&&T(A),!(!s.hasValue(A)||!dE[u.type](I))){var P=!1;d&&(P=fE[u.type](p,I));var L=cE[u.type](t,s,A,I,c,h,f.model,!1,g);v&&(L.forceLabelAnimation=!0),gE(L,s,A,E,I,t,c,u.type==="polar"),b?L.attr({shape:I}):v?hE(v,h,L,I,A,c,!1,!1):lt(L,{shape:I},t,A),s.setItemGraphicEl(A,L),o.add(L),L.ignore=P}}).update(function(A,E){var I=s.getItemModel(A),P=td[u.type](s,A,I);if(y){var L=void 0;x.length===0?L=T(E):(L=x[E],L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),S[A]=L);var k=td[u.type](s,A),V=SE(c,k,u);Oe(L,{shape:V},h,A)}var O=l.getItemGraphicEl(E);if(!s.hasValue(A)||!dE[u.type](P)){o.remove(O);return}var B=!1;if(d&&(B=fE[u.type](p,P),B&&o.remove(O)),O?Nn(O):O=cE[u.type](t,s,A,P,c,h,f.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var H=O.getTextContent();if(H){var W=Qs(H);W.prevValue!=null&&(W.prevValue=W.value)}}else gE(O,s,A,I,P,t,c,u.type==="polar");b?O.attr({shape:P}):v?hE(v,h,O,P,A,c,!0,w):Oe(O,{shape:P},t,A,null),s.setItemGraphicEl(A,O),O.ignore=B,o.add(O)}).remove(function(A){var E=l.getItemGraphicEl(A);E&&rf(E,t,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new fe);D.removeAll();for(var M=0;M<S.length;++M)D.add(S[M]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),mE(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),mE(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&qv(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){rf(i,t,ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Xe),fE={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=$0(e.x,r.x),s=U0(e.x+e.width,a),l=$0(e.y,r.y),u=U0(e.y+e.height,i),f=s<o,c=u<l;return e.x=f&&o>a?s:o,e.y=c&&l>i?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=U0(e.r,r.r),i=$0(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},cE={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new Le({shape:z({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Qv:_r,f=new u({shape:n,z2:1});f.name="item";var c=pE(a);if(f.calculateTextPosition=H$(c,{isRoundCap:u===Qv}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?0:n.startAngle,d[v]=n[v],(s?Oe:lt)(f,{shape:d},i)}return f}};function U$(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&Jt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Jt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function hE(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Oe:lt)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Oe:lt)(t,{shape:u},f,a)}function vE(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var Z$=["x","y","width","height"],j$=["cx","cy","r","startAngle","endAngle"],dE={cartesian2d:function(r){return!vE(r,Z$)},polar:function(r){return!vE(r,j$)}},td={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),a=t?q$(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function X$(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function pE(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function gE(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=n.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",c=Yt(n);tr(r,c,{labelFetcher:i,labelDataIndex:t,defaultText:Sl(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var h=r.getTextContent();if(s&&h){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,W$(r,v==="outside"?f:v,pE(o),n.get(["label","rotate"]))}BD(h,c,i.getRawValue(t),function(p){return Z2(e,p)});var d=n.getModel(["emphasis"]);yt(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),jt(r,n),X$(a)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function q$(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var K$=function(){function r(){}return r}(),yE=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new K$},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(De);function mE(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new yE({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var c=new yE({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),ve(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",_E),c.on("mousemove",_E)),t&&t.push(c)}var _E=dv(function(r){var e=this,t=Q$(e,r.offsetX,r.offsetY);ve(e).dataIndex=t>=0?t:null},30,!1);function Q$(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function SE(r,e,t){if(Jo(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function J$(r,e,t){var n=r.type==="polar"?_r:Le;return new n({shape:SE(e,t,r),silent:!0,z2:0})}const e9=$$;function t9(r){r.registerChartView(e9),r.registerSeriesModel(z$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(zM,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FM("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lE("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var rd=Math.PI*2,bE=Math.PI/180;function xE(r,e){return Mt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wE(r,e){var t=xE(r,e),n=r.get("center"),a=r.get("radius");F(a)||(a=[0,a]),F(n)||(n=[n,n]);var i=Y(t.width,e.getWidth()),o=Y(t.height,e.getHeight()),s=Math.min(i,o),l=Y(a[0],s/2),u=Y(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else f=Y(n[0],i)+t.x,c=Y(n[1],o)+t.y;return{cx:f,cy:c,r0:l,r:u}}function r9(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=xE(n,t),s=wE(n,t),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*bE,v=n.get("minAngle")*bE,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),g=Math.PI/(p||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var x=rd,b=0,w=h,T=y?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(M,A){var E;if(isNaN(M)){a.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:c,r:m?NaN:f});return}m!=="area"?E=p===0&&_?g:M*g:E=rd/d,E<v?(E=v,x-=v):b+=M;var I=w+T*E;a.setItemLayout(A,{angle:E,startAngle:w,endAngle:I,clockwise:y,cx:l,cy:u,r0:c,r:m?He(M,S,[c,f]):f}),w=I}),x<rd&&d)if(x<=.001){var D=rd/d;a.each(i,function(M,A){if(!isNaN(M)){var E=a.getItemLayout(A);E.angle=D,E.startAngle=h+T*A*D,E.endAngle=h+T*(A+1)*D}})}else g=x/b,w=h,a.each(i,function(M,A){if(!isNaN(M)){var E=a.getItemLayout(A),I=E.angle===v?v:M*g;E.startAngle=w,E.endAngle=w+T*I,w+=T*I}})})}function $f(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var n9=Math.PI/180;function TE(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),x=n+_.len,b=x*x,w=Math.sqrt((1-Math.abs(S*S/y))*b),T=e+(w+_.len2)*a,D=T-_.label.x,M=_.targetTextWidth-D*a;DE(_,M,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?y:g,x=Math.abs(_.label.y-t);if(x>=S.maxY){var b=_.label.x-e-_.len2*a,w=n+_.len,T=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}m2(r,l,l+o)&&c(r)}function a9(r,e,t,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Z0(r[h])||(v.x<e?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!Z0(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+a-v.x-d.bleedMargin,d.targetTextWidth=g,DE(d,g)}}TE(u,e,t,n,1,a,i,o,s,c),TE(l,e,t,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!Z0(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?v.x<e?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=v.y}}}function DE(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||t){var c=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,d=e<f?v:t?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-c)/2}}}function Z0(r){return r.position==="center"}function i9(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*n9,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),T=w.shape,D=w.getTextContent(),M=w.getTextGuideLine(),A=e.getItemModel(b),E=A.getModel("label"),I=E.get("position")||A.get(["emphasis","label","position"]),P=E.get("distanceToLabelLine"),L=E.get("alignTo"),k=Y(E.get("edgeDistance"),u),V=E.get("bleedMargin"),O=A.getModel("labelLine"),B=O.get("length");B=Y(B,u);var H=O.get("length2");if(H=Y(H,u),Math.abs(T.endAngle-T.startAngle)<o){C(D.states,v),C(M.states,v),D.ignore=M.ignore=!0;return}if(d(D)){var W=(T.startAngle+T.endAngle)/2,q=Math.cos(W),ee=Math.sin(W),ue,Ae,Ce,pe;n=T.cx,a=T.cy;var J=I==="inside"||I==="inner";if(I==="center")ue=T.cx,Ae=T.cy,pe="center";else{var Se=(J?(T.r+T.r0)/2*q:T.r*q)+n,he=(J?(T.r+T.r0)/2*ee:T.r*ee)+a;if(ue=Se+q*3,Ae=he+ee*3,!J){var K=Se+q*(B+l-T.r),ge=he+ee*(B+l-T.r),nt=K+(q<0?-1:1)*H,Pe=ge;L==="edge"?ue=q<0?f+k:f+u-k:ue=nt+(q<0?-P:P),Ae=Pe,Ce=[[Se,he],[K,ge],[nt,Pe]]}pe=J?"center":L==="edge"?q>0?"right":"left":q>0?"left":"right"}var st=Math.PI,ft=0,Ft=E.get("rotate");if(Re(Ft))ft=Ft*(st/180);else if(I==="center")ft=0;else if(Ft==="radial"||Ft===!0){var Rr=q<0?-W+st:-W;ft=Rr}else if(Ft==="tangential"&&I!=="outside"&&I!=="outer"){var hr=Math.atan2(q,ee);hr<0&&(hr=st*2+hr);var Ta=ee>0;Ta&&(hr=st+hr),ft=hr-st}if(i=!!ft,D.x=ue,D.y=Ae,D.rotation=ft,D.setStyle({verticalAlign:"middle"}),J){D.setStyle({align:pe});var uu=D.states.select;uu&&(uu.x+=D.x,uu.y+=D.y)}else{var Cn=D.getBoundingRect().clone();Cn.applyTransform(D.getComputedTransform());var Qp=(D.style.margin||0)+2.1;Cn.y-=Qp/2,Cn.height+=Qp,t.push({label:D,labelLine:M,position:I,len:B,len2:H,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new be(q,ee),linePoints:Ce,textAlign:pe,labelDistance:P,labelAlignTo:L,edgeDistance:k,bleedMargin:V,rect:Cn,unconstrainedWidth:Cn.width,labelStyleWidth:D.style.width})}w.setTextConfig({inside:J})}}),!i&&r.get("avoidLabelOverlap")&&a9(t,n,a,l,u,h,f,c);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(C(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(C(m.states,v),m.ignore=!0):(d2(x,g.minTurnAngle),yY(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new be(x[0][0],x[0][1])})}}}function bl(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(n,function(i){return Ln(i,a)})}}var o9=function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new ke;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),c=z(bl(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(lt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,lt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),lt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Oe(o,{shape:{endAngle:f.endAngle}},s,n))}else Nn(o),Oe(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),jt(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=z({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},bl(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:p,y:g,shape:bl(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:bl(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&z(m.ensureState("select"),{x:p,y:g}),z(_.ensureState("select"),{x:p,y:g}),yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;tr(i,Yt(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new br,this.setTextGuideLine(v)),A0(this,M0(o),{stroke:u,opacity:Kr(s.get(["lineStyle","opacity"]),f,1)})}},e}(_r),s9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=new _r({shape:wE(t,a)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new o9(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);rf(d,t,v)}).execute(),i9(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(Xe);const l9=s9;function xl(r,e,t){e=F(e)&&{coordDimensions:e}||z({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=gl(n,e).dimensions,i=new ir(a,r);return i.initData(n,t),i}var u9=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const Uf=u9;var f9=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=xl(this,{coordDimensions:["value"],encodeDefaulter:de(dm,this)}),n=[];return t.each(t.mapDimension("value"),function(a){n.push(a)}),this.seats=zw(n,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.call(this,t);return n.percent=this.seats[t],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){ho(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(tt);const c9=f9;function h9(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function v9(r){r.registerChartView(l9),r.registerSeriesModel(c9),MA("pie",r.registerAction),r.registerLayout(de(r9,"pie")),r.registerProcessor($f("pie")),r.registerProcessor(h9("pie"))}var d9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(tt);const p9=d9;var CE=4,g9=function(){function r(){}return r}(),y9=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new g9},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<CE,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(t>=c&&n>=h&&t<=c+s&&n<=h+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],d=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}t=this._rect=new xe(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e}(De),m9=function(){function r(){this.group=new fe}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new y9({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=wt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<CE;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ve(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const _9=m9;var S9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Yf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new _9:new Wf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Xe);const b9=S9;var x9=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Ie);const w9=x9;var j0=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",At).models[0]},e.type="cartesian2dAxis",e}(Ie);_t(j0,ml);var AE={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},T9=ye({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},AE),X0=ye({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}}},AE),D9=ye({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},X0),C9=ae({logBase:10},X0);const ME={category:T9,value:X0,time:D9,log:C9};var A9={value:1,category:1,time:1,log:1};function wl(r,e,t,n){C(A9,function(a,i){var o=ye(ye({},ME[i],!0),n,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=vf(this),v=h?rl(f):{},d=c.getTheme();ye(f,d.get(i+"Axis")),ye(f,this.getDefaultOption()),f.type=EE(f),h&&Ei(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=d0.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",EE)}function EE(r){return r.type||(r.data?"category":"value")}var M9=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ye(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const E9=M9;var q0=["x","y"];function IE(r){return r.type==="interval"||r.type==="time"}var I9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=q0,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!IE(t)||!IE(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=no([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new xe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Gt(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var a=[];if(this._invTransform)return Gt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(n[0],n[1]),o=Math.max(t[0],t[1])-a,s=Math.max(n[0],n[1])-i;return new xe(a,i,o,s)},e}(E9),P9=function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(dn);const L9=P9;function K0(r,e,t){t=t||{};var n=r.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),St(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function PE(r){return r.get("coordinateSystem")==="cartesian2d"}function LE(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,At).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+Kr(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}var Q0=Math.log;function kE(r,e,t){var n=Oi.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,!0),o=a.length-1,s=n.getInterval.call(t),l=XM(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Q0(r.base);u=[Q0(u[0])/h,Q0(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=g0(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=g0(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=g0(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=gt(g-m),p<0&&u[0]>=0?(p=0,g=gt(m)):g>0&&u[1]<=0&&(g=0,p=-gt(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(r);x[1]&&(!lW(d)||yh(x[1].value)>yh(d))&&Jt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var k9=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=q0,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Me(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;p0(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):($o(p,d),p0(p)&&(s=v))}f.length&&(s||(s=f.pop(),$o(s.scale,s.model)),C(f,function(g){kE(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};C(n.x,function(o){RE(n,"y",o,i)}),C(n.y,function(o){RE(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Mt(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=kW(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),R9(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}re(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",At).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",At).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,we(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(f,c){C(s.y,function(h,v){var d="x"+c+"y"+v,p=new I9(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(J0(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new L9(f,Rf(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(e,t){C(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(PE(a)){var i=LE(a),o=i.xAxisModel,s=i.yAxisModel;if(!J0(o,t)||!J0(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){C(Hv(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return C(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);we(t,i)<0&&t.push(i),we(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(PE(a)){var i=LE(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Kr(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=q0,r}();function J0(r,e){return r.getCoordSysModel()===e}function RE(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)OE(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&OE(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function OE(r){return r&&r.type!=="category"&&r.type!=="time"&&LW(r)}function R9(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}const O9=k9;var zi=Math.PI,es=function(){function r(e,t){this.group=new fe,this.opt=t,this.axisModel=e,ae(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new fe({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!NE[e]},r.prototype.add=function(e){NE[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var a=iy(t-e),i,o;return zu(a)?(o=n>0?"top":"bottom",i="center"):zu(a-zi)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<zi?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),NE={axisLine:function(r,e,t,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Gt(s,s,o),Gt(l,l,o));var f=z({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Nt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Xs(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);$(h)&&(h=[h,h]),($(v)||Re(v))&&(v=[v,v]);var d=cl(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];C([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=wt(h[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(r.rotation),y:x[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var a=B9(t,n,e,r),i=F9(t,n,e,r);if(V9(e,i,a),z9(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=g2(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_2(o)}},axisName:function(r,e,t,n){var a=St(r.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,BE(i)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*zi/180);var d;BE(i)?h=es.innerTextLayout(r.rotation,v??r.rotation,o):(h=N9(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=St(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ke({x:c[0],y:c[1],rotation:h.rotation,silent:es.isLabelSilent(e),style:Je(s,{text:a,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ks({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=es.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,ve(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function N9(r,e,t,n){var a=iy(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return zu(a-zi/2)?(o=l?"bottom":"top",i="center"):zu(a-zi*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<zi*1.5&&a>zi/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function V9(r,e,t){if(!qM(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],c=t[t.length-1],h=t[t.length-2];n===!1?(pn(i),pn(u)):VE(i,o)&&(n?(pn(o),pn(f)):(pn(i),pn(u))),a===!1?(pn(s),pn(c)):VE(l,s)&&(a?(pn(l),pn(h)):(pn(s),pn(c)))}}function pn(r){r&&(r.ignore=!0)}function VE(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var a=bu([]);return hi(a,a,-r.rotation),t.applyTransform(Jn([],a,r.getLocalTransform())),n.applyTransform(Jn([],a,e.getLocalTransform())),t.intersect(n)}}function BE(r){return r==="middle"||r==="center"}function zE(r,e,t,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Gt(o,o,e),Gt(s,s,e));var f=new Nt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Xs(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function B9(r,e,t,n){var a=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=zE(u,e.transform,l,ae(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function z9(r,e,t,n){var a=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=ae(s.getLineStyle(),ae(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=zE(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function F9(r,e,t,n){var a=t.axis,i=St(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(St(n.labelRotate,o.get("rotate"))||0)*zi/180,f=es.innerTextLayout(n.rotation,u,n.labelDirection),c=t.getCategories&&t.getCategories(!0),h=[],v=es.isLabelSilent(t),d=t.get("triggerEvent");return C(l,function(p,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(c&&c[y]){var x=c[y];re(x)&&x.textStyle&&(S=new je(x.textStyle,o,t.ecModel))}var b=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=a.dataToCoord(y),T=new ke({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Je(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:Q(b)?b(a.type==="category"?_:a.type==="value"?y+"":y,g):b})});if(T.anid="label_"+y,d){var D=es.makeAxisEventDataBase(t);D.targetType="axisLabel",D.value=_,D.tickIndex=g,a.type==="category"&&(D.dataIndex=y),ve(T).eventData=D}e.add(T),T.updateTransform(),h.push(T),r.add(T),T.decomposeTransform()}),h}}const Ga=es;function G9(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return H9(t,r,e),t.seriesInvolved&&Y9(t,r),t}function H9(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(C(s.getAxes(),de(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&C(d.baseAxes,de(p,v?"cross":!0,h)),v&&C(d.otherAxes,de(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!r_(_))){y==null&&(y=_.get("triggerTooltip")),_=g?W9(m,c,a,e,g,y):_;var x=_.get("snap"),b=Zf(m.model),w=y||x||m.type==="category",T=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:w,snap:x,useHandle:r_(_),seriesModels:[],linkGroup:null};u[b]=T,r.seriesInvolved=r.seriesInvolved||w;var D=$9(i,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[b]=T,M.mapper=i[D].mapper,T.linkGroup=M}}}})}function W9(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(h){l[h]=se(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ae(u,c.textStyle)}}return r.model.getModel("axisPointer",new je(l,t,n))}function Y9(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[Zf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function $9(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(e_(i[n+"AxisId"],t.id)||e_(i[n+"AxisIndex"],t.componentIndex)||e_(i[n+"AxisName"],t.name))return a}}function e_(r,e){return r==="all"||F(r)&&we(r,e)>=0||r===e}function U9(r){var e=t_(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=r_(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function t_(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zf(r)]}function Z9(r){var e=t_(r);return e&&e.axisPointerModel}function r_(r){return!!r.get(["handle","show"])}function Zf(r){return r.type+"||"+r.id}var n_={},j9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&U9(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=Z9(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&n_[t])throw new Error("axisPointer "+t+" exists");n_[t]=n},e.getAxisPointerClass=function(t){return t&&n_[t]},e.type="axis",e}(ut);const ts=j9;var a_=Be();function FE(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,c=a_(r).splitAreaColors,h=te(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;a.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new Le({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:ae({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}a_(r).splitAreaColors=h}}}function GE(r){a_(r).splitAreaColors=null}var X9=["axisLine","axisTickLabel","axisName"],q9=["splitArea","splitLine","minorSplitLine"],HE=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=K0(s,t),u=new Ga(t,z({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(p0(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));C(X9,u.add,u),this._axisGroup.add(u.getGroup()),C(q9,function(c){t.get([c,"show"])&&K9[c](this,this._axisGroup,t,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||af(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){GE(this)},e.type="cartesianAxis",e}(ts),K9={splitLine:function(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=F(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<c.length;p++){var g=a.toGlobalCoord(c[p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=c[p].tickValue,_=new Nt({anid:m!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:ae({stroke:s[y]},d),silent:!0});Xs(_.shape,d.lineWidth),e.add(_)}}},minorSplitLine:function(r,e,t,n){var a=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=a.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new Nt({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Xs(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,n){FE(r,e,t,n)}},WE=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(HE),Q9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=WE.type,t}return e.type="yAxis",e}(HE),J9=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Le({shape:t.coordinateSystem.getRect(),style:ae({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ut),YE={offset:0};function $E(r){r.registerComponentView(J9),r.registerComponentModel(w9),r.registerCoordinateSystem("cartesian2d",O9),wl(r,"x",j0,YE),wl(r,"y",j0,YE),r.registerComponentView(WE),r.registerComponentView(Q9),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function e8(r){Te($E),r.registerSeriesModel(p9),r.registerChartView(b9),r.registerLayout(Yf("scatter"))}function t8(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();C(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=UE(f)?f:ZE(a)})}),t.each(function(o){var s=Lx(n[o],function(l){return UE(l)})||ZE(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function UE(r){return!isNaN(r[0])&&!isNaN(r[1])}function ZE(r){return[r.cx,r.cy]}function r8(r){var e=r.polar;if(e){F(e)||(e=[e]);var t=[];C(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],F(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}C(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var n8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Df(h.getItemVisual(v,"symbolSize")),g=wt(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),sf[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,g)):_.setPosition(v[m]),d.add(_))}}function c(h){return G(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Sr,p=new br,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),lt(d,g,t,h),lt(p,g,t,h);var y=new fe,m=new fe;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),Nn(g),Nn(p),Oe(p,m,t),Oe(g,m,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ae(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),jt(p,d,"lineStyle"),jt(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,C(["emphasis","select","blur"],function(T){var D=d.getModel([T,"areaStyle"]),M=D.isEmpty()&&D.parentModel.isEmpty();g.ensureState(T).ignore=M&&x}),g.useStyle(ae(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Wt){var D=T.style;T.useStyle(z({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var M=T.ensureState("emphasis");M.style=se(w);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(A==null||isNaN(A))&&(A=""),tr(T,Yt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:_,defaultOpacity:m.opacity})}),yt(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Xe);const a8=n8;var i8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(j(this.getData,this),j(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return xl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=aA(this,t);return Vt("section",{header:u,sortBlocks:!0,blocks:G(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return Vt("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(G(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(tt);const o8=i8;var jf=ME.value;function nd(r,e){return ae({show:e},r)}var s8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ae({color:d.color},l));var g=ye(se(d),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if($(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else Q(f)&&(g.name=f(g.name,g));var m=new je(g,null,this.ecModel);return _t(m,ml.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ye({lineStyle:{color:"#bbb"}},jf.axisLine),axisLabel:nd(jf.axisLabel,!1),axisTick:nd(jf.axisTick,!1),splitLine:nd(jf.splitLine,!0),splitArea:nd(jf.splitArea,!0),indicator:[]},e}(Ie);const l8=s8;var u8=["axisLine","axisTickLabel","axisName"],f8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes(),i=G(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Ga(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(i,function(o){C(u8,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=F(h)?h:[h],p=F(v)?v:[v],g=[],y=[];function m(L,k,V){var O=V%k.length;return L[O]=L[O]||[],O}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new Rn({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new ef({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,D=G(a,function(L,k){var V=L.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),G(V,function(O){return n.coordToPoint(O.coord,k)})}),M=[],b=0;b<=T;b++){for(var A=[],E=0;E<a.length;E++)A.push(D[E][b]);if(A[0]?A.push(A[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+b),f){var w=m(g,d,b);g[w].push(new br({shape:{points:A}}))}if(c&&M){var w=m(y,p,b-1);y[w].push(new Sr({shape:{points:A.concat(M)}}))}M=A.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();C(y,function(L,k){this.group.add(Fr(L,{style:ae({stroke:"none",fill:p[k%p.length]},P),silent:!0}))},this),C(g,function(L,k){this.group.add(Fr(L,{style:ae({fill:"none",stroke:d[k%d.length]},I),silent:!0}))},this)},e.type="radar",e}(ut);const c8=f8;var h8=function(r){N(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(dn);const v8=h8;var d8=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new v8(o,new Oi);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight(),o=Math.min(a,i)/2;this.cx=Y(n[0],a),this.cy=Y(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");($(s)||Re(s))&&(s=[0,s]),this.r0=Y(s[0],o),this.r=Y(s[1],o),C(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;C(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();C(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new Oi;o.setExtent(0,i),o.setInterval(1),C(n,function(s,l){kE(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();const p8=d8;function g8(r){r.registerCoordinateSystem("radar",p8),r.registerComponentModel(l8),r.registerComponentView(c8),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function y8(r){Te(g8),r.registerChartView(a8),r.registerSeriesModel(o8),r.registerLayout(t8),r.registerProcessor($f("radar")),r.registerPreprocessor(r8)}var jE="\0_ec_interaction_mutex";function m8(r,e,t){var n=i_(r);n[e]=t}function _8(r,e,t){var n=i_(r),a=n[e];a===t&&(n[e]=null)}function XE(r,e){return!!i_(r)[e]}function i_(r){return r[jE]||(r[jE]={})}zn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt);var S8=function(r){N(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=j(n._mousedownHandler,n),i=j(n._mousemoveHandler,n),o=j(n._mouseupHandler,n),s=j(n._mousewheelHandler,n),l=j(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=ae(se(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",a),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",a),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Hx(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!ad("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||XE(this._zr,"globalPan"))){var n=t.offsetX,a=t.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Ma(t.event),qE(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Hx(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=ad("zoomOnMouseWheel",t,this._opt),a=ad("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;o_(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);o_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!XE(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;o_(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Jr);function o_(r,e,t,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ma(n.event),qE(r,e,t,n,a))}function qE(r,e,t,n,a){a.isAvailableBehavior=j(ad,null,t,n),r.trigger(e,a)}function ad(r,e,t){var n=t[r];return!r||n&&(!$(n)||e.event[n+"Key"])}const Xf=S8;function s_(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function l_(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var b8={axisPointer:1,tooltip:1,brush:1};function id(r,e,t){var n=e.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==t&&!b8.hasOwnProperty(n.mainType)&&a&&a.model!==t}function KE(r){if($(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var u_,od={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},QE=Me(od),sd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},JE=Me(sd),x8=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=KE(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new fe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Wr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;D8(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=ld(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=sI(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new fe,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Le({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=u_[s];if(f&&X(u_,s)){l=f.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=eI[s];if(v&&X(eI,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new Uu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),w8(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){u_={g:function(e,t){var n=new fe;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Le;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Rn;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Nt;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new Nh;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=nI(n));var i=new Sr({shape:{points:a||[]},silent:!0});return gn(t,i),Wr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=nI(n));var i=new br({shape:{points:a||[]},silent:!0});return gn(t,i),Wr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Wt;return gn(t,n),Wr(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new fe;return gn(t,s),Wr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new fe;return gn(t,s),Wr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=sD(n);return gn(t,a),Wr(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),eI={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Us(e,t,n,a);return tI(r,i),rI(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new Wy(e,t,n);return tI(r,a),rI(r,a),a}};function tI(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function rI(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};oI(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function gn(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ae(e.__inheritedStyle,r.__inheritedStyle))}function nI(r){for(var e=ld(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function Wr(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(M8(r,e),oI(r,o,s),n||E8(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=aI(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=aI(i,"stroke",o.stroke,t)),C(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),C(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=G(ld(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function w8(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var T8=/^url\(\s*#(.*?)\)/;function aI(r,e,t,n){var a=t&&t.match(T8);if(a){var i=Qr(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function D8(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var C8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ld(r){return r.match(C8)||[]}var A8=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,f_=Math.PI/180;function M8(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(A8,function(c,h,v){return n.push(h,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=ld(o);switch(a=a||Or(),s){case"translate":Mn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":jc(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":hi(a,a,-parseFloat(l[0])*f_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*f_);Jn(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*f_);Jn(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var iI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function oI(r,e,t){var n=r.getAttribute("style");if(n){iI.lastIndex=0;for(var a;(a=iI.exec(n))!=null;){var i=a[1],o=X(od,i)?od[i]:null;o&&(e[o]=a[2]);var s=X(sd,i)?sd[i]:null;s&&(t[s]=a[2])}}}function E8(r,e,t){for(var n=0;n<QE.length;n++){var a=QE[n],i=r.getAttribute(a);i!=null&&(e[od[a]]=i)}for(var n=0;n<JE.length;n++){var a=JE[n],i=r.getAttribute(a);i!=null&&(t[sd[a]]=i)}}function sI(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function I8(r,e){var t=new x8;return t.parse(r,e)}var P8=te(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),L8=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=te(),this._freedGraphics=[],this._mapName=e,this._parsedXML=KE(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=R8(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&I8(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,ie(n!=null)}catch(g){throw new Error(`Invalid svg format
58
+ `+g.message)}var a=new fe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new xe(u,f,c,h)}if(s){var d=sI(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Le({shape:l.plain()}));var p=[];return C(t.named,function(g){P8.get(g.svgNodeTagLower)!=null&&(p.push(g),k8(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function k8(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function R8(r){var e=[],t=te();return C(r,function(n){if(n.namedFrom==null){var a=new $W(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}for(var c_=[126,25],lI="南海诸岛",rs=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],ns=0;ns<rs.length;ns++)for(var Tl=0;Tl<rs[ns].length;Tl++)rs[ns][Tl][0]/=10.5,rs[ns][Tl][1]/=-10.5/.75,rs[ns][Tl][0]+=c_[0],rs[ns][Tl][1]+=c_[1];function O8(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===lI)return;e.push(new r2(lI,G(rs,function(n){return{type:"polygon",exterior:n}}),c_))}}var N8={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function V8(r,e){if(r==="china"){var t=N8[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var B8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function z8(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:B8[0]})}var F8="name",G8=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=te(),this._mapName=e,this._specialAreas=n,this._geoJSON=W8(t)}return r.prototype.load=function(e,t){t=t||F8;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:H8(a)})}var i=te(),o=[];return C(n.regions,function(s){var l=s.name;e&&X(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new xe(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?C0(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
59
+ `+i.message)}return O8(t,a),C(a,function(i){var o=i.name;V8(t,i),z8(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function H8(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function W8(r){return $(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var qf=te();const Ha={registerMap:function(r,e,t){if(e.svg){var n=new L8(r,e.svg);qf.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new G8(r,a,t);qf.set(r,n)}},getGeoResource:function(r){return qf.get(r)},getMapForUser:function(r){var e=qf.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=qf.get(r);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}};var h_=["rect","circle","line","ellipse","polygon","polyline","path"],Y8=te(h_),$8=te(h_.concat(["g"])),U8=te(h_.concat(["g"])),uI=Be();function ud(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function fI(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Z8=function(){function r(e){var t=new fe;this.uid=Js("ec_map_draw"),this._controller=new Xf(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new fe),t.add(this._svgGroup=new fe)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,d=!u.childAt(0)||i;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Oe(f,v,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=te(),n=te(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:c(v)}}}a.removeAll(),C(e.geo.regions,function(v){var d=v.name,p=t.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=t.set(d,new fe),a.add(p),y=s?s.indexOfName(d):null,m=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,n.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];C(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=gI(T,u)),C(T,function(M){_.push(new Sr(h(M)))})}else{var D=w.points;u&&(D=gI(D,u,!0)),C(D,function(M){S.push(new br(h(M)))})}});var x=f(v.getCenter(),l&&l.project);function b(w,T){if(w.length){var D=new zh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});p.add(D),cI(e,D,y,m),hI(e,D,d,m,o,y,x),T&&(fI(D),C(D.states,fI))}}b(_),b(S,!0)}),t.each(function(v,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;vI(e,v,d,y,o,g),dI(e,v,d,y,o),pI(e,v,d,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=te(),i=!1;C(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(Y8.get(f)!=null&&c instanceof an&&cI(e,c,h,v),c instanceof an&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(U8.get(f)!=null&&hI(e,c,s,v,l,h,null),vI(e,c,s,v,l,h),dI(e,c,s,v,l),$8.get(f)!=null)){var d=pI(e,c,s,v,l);d==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(c)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Co(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Ha.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ha.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,s_(o,u.dx,u.dy),n.dispatchAction(z(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,l_(o,u.scale,u.originX,u.originY),n.dispatchAction(z(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,c){return a.containPoint([f,c])&&!id(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=uI(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function cI(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=ud(a),u=ud(i),f=ud(s),c=ud(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),d=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=vl(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=c,Co(e)}function hI(r,e,t,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var c=l?t:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;tr(e,Yt(n),{labelFetcher:h,labelDataIndex:c,defaultText:t},v);var d=e.getTextContent();if(d&&(uI(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function vI(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):ve(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function dI(r,e,t,n,a){r.data||Ks({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function pI(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return yt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&LF(e,a,t),o}function gI(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}const yI=Z8;var j8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new yI(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new Rn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Hs+1)});if(!c){var v=t.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);tr(h,Yt(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(p,S)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){kh(h,_)}}o.add(h)}}})},e.type="map",e}(Xe);const X8=j8;var q8=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=xl(this,{coordDimensions:["value"],encodeDefaulter:de(dm,this)}),a=te(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=Ha.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return C(u.regions,function(f){var c=f.name;a.get(c)||i.push(c)}),n.appendValues([],i),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return Vt("section",{header:u.join(", "),noHeader:!u.length,blocks:[Vt("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=wt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(tt);const K8=q8;function Q8(r,e){var t={};return C(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function J8(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),C(e,function(t,n){for(var a=Q8(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function e7(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};C(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=a[c]||0,d=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var mI=Gt,t7=function(r){N(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ia,n._rawTransformable=new Ia,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new xe(t,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new xe(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new xe(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[Y(t[0],n.getWidth()),Y(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Gt([],i,t),a=Gt([],a,t),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Zc(this.transform||(this.transform=[]),n.transform||Or()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],no(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new Ia;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?mI(a,t,i):Qt(a,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?mI([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,a){var i=_I(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=_I(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Ia);function _I(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Kf=t7;var r7={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},SI=["lng","lat"],bI=function(r){N(e,r);function e(t,n,a){var i=r.call(this,t)||this;i.dimensions=SI,i.type="geo",i._nameCoordMap=te(),i.map=n;var o=a.projection,s=Ha.load(n,a.nameMap,a.nameProperty),l=Ha.getGeoResource(n),u=i.resourceType=l?l.type:null,f=i.regions=s.regions,c=r7[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Jt("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Jt("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var h;if(o)for(var v=0;v<f.length;v++){var d=f[v].getBoundingRect(o);h=h||d.clone(),h.union(d)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:me(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new xe(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if($(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=xI(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=xI(n);return i===this?i.pointToData(a):null},e}(Kf);_t(bI,Kf);function xI(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",At).models[0]||{}).coordinateSystem:null}const wI=bI;function TI(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(b,w,T,D){for(var M=T-b,A=D-w,E=0;E<=100;E++){var I=E/100,P=i.project([b+M*I,w+A*I]);Ca(n,n,P),Aa(a,a,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=e.getWidth(),p=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[Y(h[0],d),Y(h[1],p)],_=Y(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=Mt(x,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function n7(r,e){C(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var a7=function(){function r(){this.dimensions=SI}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new wI(l+s,l,z({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=TI,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),C(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new wI(s,s,z({nameMap:Hc(l)},a(o[0])));u.zoomLimit=St.apply(null,G(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=TI,u.resize(o[0],t),C(o,function(f){f.coordinateSystem=u,n7(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=te(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ha.load(t,n,a);return C(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),i7=new a7;const DI=i7;var o7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Ha.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),ho(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=DI.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=qr(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new je(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},te()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new je(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(Q(i))return o.status=n,i(o);if($(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Ie);const s7=o7;function CI(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function v_(r,e,t,n){var a=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(CI(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),c=(e.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(CI(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var l7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new yI(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Fo(t.target,function(a){return(n=ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ve(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(ut);const u7=l7;function f7(r,e,t){Ha.registerMap(r,e,t)}function AI(r){r.registerCoordinateSystem("geo",DI),r.registerComponentModel(s7),r.registerComponentView(u7),r.registerImpl("registerMap",f7),r.registerImpl("getMap",function(t){return Ha.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;C(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];C(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=v_(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&C(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function c7(r){Te(AI),r.registerChartView(X8),r.registerSeriesModel(K8),r.registerLayout(e7),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,J8),MA("map",r.registerAction)}function h7(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function v7(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){g7(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=y7(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function d7(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function MI(r){return arguments.length?r:S7}function Qf(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function p7(r,e){return Mt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function g7(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function y7(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=d_(s),i=p_(i),s&&i;){a=d_(a),o=p_(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(_7(m7(s,r,t),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!d_(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!p_(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function d_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function p_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function m7(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function _7(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function S7(r,e){return r.parentNode===e.parentNode?1:2}var b7=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),x7=function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new b7},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=Y(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];t.moveTo(p[0],p[1]),v[f]=p[f],t.lineTo(v[0],v[1])}},e}(De),w7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new fe,t}return e.prototype.init=function(t,n){this._controller=new Xf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,n,a);var u=this._data;i.diff(u).add(function(f){EI(i,f)&&II(i,f,null,s,t)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!EI(i,f)){h&&kI(u,c,h,s,t);return}II(i,f,h,s,t)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&kI(u,f,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Ah(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Kf;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),n),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!id(u,a,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){s_(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Xe);function EI(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function II(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(t=new Hf(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Oe(t,{x:p.x,y:p.y},a);var g=t.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),D=T.get("rotate"),M=D*(Math.PI/180),A=g.getTextContent();A&&(g.setTextConfig({position:T.get("position")||w,rotation:D==null?-S:M,origin:"center"}),A.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),I=E==="relative"?pu(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;I&&(ve(t).focus=I),T7(a,o,f,t,d,v,p,n),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var L=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);L&&L.hoverState===Zu||kh(t.__edge,P)}})}function T7(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=n.__edge=new tf({shape:g_(f,c,h,a,a)})),Oe(p,{shape:g_(f,c,h,i,o)},r));else if(u==="polyline"){if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new x7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Oe(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(ae({strokeNoScale:!0,fill:null},d)),jt(p,l,"lineStyle"),Co(p),s.add(p))}function PI(r,e,t,n,a){var i=e.tree.root,o=LI(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?Di(h,{shape:g_(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&Di(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}))}}function LI(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function kI(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=LI(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Di(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){PI(u,r,n,a,l)}),PI(i,r,n,a,l)}function g_(r,e,t,n,a){var i,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=Qf(u,c),d=Qf(u,c+(h-c)*t),p=Qf(f,h+(c-h)*t),g=Qf(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=c,s=f+(u-f)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=c+(h-c)*t,s=f,l=h+(c-h)*t);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const D7=w7;var yn=Be();function RI(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,OI(e,t,r),C(t,function(n){C(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,de(C7,r))})}),e.wrapMethod("cloneShallow",de(M7,r)),C(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,de(A7,r))}),ie(t[e.dataType]===e)}function C7(r,e){if(P7(this)){var t=z({},yn(this).datas);t[this.dataType]=e,OI(e,t,r)}else y_(e,this.dataType,yn(this).mainData,r);return e}function A7(r,e){return r.struct&&r.struct.update(),e}function M7(r,e){return C(yn(e).datas,function(t,n){t!==e&&y_(t.cloneShallow(),n,e,r)}),e}function E7(r){var e=yn(this).mainData;return r==null||e==null?e:yn(e).datas[r]}function I7(){var r=yn(this).mainData;return r==null?[{data:r}]:G(Me(yn(r).datas),function(e){return{type:e,data:yn(r).datas[e]}})}function P7(r){return yn(r).mainData===r}function OI(r,e,t){yn(r).datas={},C(e,function(n,a){y_(n,a,r,t)})}function y_(r,e,t,n){yn(t).datas[e]=r,yn(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=E7,r.getLinkedDataAll=I7}var L7=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Q(e)&&(n=t,t=e,e=null),e=e||{},$(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),k7=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,F(h)?h.length:1),i.push(f);var v=new L7(Lt(f.name,""),a);c?R7(v,c):a.root=v,a._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}a.root.updateDepthAndHeight(0);var l=gl(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ir(l,t);return u.initData(i),n&&n(u),RI({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function R7(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}const m_=k7;function Jf(r,e,t){if(r&&we(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if($(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function NI(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function __(r,e){var t=NI(r);return we(t,e)>=0}function fd(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var O7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new je(a,this,this.ecModel),o=m_.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Vt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=fd(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(tt);const N7=O7;function V7(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function ec(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function B7(r,e){r.eachSeriesByType("tree",function(t){z7(t,e)})}function z7(r,e){var t=p7(r,e);r.layoutInfo=t;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=MI(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=MI());var s=r.getData().tree.root,l=s.children[0];if(l){h7(s),V7(l,v7,o),s.hierNode.modifier=-l.hierNode.prelim,ec(l,d7);var u=l,f=l,c=l;ec(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(n==="radial")d=a/(f.getLayout().x+h+v),p=i/(c.depth-1||1),ec(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=Qf(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+h+v),d=a/(c.depth-1||1),ec(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:a-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=a/(f.getLayout().x+h+v),p=i/(c.depth-1||1),ec(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function F7(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");z(s,o)})})}function G7(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=v_(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function H7(r){r.registerChartView(D7),r.registerSeriesModel(N7),r.registerLayout(B7),r.registerVisual(F7),G7(r)}var VI=["treemapZoomToNode","treemapRender","treemapMove"];function W7(r){for(var e=0;e<VI.length;e++)r.registerAction({type:VI[e],update:"updateView"},bt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Jf(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=__(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function BI(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=mm(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var Y7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};zI(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new je({itemStyle:o},this,n);i=t.levels=$7(i,n);var l=G(i||[],function(c){return new je(c,s,n)},this),u=m_.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Vt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=fd(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},z(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=te(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){BI(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(tt);function zI(r){var e=0;C(r.children,function(n){zI(n);var a=n.value;F(a)&&(a=a[0]),e+=a});var t=r.value;F(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),F(r.value)?r.value[0]=t:r.value=t}function $7(r,e){var t=Ze(e.get("color")),n=Ze(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;C(r,function(s){var l=new je(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}const U7=Y7;var Z7=8,FI=8,S_=5,j7=function(){function r(e){this.group=new fe,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,a),iv(o,c.pos,c.box)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Lt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Z7*2,t.emptyItemWidth);t.totalWidth+=s+FI,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=z4(t.pos,t.box),h=t.totalWidth,v=t.renderList,d=a.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new Sr({shape:{points:X7(l,0,m,f,p===v.length-1,p===0)},style:ae(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ke({style:Je(i,{text:_})}),textConfig:{position:"inside"},z2:Hs*1e4,onclick:de(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Je(o,{text:_}),S.ensureState("emphasis").style=d,yt(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),q7(S,e,y),l+=m+FI}},r.prototype.remove=function(){this.group.removeAll()},r}();function X7(r,e,t,n,a,i){var o=[[a?r:r-S_,e],[r+t,e],[r+t,e+n],[a?r:r-S_,e+n]];return!i&&o.splice(2,0,[r+t+S_,e+n/2]),!a&&o.push([r,e+n/2]),o}function q7(r,e,t){ve(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&fd(t,e)}}const K7=j7;var Q7=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function J7(){return new Q7}var b_=fe,GI=Le,HI=3,WI="label",YI="upperLabel",eU=Hs*10,tU=Hs*2,rU=Hs*3,as=go([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$I=function(r){var e=as(r);return e.stroke=e.fill=e.lineWidth=null,e},cd=Be(),nU=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=tc(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(we(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Jf(i,s,t),u=i&&i.type,f=t.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new b_,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=tc(),l=tc(),u=this._storage,f=[];function c(g,y,m,_){return aU(n,l,u,a,s,f,g,y,m,_)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:p};function v(g,y,m,_,S){_?(y=g,C(g,function(w,T){!w.isRemoved()&&b(T,T)})):new Ba(y,g,x,x).add(b).update(b).remove(de(b,null)).execute();function x(w){return w.getId()}function b(w,T){var D=w!=null?g[w]:null,M=T!=null?y[T]:null,A=c(D,M,m,S);A&&v(D&&D.viewChildren||[],M&&M.viewChildren||[],A,_,S+1)}}function d(g){var y=tc();return g&&C(g,function(m,_){var S=y[_];C(m,function(x){x&&(S.push(x),cd(x).willDelete=!0)})}),y}function p(){C(h,function(g){C(g,function(y){y.parent&&y.parent.remove(y)})}),C(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Q(o)?0:o)||0,u=(Q(s)?null:s)||"cubicOut",f=J7();C(n.willDeleteEls,function(c,h){C(c,function(v,d){if(!v.invisible){var p=v.parent,g,y=cd(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),C(this._storage,function(c,h){C(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof fe?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=z({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(j(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller;n||(n=this._controller=new Xf(t.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",j(this._onPan,this)),n.on("zoom",j(this._onZoom,this)));var a=new xe(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>HI||Math.abs(t.dy)>HI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new xe(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=Or();Mn(u,u,[-n,-a]),jc(u,u,[t.scale,t.scale]),Mn(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&nv(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new K7(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(__(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=tc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Xe);function tc(){return{nodeGroup:[],background:[],content:[]}}function aU(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),D=h.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,A=ue("nodeGroup",b_);if(!A)return;if(l.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),cd(A).nodeWidth=v,cd(A).nodeHeight=d,f.isAboveViewRoot)return A;var E=ue("background",GI,u,tU);E&&B(A,E,x&&f.upperLabelHeight);var I=h.getModel("emphasis"),P=I.get("focus"),L=I.get("blurScope"),k=I.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Ti(A)&&Ao(A,!1),E&&(Ao(E,!k),c.setItemGraphicEl(o.dataIndex,E),Vy(E,V,L));else{var O=ue("content",GI,u,rU);O&&H(A,O),E.disableMorphing=!0,E&&Ti(E)&&Ao(E,!1),Ao(A,!k),c.setItemGraphicEl(o.dataIndex,A),Vy(A,V,L)}return A;function B(pe,J,Se){var he=ve(J);if(he.dataIndex=o.dataIndex,he.seriesIndex=r.seriesIndex,J.setShape({x:0,y:0,width:v,height:d,r:M}),g)W(J);else{J.invisible=!1;var K=o.getVisual("style"),ge=K.stroke,nt=$I(b);nt.fill=ge;var Pe=as(w);Pe.fill=w.get("borderColor");var st=as(T);st.fill=T.get("borderColor");var ft=as(D);if(ft.fill=D.get("borderColor"),Se){var Ft=v-2*p;q(J,ge,K.opacity,{x:p,y:0,width:Ft,height:S})}else J.removeTextContent();J.setStyle(nt),J.ensureState("emphasis").style=Pe,J.ensureState("blur").style=st,J.ensureState("select").style=ft,Co(J)}pe.add(J)}function H(pe,J){var Se=ve(J);Se.dataIndex=o.dataIndex,Se.seriesIndex=r.seriesIndex;var he=Math.max(v-2*p,0),K=Math.max(d-2*p,0);if(J.culling=!0,J.setShape({x:p,y:p,width:he,height:K,r:M}),g)W(J);else{J.invisible=!1;var ge=o.getVisual("style"),nt=ge.fill,Pe=$I(b);Pe.fill=nt,Pe.decal=ge.decal;var st=as(w),ft=as(T),Ft=as(D);q(J,nt,ge.opacity,null),J.setStyle(Pe),J.ensureState("emphasis").style=st,J.ensureState("blur").style=ft,J.ensureState("select").style=Ft,Co(J)}pe.add(J)}function W(pe){!pe.invisible&&i.push(pe)}function q(pe,J,Se,he){var K=h.getModel(he?YI:WI),ge=Lt(h.get("name"),null),nt=K.getShallow("show");tr(pe,Yt(h,he?YI:WI),{defaultText:nt?ge:null,inheritColor:J,defaultOpacity:Se,labelFetcher:r,labelDataIndex:o.dataIndex});var Pe=pe.getTextContent();if(Pe){var st=Pe.style,ft=Yc(st.padding||0);he&&(pe.setTextConfig({layoutRect:he}),Pe.disableLabelLayout=!0),Pe.beforeUpdate=function(){var Rr=Math.max((he?he.width:pe.shape.width)-ft[1]-ft[3],0),hr=Math.max((he?he.height:pe.shape.height)-ft[0]-ft[2],0);(st.width!==Rr||st.height!==hr)&&Pe.setStyle({width:Rr,height:hr})},st.truncateMinChar=2,st.lineOverflow="truncate",ee(st,he,f);var Ft=Pe.getState("emphasis");ee(Ft?Ft.style:null,he,f)}}function ee(pe,J,Se){var he=pe?pe.text:null;if(!J&&Se.isLeafRoot&&he!=null){var K=r.get("drillDownIcon",!0);pe.text=K?K+" "+he:he}}function ue(pe,J,Se,he){var K=m!=null&&t[pe][m],ge=a[pe];return K?(t[pe][m]=null,Ae(ge,K)):g||(K=new J,K instanceof an&&(K.z2=iU(Se,he)),Ce(ge,K)),e[pe][y]=K}function Ae(pe,J){var Se=pe[y]={};J instanceof b_?(Se.oldX=J.x,Se.oldY=J.y):Se.oldShape=z({},J.shape)}function Ce(pe,J){var Se=pe[y]={},he=o.parentNode,K=J instanceof fe;if(he&&(!n||n.direction==="drillDown")){var ge=0,nt=0,Pe=a.background[he.getRawIndex()];!n&&Pe&&Pe.oldShape&&(ge=Pe.oldShape.width,nt=Pe.oldShape.height),K?(Se.oldX=0,Se.oldY=nt):Se.oldShape={x:ge,y:nt,width:0,height:0}}Se.fadein=!K}}function iU(r,e){return r*eU+e}const oU=nU;var rc=C,sU=re,hd=-1,x_=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=se(e);this.type=n,this.mappingMethod=t,this._normalizeData=fU[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(w_(a),lU(a)):t==="category"?a.categories?uU(a):w_(a,!0):(ie(t!=="linear"||a.dataExtent),w_(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return j(this._normalizeData,this)},r.listVisualTypes=function(){return Me(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){re(e)?C(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=F(e)?[]:re(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&rc(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(F(e))e=e.slice();else if(sU(e)){var t=[];rc(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||$(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(dd(c[1],e,f[1]))return o}else if(f[1]===1/0){if(dd(c[0],f[0],e))return o}else if(dd(c[0],f[0],e)&&dd(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:nc("color"),getColorMapper:function(){var e=this.option;return j(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),ac.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Iu(t,e.parsedVisual,a),i?a:In(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return In(Iu(e,this.option.parsedVisual),"rgba")},category:ac,piecewise:function(e,t){var n=D_.call(this,t);return n==null&&(n=In(Iu(e,this.option.parsedVisual),"rgba")),n},fixed:is}},colorHue:vd(function(e,t){return ks(e,t)}),colorSaturation:vd(function(e,t){return ks(e,null,t)}),colorLightness:vd(function(e,t){return ks(e,null,null,t)}),colorAlpha:vd(function(e,t){return Pu(e,t)}),decal:{applyVisual:nc("decal"),_normalizedToVisual:{linear:null,category:ac,piecewise:null,fixed:null}},opacity:{applyVisual:nc("opacity"),_normalizedToVisual:T_([0,1])},liftZ:{applyVisual:nc("liftZ"),_normalizedToVisual:{linear:is,category:is,piecewise:is,fixed:is}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:UI,category:ac,piecewise:function(e,t){var n=D_.call(this,t);return n==null&&(n=UI.call(this,e)),n},fixed:is}},symbolSize:{applyVisual:nc("symbolSize"),_normalizedToVisual:T_([0,1])}},r}();function lU(r){var e=r.pieceList;r.hasSpecialVisual=!1,C(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function uU(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(rc(e,function(o,s){t[o]=s}),!F(n)){var a=[];re(n)?rc(n,function(o,s){var l=t[s];a[l??hd]=o}):a[hd]=n,n=ZI(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function w_(r,e){var t=r.visual,n=[];re(t)?rc(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),ZI(r,n)}function vd(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:T_([0,1])}}function UI(r){var e=this.option.visual;return e[Math.round(He(r,[0,1],[0,e.length-1],!0))]||{}}function nc(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function ac(r){var e=this.option.visual;return e[this.option.loop&&r!==hd?r%e.length:r]}function is(){return this.option.visual[0]}function T_(r){return{linear:function(e){return He(e,r,this.option.visual,!0)},category:ac,piecewise:function(e,t){var n=D_.call(this,t);return n==null&&(n=He(e,r,this.option.visual,!0)),n},fixed:is}}function D_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=x_.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function ZI(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var n=pr(t);return!n&&process.env.NODE_ENV!=="production"&&Jt("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var fU={linear:function(r){return He(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=x_.findPieceIndex(r,e,!0);if(t!=null)return He(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??hd},fixed:bt};function dd(r,e,t){return r?e<=t:e<t}const qt=x_;var cU="itemStyle",jI=Be();const hU={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||XI(t,{},r.getViewRoot().getAncestors(),r)}};function XI(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(cU),l=vU(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=qI(l),f=dU(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=qI(l),u.fill=h;else{var d=pU(r,a,i,s,l,v);C(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=gU(a,l,p,g,d,n);XI(p,y,t,n)}})}}}function vU(r,e,t){var n=z({},e),a=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function qI(r){var e=C_(r,"color");if(e){var t=C_(r,"colorAlpha"),n=C_(r,"colorSaturation");return n&&(e=ks(e,null,null,n)),t&&(e=Pu(e,t)),e}}function dU(r,e){return e!=null?ks(e,null,null,r):null}function C_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function pU(r,e,t,n,a,i){if(!(!i||!i.length)){var o=A_(e,"color")||a.color!=null&&a.color!=="none"&&(A_(e,"colorAlpha")||A_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new qt(c);return jI(h).drColorMappingBy=f,h}}}function A_(r,e){var t=r.get(e);return F(t)&&t.length?{name:e,range:t}:null}function gU(r,e,t,n,a,i){var o=z({},e);if(a){var s=a.type,l=s==="color"&&jI(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var ic=Math.max,pd=Math.min,KI=St,M_=C,QI=["itemStyle","borderWidth"],yU=["itemStyle","gapWidth"],mU=["upperLabel","show"],_U=["upperLabel","height"];const SU={seriesType:"treemap",reset:function(r,e,t,n){var a=t.getWidth(),i=t.getHeight(),o=r.option,s=Mt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=Y(KI(s.width,l[0]),a),f=Y(KI(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Jf(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=NI(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?CU(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),JI(p,_,!1,0),S=p.getLayout(),M_(g,function(b,w){var T=(g[w+1]||p).getValue();b.setLayout(z({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(AU(s,d,v),!0),r.setLayoutInfo(s),tP(x,new xe(-s.x,-s.y,a,i),g,p,0)}};function JI(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(QI),u=s.get(yU)/2,f=rP(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=ic(a-2*h,0),i=ic(i-h-v,0);var d=a*i,p=bU(r,s,d,e,t,n);if(p.length){var g={x:h,y:v,width:a,height:i},y=pd(a,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=DU(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,eP(_,y,g,u,!1),y=pd(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&eP(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var S=0,x=p.length;S<x;S++)JI(p[S],e,t,n+1)}}}function bU(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Ye(o,function(v){return!v.isRemoved()}),wU(o,s);var u=TU(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=xU(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*t;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function xU(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function wU(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function TU(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],M_(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function DU(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?ic(u*n/l,l/(u*a)):1/0}function eP(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=ic(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=c===h-1||y<p?y:p,_=d[l[i]]=ic(m-2*n,0);d[s[o]]=t[s[o]]+pd(n,g/2),d[s[i]]=u+pd(n,_/2),u+=m,v.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function CU(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var d=i.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(QI),y=Math.max(g,rP(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>ay&&(u=ay),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function AU(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function tP(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new xe(e.x-i.x,e.y-i.y,e.width,e.height);M_(r.viewChildren||[],function(u){tP(u,l,t,n,a+1)})}}function rP(r){return r.get(mU)?r.get(_U):0}function MU(r){r.registerSeriesModel(U7),r.registerChartView(oU),r.registerVisual(hU),r.registerLayout(SU),W7(r)}function EU(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Re(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function IU(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){$(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");z(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function gd(r){return r instanceof Array||(r=[r,r]),r}function PU(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=gd(e.get("edgeSymbol")),i=gd(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=gd(s.getShallow("symbol",!0)),f=gd(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(z(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var E_="-->",yd=function(r){return r.get("autoCurveness")||null},nP=function(r,e){var t=yd(r),n=20,a=[];if(Re(t))n=t;else if(F(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},oc=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(E_)},aP=function(r){var e=r.split(E_);return[e[0],e[2],e[1]].join(E_)},LU=function(r,e){var t=oc(r.node1,r.node2,e);return e.__edgeMap[t]},kU=function(r,e){var t=I_(oc(r.node1,r.node2,e),e),n=I_(oc(r.node2,r.node1,e),e);return t+n},I_=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function RU(r){yd(r)&&(r.__curvenessList=[],r.__edgeMap={},nP(r))}function OU(r,e,t,n){if(yd(t)){var a=oc(r,e,t),i=t.__edgeMap,o=i[aP(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function P_(r,e,t,n){var a=yd(e),i=F(a);if(!a)return null;var o=LU(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=kU(r,e);nP(e,u),r.lineStyle=r.lineStyle||{};var f=oc(r.node1,r.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=aP(f),d=I_(v,e),p=c[s+d+h];return n?i?a&&a[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function iP(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),L_(t,r)}}function L_(r,e){r.eachEdge(function(t,n){var a=Kr(t.getModel().get(["lineStyle","curveness"]),-P_(t,e,n,!0),0),i=Qn(t.node1.getLayout()),o=Qn(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function NU(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];C(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}L_(i.graph,t)}else(!n||n==="none")&&iP(t)})}function sc(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function lc(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var oP=Math.PI,k_=[];function R_(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=a.pointToData(n),v=h[0],d=h[1],p=[v-l,d-u];ro(p,p),_u(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);sP(t,g,l,u)}VU[e](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=Kr(y.getModel().get(["lineStyle","curveness"]),P_(y,r,m),0),S=Qn(y.node1.getLayout()),x=Qn(y.node2.getLayout()),b,w=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,b])})}}}var VU={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,n,a,i,o){var s=0;k_.length=o;var l=sc(r);e.eachNode(function(c){var h=lc(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=oP/2),k_[c.dataIndex]=v,s+=v*2});var u=(2*oP-s)/o/2,f=0;e.eachNode(function(c){var h=u+k_[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function sP(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");z(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function BU(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&R_(e,"symbolSize")})}var Dl=$c;function zU(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=ui(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Qn(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;fi(y,b.p,x.p);var w=mu(y)-S.d,T=b.w/(x.w+b.w);isNaN(T)&&(T=0),ro(y,y),!x.fixed&&Dl(x.p,x.p,y,T*w*v),!b.fixed&&Dl(b.p,b.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var D=n[_];D.fixed||(fi(y,l,D.p),Dl(D.p,D.p,y,u*v))}for(var _=0;_<m;_++)for(var x=n[_],M=_+1;M<m;M++){var b=n[M];fi(y,b.p,x.p);var w=mu(y);w===0&&(Nx(y,Math.random()-.5,Math.random()-.5),w=1);var A=(x.rep+b.rep)/w/w;!x.fixed&&Dl(x.pp,x.pp,y,A),!b.fixed&&Dl(b.pp,b.pp,y,-A)}for(var E=[],_=0;_<m;_++){var D=n[_];D.fixed||(fi(E,D.p,D.pp),Dl(D.p,D.p,E,v),Qt(D.pp,D.p))}v=v*.992;var I=v<.01;p&&p(n,a,I),g&&g(I)}}}function FU(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?iP(e):l==="circular"&&R_(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=F(c)?c:[c,c],d=F(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=He(_,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),b=He(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),T=Kr(x.getModel().get(["lineStyle","curveness"]),-P_(x,e,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=zU(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&Qt(_[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||a.getNodeByIndex(b).setLayout(_[b].p),n[i.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var T=S[b],D=a.getEdgeByIndex(b),M=T.n1.p,A=T.n2.p,E=D.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Qt(E[0],M),Qt(E[1],A),+T.curveness&&(E[2]=[(M[0]+A[0])/2-(M[1]-A[1])*T.curveness,(M[1]+A[1])/2-(A[0]-M[0])*T.curveness]),D.setLayout(E)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function GU(r,e,t){var n=z(r.getBoxLayoutParams(),{aspect:t});return Mt(n,{width:e.getWidth(),height:e.getHeight()})}function HU(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Ah(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=GU(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,d=f.height,p=n.coordinateSystem=new Kf;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,v,d),p.setCenter(n.get("center"),e),p.setZoom(n.get("zoom")),t.push(p)}}),t}var lP=Nt.prototype,O_=tf.prototype,uP=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(uP);function N_(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var WU=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uP},e.prototype.buildPath=function(t,n){N_(n)?lP.buildPath.call(this,t,n):O_.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return N_(this.shape)?lP.pointAt.call(this,t):O_.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=N_(n)?[n.x2-n.x1,n.y2-n.y1]:O_.tangentAt.call(this,t);return ro(a,a)},e}(De);const YU=WU;var V_=["fromSymbol","toSymbol"];function fP(r){return"_"+r+"Type"}function cP(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Df(a),u=cl(o||0,l),f=wt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function $U(r){var e=new YU({name:"line",subPixelOptimize:!0});return B_(e.shape,r),e}function B_(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var UU=function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=$U(o);s.shape.percent=0,lt(s,{shape:{percent:1}},i,n),this.add(s),C(V_,function(l){var u=cP(l,t,n);this.add(u),this[fP(l)]=t.getItemVisual(n,l)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};B_(l.shape,s),Oe(o,l,i,n),C(V_,function(u){var f=t.getItemVisual(n,u),c=fP(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=cP(u,t,n);this.add(h)}this[c]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var d=t.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=Yt(d)}var g=t.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,C(V_,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<mr.length;T++){var D=mr[T],M=o.getState(D);if(M){var A=M.style||{},E=w.ensureState(D),I=E.style||(E.style={});A.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);tr(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?gt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");F(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),yt(this,h,v,c)},e.prototype.highlight=function(){Ra(this)},e.prototype.downplay=function(){Oa(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");B_(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=fi([],c,f);ro(h,h);function v(M,A){var E=M.__specifiedRotation;if(E==null){var I=l.tangentAt(A);M.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",E)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var D=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=m,p="top";break;default:D=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+D,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+D,d="center",i.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+D,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-D;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e}(fe);const z_=UU;var ZU=function(){function r(e){this.group=new fe,this._LineCtor=e||z_}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=hP(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hP(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!jU(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(F_(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Ai(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(F_(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!F_(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function jU(r){return r.animators&&r.animators.length>0}function hP(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Yt(e)}}function vP(r){return isNaN(r[0])||isNaN(r[1])}function F_(r){return r&&!vP(r[0])&&!vP(r[1])}const G_=ZU;var H_=[],W_=[],Y_=[],Cl=Ht,$_=ci,dP=Math.abs;function pP(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){H_[0]=Cl(n[0],a[0],i[0],f),H_[1]=Cl(n[1],a[1],i[1],f);var c=dP($_(H_,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;W_[0]=Cl(n[0],a[0],i[0],s),W_[1]=Cl(n[1],a[1],i[1],s),Y_[0]=Cl(n[0],a[0],i[0],v),Y_[1]=Cl(n[1],a[1],i[1],v);var c=$_(W_,e)-l;if(dP(c)<.01)break;var d=$_(Y_,e)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function U_(r,e){var t=[],n=Au,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Qn(u[0]),Qn(u[1])],u[2]&&u.__original.push(Qn(u[2])));var h=u.__original;if(u[2]!=null){if(Qt(a[0],h[0]),Qt(a[1],h[2]),Qt(a[2],h[1]),f&&f!=="none"){var v=lc(s.node1),d=pP(a,h[0],v*e);n(a[0][0],a[1][0],a[2][0],d,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],d,t),a[0][1]=t[3],a[1][1]=t[4]}if(c&&c!=="none"){var v=lc(s.node2),d=pP(a,h[1],v*e);n(a[0][0],a[1][0],a[2][0],d,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],d,t),a[1][1]=t[1],a[2][1]=t[2]}Qt(u[0],a[0]),Qt(u[1],a[2]),Qt(u[2],a[1])}else{if(Qt(i[0],h[0]),Qt(i[1],h[1]),fi(o,i[1],i[0]),ro(o,o),f&&f!=="none"){var v=lc(s.node1);$c(i[0],i[0],o,v*e)}if(c&&c!=="none"){var v=lc(s.node2);$c(i[1],i[1],o,-v*e)}Qt(u[0],i[0]),Qt(u[1],i[1])}})}function gP(r){return r.type==="view"}var XU=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new Wf,i=new G_,o=this.group;this._controller=new Xf(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(gP(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Oe(u,f,t)}U_(t.getGraph(),sc(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,n,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=t.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,x=_.getGraphicEl(),b=_.getModel();if(x){x.off("drag").off("dragend");var w=b.get("draggable");w&&x.on("drag",function(D){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,d),v.setFixed(S),c.setItemLayout(S,[x.x,x.y]);break;case"circular":c.setItemLayout(S,[x.x,x.y]),_.setLayout({fixed:!0},!0),R_(t,"symbolSize",_,[D.offsetX,D.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(S,[x.x,x.y]),L_(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),x.setDraggable(w&&!!v,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(ve(x).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(ve(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){sP(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!id(u,a,t)}),!gP(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){s_(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){l_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),U_(t.getGraph(),sc(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=sc(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){U_(t.getGraph(),sc(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Xe);const qU=XU;function Al(r){return"_EC_"+r}var KU=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(n[Al(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new os(e,t);return a.hostGraph=this,this.nodes.push(a),n[Al(e)]=a,a},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Al(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(Re(e)&&(e=this.nodes[e]),Re(t)&&(t=this.nodes[t]),e instanceof os||(e=a[Al(e)]),t instanceof os||(t=a[Al(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new yP(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof os&&(e=e.id),t instanceof os&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof os||(t=this._nodesMap[Al(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),os=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r}(),yP=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r}();function mP(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}_t(os,mP("hostGraph","data")),_t(yP,mP("hostGraph","edgeData"));const QU=KU;function _P(r,e,t,n,a){for(var i=new QU(n),o=0;o<r.length;o++)i.addNode(St(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(St(Lt(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=ca(r,t);else{var p=No.get(v),g=p?p.dimensions||[]:[];we(g,"value")<0&&g.concat(["value"]);var y=gl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new ir(y,t),d.initData(r)}var m=new ir(["value"],t);return m.initData(l,s),a&&a(d,m),RI({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var JU=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Uf(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ho(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){RU(this);var s=_P(i,a,this,!0,l);return C(s.edges,function(u){OU(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=je.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Vt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=oA({series:this,dataIndex:t,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(a){return a.value!=null?a:z({value:0},a)}),n=new ir(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(tt);const eZ=JU;var tZ={type:"graphRoam",event:"graphRoam",update:"none"};function rZ(r){r.registerChartView(qU),r.registerSeriesModel(eZ),r.registerProcessor(EU),r.registerVisual(IU),r.registerVisual(PU),r.registerLayout(NU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,BU),r.registerLayout(FU),r.registerCoordinateSystem("graphView",{dimensions:Kf.dimensions,create:HU}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},bt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},bt),r.registerAction(tZ,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=v_(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var nZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),aZ=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new nZ},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e}(De);const iZ=aZ;function oZ(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=Y(t[0],e.getWidth()),s=Y(t[1],e.getHeight()),l=Y(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function md(r,e){var t=r==null?"":r+"";return e&&($(e)?t=e.replace("{value}",t):Q(e)&&(t=e(r))),t}var sZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=oZ(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),v=h?Qv:_r,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];vT(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=0;d&&S<i.length;S++){var x=Math.min(Math.max(i[S][0],0),1);f=u+m*x;var b=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:i[S][1]}),b.setStyle(p.getLineStyle(["color","width"])),s.add(b),_=f}var w=function(T){if(T<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=T&&(D===0?0:i[D-1][0])<T)return i[D][1];return i[D-1][1]};this._renderTicks(t,n,a,w,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,w,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,w,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),b=Y(y.get("length"),d),w=Y(m.get("length"),d),T=s,D=(l-s)/S,M=D/x,A=y.getModel("lineStyle").getLineStyle(),E=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,L,k=0;k<=S;k++){if(P=Math.cos(T),L=Math.sin(T),y.get("show")){var V=I?I+f:f,O=new Nt({shape:{x1:P*(d-V)+h,y1:L*(d-V)+v,x2:P*(d-b-V)+h,y2:L*(d-b-V)+v},style:A,silent:!0});A.stroke==="auto"&&O.setStyle({stroke:i(k/S)}),c.add(O)}if(_.get("show")){var V=_.get("distance")+I,B=md(gt(k/S*(g-p)+p),_.get("formatter")),H=i(k/S),W=P*(d-b-V)+h,q=L*(d-b-V)+v,ee=_.get("rotate"),ue=0;ee==="radial"?(ue=-T+2*Math.PI,ue>Math.PI/2&&(ue+=Math.PI)):ee==="tangential"?ue=-T-Math.PI/2:Re(ee)&&(ue=ee*Math.PI/180),ue===0?c.add(new ke({style:Je(_,{text:B,x:W,y:q,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:H}),silent:!0})):c.add(new ke({style:Je(_,{text:B,x:W,y:q,verticalAlign:"middle",align:"center"},{inheritColor:H}),silent:!0,originX:W,originY:q,rotation:ue}))}if(m.get("show")&&k!==S){var V=m.get("distance");V=V?V+f:f;for(var Ae=0;Ae<=x;Ae++){P=Math.cos(T),L=Math.sin(T);var Ce=new Nt({shape:{x1:P*(d-V)+h,y1:L*(d-V)+v,x2:P*(d-w-V)+h,y2:L*(d-w-V)+v},silent:!0,style:E});E.stroke==="auto"&&Ce.setStyle({stroke:i((k+Ae/x)/S)}),c.add(Ce),T+=M}T-=M}else T+=D}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),b=[S,x],w=[s,l];function T(M,A){var E=m.getItemModel(M),I=E.getModel("pointer"),P=Y(I.get("width"),o.r),L=Y(I.get("length"),o.r),k=t.get(["pointer","icon"]),V=I.get("offsetCenter"),O=Y(V[0],o.r),B=Y(V[1],o.r),H=I.get("keepAspect"),W;return k?W=wt(k,O-P/2,B-L,P,L,null,H):W=new iZ({shape:{angle:-Math.PI/2,width:P,r:L,x:O,y:B}}),W.rotation=-(A+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function D(M,A){var E=g.get("roundCap"),I=E?Qv:_r,P=g.get("overlap"),L=P?g.get("width"):f/m.count(),k=P?o.r-L:o.r-(M+1)*L,V=P?o.r:o.r-M*L,O=new I({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:V}});return P&&(O.z2=x-m.get(_,M)%x),O}(y||p)&&(m.diff(h).add(function(M){var A=m.get(_,M);if(p){var E=T(M,s);lt(E,{rotation:-((isNaN(+A)?w[0]:He(A,b,w,!0))+Math.PI/2)},t),c.add(E),m.setItemGraphicEl(M,E)}if(y){var I=D(M,s),P=g.get("clip");lt(I,{shape:{endAngle:He(A,b,w,P)}},t),c.add(I),My(t.seriesIndex,m.dataType,M,I),d[M]=I}}).update(function(M,A){var E=m.get(_,M);if(p){var I=h.getItemGraphicEl(A),P=I?I.rotation:s,L=T(M,P);L.rotation=P,Oe(L,{rotation:-((isNaN(+E)?w[0]:He(E,b,w,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(M,L)}if(y){var k=v[A],V=k?k.shape.endAngle:s,O=D(M,V),B=g.get("clip");Oe(O,{shape:{endAngle:He(E,b,w,B)}},t),c.add(O),My(t.seriesIndex,m.dataType,M,O),d[M]=O}}).execute(),m.each(function(M){var A=m.getItemModel(M),E=A.getModel("emphasis"),I=E.get("focus"),P=E.get("blurScope"),L=E.get("disabled");if(p){var k=m.getItemGraphicEl(M),V=m.getItemVisual(M,"style"),O=V.fill;if(k instanceof Wt){var B=k.style;k.useStyle(z({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},V))}else k.useStyle(V),k.type!=="pointer"&&k.setColor(O);k.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i(He(m.get(_,M),b,[0,1],!0))),k.z2EmphasisLift=0,jt(k,A),yt(k,I,P,L)}if(y){var H=d[M];H.useStyle(m.getItemVisual(M,"style")),H.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),H.z2EmphasisLift=0,jt(H,A),yt(H,I,P,L)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=wt(s,n.cx-o/2+Y(l[0],n.r),n.cy-o/2+Y(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),c=+t.get("max"),h=new fe,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new ke({silent:!0}),d[y]=new ke({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new fe,x=i(He(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+Y(w[0],o.r),D=o.cy+Y(w[1],o.r),M=v[y];M.attr({z2:g?0:2,style:Je(b,{x:T,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(M)}var A=m.getModel("detail");if(A.get("show")){var E=A.get("offsetCenter"),I=o.cx+Y(E[0],o.r),P=o.cy+Y(E[1],o.r),L=Y(A.get("width"),o.r),k=Y(A.get("height"),o.r),V=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],O=A.get("formatter");M.attr({z2:g?0:2,style:Je(A,{x:I,y:P,text:md(_,O),width:isNaN(L)?null:L,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:V})}),BD(M,{normal:A},_,function(H){return md(H,O)}),p&&zD(M,y,l,t,{getFormattedLabel:function(H,W,q,ee,ue,Ae){return md(Ae?Ae.interpolatedValue:_,O)}}),S.add(M)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(Xe);const lZ=sZ;var uZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return xl(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(tt);const fZ=uZ;function cZ(r){r.registerChartView(lZ),r.registerSeriesModel(fZ)}var hZ=["itemStyle","opacity"],vZ=function(r){N(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new br,s=new ke;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(hZ);f=f??1,a||Nn(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,lt(i,{style:{opacity:f}},o,n)):Oe(i,{style:{opacity:f},shape:{points:l.points}},o,n),jt(i,s),this._updateLabel(t,n),yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,c=t.getItemVisual(n,"style"),h=c.fill;tr(o,Yt(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new be(v[0][0],v[0][1]):null},Oe(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),A0(a,M0(l),{stroke:h})},e}(Sr),dZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new vZ(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);rf(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Xe);const pZ=dZ;var gZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return xl(this,{coordDimensions:["value"],encodeDefaulter:de(dm,this)})},e.prototype._defaultLabelLine=function(t){ho(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(tt);const yZ=gZ;function mZ(r,e){return Mt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function _Z(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return Q(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function SZ(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,h=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,h=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(p=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p+_,h=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p-_,h=y-5,c="right")):o==="leftBottom"?(p=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p-_,h=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="left")),t==="horizontal"?(y=p,h=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function bZ(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=mZ(t,e),s=t.get("orient"),l=o.width,u=o.height,f=_Z(n,i),c=o.x,h=o.y,v=s==="horizontal"?[Y(t.get("minSize"),u),Y(t.get("maxSize"),u)]:[Y(t.get("minSize"),l),Y(t.get("maxSize"),l)],d=n.getDataExtent(a),p=t.get("min"),g=t.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=t.get("funnelAlign"),m=t.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),x=function(P,L){if(s==="horizontal"){var k=n.get(a,P)||0,V=He(k,[p,g],v,!0),O=void 0;switch(y){case"top":O=h;break;case"center":O=h+(u-V)/2;break;case"bottom":O=h+(u-V);break}return[[L,O],[L,O+V]]}var B=n.get(a,P)||0,H=He(B,[p,g],v,!0),W;switch(y){case"left":W=c;break;case"center":W=c+(l-H)/2;break;case"right":W=c+l-H;break}return[[W,L],[W+H,L]]};i==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var b=0;b<f.length;b++){var w=f[b],T=f[b+1],D=n.getItemModel(w);if(s==="horizontal"){var M=D.get(["itemStyle","width"]);M==null?M=S:(M=Y(M,l),i==="ascending"&&(M=-M));var A=x(w,c),E=x(T,c+M);c+=M+m,n.setItemLayout(w,{points:A.concat(E.slice().reverse())})}else{var I=D.get(["itemStyle","height"]);I==null?I=S:(I=Y(I,u),i==="ascending"&&(I=-I));var A=x(w,h),E=x(T,h+I);h+=I+m,n.setItemLayout(w,{points:A.concat(E.slice().reverse())})}}SZ(n)})}function xZ(r){r.registerChartView(pZ),r.registerSeriesModel(yZ),r.registerLayout(bZ),r.registerProcessor($f("funnel"))}var wZ=.3,TZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new fe,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,c=xP(t);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var y=bP(s,o,g,f,u);Z_(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=SP(s,g,f,u);s.setItemGraphicEl(g,m),Oe(m,{shape:{points:_}},t,g),Nn(m),Z_(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=DZ(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=xP(n),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var c=bP(i,this._dataGroup,f,s,o);c.incremental=!0,Z_(c,i,f,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Xe);function DZ(r,e,t){var n=r.model,a=r.getRect(),i=new Le({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),lt(i,{shape:{width:a.width,height:a.height}},e,t),i}function SP(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);CZ(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function bP(r,e,t,n,a){var i=SP(r,t,n,a),o=new br({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function xP(r){var e=r.get("smooth",!0);return e===!0&&(e=wZ),e=ra(e),li(e)&&(e=0),{smooth:e}}function Z_(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");jt(r,a,"lineStyle"),yt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function CZ(r,e){return e==="category"?r==null:r==null||isNaN(r)}const AZ=TZ;var MZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:j(EZ,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(tt);function EZ(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return C(e.dimensions,function(n){var a=IZ(n);t[n]=a}),t}}function IZ(r){return+r.replace("dim","")}const PZ=MZ;var LZ=["lineStyle","opacity"],kZ={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(LZ,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};const RZ=kZ;function OZ(r){NZ(r),VZ(r)}function NZ(r){if(!r.parallel){var e=!1;C(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function VZ(r){var e=Ze(r.parallelAxis);C(e,function(t){if(re(t)){var n=t.parallelIndex||0,a=Ze(r.parallel)[n];a&&a.parallelAxisDefault&&ye(t,a.parallelAxisDefault,!1)}})}var BZ=5,zZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},C(FZ,function(i,o){a.getZr().on(o,this._handlers[o]=j(i,this))},this)),ul(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){bf(this,"_throttledDispatchExpand"),C(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(z({type:"parallelAxisExpand"},t))},e.type="parallel",e}(ut),FZ={mousedown:function(r){j_(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(j_(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>BZ)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!j_(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function j_(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const GZ=zZ;var HZ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&ye(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Ye(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);C(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Ie);const WZ=HZ;var YZ=function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(dn);const $Z=YZ;function ss(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Ml(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Ml(s,[0,o]),a=i=Ml(s,[a,i]),n=0}e[0]=Ml(e[0],t),e[1]=Ml(e[1],t);var l=X_(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=Ml(e[n],f);var c;return c=X_(e,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-n]=e[n]+l.sign*a),c=X_(e,n),i!=null&&c.span>i&&(e[1-n]=e[n]+c.sign*i),e}function X_(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ml(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var q_=C,wP=Math.min,TP=Math.max,DP=Math.floor,UZ=Math.ceil,CP=gt,ZZ=Math.PI,jZ=function(){function r(e,t,n){this.type="parallel",this._axesMap=te(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;q_(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new $Z(o,Rf(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();q_(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),$o(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Mt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=_d(e.get("axisExpandWidth"),l),c=_d(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=_d(v[1]-v[0],l),v[1]=v[0]+d;else{d=_d(f*(c-1),l);var p=e.get("axisExpandCenter")||DP(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[DP(CP(v[0]/f,1))+1,UZ(CP(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),q_(n,function(o,s){var l=(a.axisExpandable?qZ:XZ)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:ZZ/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],h=f[i],v=Or();hi(v,v,h),Mn(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];C(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){c="inactive";break}}}t(c,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Vn([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return se(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ss(l,a,o,"all"):u="none";else{var v=a[1]-a[0],d=o[1]*s/v;a=[TP(0,d-v/2)],a[1]=wP(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function _d(r,e){return wP(TP(r,e[0]),e[1])}function XZ(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function qZ(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const KZ=jZ;function QZ(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new KZ(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",At).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var JZ={create:QZ};const ej=JZ;var AP=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return go([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=se(t);if(n)for(var a=n.length-1;a>=0;a--)Br(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e}(Ie);_t(AP,ml);const MP=AP;var ls=!0,uc=Math.min,El=Math.max,tj=Math.pow,rj=1e4,nj=6,aj=6,EP="globalPan",ij={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},oj={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},IP={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},sj=0,lj=function(r){N(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&ie(t),n._zr=t,n.group=new fe,n._uid="brushController_"+sj++,C(pj,function(a,i){this._handlers[i]=j(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&ie(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||m8(n,EP,this._uid),C(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=ye(se(IP),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;_8(t,EP,this._uid),C(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};C(t,function(a){n[a.panelId]=se(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&ie(this._mounted),t=G(t,function(h){return ye(se(IP),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Ba(a,t,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):LP(o,PP(o,d));K_(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),e1(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Jr);function PP(r,e){var t=Sd[e.brushType].createCover(r,e);return t.__brushOption=e,RP(t,e),r.group.add(t),t}function LP(r,e){var t=Q_(e);return t.endCreating&&(t.endCreating(r,e),RP(e,e.__brushOption)),e}function kP(r,e){var t=e.__brushOption;Q_(e).updateCoverShape(r,e,t.range,t)}function RP(r,e){var t=e.z;t==null&&(t=rj),r.traverse(function(n){n.z=t,n.z2=t})}function K_(r,e){Q_(e).updateCommon(r,e),kP(r,e)}function Q_(r){return Sd[r.__brushOption.brushType]}function J_(r,e,t){var n=r._panels;if(!n)return ls;var a,i=r._transform;return C(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function OP(r,e){var t=r._panels;if(!t)return ls;var n=e.__brushOption.panelId;return n!=null?t[n]:ls}function e1(r){var e=r._covers,t=e.length;return C(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function us(r,e){var t=G(r._covers,function(n){var a=n.__brushOption,i=se(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function uj(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=tj(a*a+i*i,.5);return o>nj}function NP(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function VP(r,e,t,n){var a=new fe;return a.add(new Le({name:"main",style:r1(t),silent:!0,draggable:!0,cursor:"move",drift:de(FP,r,e,a,["n","s","w","e"]),ondragend:de(us,e,{isEnd:!0})})),C(n,function(i){a.add(new Le({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:de(FP,r,e,a,i),ondragend:de(us,e,{isEnd:!0})}))}),a}function BP(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=El(a,aj),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],c=t[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;Wa(r,e,"main",o,s,d,p),n.transformable&&(Wa(r,e,"w",l,u,i,y),Wa(r,e,"e",h,u,i,y),Wa(r,e,"n",l,u,g,i),Wa(r,e,"s",l,v,g,i),Wa(r,e,"nw",l,u,i,i),Wa(r,e,"ne",h,u,i,i),Wa(r,e,"sw",l,v,i,i),Wa(r,e,"se",h,v,i,i))}function t1(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(r1(t)),a.attr({silent:!n,cursor:n?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?n1(r,i[0]):cj(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?oj[s]+"-resize":null})})}function Wa(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(vj(a1(r,e,[[n,a],[n+i,a+o]])))}function r1(r){return ae({strokeNoScale:!0},r.brushStyle)}function zP(r,e,t,n){var a=[uc(r,t),uc(e,n)],i=[El(r,t),El(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function fj(r){return Ci(r.group)}function n1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Zh(t[e],fj(r));return n[a]}function cj(r,e){var t=[n1(r,e[0]),n1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function FP(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=GP(e,a,i);C(n,function(u){var f=ij[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(zP(s[0][0],s[1][0],s[0][1],s[1][1])),K_(e,t),us(e,{isEnd:!1})}function hj(r,e,t,n){var a=e.__brushOption.range,i=GP(r,t,n);C(a,function(o){o[0]+=i[0],o[1]+=i[1]}),K_(r,e),us(r,{isEnd:!1})}function GP(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function a1(r,e,t){var n=OP(r,e);return n&&n!==ls?n.clipPath(t,r._transform):se(t)}function vj(r){var e=uc(r[0][0],r[1][0]),t=uc(r[0][1],r[1][1]),n=El(r[0][0],r[1][0]),a=El(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function dj(r,e,t){if(!(!r._brushType||gj(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=J_(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===ls||s.panelId===i.panelId)&&Sd[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function i1(r){var e=r.event;e.preventDefault&&e.preventDefault()}function o1(r,e,t){return r.childOfName("main").contain(e,t)}function HP(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),uj(r)||a){if(i&&!a){o.brushMode==="single"&&e1(r);var l=se(o);l.brushType=WP(l.brushType,i),l.panelId=i===ls?null:i.panelId,a=r._creatingCover=PP(r,l),r._covers.push(a)}if(a){var u=Sd[WP(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(a1(r,a,r._track)),n&&(LP(r,a),u.updateCommon(r,a)),kP(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&J_(r,e,t)&&e1(r)&&(s={isEnd:n,removeOnClick:!0});return s}function WP(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&ie(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var pj={mousedown:function(r){if(this._dragging)YP(this,r);else if(!r.target||!r.target.draggable){i1(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=J_(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(dj(this,r,n),this._dragging){i1(r);var a=HP(this,r,n,!1);a&&us(this,a)}},mouseup:function(r){YP(this,r)}};function YP(r,e){if(r._dragging){i1(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=HP(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&us(r,i)}}function gj(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Sd={lineX:$P(0),lineY:$P(1),rect:{createCover:function(r,e){function t(n){return n}return VP({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=NP(r);return zP(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){BP(r,e,t,n)},updateCommon:t1,contain:o1},polygon:{createCover:function(r,e){var t=new fe;return t.add(new br({name:"main",style:r1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Sr({name:"main",draggable:!0,drift:de(hj,r,e),ondragend:de(us,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:a1(r,e,t)})},updateCommon:t1,contain:o1}};function $P(r){return{createCover:function(e,t){return VP({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=NP(e),n=uc(t[0][r],t[1][r]),a=El(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=OP(e,t);if(o!==ls&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),BP(e,t,l,a)},updateCommon:t1,contain:o1}}const s1=lj;function UP(r){return r=l1(r),function(e){return jy(e,r)}}function ZP(r,e){return r=l1(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function jP(r,e,t){var n=l1(r);return function(a,i){return n.contain(i[0],i[1])&&!id(a,e,t)}}function l1(r){return xe.create(r)}var yj=["axisLine","axisTickLabel","axisName"],mj=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new s1(n.getZr())).on("brush",j(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!_j(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),!!t.get("show")){var s=bj(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,h=l.getAxisLayout(c),v=z({strokeContainThreshold:f},h),d=new Ga(t,v);C(yj,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,f,a),af(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=xe.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:UP(c),isTargetByCursor:jP(c,s,i),getLinearBrushOtherExtent:ZP(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Sj(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=G(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ut);function _j(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Sj(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function bj(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const xj=mj;var wj={type:"axisAreaSelect",event:"axisAreaSelected"};function Tj(r){r.registerAction(wj,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var Dj={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function XP(r){r.registerComponentView(GZ),r.registerComponentModel(WZ),r.registerCoordinateSystem("parallel",ej),r.registerPreprocessor(OZ),r.registerComponentModel(MP),r.registerComponentView(xj),wl(r,"parallel",MP,Dj),Tj(r)}function Cj(r){Te(XP),r.registerChartView(AZ),r.registerSeriesModel(PZ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,RZ)}var Aj=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),Mj=function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Aj},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){Ra(this)},e.prototype.downplay=function(){Oa(this)},e}(De),Ej=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,c=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new Mj,g=ve(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),D=d.node2.getModel(),M=D.get("localX"),A=D.get("localY"),E=d.getLayout(),I,P,L,k,V,O,B,H;switch(p.shape.extent=Math.max(1,E.dy),p.shape.orient=v,v==="vertical"?(I=(b!=null?b*u:S.x)+E.sy,P=(w!=null?w*f:S.y)+S.dy,L=(M!=null?M*u:T.x)+E.ty,k=A!=null?A*f:T.y,V=I,O=P*(1-_)+k*_,B=L,H=P*_+k*(1-_)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+E.sy,L=M!=null?M*u:T.x,k=(A!=null?A*f:T.y)+E.ty,V=I*(1-_)+L*_,O=P,B=I*_+L*(1-_),H=k),p.setShape({x1:I,y1:P,x2:L,y2:k,cpx1:V,cpy1:O,cpx2:B,cpy2:H}),p.useStyle(m.getItemStyle()),p.style.fill){case"source":p.style.fill=d.node1.getVisual("color"),p.style.decal=d.node1.getVisual("style").decal;break;case"target":p.style.fill=d.node2.getVisual("color"),p.style.decal=d.node2.getVisual("style").decal;break;case"gradient":var W=d.node1.getVisual("color"),q=d.node2.getVisual("color");$(W)&&$(q)&&(p.style.fill=new Us(0,0,+(v==="horizontal"),+(v==="vertical"),[{color:W,offset:0},{color:q,offset:1}]))}var ee=y.getModel("emphasis");jt(p,y,"lineStyle",function(Ae){return Ae.getItemStyle()}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var ue=ee.get("focus");yt(p,ue==="adjacency"?d.getAdjacentDataIndices():ue,ee.get("blurScope"),ee.get("disabled")),ve(p).dataType="edge"}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new Le({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});tr(S,Yt(g),{labelFetcher:t,labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),jt(S,g),s.add(S),c.setItemGraphicEl(d.dataIndex,S),ve(S).dataType="node";var x=_.get("focus");yt(S,x==="adjacency"?d.getAdjacentDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Ij(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Xe);function Ij(r,e,t){var n=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return lt(n,{shape:{width:r.width+20}},e,t),n}const Pj=Ej;var Lj=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new je(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&a){var u=_P(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Vt("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),c=f.getLayout().value,h=this.getDataParams(t,a).data.name;return Vt("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(tt);const kj=Lj;function Rj(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=Oj(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;Vj(u);var c=Ye(u,function(p){return p.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");Nj(u,f,n,a,o,s,h,v,d)})}function Oj(r,e){return Mt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Nj(r,e,t,n,a,i,o,s,l){Bj(r,e,t,a,i,s,l),Hj(r,e,i,a,n,o,s),Kj(r,s)}function Vj(r){C(r,function(e){var t=Gi(e.outEdges,bd),n=Gi(e.inEdges,bd),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function Bj(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=e.indexOf(_);s[S]=0;var x=_.node2,b=r.indexOf(x);--l[b]===0&&f.indexOf(x)<0&&f.push(x)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&zj(r,o,i,w);var T=i==="vertical"?(a-t)/w:(n-t)/w;Gj(r,T,i)}function qP(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function zj(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}C(r,function(c){qP(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Fj(r,n)}function Fj(r,e){C(r,function(t){!qP(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Gj(r,e,t){C(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Hj(r,e,t,n,a,i,o){var s=Wj(r,o);Yj(s,e,t,n,a,o),u1(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,$j(s,l,o),u1(s,a,t,n,o),qj(s,l,o),u1(s,a,t,n,o)}function Wj(r,e){var t=[],n=e==="vertical"?"y":"x",a=fy(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),C(a.keys,function(i){t.push(a.buckets.get(i))}),t}function Yj(r,e,t,n,a,i){var o=1/0;C(r,function(s){var l=s.length,u=0;C(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),C(r,function(s){C(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),C(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function u1(r,e,t,n,a){var i=a==="vertical"?"x":"y";C(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+e;var d=a==="vertical"?n:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function $j(r,e,t){C(r.slice().reverse(),function(n){C(n,function(a){if(a.outEdges.length){var i=Gi(a.outEdges,Uj,t)/Gi(a.outEdges,bd);if(isNaN(i)){var o=a.outEdges.length;i=o?Gi(a.outEdges,Zj,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Fi(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Fi(a,t))*e;a.setLayout({y:l},!0)}}})})}function Uj(r,e){return Fi(r.node2,e)*r.getValue()}function Zj(r,e){return Fi(r.node2,e)}function jj(r,e){return Fi(r.node1,e)*r.getValue()}function Xj(r,e){return Fi(r.node1,e)}function Fi(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function bd(r){return r.getValue()}function Gi(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function qj(r,e,t){C(r,function(n){C(n,function(a){if(a.inEdges.length){var i=Gi(a.inEdges,jj,t)/Gi(a.inEdges,bd);if(isNaN(i)){var o=a.inEdges.length;i=o?Gi(a.inEdges,Xj,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Fi(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Fi(a,t))*e;a.setLayout({y:l},!0)}}})})}function Kj(r,e){var t=e==="vertical"?"x":"y";C(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),C(r,function(n){var a=0,i=0;C(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),C(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function Qj(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var a=1/0,i=-1/0;C(n,function(o){var s=o.getLayout().value;s<a&&(a=s),s>i&&(i=s)}),C(n,function(o){var s=new qt({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:e.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function Jj(r){r.registerChartView(Pj),r.registerSeriesModel(kj),r.registerLayout(Rj),r.registerVisual(Qj),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var KP=function(){function r(){}return r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=e.data;if(g&&l){var y=[];C(g,function(S,x){var b;F(S)?(b=S.slice(),S.unshift(x)):F(S.value)?(b=z({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Pv(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Pv(p),dimsDef:m.slice()}];return xl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:de(sC,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),QP=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(tt);_t(QP,KP,!0);const eX=QP;var tX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=JP(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Nn(c),eL(h,c,i,u)):c=JP(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(Xe),rX=function(){function r(){}return r}(),nX=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new rX},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e}(De);function JP(r,e,t,n,a){var i=r.ends,o=new nX({shape:{points:a?aX(i,n,r):i}});return eL(r,o,e,t,a),o}function eL(r,e,t,n,a){var i=t.hostModel,o=sf[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");jt(e,s),yt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function aX(r,e,t){return G(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}const iX=tX;function oX(r,e){}var fc=C;function sX(r){var e=lX(r);fc(e,function(t){var n=t.seriesModels;n.length&&(uX(t),fc(n,function(a,i){fX(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function lX(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=we(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function uX(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;fc(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}fc(t,function(d){var p=d.get("boxWidth");F(p)||(p=[p,p]),o.push([Y(p[0],s)||0,Y(p[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;fc(t,function(d,p){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function fX(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),d=_(h,f[0],c),p=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(b,w,T){var D=a.get(w,T),M=[];M[o]=b,M[s]=D;var A;return isNaN(b)||isNaN(D)?A=[NaN,NaN]:(A=n.dataToPoint(M),A[o]+=e),A}function S(b,w,T){var D=w.slice(),M=w.slice();D[o]+=i,M[o]-=i,T?b.push(D,M):b.push(M,D)}function x(b,w){var T=w.slice(),D=w.slice();T[o]-=i,D[o]+=i,b.push(T,D)}}function cX(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Br(r[o].slice()),l=mh(s,.25),u=mh(s,.5),f=mh(s,.75),c=s[0],h=s[s.length-1],v=(a??1.5)*(f-l),d=i?c:Math.max(c,l-v),p=i?h:Math.min(h,f+v),g=e.itemNameFormatter,y=Q(g)?g({value:o}):$(g)?g.replace("{value}",o+""):o+"";t.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var hX={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==rr){var n="";process.env.NODE_ENV!=="production"&&(n=gr("source data is not applicable for this boxplot transform. Expect number[][].")),Ge(n)}var a=cX(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function vX(r){r.registerSeriesModel(eX),r.registerChartView(iX),r.registerVisual(oX),r.registerLayout(sX),r.registerTransform(hX)}var dX=["color","borderColor"],pX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){Ai(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&tL(u,c))return;var h=f1(c,f,!0);lt(h,{shape:{points:c.ends}},t,f),c1(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&tL(u,v)){i.remove(h);return}h?(Oe(h,{shape:{points:v.ends}},t,f),Nn(h)):h=f1(v),c1(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),nL(t,this.group);var n=t.get("clip",!0)?qv(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=f1(s);c1(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){nL(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Xe),gX=function(){function r(){}return r}(),yX=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new gX},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(De);function f1(r,e,t){var n=r.ends;return new yX({shape:{points:t?mX(n,r):n},z2:100})}function tL(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function c1(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,jt(r,a)}function mX(r,e){return G(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var _X=function(){function r(){}return r}(),rL=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new _X},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(De);function nL(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new rL({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new rL({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s),aL(1,o,r),aL(-1,s,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function aL(r,e,t,n){var a=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]),i=t.getModel("itemStyle").getItemStyle(dX);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const SX=pX;var iL=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(tt);_t(iL,KP,!0);const bX=iL;function xX(r){!r||!F(r.series)||C(r.series,function(e){re(e)&&e.type==="k"&&(e.type="candlestick")})}var wX=["itemStyle","borderColor"],TX=["itemStyle","borderColor0"],DX=["itemStyle","color"],CX=["itemStyle","color0"],AX={seriesType:"candlestick",plan:ll(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?DX:CX)}function n(i,o){return o.get(i>0?wX:TX)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");z(c,f)}}}}}};const MX=AX;var EX={seriesType:"candlestick",plan:ll(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=IX(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(c,y),w=m.get(h,y),T=Math.min(S,x),D=Math.max(S,x),M=L(T,_),A=L(D,_),E=L(b,_),I=L(w,_),P=[];k(P,A,0),k(P,M,1),P.push(O(I),O(A),O(E),O(M)),g.setItemLayout(y,{sign:oL(m,y,S,x,f),initBaseline:S>x?A[i]:M[i],ends:P,brushRect:V(b,w,_)})}function L(B,H){var W=[];return W[a]=H,W[i]=B,isNaN(H)||isNaN(B)?[NaN,NaN]:e.dataToPoint(W)}function k(B,H,W){var q=H.slice(),ee=H.slice();q[a]=Uh(q[a]+n/2,1,!1),ee[a]=Uh(ee[a]-n/2,1,!0),W?B.push(q,ee):B.push(ee,q)}function V(B,H,W){var q=L(B,W),ee=L(H,W);return q[a]-=n/2,ee[a]-=n/2,{x:q[0],y:q[1],width:n,height:ee[1]-q[1]}}function O(B){return B[a]=Uh(B[a],1),B}}function d(p,g){for(var y=ha(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore();(b=p.next())!=null;){var T=w.get(s,b),D=w.get(u,b),M=w.get(f,b),A=w.get(c,b),E=w.get(h,b);if(isNaN(T)||isNaN(A)||isNaN(E)){y[m++]=NaN,m+=3;continue}y[m++]=oL(w,b,D,M,f),S[a]=T,S[i]=A,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=E,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function oL(r,e,t,n,a){var i;return t>n?i=-1:t<n?i=1:i=e>0?r.get(a,e-1)<=n?1:-1:1,i}function IX(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=Y(me(r.get("barMaxWidth"),a),a),o=Y(me(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?Y(s,a):Math.max(Math.min(a/2,i),o)}const PX=EX;function LX(r){r.registerChartView(SX),r.registerSeriesModel(bX),r.registerPreprocessor(xX),r.registerVisual(MX),r.registerLayout(PX)}function sL(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var kX=function(r){N(e,r);function e(t,n){var a=r.call(this)||this,i=new Hf(t,n),o=new fe;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=wt(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}sL(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}sL(a,t)},e.prototype.highlight=function(){Ra(this)},e.prototype.downplay=function(){Oa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Df(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=cl(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,yt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(fe);const RX=kX;var OX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Wf(RX)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=Yf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=Yx(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Xe);const NX=OX;var VX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(tt);const BX=VX;function zX(r){r.registerChartView(NX),r.registerSeriesModel(BX),r.registerLayout(Yf("effectScatter"))}var FX=function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new z_(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");F(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=wt(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=St(n.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;Q(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Da(t.__p1,t.__cp1)+Da(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ht,f=Ag;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=t.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=t.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Da(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Da(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e}(fe);const lL=FX;var GX=function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new br({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Oe(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,yt(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e}(fe);const uL=GX;var HX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new uL(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Da(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];t.x=c[0]*(1-f)+f*h[0],t.y=c[1]*(1-f)+f*h[1];var v=t.__t<1?h[0]-c[0]:c[0]-h[0],d=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e}(lL);const WX=HX;var YX=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),$X=function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YX},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(t.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,d=(f+h)/2-(c-u)*i;t.quadraticCurveTo(v,d,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var d=i[u++],p=i[u++];if(Si(c,h,d,p,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(dT(c,h,g,y,d,p,s,t,n))return l}else if(Si(c,h,d,p,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new xe(i,o,s,l)}return t},e}(De),UX=function(){function r(){this.group=new fe}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new $X({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ve(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const ZX=UX;var jX={seriesType:"lines",plan:ll(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Zt("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);t&&(s[c++]=v);for(var d=0;d<v;d++)h=e.dataToPoint(o[d],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<v;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}};const fL=jX;var XX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(f?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&qv(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=fL.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new ZX:new G_(o?i?WX:uL:i?lL:z_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(Xe);const qX=XX;var KX=typeof Uint32Array>"u"?Array:Uint32Array,QX=typeof Float64Array>"u"?Array:Float64Array;function cL(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=G(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Hc([a,t[0],t[1]])}))}var JX=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],cL(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(cL(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=pu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=pu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Re(t[0])){for(var a=t.length,i=new KX(a),o=new QX(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=t[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=t[f++],d=t[f++];if(o[s++]=v,o[s++]=d,f>a&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){if(process.env.NODE_ENV!=="production"){var a=No.get(t.coordinateSystem);if(!a)throw new Error("Unkown coordinate system "+t.coordinateSystem)}var i=new ir(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Vt("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(tt);const eq=JX;function xd(r){return r instanceof Array||(r=[r,r]),r}var tq={seriesType:"lines",reset:function(r){var e=xd(r.get("symbol")),t=xd(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=xd(s.getShallow("symbol",!0)),u=xd(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const rq=tq;function nq(r){r.registerChartView(qX),r.registerSeriesModel(eq),r.registerLayout(fL),r.registerVisual(rq)}var aq=256,iq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=An.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=e.length;c.width=t,c.height=n;for(var d=0;d<v;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=a(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),x=S.data,b=0,w=x.length,T=this.minOpacity,D=this.maxOpacity,M=D-T;b<w;){var _=x[b+3]/256,A=Math.floor(_*(aq-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*M+T),x[b++]=E[A],x[b++]=E[A+1],x[b++]=E[A+2],x[b++]=E[A+3]*_*256}else b+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=An.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const oq=iq;function sq(r,e,t){var n=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function lq(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function hL(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var uq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):hL(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(hL(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Ai(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,a,i,o){var s=t.coordinateSystem,l=Jo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(v.type==="category"&&d.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&d.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,c=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),x=Yt(t),b=t.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),D=b.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],A=a;A<i;A++){var E=void 0,I=g.getItemVisual(A,"style");if(l){var P=g.get(M[0],A),L=g.get(M[1],A);if(isNaN(g.get(M[2],A))||P<c[0]||P>c[1]||L<h[0]||L>h[1])continue;var k=s.dataToPoint([P,L]);E=new Le({shape:{x:k[0]-u/2,y:k[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(M[1],A)))continue;E=new Le({z2:1,shape:s.dataToRect([g.get(M[0],A)]).contentShape,style:I})}if(g.hasItemOption){var V=g.getItemModel(A),O=V.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),_=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),D=O.get("disabled"),x=Yt(V)}E.shape.r=S;var B=t.getRawValue(A),H="-";B&&B[2]!=null&&(H=B[2]+""),tr(E,x,{labelFetcher:t,labelDataIndex:A,defaultOpacity:I.opacity,defaultText:H}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=m,E.ensureState("select").style=_,yt(E,w,T,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),p.add(E),g.setItemGraphicEl(A,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new oq;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,D){var M=t.dataToPoint([w,T]);return M[0]-=h,M[1]-=v,M.push(D),M}),S=a.getExtent(),x=a.type==="visualMap.continuous"?lq(S,a.option.range):sq(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Wt({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(Xe);const fq=uq;var cq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ca(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=No.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(tt);const hq=cq;function vq(r){r.registerChartView(fq),r.registerSeriesModel(hq)}var dq=["itemStyle","borderWidth"],vL=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],h1=new Rn,pq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:vL[+f],categoryDim:vL[1-+f]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=SL(o,v),p=dL(o,v,d,h),g=bL(o,h,p);o.setItemGraphicEl(v,g),i.add(g),TL(g,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=SL(o,v),y=dL(o,v,g,h),m=wL(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?xq(p,h,y):p=bL(o,h,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),TL(p,h,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&xL(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){xL(i,ve(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Xe);function dL(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};gq(t,i,a,n,h),yq(r,e,a,i,o,h.boundingLength,h.pxSign,f,n,h),mq(t,h.symbolScale,u,n,h);var v=h.symbolSize,d=cl(t.get("symbolOffset"),v);return _q(t,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function gq(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(F(o)){var c=[v1(s,o[0])-l,v1(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=v1(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]),a.pxSign=f>0?1:-1}function v1(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function yq(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),v=r.getItemVisual(e,"symbolSize"),d;F(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=Y(d[c.index],h),d[f.index]=Y(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function mq(r,e,t,n,a){var i=r.get(dq)||0;i&&(h1.attr({scaleX:e[0],scaleY:e[1],rotation:t}),h1.updateTransform(),i/=h1.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function _q(r,e,t,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(e[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=St(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=Y(m,e[v.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=_h(n),T=w?n:DL((y+b)/x),D=y-T*p;S=D/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(T=u?DL((Math.abs(u)+b)/x):0),g=T*x-b,c.repeatTimes=T,c.symbolMargin=S}var M=d*(g/2),A=c.pathPosition=[];A[h.index]=t[h.wh]/2,A[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var E=c.bundlePosition=[];E[h.index]=t[h.xy],E[v.index]=t[v.xy];var I=c.barRectShape=z({},t);I[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(A[v.index]+M)),I[h.wh]=t[h.wh];var P=c.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function pL(r){var e=r.symbolPatternSize,t=wt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function gL(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(d1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Il(p,null,d(f),t,n):Il(p,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(p)}),f++});f<u;f++){var h=pL(t);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=d(f);Il(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function yL(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Il(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=pL(t),a.add(i),Il(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function mL(r,e,t){var n=z({},e.barRectShape),a=r.__pictorialBarRect;a?Il(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Le({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function _L(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=z({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Oe(a,{shape:i},s,l);else{i[o.wh]=0,a=new Le({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],sf[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function SL(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Sq,t.isAnimationEnabled=bq,t}function Sq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function bq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function bL(r,e,t,n){var a=new fe,i=new fe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?gL(a,e,t):yL(a,e,t),mL(a,t,n),_L(a,e,t,n),a.__pictorialShapeStr=wL(r,t),a.__pictorialSymbolMeta=t,a}function xq(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Oe(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?gL(r,e,t,!0):yL(r,e,t,!0),mL(r,t,!0),_L(r,e,t,!0)}function xL(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];d1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),C(i,function(o){Di(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function wL(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function d1(r,e,t){C(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Il(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&sf[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function TL(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");d1(r,function(p){if(p instanceof Wt){var g=p.style;p.useStyle(z({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;tr(d,Yt(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Sl(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),yt(r,f,c,i.get("disabled"))}function DL(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const wq=pq;var Tq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Mi(Kv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Kv);const Dq=Tq;function Cq(r){r.registerChartView(wq),r.registerSeriesModel(Dq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(zM,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FM("pictorialBar"))}var Aq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Ba(this._layersSeries||[],l,h,h),d=[];v.add(j(p,this,"add")).update(j(p,this,"update")).remove(j(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;T<w.length;T++){var D=i.getItemLayout(w[T]),M=D.x,A=D.y0,E=D.y;S.push(M,A),x.push(M,A+E),b=i.getItemVisual(w[T],"style")}var I,P=i.getItemLayout(w[0]),L=t.getModel("label"),k=L.get("margin"),V=t.getModel("emphasis");if(g==="add"){var O=d[y]=new fe;I=new J2({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),t.isAnimationEnabled()&&I.setClipPath(Mq(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),d[y]=O,Oe(I,{shape:{points:S,stackedOnPoints:x}},t),Nn(I)}tr(I,Yt(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var B=I.getTextContent();B&&(B.x=P.x-k,B.y=P.y0+P.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),jt(I,t),yt(I,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e}(Xe);function Mq(r,e,t){var n=new Le({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return lt(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}const Eq=Aq;var p1=2,Iq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(j(this.getData,this),j(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=fy(t,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,t[n]=[c,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",At).models[0],i=a.get("type"),o=Ye(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=te(),f=0,c=0;c<s.length;++c)l.push(s[c][p1]),u.get(s[c][p1])||(u.set(s[c][p1],f),f++);var h=gl(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Pv(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new ir(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=fy(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){F(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,d=0;d<v;++d){var p=i.get(t[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,h=o[f].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return Vt("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(tt);const Pq=Iq;function Lq(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Y(s[0],o.height),s[1]=Y(s[1],o.height);var u=o.height-s[0]-s[1];CL(n,t,u)}else{s[0]=Y(s[0],o.width),s[1]=Y(s[1],o.width);var f=o.width-s[0]-s[1];CL(n,t,f)}n.setLayout("layoutInfo",i)})}function CL(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(a,function(g){return G(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=kq(s),u=l.y0,f=t/l.max,c=a.length,h=a[0].indices.length,v,d=0;d<h;++d){v=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<c;++p)v+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function kq(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function Rq(r){r.registerChartView(Eq),r.registerSeriesModel(Pq),r.registerLayout(Lq),r.registerProcessor($f("themeRiver"))}var Oq=2,Nq=4,Vq=function(r){N(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=Oq,o.textConfig={inside:!0},ve(o).seriesIndex=n.seriesIndex;var s=new ke({z2:Nq,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ve(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=z({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=vl(v,o));var d=bl(l.getModel("itemStyle"),c,!0);z(c,d),C(mr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=bl(S,c);x&&(_.shape=x)}),t?(s.setShape(c),s.shape.r=f.r0,Oe(s,{shape:{r:f.r}},a,n.dataIndex)):(Oe(s,{shape:c},a),Nn(s)),s.useStyle(h),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;yt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,h=c.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,C(ju,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),x=t.getFormattedLabel(v,y);_&&(x=x||n.node.name),S.style=Je(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),T=_?c:c.states[y],D=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?D:null,inside:w!=="outside"};var M,A=g(m,"distance")||0,E=g(m,"align");w==="outside"?(M=o.r+A,E=l>Math.PI/2?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,E="center"):E==="left"?(M=o.r0+A,l>Math.PI/2&&(E="right")):E==="right"&&(M=o.r-A,l>Math.PI/2&&(E="left")),S.style.align=E,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):I==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Re(I)&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _??i.get(m)}h.dirtyStyle()},e}(_r);const AL=Vq;var g1="sunburstRootToNode",ML="sunburstHighlight",Bq="sunburstUnhighlight";function zq(r){r.registerAction({type:g1,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=Jf(e,[g1],a);if(o){var s=a.getViewRoot();s&&(e.direction=__(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:ML,update:"none"},function(e,t,n){e=z({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Jf(e,[ML],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&xt("sunburstHighlight","highlight"),n.dispatchAction(z(e,{type:"highlight"}))}),r.registerAction({type:Bq,update:"updateView"},function(e,t,n){e=z({},e),process.env.NODE_ENV!=="production"&&xt("sunburstUnhighlight","downplay"),n.dispatchAction(z(e,{type:"downplay"}))})}var Fq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new Ba(_,m,S,S).add(x).update(x).remove(de(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],D=w==null?null:_[w];p(T,D)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new AL(m,t,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,n,a):(o.virtualPiece=new AL(m,t,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";nv(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:g1,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Xe);const Gq=Fq;var Hq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};EL(a);var i=this._levelModels=G(t.levels||[],function(l){return new je(l,this,n)},this),o=m_.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=fd(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){BI(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(tt);function EL(r){var e=0;C(r.children,function(n){EL(n);var a=n.value;F(a)&&(a=a[0]),e+=a});var t=r.value;F(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),F(r.value)?r.value[0]=t:r.value=t}const Wq=Hq;var IL=Math.PI/180;function Yq(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");F(i)||(i=[0,i]),F(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=Y(a[0],o),f=Y(a[1],s),c=Y(i[0],l/2),h=Y(i[1],l/2),v=-n.get("startAngle")*IL,d=n.get("minAngle")*IL,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&PL(g,m);var _=0;C(g.children,function(k){!isNaN(k.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),D=n.get("clockwise"),M=n.get("stillShowZeroSum"),A=D?1:-1,E=function(k,V){if(k){var O=V;if(k!==p){var B=k.getValue(),H=S===0&&M?x:B*x;H<d&&(H=d),O=V+A*H;var W=k.depth-y-(b?-1:1),q=c+T*W,ee=c+T*(W+1),ue=n.getLevelModel(k);if(ue){var Ae=ue.get("r0",!0),Ce=ue.get("r",!0),pe=ue.get("radius",!0);pe!=null&&(Ae=pe[0],Ce=pe[1]),Ae!=null&&(q=Y(Ae,l/2)),Ce!=null&&(ee=Y(Ce,l/2))}k.setLayout({angle:H,startAngle:V,endAngle:O,clockwise:D,cx:u,cy:f,r0:q,r:ee})}if(k.children&&k.children.length){var J=0;C(k.children,function(Se){J+=E(Se,V+J)})}return O-V}};if(b){var I=c,P=c+T,L=Math.PI*2;p.setLayout({angle:L,startAngle:v,endAngle:v+L,clockwise:D,cx:u,cy:f,r0:I,r:P})}E(g,v)})}function PL(r,e){var t=r.children||[];r.children=$q(t,e),t.length&&C(r.children,function(n){PL(n,e)})}function $q(r,e){if(Q(e)){var t=G(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),G(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Uq(r){var e={};function t(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&$(s)&&(s=ah(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");z(u,l)})})}function Zq(r){r.registerChartView(Gq),r.registerSeriesModel(Wq),r.registerLayout(de(Yq,"sunburst")),r.registerProcessor(de($f,"sunburst")),r.registerVisual(Uq),zq(r)}var LL={color:"fill",borderColor:"stroke"},jq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ya=Be(),Xq=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return ca(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=Ya(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(tt);const qq=Xq;function Kq(r,e){return e=e||[0,0],G(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Qq(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:j(Kq,r)}}}function Jq(r,e){return e=e||[0,0],G([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function eK(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:j(Jq,r)}}}function tK(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function rK(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:j(tK,r)}}}function nK(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function aK(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:j(nK,r)}}}function iK(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}var kL={};function RL(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||X(r,"text")))}function OL(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},X(n,"text")&&(o.text=n.text),X(n,"rich")&&(o.rich=n.rich),X(n,"textFill")&&(o.fill=n.textFill),X(n,"textStroke")&&(o.stroke=n.textStroke),X(n,"fontFamily")&&(o.fontFamily=n.fontFamily),X(n,"fontSize")&&(o.fontSize=n.fontSize),X(n,"fontStyle")&&(o.fontStyle=n.fontStyle),X(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=X(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),X(n,"textPosition")&&(a.position=n.textPosition),X(n,"textOffset")&&(a.offset=n.textOffset),X(n,"textRotation")&&(a.rotation=n.textRotation),X(n,"textDistance")&&(a.distance=n.textDistance)}return NL(o,r),C(o.rich,function(l){NL(l,l)}),{textConfig:a,textContent:i}}function NL(r,e){e&&(e.font=e.textFont||e.font,X(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),X(e,"textAlign")&&(r.align=e.textAlign),X(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),X(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),X(e,"textWidth")&&(r.width=e.textWidth),X(e,"textHeight")&&(r.height=e.textHeight),X(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),X(e,"textPadding")&&(r.padding=e.textPadding),X(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),X(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),X(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),X(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),X(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),X(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),X(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function VL(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";BL(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,C(e.rich,function(s){BL(s,s)}),n}function BL(r,e){e&&(X(e,"fill")&&(r.textFill=e.fill),X(e,"stroke")&&(r.textStroke=e.fill),X(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),X(e,"font")&&(r.font=e.font),X(e,"fontStyle")&&(r.fontStyle=e.fontStyle),X(e,"fontWeight")&&(r.fontWeight=e.fontWeight),X(e,"fontSize")&&(r.fontSize=e.fontSize),X(e,"fontFamily")&&(r.fontFamily=e.fontFamily),X(e,"align")&&(r.textAlign=e.align),X(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),X(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),X(e,"width")&&(r.textWidth=e.width),X(e,"height")&&(r.textHeight=e.height),X(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),X(e,"padding")&&(r.textPadding=e.padding),X(e,"borderColor")&&(r.textBorderColor=e.borderColor),X(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),X(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),X(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),X(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),X(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),X(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),X(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),X(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),X(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),X(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function zL(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;kL[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),kL[t]=!0)}}var FL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},GL=Me(FL),wd=qr(ta,function(r,e){return r[e]=1,r},{}),HL=ta.join(", "),Td=["","style","shape","extra"],Pl=Be();function y1(r,e,t,n,a){var i=r+"Animation",o=Zs(r,n,a)||{},s=Pl(e).userDuring;return o.duration>0&&(o.during=s?j(fK,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),z(o,t[i]),o}function Dd(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=Pl(r),u=e.style;l.userDuring=e.during;var f={},c={};if(hK(r,e,c),$L("shape",e,c),$L("extra",e,c),!i&&s&&(cK(r,e,f),YL("shape",r,e,f),YL("extra",r,e,f),vK(r,e,u,f)),c.style=u,oK(r,c,o),lK(r,e),s)if(i){var h={};C(Td,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),z(d?h[d]:h,p.enterFrom))});var v=y1("enter",r,e,t,a);v.duration>0&&r.animateFrom(h,v)}else sK(r,e,a||0,t,f);WL(r,e),u?r.dirty():r.markRedraw()}function WL(r,e){for(var t=Pl(r).leaveToProps,n=0;n<Td.length;n++){var a=Td[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Pl(r).leaveToProps={}),a&&(t[a]=t[a]||{}),z(a?t[a]:t,i.leaveTo))}}function Cd(r,e,t,n){if(r){var a=r.parent,i=Pl(r).leaveToProps;if(i){var o=y1("update",r,e,t,0);o.done=function(){a.remove(r),n&&n()},r.animateTo(i,o)}else a.remove(r),n&&n()}}function fs(r){return r==="all"}function oK(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function sK(r,e,t,n,a){if(a){var i=y1("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function lK(r,e){X(e,"silent")&&(r.silent=e.silent),X(e,"ignore")&&(r.ignore=e.ignore),r instanceof an&&X(e,"invisible")&&(r.invisible=e.invisible),r instanceof De&&X(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ga={},uK={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&ie(X(wd,r),"Only "+HL+" available in `setTransform`."),ga.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&ie(X(wd,r),"Only "+HL+" available in `getTransform`."),ga.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&Ll(r);var t=ga.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&Ll(r);var e=ga.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&Ll(r);var t=ga.el,n=t.style;return n&&(process.env.NODE_ENV!=="production"&&li(e)&&Jt("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&Ll(r);var e=ga.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&Ll(r);var t=ga.el.extra||(ga.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&Ll(r);var e=ga.el.extra;if(e)return e[r]}};function Ll(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function fK(){var r=this,e=r.el;if(e){var t=Pl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}ga.el=e,n(uK)}}function YL(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),fs(l))z(o,i);else for(var u=Ze(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(fs(s)||we(s,r)>=0){!o&&(o=n[r]={});for(var v=Me(i),f=0;f<v.length;f++){var c=v[f],h=i[c];dK(a[c],h)&&(o[c]=h)}}}}}function $L(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=Me(n),o=0;o<i.length;o++){var s=i[o];a[s]=ku(n[s])}}function cK(r,e,t){for(var n=e.transition,a=fs(n)?ta:Ze(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&UL(o,"el.transition"),t[o]=s}}}function hK(r,e,t){for(var n=0;n<GL.length;n++){var a=GL[n],i=FL[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<ta.length;n++){var s=ta[n];e[s]!=null&&(t[s]=e[s])}}function vK(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!fs(o)){var l=Ze(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(fs(s)||fs(o)||we(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var d=Me(t),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function dK(r,e){return Ut(r)?r!==e:r!=null&&isFinite(r)}var UL;process.env.NODE_ENV!=="production"&&(UL=function(r,e){X(wd,r)||Jt("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+Me(wd).join("`, `")+"` are permitted.")});var ZL=Be(),pK=["percent","easing","shape","style","extra"];function jL(r){r.stopAnimation("keyframe"),r.attr(ZL(r))}function Ad(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(F(e)){C(e,function(s){Ad(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Zs("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=ZL(r);C(Td,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(f,c){return f.percent-c.percent}),C(n,function(f){var c=r.animators,h=s?f[s]:f;if(process.env.NODE_ENV!=="production"&&f.percent>=1&&(u=!0),!!h){var v=Me(h);if(s||(v=Ye(v,function(g){return we(pK,g)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(v);s&&(o[s]=o[s]||{});var p=s?o[s]:o;C(v,function(g){p[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(a*f.percent,h,v,f.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Jt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var $a="emphasis",Hi="normal",m1="blur",_1="select",Wi=[Hi,$a,m1,_1],S1={normal:["itemStyle"],emphasis:[$a,"itemStyle"],blur:[m1,"itemStyle"],select:[_1,"itemStyle"]},b1={normal:["label"],emphasis:[$a,"label"],blur:[m1,"label"],select:[_1,"label"]},gK=["x","y"],yK="e\0\0",mn={normal:{},emphasis:{},blur:{},select:{}},XL={cartesian2d:Qq,geo:eK,single:rK,polar:aK,calendar:iK};function Md(r){return r instanceof De}function x1(r){return r instanceof an}function mK(r,e){e.copyTransform(r),x1(e)&&x1(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Md(e)&&Md(r)&&e.setShape(r.shape))}var _K=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=KL(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){D1(a,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Cd(h,Ya(h).option,t)}).update(function(c,h){var v=o.getItemGraphicEl(h);D1(a,v,c,u(c,i),t,l,s)}).execute();var f=t.get("clip",!0)?qv(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=KL(n,s,a,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=D1(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},e.prototype.eachRendered=function(t){Ai(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(Xe);const SK=_K;function w1(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=rk(n);t=nf(i,null,a,n.layout||"center"),Ya(t).customPathData=i}else if(e==="image")t=new Wt({}),Ya(t).customImagePath=r.style.image;else if(e==="text")t=new ke({});else if(e==="group")t=new fe;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=$h(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Ge(s)}t=new o}return Ya(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function T1(r,e,t,n,a,i,o){jL(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=gK);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;X(u,"textFill")&&(u.fill=u.textFill),X(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=Md(e)?l.decal:null;r&&c&&(c.dirty=!0,f=vl(c,r)),l.__decalPattern=f}if(x1(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Dd(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),Ad(e,n.keyframeAnimation,i)}function qL(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Co(i)}}function bK(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Wi.length;s++)xK(n,e,Wi[s])}}function xK(r,e,t){var n=t===Hi,a=n?e:Ed(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function KL(r,e,t,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(ie(a,"series.render is required."),ie(i.prepareCustoms||XL[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):XL[i.type](i));for(var s=ae({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:x,styleEmphasis:w,visual:M,barLayout:A,currentSeriesIndices:E,font:I},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:wK(r.getData())},u,f,c={},h={},v={},d={},p=0;p<Wi.length;p++){var g=Wi[p];v[g]=r.getModel(S1[g]),d[g]=r.getModel(b1[g])}function y(P){return P===u?f||(f=e.getItemModel(P)):e.getItemModel(P)}function m(P,L){return e.hasItemOption?P===u?c[L]||(c[L]=y(P).getModel(S1[L])):y(P).getModel(S1[L]):v[L]}function _(P,L){return e.hasItemOption?P===u?h[L]||(h[L]=y(P).getModel(b1[L])):y(P).getModel(b1[L]):d[L]}return function(P,L){return u=P,f=null,c={},h={},a&&a(ae({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:L?L.type:null},l),s)};function S(P,L){return L==null&&(L=u),e.getStore().get(e.getDimensionIndex(P||0),L)}function x(P,L){L==null&&(L=u),P=P||0;var k=e.getDimensionInfo(P);if(!k){var V=e.getDimensionIndex(P);return V>=0?e.getStore().get(V,L):void 0}var O=e.get(k.name,L),B=k&&k.ordinalMeta;return B?B.categories[O]:O}function b(P,L){process.env.NODE_ENV!=="production"&&zL("api.style","Please write literal style directly instead."),L==null&&(L=u);var k=e.getItemVisual(L,"style"),V=k&&k.fill,O=k&&k.opacity,B=m(L,Hi).getItemStyle();V!=null&&(B.fill=V),O!=null&&(B.opacity=O);var H={inheritColor:$(V)?V:"#000"},W=_(L,Hi),q=Je(W,null,H,!1,!0);q.text=W.getShallow("show")?me(r.getFormattedLabel(L,Hi),Sl(e,L)):null;var ee=Xh(W,H,!1);return D(P,B),B=VL(B,q,ee),P&&T(B,P),B.legacy=!0,B}function w(P,L){process.env.NODE_ENV!=="production"&&zL("api.styleEmphasis","Please write literal style directly instead."),L==null&&(L=u);var k=m(L,$a).getItemStyle(),V=_(L,$a),O=Je(V,null,null,!0,!0);O.text=V.getShallow("show")?Kr(r.getFormattedLabel(L,$a),r.getFormattedLabel(L,Hi),Sl(e,L)):null;var B=Xh(V,null,!0);return D(P,k),k=VL(k,O,B),P&&T(k,P),k.legacy=!0,k}function T(P,L){for(var k in L)X(L,k)&&(P[k]=L[k])}function D(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function M(P,L){if(L==null&&(L=u),X(LL,P)){var k=e.getItemVisual(L,"style");return k?k[LL[P]]:null}if(X(jq,P))return e.getItemVisual(L,P)}function A(P){if(i.type==="cartesian2d"){var L=i.getBaseAxis();return hW(ae({axis:L},P))}}function E(){return t.getCurrentSeriesIndices()}function I(P){return VD(P,t)}}function wK(r){var e={};return C(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function D1(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=C1(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&yt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function C1(r,e,t,n,a,i){process.env.NODE_ENV!=="production"&&ie(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&QL(e,n,a)&&(o=we(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=w1(n),s&&mK(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),mn.normal.cfg=mn.normal.conOpt=mn.emphasis.cfg=mn.emphasis.conOpt=mn.blur.cfg=mn.blur.conOpt=mn.select.cfg=mn.select.conOpt=null,mn.isLegacy=!1,DK(u,t,n,a,l,mn),TK(u,t,n,a,l),T1(r,u,t,n,mn,a,l),X(n,"info")&&(Ya(u).info=n.info);for(var f=0;f<Wi.length;f++){var c=Wi[f];if(c!==Hi){var h=Ed(n,c),v=A1(n,h,c);qL(c,u,h,v,mn)}}return bK(u,n,a),n.type==="group"&&CK(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function QL(r,e,t){var n=Ya(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&IK(i)&&rk(i)!==n.customPathData||a==="image"&&X(o,"image")&&o.image!==n.customImagePath}function TK(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&QL(o,i,n)&&(o=null),o||(o=w1(i),process.env.NODE_ENV!=="production"&&ie(Md(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),T1(null,o,e,i,null,n,a)}}function DK(r,e,t,n,a,i){if(!r.isGroup){JL(t,null,i),JL(t,$a,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=w1(o),r.setTextContent(f)),T1(null,f,e,o,null,n,a);for(var c=o&&o.style,h=0;h<Wi.length;h++){var v=Wi[h];if(v!==Hi){var d=i[v].conOpt;qL(v,f,d,A1(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function JL(r,e,t){var n=e?Ed(r,e):r,a=e?A1(r,n,$a):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?Ed(s,e):s:null;if(a&&(t.isLegacy||RL(a,i,!!o,!!l))){t.isLegacy=!0;var u=OL(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text"),process.env.NODE_ENV!=="production"&&ie(f.type==="text",'textContent.type must be "text"')}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function Ed(r,e){return e?r?r[e]:null:r}function A1(r,e,t){var n=e&&e.style;return n==null&&t===$a&&r&&(n=r.styleEmphasis),n}function CK(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){MK({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=i[f],h=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),C1(r,h,t,c,a,e)):(process.env.NODE_ENV!=="production"&&ie(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var v=e.childCount()-1;v>=f;v--){var d=e.childAt(v);AK(e,d,a)}}}function AK(r,e,t){e&&Cd(e,Ya(r).option,t)}function MK(r){new Ba(r.oldChildren,r.newChildren,ek,ek,r).add(tk).update(tk).remove(EK).execute()}function ek(r,e){var t=r&&r.name;return t??yK+e}function tk(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;C1(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function EK(r){var e=this.context,t=e.oldChildren[r];t&&Cd(t,Ya(t).option,e.seriesModel)}function rk(r){return r&&(r.pathData||r.d)}function IK(r){return r&&(X(r,"pathData")||X(r,"d"))}function PK(r){r.registerChartView(SK),r.registerSeriesModel(qq)}var cs=Be(),nk=se,M1=j,LK=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new fe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=de(ak,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}sk(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=t_(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=cs(e).pointerEl=new sf[i.type](nk(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=cs(e).labelEl=new ke(nk(t.label));e.add(i),ok(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=cs(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=cs(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ok(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=qs(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ma(u.event)},onmousedown:M1(this._onHandleDragMove,this,0,0),drift:M1(this._onHandleDragMove,this),ondragend:M1(this._onHandleDragEnd,this)}),n.add(a)),sk(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");F(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ul(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ak(this._axisPointerModel,!t&&this._moveAnimation,this._handle,E1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(E1(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(E1(a)),cs(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function ak(r,e,t,n){ik(cs(t).lastProp,n)||(cs(t).lastProp=n,e?Oe(t,n,r):(t.stopAnimation(),t.attr(n)))}function ik(r,e){if(re(r)&&re(e)){var t=!0;return C(e,function(n,a){t=t&&ik(r[a],n)}),!!t}else return r===e}function ok(r,e){r[e.get(["label","show"])?"show":"hide"]()}function E1(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function sk(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}const I1=LK;function P1(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function lk(r,e,t,n,a){var i=t.get("value"),o=uk(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Lo(s.get("padding")||0),u=s.getFont(),f=Nu(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),kK(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Je(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function kK(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function uk(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:x0(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function L1(r,e,t){var n=Or();return hi(n,n,t.rotation),Mn(n,n,t.position),Vn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function fk(r,e,t,n,a,i){var o=Ga.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),lk(e,n,a,i,{position:L1(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function k1(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function ck(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function hk(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var RK=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=vk(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=P1(i),v=OK[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=K0(l.model,a);fk(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=K0(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=L1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vk(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e}(I1);function vk(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var OK={line:function(r,e,t){var n=k1([e,t[0]],[e,t[1]],dk(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:ck([e-n/2,t[0]],[n,a],dk(r))}}};function dk(r){return r.dim==="x"?0:1}const NK=RK;var VK=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,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}},e}(Ie);const BK=VK;var Ua=Be(),zK=C;function pk(r,e,t){if(!Ve.node){var n=e.getZr();Ua(n).records||(Ua(n).records={}),FK(n,e);var a=Ua(n).records[r]||(Ua(n).records[r]={});a.handler=t}}function FK(r,e){if(Ua(r).initialized)return;Ua(r).initialized=!0,t("click",de(gk,"click")),t("mousemove",de(gk,"mousemove")),t("globalout",HK);function t(n,a){r.on(n,function(i){var o=WK(e);zK(Ua(r).records,function(s){s&&a(s,i,o.dispatchAction)}),GK(o.pendings,e)})}}function GK(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function HK(r,e,t){r.handler("leave",null,t)}function gk(r,e,t,n){e.handler(r,t,n)}function WK(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function R1(r,e){if(!Ve.node){var t=e.getZr(),n=(Ua(t).records||{})[r];n&&(Ua(t).records[r]=null)}}var YK=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";pk("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){R1("axisPointer",n)},e.prototype.dispose=function(t,n){R1("axisPointer",n)},e.type="axisPointer",e}(ut);const $K=YK;function yk(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=vo(i,r);if(o==null||o<0||F(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var mk=Be();function UK(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||j(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Id(a)&&(a=yk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Id(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Id(a),h={},v={},d={list:[],map:{}},p={showPointer:de(jK,v),showTooltip:de(XK,d)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);C(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=JK(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(a)),T!=null&&_k(S,T,p,!1,h)}})});var g={};return C(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&C(_.axesInfo,function(S,x){var b=v[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Sk(S),Sk(y)))),g[y.key]=w}})}),C(g,function(y,m){_k(f[m],y,p,!0,h)}),qK(v,f,h),KK(d,a,r,o),QK(f,o,t),h}}function _k(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=ZK(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&z(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function ZK(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),C(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function jK(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function XK(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Zf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function qK(r,e,t){var n=t.axesInfo=[];C(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function KK(r,e,t,n){if(Id(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function QK(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=mk(n)[a]||{},o=mk(n)[a]={};C(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&C(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JK(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Sk(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Id(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function cc(r){ts.registerAxisPointerClass("CartesianAxisPointer",NK),r.registerComponentModel(BK),r.registerComponentView($K),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!F(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=G9(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},UK)}function eQ(r){Te($E),Te(cc)}var tQ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=P1(i),d=nQ[h](s,l,c,f);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=rQ(n,a,i,l,p);lk(t,a,i,o,g)},e}(I1);function rQ(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=Or();hi(h,h,s),Mn(h,h,[n.cx,n.cy]),u=Vn([o,-a],h);var v=e.getModel("axisLabel").get("rotate")||0,d=Ga.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var nQ={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:k1(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:hk(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:hk(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const aQ=tQ;var iQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Ie);const oQ=iQ;var O1=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",At).models[0]},e.type="polarAxis",e}(Ie);_t(O1,ml);var sQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(O1),lQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(O1),N1=function(r){N(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(dn);N1.prototype.dataToRadius=dn.prototype.dataToCoord,N1.prototype.radiusToData=dn.prototype.coordToData;const uQ=N1;var fQ=Be(),V1=function(r){N(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Nu(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=fQ(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e}(dn);V1.prototype.dataToAngle=dn.prototype.dataToCoord,V1.prototype.angleToData=dn.prototype.coordToData;const cQ=V1;var bk=["radius","angle"],hQ=function(){function r(e){this.dimensions=bk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new uQ,this._angleAxis=new cQ,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[a,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(e,t,n){var a=xk(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=xk(t);return a===this?this.pointToData(n):null},r}();function xk(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const vQ=hQ;function dQ(r,e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight();r.cx=Y(n[0],a),r.cy=Y(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:F(l)||(l=[0,l]);var u=[Y(l[0],s),Y(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function pQ(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Hv(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),C(Hv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),$o(n.scale,n.model),$o(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function gQ(r){return r.mainType==="angleAxis"}function wk(r,e){if(r.type=e.get("type"),r.scale=Rf(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),gQ(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var yQ={dimensions:bk,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new vQ(a+"");i.update=pQ;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");wk(o,l),wk(s,u),dQ(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",At).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+St(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),t}};const mQ=yQ;var _Q=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Pd(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Ld(r){var e=r.getRadiusAxis();return e.inverse?0:1}function Tk(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var SQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=G(a.getViewLabels(),function(f){f=se(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});Tk(u),Tk(s),C(_Q,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&bQ[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ts),bQ={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=Ld(t),l=s?0:1,u;i[l]===0?u=new Rn({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new ef({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Ld(t)],u=G(n,function(f){return new Nt({shape:Pd(t,[l,l+s],f.coord)})});r.add(Fr(u,{style:ae(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Ld(t)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new Nt({shape:Pd(t,[u,u+l],a[c][h].coord)}));r.add(Fr(f,{style:ae(s.getModel("lineStyle").getLineStyle(),ae(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");C(o,function(c,h){var v=l,d=c.tickValue,p=i[Ld(t)],g=t.coordToPoint([p+u,c.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];re(x)&&x.textStyle&&(v=new je(x.textStyle,l,l.ecModel))}var b=new ke({silent:Ga.isLabelSilent(e),style:Je(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),f){var w=Ga.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,ve(b).eventData=w}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Nt({shape:Pd(t,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Fr(f[c],{style:ae({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new Nt({shape:Pd(t,i,a[u][f].coord)}));r.add(Fr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new _r({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:h,endAngle:-m*c,clockwise:p},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(Fr(f[g],{style:ae({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const xQ=SQ;var wQ=["axisLine","axisTickLabel","axisName"],TQ=["splitLine","splitArea","minorSplitLine"],DQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=this._axisGroup,i=this._axisGroup=new fe;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=AQ(s,t,c),d=new Ga(t,v);C(wQ,d.add,d),i.add(d.getGroup()),af(a,i,t),C(TQ,function(p){t.get([p,"show"])&&!o.scale.isBlank()&&CQ[p](this.group,t,s,c,h,u,f)},this)}},e.type="radiusAxis",e}(ts),CQ={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Rn({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[c].coord,0)}}))}for(var c=0;c<f.length;c++)r.add(Fr(f[c],{style:ae({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new Rn({shape:{cx:t.cx,cy:t.cy,r:o[f][c].coord}}));r.add(Fr(u,{style:ae({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new _r({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)r.add(Fr(f[h],{style:ae({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function AQ(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const MQ=DQ;function Dk(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Ck(r,e){return e.dim+r.model.componentIndex}function EQ(r,e,t){var n={},a=IQ(Ye(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Ck(s,l),f=Dk(i),c=a[u][f],h=c.offset,v=c.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),x=za(o,_),b=l.dim!=="radius"||!i.get("roundCap",!0),w=d.dataToCoord(0),T=0,D=o.count();T<D;T++){var M=o.get(_,T),A=o.get(S,T),E=M>=0?"p":"n",I=w;x&&(n[f][A]||(n[f][A]={p:w,n:w}),I=n[f][A][E]);var P=void 0,L=void 0,k=void 0,V=void 0;if(d.dim==="radius"){var O=d.dataToCoord(M)-w,B=l.dataToCoord(A);Math.abs(O)<y&&(O=(O<0?-1:1)*y),P=I,L=I+O,k=B-h,V=k-v,x&&(n[f][A][E]=L)}else{var H=d.dataToCoord(M,b)-w,W=l.dataToCoord(A);Math.abs(H)<m&&(H=(H<0?-1:1)*m),P=W+h,L=P+v,k=I,V=I+H,x&&(n[f][A][E]=V)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:L,startAngle:-k*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:k>=V})}}})}function IQ(r){var e={};C(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Ck(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var v=Dk(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=Y(n.get("barWidth"),f),p=Y(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return C(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=Y(n.categoryGap,o),l=Y(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),C(i,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;C(i,function(p,g){p.width||(p.width=c),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;C(i,function(p,g){t[a][g]=t[a][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),t}var PQ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},LQ={splitNumber:5},kQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(ut);function RQ(r){Te(cc),ts.registerAxisPointerClass("PolarAxisPointer",aQ),r.registerCoordinateSystem("polar",mQ),r.registerComponentModel(oQ),r.registerComponentView(kQ),wl(r,"angle",sQ,PQ),wl(r,"radius",lQ,LQ),r.registerComponentView(xQ),r.registerComponentView(MQ),r.registerLayout(de(EQ,"bar"))}function B1(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),St(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var OQ=["axisLine","axisTickLabel","axisName"],NQ=["splitArea","splitLine"],VQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new fe;var l=B1(t),u=new Ga(t,l);C(OQ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),C(NQ,function(f){t.get([f,"show"])&&BQ[f](this,this.group,this._axisGroup,t)},this),af(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){GE(this)},e.type="singleAxis",e}(ts),BQ={splitLine:function(r,e,t,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=a.isHorizontal(),c=[],h=0,v=a.getTicksCoords({tickModel:i}),d=[],p=[],g=0;g<v.length;++g){var y=a.toGlobalCoord(v[g].coord);f?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new Nt({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Xs(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(Fr(c[g],{style:ae({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,n){FE(r,t,n,n)}};const zQ=VQ;var Ak=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Ie);_t(Ak,ml.prototype);const z1=Ak;var FQ=function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(dn);const GQ=FQ;var Mk=["single"],HQ=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=Mk,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new GQ(a,Rf(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();C(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),$o(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Mt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(e,t,n){var a=Ek(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=Ek(t);return a===this?this.pointToData(n):null},r}();function Ek(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function WQ(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new HQ(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",At).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var YQ={create:WQ,dimensions:Mk};const $Q=YQ;var Ik=["x","y"],UQ=["width","height"],ZQ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=F1(l,1-kd(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=P1(i),v=jQ[c](s,f,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=B1(a);fk(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=B1(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=L1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=kd(o),u=F1(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=F1(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(I1),jQ={line:function(r,e,t){var n=k1([e,t[0]],[e,t[1]],kd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:ck([e-n/2,t[0]],[n,a],kd(r))}}};function kd(r){return r.isHorizontal()?0:1}function F1(r,e){var t=r.getRect();return[t[Ik[e]],t[Ik[e]]+t[UQ[e]]]}const XQ=ZQ;var qQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(ut);function KQ(r){Te(cc),ts.registerAxisPointerClass("SingleAxisPointer",XQ),r.registerComponentView(qQ),r.registerComponentView(zQ),r.registerComponentModel(z1),wl(r,"single",z1,z1.defaultOption),r.registerCoordinateSystem("single",$Q)}var QQ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=rl(t);r.prototype.init.apply(this,arguments),Pk(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Pk(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Ie);function Pk(r,e){var t=r.cellSize,n;F(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=G([0,1],function(i){return F4(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Ei(r,e,{type:"box",ignoreSize:a})}const JQ=QQ;var eJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new Le({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new br({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return $(t)&&t?N4(t,n):Q(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new ke({z2:30,style:Je(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(n=rm(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p<c[h].length-1;p++){var g=c[h][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[v]=(m[v]+c[0][p+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},b=this._formatterLabel(_,x),w=new ke({z2:30,style:z(Je(o,{text:b}),this._monthTextPositionControl(g,d,a,u,l))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||$(f)){f&&(n=rm(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||G(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=Y(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var S=new ke({z2:30,style:z(Je(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,c,p))});o.add(S)}}},e.type="calendar",e}(ut);const tJ=eJ;var G1=864e5,rJ=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=zr(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];C([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Mt(o,l);C([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){F(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+G1))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=Lk(t);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=Lk(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(F(e)&&e.length===1&&(e=e[0]),F(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!=="production"&&Xr("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/G1)-Math.floor(t[0].time/G1)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),c=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function Lk(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const nJ=rJ;function aJ(r){r.registerComponentModel(JQ),r.registerComponentView(tJ),r.registerCoordinateSystem("calendar",nJ)}function iJ(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function kk(r,e){var t;return C(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function oJ(r,e,t){var n=z({},t),a=r[e],i=t.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=t.type;ie(!o||a.type===o,'Please set $action: "replace" to change `type`')}ye(a,n,!0),Ei(a,n,{ignoreSize:!0}),nC(t,a),Rd(t,a),Rd(t,a,"shape"),Rd(t,a,"style"),Rd(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=n;else i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var Rk=["transition","enterFrom","leaveTo"],sJ=Rk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Rd(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?Rk:sJ,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function lJ(r,e){if(r&&(r.hv=e.hv=[kk(e,["left","right"]),kk(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var uJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=Xw(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];C(l,function(f,c){var h=f.newOption;process.env.NODE_ENV!=="production"&&ie(re(h)||f.existing,"Empty graphic option definition"),h&&(u.push(h),iJ(f,h),oJ(o,c,h),lJ(o[c],h))},this),a.elements=Ye(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){C(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Ie),Ok={path:null,compoundPath:null,group:fe,image:Wt,text:ke},_n=Be(),fJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=te()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");C(n,function(l){var u=Lt(l.id,null),f=u!=null?a.get(u):null,c=Lt(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&RL(d,v,!!g,!!p)){var y=OL(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=cJ(l);process.env.NODE_ENV!=="production"&&f&&ie(h===f.parent,"Changing parent is not supported.");var _=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=Nk(u,h,l.type,a):(w&&(_n(w).isNew=!1),jL(w)),w&&(Dd(w,m,t,{isInit:b}),Vk(w,l,o,s))}else if(x){Od(f,l,a,t);var T=Nk(u,h,l.type,a);T&&(Dd(T,m,t,{isInit:!0}),Vk(T,l,o,s))}else _==="remove"&&(WL(f,l),Od(f,l,a,t));var D=a.get(u);if(D&&p)if(S){var M=D.getTextContent();M?M.attr(p):D.setTextContent(new ke(p))}else x&&D.setTextContent(new ke(p));if(D){var A=l.clipPath;if(A){var E=A.type,I=void 0,b=!1;if(S){var P=D.getClipPath();b=!P||_n(P).type!==E,I=b?H1(E):P}else x&&(b=!0,I=H1(E));D.setClipPath(I),Dd(I,A,t,{isInit:b}),Ad(I,A.keyframeAnimation,t)}var L=_n(D);D.setTextConfig(g),L.option=l,hJ(D,t,l),Ks({el:D,componentModel:t,itemName:D.name,itemTooltipOption:l.tooltip}),Ad(D,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=Lt(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=_n(v),y=_n(d);g.width=Y(g.option.width,p?s:y.width)||0,g.height=Y(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=Lt(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=_n(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=iv(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!_n(v).isNew&&S){for(var x=c.transition,b={},w=0;w<u.length;w++){var T=u[w],D=_[T];x&&(fs(x)||we(x,T)>=0)?b[T]=D:v[T]=D}Oe(v,b,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){Od(a,_n(a).option,n,t._lastGraphicModel)}),this._elMap=te()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ut);function H1(r){process.env.NODE_ENV!=="production"&&ie(r,"graphic type MUST be set");var e=X(Ok,r)?Ok[r]:$h(r);process.env.NODE_ENV!=="production"&&ie(e,"graphic type "+r+" can not be found");var t=new e({});return _n(t).type=r,t}function Nk(r,e,t,n){var a=H1(t);return e.add(a),n.set(r,a),_n(a).id=r,_n(a).isNew=!0,a}function Od(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){Od(i,e,t,n)}),Cd(r,e,n),t.removeKey(_n(r).id))}function Vk(r,e,t,n){r.isGroup||C([["cursor",an.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];X(e,i)?r[i]=me(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),C(Me(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=Q(i)?i:null}}),X(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function cJ(r){return r=z({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rC),function(e){delete r[e]}),r}function hJ(r,e,t){var n=ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function vJ(r){r.registerComponentModel(uJ),r.registerComponentView(fJ),r.registerPreprocessor(function(e){var t=e.graphic;F(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Bk=["x","y","radius","angle","single"],dJ=["cartesian2d","polar","singleAxis"];function pJ(r){var e=r.get("coordinateSystem");return we(dJ,e)>=0}function Yi(r){return process.env.NODE_ENV!=="production"&&ie(r),r+"Axis"}function gJ(r,e){var t=te(),n=[],a=te();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return n}function zk(r){var e=r.ecModel,t={infoList:[],infoMap:te()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Yi(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var W1=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),yJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=Fk(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=Fk(t);ye(this.option,t,!0),ye(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=te(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return C(Bk,function(a){var i=this.getReferringComponents(Yi(a),_3);if(i.specified){n=!0;var o=new W1;C(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new W1;if(h.add(c.componentIndex),t.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",At).models[0];v&&C(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",At).models[0]&&h.add(d.componentIndex)})}}}i&&C(Bk,function(u){if(i){var f=a.findComponents({mainType:Yi(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new W1;c.add(f[0].componentIndex),t.set(u,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Yi(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){C(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&ie(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Yi(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;C(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ie(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ie);function Fk(r){var e={};return C(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const hc=yJ;var mJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(hc);const _J=mJ;var SJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(ut);const Y1=SJ;var bJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Y1);const xJ=bJ;var kl=C,Gk=Br,wJ=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(pJ(t)){var n=Yi(this._dimName),a=t.getReferringComponents(n,At).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return se(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;kl(["start","end"],function(h,v){var d=e[h],p=e[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(He(d,o,t))):(u=!0,p=p==null?t[v]:a.parse(p),d=He(p,t,o)),l[v]=p,s[v]=d}),Gk(l),Gk(s);var f=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,v,d,p,g){var y=g?"Span":"ValueSpan";ss(0,h,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=He(h[m],d,p,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=TJ(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;kl(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else kl(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});kl(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;kl(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=He(n[0]+o,n,[0,100],!0):i!=null&&(o=He(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=ny(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function TJ(r,e,t){var n=[1/0,-1/0];kl(t,function(o){OW(n,o.getData(),e)});var a=r.getAxisModel(),i=jM(a.axis.scale,a,n).calculate();return[i.min,i.max]}const DJ=wJ;var CJ={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Yi(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new DJ(a,i,s,r),t.push(o.__dzAxisProxy))});var n=te();return C(t,function(a){C(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const AJ=CJ;function MJ(r){r.registerAction("dataZoom",function(e,t){var n=gJ(t,e);C(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Hk=!1;function $1(r){Hk||(Hk=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,AJ),MJ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function EJ(r){r.registerComponentModel(_J),r.registerComponentView(xJ),$1(r)}var Sn=function(){function r(){}return r}(),Wk={};function Rl(r,e){Wk[r]=e}function Yk(r){return Wk[r]}var IJ=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(n,a){var i=Yk(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ye(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Ie);const PJ=IJ;function LJ(r,e,t){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Mt(n,i,a);Oo(e.get("orient"),r,e.get("itemGap"),o.width,o.height),iv(r,n,i,a)}function $k(r,e){var t=Lo(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new Le({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var kJ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),c=[];C(u,function(d,p){c.push(p)}),new Ba(this._featureNames||[],c).add(h).update(h).remove(de(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],y=c[p],m=u[g],_=new je(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(RJ(g))S={onclick:_.option.onclick,featureName:g};else{var x=Yk(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=Js("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var b=S instanceof Sn;if(!g&&y){b&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var D=this.option,M=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[w]=T,M[w]&&(T==="emphasis"?Ra:Oa)(M[w])},S instanceof Sn&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Sn&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,b;$(_)?(x={},x[g]=_):x=_,$(S)?(b={},b[g]=S):b=S;var w=d.iconPaths={};C(x,function(T,D){var M=qs(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var A=M.ensureState("emphasis");A.style=m.getItemStyle();var E=new ke({style:{text:b[D],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(E),Ks({el:M,componentModel:t,itemName:D,formatterParamsExtra:{title:b[D]}}),M.__title=b[D],M.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ra:Oa)(M),o.add(M),M.on("click",j(p.onclick,p,n,a,D)),w[D]=M})}LJ(o,t,a),o.add($k(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Q(_)&&p){var S=_.style||(_.style={}),x=Nu(p,ke.makeFont(S)),b=d.x+o.x,w=d.y+o.y+s,T=!1;w+x.height>a.getHeight()&&(y.position="top",T=!0);var D=T?-5-x.height:s+10;b+x.width/2>a.getWidth()?(y.position=["100%",D],S.align="right"):b-x.width/2<0&&(y.position=[0,D],S.align="left")}})},e.prototype.updateView=function(t,n,a,i){C(this._features,function(o){o instanceof Sn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){C(this._features,function(a){a instanceof Sn&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){C(this._features,function(a){a instanceof Sn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(ut);function RJ(r){return r.indexOf("my")===0}const OJ=kJ;var NJ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Ve.browser;if(Q(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Sn);const VJ=NJ;var Uk="__ec_magicType_stack__",BJ=[["line","bar"],["stack"]],zJ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return C(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Zk[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Zk[a](h,v,c,i);d&&(ae(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,At).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};C(BJ,function(c){we(c,a)>=0&&C(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ye({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Sn),Zk={line:function(r,e,t,n){if(r==="bar")return ye({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return ye({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===Uk;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ye({id:e,stack:a?"":Uk},n.get(["option","stack"])||{},!0)}};zn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const FJ=zJ;var Nd=new Array(60).join("-"),Ol=" ";function GJ(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function HJ(r){var e=[];return C(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(v){return v.name})),l=[a.model.getCategories()];C(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ol)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Ol))}e.push(u.join(`
60
+ `))}),e.join(`
61
+
62
+ `+Nd+`
63
+
64
+ `)}function WJ(r){return G(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Ol:"")+a.join(Ol))}),n.join(`
65
+ `)}).join(`
66
+
67
+ `+Nd+`
68
+
69
+ `)}function YJ(r){var e=GJ(r);return{value:Ye([HJ(e.seriesGroupByCategoryAxis),WJ(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
70
+
71
+ `+Nd+`
72
+
73
+ `),meta:e.meta}}function Vd(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $J(r){var e=r.slice(0,r.indexOf(`
74
+ `));if(e.indexOf(Ol)>=0)return!0}var U1=new RegExp("["+Ol+"]+","g");function UJ(r){for(var e=r.split(/\n+/g),t=Vd(e.shift()).split(U1),n=[],a=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Vd(e[i]).split(U1);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function ZJ(r){for(var e=r.split(/\n+/g),t=Vd(e.shift()),n=[],a=0;a<e.length;a++){var i=Vd(e[a]);if(i){var o=i.split(U1),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function jJ(r,e){var t=r.split(new RegExp(`
75
+ *`+Nd+`
76
+ *`,"g")),n={series:[]};return C(t,function(a,i){if($J(a)){var o=UJ(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=ZJ(a);n.series.push(o)}}),n}var XJ=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=YJ(t);if(Q(c)){var d=c(n.getOption());$(d)?u.innerHTML=d:to(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){a.removeChild(o),x._dom=null}Sg(_,"click",b),Sg(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){process.env.NODE_ENV!=="production"&&Jt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var w;try{Q(h)?w=h(u,n.getOption()):w=jJ(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(Sn);function qJ(r,e){return G(r,function(t,n){var a=e&&e[n];if(re(a)&&!F(a)){var i=re(t)&&!F(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=ae(t,a),o&&delete t.name,t}else return t})}zn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];C(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(z({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:qJ(n.data,i)})}}),e.mergeOption(ae({series:t},r.newOption))});const KJ=XJ;var jk=C,Xk=Be();function QJ(r,e){var t=Z1(r);jk(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function JJ(r){var e=Z1(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return jk(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function eee(r){Xk(r).snapshots=null}function tee(r){return Z1(r).length}function Z1(r){var e=Xk(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ree=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){eee(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Sn);zn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const nee=ree;var aee=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iee=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=qk(t,e);C(oee,function(o,s){(!n||!n.include||we(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=X1[n.brushType](0,i,a);n.__rangeOffset={offset:eR[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){C(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=X1[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(n){var a=this.findTargetInfo(n,t);if(process.env.NODE_ENV!=="production"&&(ie(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),ie(!a||a!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=X1[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?eR[n.brushType](i.values,o.offset,see(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:UP(a),isTargetByCursor:jP(a,e,n.coordSysModel),getLinearBrushOtherExtent:ZP(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&we(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=qk(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Kk.length;l++)if(Kk[l](a,o))return o}return!0},r}();function j1(r){return r[0]>r[1]&&r.reverse(),r}function qk(r,e){return Hu(r,e,{includeMainTypes:aee})}var oee={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=te(),o={},s={};!t&&!n&&!a||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(c,h){(we(t,c.getAxis("x").model)>=0||we(n,c.getAxis("y").model)>=0)&&f.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Qk.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:Qk.geo})})}},Kk=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],Qk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Ci(r)),e}},X1={lineX:de(Jk,0),lineY:de(Jk,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[j1([a[0],i[0]]),j1([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Jk(r,e,t,n){process.env.NODE_ENV!=="production"&&ie(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=t.getAxis(["x","y"][r]),i=j1(G([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var eR={lineX:de(tR,0),lineY:de(tR,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function tR(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function see(r,e){var t=rR(r),n=rR(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function rR(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const q1=iee;var K1=C,lee=d3("toolbox-dataZoom_"),uee=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new s1(a.getZr()),this._brushController.on("brush",j(this._onBrush,this)).mount()),hee(t,n,this,i,a),cee(t,n)},e.prototype.onclick=function(t,n,a){fee[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new q1(Q1(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),QJ(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=ss(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var n=[];K1(t,function(a,i){n.push(se(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(Sn),fee={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(JJ(this.ecModel))}};function Q1(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function cee(r,e){r.setIconStatus("back",tee(e)>1?"emphasis":"normal")}function hee(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new q1(Q1(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}U4("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Q1(n),o=Hu(r,i);K1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),K1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:lee+u+c};h[f]=c,a.push(h)}return a});const vee=uee;function dee(r){r.registerComponentModel(PJ),r.registerComponentView(OJ),Rl("saveAsImage",VJ),Rl("magicType",FJ),Rl("dataView",KJ),Rl("dataZoom",vee),Rl("restore",nee),Te(EJ)}var pee=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",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}},e}(Ie);const gee=pee;function nR(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function aR(r){if(Ve.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var iR=aR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yee=aR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function oR(r,e){if(!r)return e;e=lm(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function mee(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var _ee=oR(yee,"transition"),J1=oR(iR,"transform"),See="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ve.transform3dSupported?"will-change:transform;":"");function bee(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function xee(r,e,t){if(!$(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=ko(e);var i=bee(t),o=Math.max(Math.round(a)*1.5,6),s="",l=J1+":",u;we(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function wee(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,a="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,a+=Ve.transformSupported?","+J1+n:",left"+n+",top"+n),_ee+":"+a}function sR(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Ve.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ve.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+J1+":"+o+";":[["top",0],["left",0],[iR,o]]}function Tee(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),C(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Dee(r,e,t){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=iA(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&a&&n.push(wee(a,t)),i&&n.push("background-color:"+i),C(["width","color","radius"],function(v){var d="border-"+v,p=lm(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Tee(f)),c!=null&&n.push("padding:"+Lo(c).join("px ")+"px"),n.join(";")+";"}function lR(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&AB(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Cee=function(){function r(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ve.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;lR(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();en(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,n=mee(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=See+Dee(e,!this._firstShow,this._longHide)+sR(i[0],i[1],!0)+("border-color:"+ko(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(i)&&n.get("trigger")==="item"&&!nR(n)&&(s=xee(n,a,i)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",F(e)||(e=[e]);for(var l=0;l<e.length;l++)to(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var n=this._styleCoord;if(lR(n,this._zr,this._appendToBody,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=sR(n[0],n[1]);C(i,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Ve.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const Aee=Cee;var Mee=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),fR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;re(e)&&Ge(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ke({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:iA(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=uR(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;fR(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=$i(i.borderWidth||0),s=uR(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function $i(r){return Math.max(0,r)}function uR(r){var e=$i(r.shadowBlur||0),t=$i(r.shadowOffsetX||0),n=$i(r.shadowOffsetY||0);return{left:$i(e-t),right:$i(e+t),top:$i(e-n),bottom:$i(e+n)}}function fR(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const Eee=Mee;var Iee=new Le({shape:{x:-1,y:-1,width:2,height:2}}),Pee=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(Ve.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=b3(a.get("renderMode"));this._tooltipContent=i==="richText"?new Eee(n):new Aee(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(t,n,a){if(!(Ve.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?ul(this,"_updatePosition",50,"fixRate"):bf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");pk("itemTooltip",this._api,j(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||Ve.node||!a.getDom())){var o=cR(i,a);this._ticket="";var s=i.dataByCoordSys,l=Oee(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Iee;f.x=i.x,f.y=i.y,f.update(),ve(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var c=yk(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(cR(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=vc([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;Fo(a,function(u){if(ve(u).dataIndex!=null)return s=u,!0;if(ve(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,n):l?this._showComponentItemTooltip(t,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=j(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=vc([n.tooltipOption],i),l=this._renderMode,u=[],f=Vt("section",{blocks:[],noHeader:!0}),c=[],h=new Rm;C(t,function(m){C(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=uk(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=Vt("section",{header:b,noHeader:!Qr(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,A=D.getDataParams(M);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=x0(S.axis,{value:x}),A.axisValueLabel=b,A.marker=h.makeTooltipMarker("item",ko(A.color),l);var E=zC(D.formatTooltip(M,!0,null)),I=E.frag;if(I){var P=vc([D],i).get("valueFormatter");w.blocks.push(P?z({valueFormatter:P},I):I)}E.text&&c.push(E.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=rA(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
77
+
78
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ve(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=t.positionDefault,p=vc([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Rm;y.marker=m.makeTooltipMarker("item",ko(y.color),v);var _=zC(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?rA(x?z({valueFormatter:x},b):b,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=ve(n),o=i.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=t.positionDefault,h=vc(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new Rm;this._showOrMove(h,function(){var g=se(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,t.offsetX,t.offsetY,t.position,n,p)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),p=d.color;if(h)if($(h)){var g=t.ecModel.get("useUTC"),y=F(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=cf(y.axisValue,v,g)),v=cm(v,a,!0)}else if(Q(h)){var _=j(function(S,x){S===this._ticket&&(c.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i){if(a==="axis"||F(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),F(n))a=Y(n[0],u),i=Y(n[1],f);else if(re(n)){var p=n;p.width=c[0],p.height=c[1];var g=Mt(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if($(n)&&l){var y=Ree(n,d,c,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=Lee(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=hR(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=hR(v)?c[1]/2:v==="bottom"?c[1]:0),nR(t)){var y=kee(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&C(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&C(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&C(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&C(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Ve.node||!n.getDom()||(bf(this,"_updatePosition"),this._tooltipContent.dispose(),R1("itemTooltip",n))},e.type="tooltip",e}(ut);function vc(r,e,t){var n=e.ecModel,a;t?(a=new je(t,n,n),a=new je(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof je&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(a=new je(o,a,n)))}return a}function cR(r,e){return r.dispatchAction||j(e.dispatchAction,e)}function Lee(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function kee(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Ree(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function hR(r){return r==="center"||r==="middle"}function Oee(r,e,t){var n=uy(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Wu(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ve(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const Nee=Pee;function Vee(r){Te(cc),r.registerComponentModel(gee),r.registerComponentView(Nee),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}var Bee=["rect","polygon","keep","clear"];function zee(r,e){var t=Ze(r?r.brush:[]);if(t.length){var n=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;F(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Fee(s),e&&!s.length&&s.push.apply(s,Bee)}}function Fee(r){var e={};C(r,function(t){e[t]=1}),r.length=0,C(e,function(t,n){r.push(n)})}var vR=C;function dR(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function eS(r,e,t){var n={};return vR(e,function(i){var o=n[i]=a();vR(r[i],function(s,l){if(qt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new qt(u),l==="opacity"&&(u=se(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new qt(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function pR(r,e,t){var n;C(t,function(a){e.hasOwnProperty(a)&&dR(e[a])&&(n=!0)}),n&&C(t,function(a){e.hasOwnProperty(a)&&dR(e[a])?r[a]=se(e[a]):delete r[a]})}function Gee(r,e,t,n,a,i){var o={};C(r,function(c){var h=qt.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return zm(t,s,c)}function u(c,h){AA(t,s,c,h)}i==null?t.each(f):t.each([i],f);function f(c,h){s=i==null?c:h;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(a,c),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function Hee(r,e,t,n){var a={};return C(r,function(i){var o=qt.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return zm(s,c,x)}function f(x,b){AA(s,c,x,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=t(d),g=e[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function Wee(r){var e=r.brushType,t={point:function(n){return gR[e].point(n,t,r)},rect:function(n){return gR[e].rect(n,t,r)}};return t}var gR={lineX:yR(0),lineY:yR(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Uo(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Uo(n,a,i)||Uo(n,a+o,i)||Uo(n,a,i+s)||Uo(n,a+o,i+s)||xe.create(r).contain(l[0],l[1])||of(a,i,a+o,i,n)||of(a,i,a,i+s,n)||of(a+o,i,a+o,i+s,n)||of(a,i+s,a+o,i+s,n))return!0}}};function yR(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return dc(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),dc(s[0],o)||dc(s[1],o)||dc(o[0],s)||dc(o[1],s)}}}}function dc(r,e){return e[0]<=r&&r<=e[1]}var mR=["inBrush","outOfBrush"],tS="__ecBrushSelect",rS="__ecInBrushSelectEvent";function _R(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new q1(e.option,r);t.setInputRanges(e.areas,r)})}function Yee(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),_R(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:se(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=G(o.areas,function(x){var b=jee[x.brushType],w=ae({boundingRect:b?b(x):void 0},x);return w.selectors=Wee(w),w}),g=eS(o.option,mR,function(x){x.mappingMethod="fixed"});F(f)&&C(f,function(x){c[x]=1});function y(x){return f==="all"||!!c[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=v[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,D){T==="active"&&(h[D]=1)})}function S(x,b,w){if(!(!x.brushSelector||Zee(o,b))&&(C(p,function(D){o.brushTargetManager.controlSeries(D,x,r)&&w.push(D),d=d||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(D){SR(x,w,T,D)&&(h[D]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=v[b],D=x.getData(),M=y(b)?function(A){return h[A]?(w.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return SR(x,T,D,A)?(w.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(b)?d:m(T))&&Gee(mR,g,D,M)})}),$ee(e,a,i,n,t)}function $ee(r,e,t,n,a){if(a){var i=r.getZr();if(!i[rS]){i[tS]||(i[tS]=Uee);var o=ul(i,tS,t,e);o(r,n)}}}function Uee(r,e){if(!r.isDisposed()){var t=r.getZr();t[rS]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[rS]=!1}}function SR(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function Zee(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(F(t)?we(t,e)<0:e!==t)}var jee={rect:function(r){return bR(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&bR(e)}};function bR(r){return new xe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Xee=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new s1(n.getZr())).on("brush",j(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){_R(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:se(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:se(a),$from:n})},e.type="brush",e}(ut);const qee=Xee;var Kee="#ddd",Qee=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&pR(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Kee},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(ie(F(t)),C(t,function(n){ie(n.brushType,"Illegal areas")})),t&&(this.areas=G(t,function(n){return xR(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=xR(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Ie);function xR(r,e){return ye({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new je(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const Jee=Qee;var ete=["rect","polygon","lineX","lineY","keep","clear"],tte=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return C(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:ete.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(Sn);const rte=tte;function nte(r){r.registerComponentView(qee),r.registerComponentModel(Jee),r.registerPreprocessor(zee),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Yee),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},bt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},bt),Rl("brush",rte)}var ate=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Ie),ite=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=me(t.get("textBaseline"),t.get("textVerticalAlign")),f=new ke({style:Je(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new ke({style:Je(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){nv(d,"_"+t.get("target"))}),p&&v.on("click",function(){nv(p,"_"+t.get("subtarget"))}),ve(f).eventData=ve(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Mt(m,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var x=_.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new Le({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(ut);function ote(r){r.registerComponentModel(ate),r.registerComponentView(ite)}var ste=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],C(n,function(u,f){var c=Lt(zs(u),""),h;re(u)?(h=se(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ir([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Ie);const wR=ste;var TR=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Mi(wR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(wR);_t(TR,Mm.prototype);const lte=TR;var ute=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(ut);const fte=ute;var cte=function(r){N(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(dn);const hte=cte;var nS=Math.PI,DR=Be(),vte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Vt("nameValue",{noName:!0,value:f})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=pte(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":$(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:nS/2},c=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*nS/180;var m,_,S,x=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),D=0,M=c;x==="left"||x==="bottom"?(b&&(m=[0,0],D+=g),w&&(_=[D,0],D+=g),T&&(S=[M-d,0],M-=g)):(b&&(m=[M-d,0],M-=g),w&&(_=[0,0],D+=g),T&&(S=[M-d,0],M-=g));var A=[D,M];return t.get("inverse")&&A.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:A,controlSize:d,controlGap:p}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Or(),l=o.x,u=o.y+o.height;Mn(s,s,[-l,-u]),hi(s,s,-nS/2),Mn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],d=[i.x,i.y];d[0]=v[0]=f[0][0];var p=t.labelPosOpt;if(p==null||$(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}a.setPosition(v),i.setPosition(d),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=dte(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new hte("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new fe;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Nt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:z({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Nt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ae({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],C(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:j(o._changeTimeline,o,u.value)},g=CR(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),wi(g);var y=ve(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],C(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new ke({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:j(o._changeTimeline,o,c),silent:!1,style:Je(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Je(d),y.ensureState("progress").style=Je(p),n.add(y),wi(y),DR(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(t.nextBtnPosition,"next",j(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",j(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,f?"stop":"play",j(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=Ln(me(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=gte(i,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),wi(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=j(u._handlePointerDrag,u),c.ondragend=j(u._handlePointerDragend,u),AR(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){AR(c,u._progressLine,s,a,i)}};this._currentPointer=CR(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Br(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw(),this._progressLine.shape.x2=a,this._progressLine.dirty();var s=this._findNearestTick(a),l=this.model;(n||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Vn(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",DR(a[i]).dataIndex<=t)},e.type="timeline.slider",e}(fte);function dte(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new y0({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new $M({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Oi}}function pte(r,e){return Mt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function gte(r,e,t,n){var a=n.style,i=qs(r.get(["controlStyle",e]),n||{},new xe(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function CR(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=wt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=ye({rectHover:!0,z2:100},n,!0);var u=Df(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=cl(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function AR(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const yte=vte;function mte(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),ae({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function _te(r){var e=r&&r.timeline;F(e)||(e=e?[e]:[]),C(e,function(t){t&&Ste(t)})}function Ste(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),MR(r),hs(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});hs(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!hs(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}C(r.data||[],function(a){re(a)&&!F(a)&&(!hs(a,"value")&&hs(a,"name")&&(a.value=a.name),MR(a))})}function MR(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};C(n,function(o,s){!i[s]&&!hs(a,s)&&(a[s]=o)}),t.label&&!hs(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function hs(r,e){return r.hasOwnProperty(e)}function bte(r){r.registerComponentModel(lte),r.registerComponentView(yte),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),mte(r),r.registerPreprocessor(_te)}function aS(r,e){if(!r)return!1;for(var t=F(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function Bd(r){ho(r,"label",["show"])}var zd=Be(),ER=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ve.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=zd(s)[o];if(!l||!l.data){zd(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Bd(l),C(l.data,function(f){f instanceof Array?(Bd(f[0]),Bd(f[1])):Bd(f)}),u=this.createMarkerModelFromSeries(l,this,n),z(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),zd(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Vt("section",{header:this.name,blocks:[Vt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,n){return zd(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ie);_t(ER,Mm.prototype);const Ui=ER;var xte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Ui);const wte=xte;function iS(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Tte(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Fd(r,e,t,n,a,i){var o=[],s=za(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=sS(e,l,r),f=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,f),o[i]=e.get(l,f);var c=e.get(n,f),h=kn(e.get(n,f));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var oS={min:de(Fd,"min"),max:de(Fd,"max"),average:de(Fd,"average"),median:de(Fd,"median")};function pc(r,e){var t=r.getData(),n=r.coordinateSystem;if(e&&!Tte(e)&&!F(e.coord)&&n){var a=n.dimensions,i=IR(e,t,n,r);if(e=se(e),e.type&&oS[e.type]&&i.baseAxis&&i.valueAxis){var o=we(a,i.baseAxis.dim),s=we(a,i.valueAxis.dim),l=oS[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis],f=0;f<2;f++)oS[u[f]]&&(u[f]=sS(t,t.mapDimension(a[f]),u[f]));e.coord=u}}return e}function IR(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(Dte(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Dte(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function gc(r,e){return r&&r.containData&&e.coord&&!iS(e)?r.containData(e.coord):!0}function Cte(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!iS(e)&&!iS(t)?r.containZone(e.coord,t.coord):!0}function PR(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ii(o,e[i])}:function(t,n,a,i){return Ii(t.value,e[i])}}function sS(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var lS=Be(),Ate=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=te()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){lS(s).keep=!1}),n.eachSeries(function(s){var l=Ui.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!lS(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){lS(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;C(t,function(i){var o=Ui.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?$T(l):ky(l))})}})},e.type="marker",e}(ut);const uS=Ate;function LR(r,e,t){var n=e.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=Y(i.get("x"),t.getWidth()),l=Y(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var Mte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Ui.getMarkerModelFromSeries(i,"markPoint");o&&(LR(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Wf),c=Ete(o,t,n);n.setData(c),LR(n.getData(),t,i),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(Q(d)||Q(p)||Q(g)||Q(y)){var _=n.getRawValue(h),S=n.getDataParams(h);Q(d)&&(d=d(_,S)),Q(p)&&(p=p(_,S)),Q(g)&&(g=g(_,S)),Q(y)&&(y=y(_,S))}var x=v.getModel("itemStyle").getItemStyle(),b=Tf(l,"color");x.fill||(x.fill=b),c.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){ve(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(uS);function Ete(r,e,t){var n;r?n=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return z(z({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new ir(n,t),i=G(t.get("data"),de(pc,e));r&&(i=Ye(i,de(gc,r)));var o=PR(!!r,n);return a.initData(i,null,o),a}const Ite=Mte;function Pte(r){r.registerComponentModel(wte),r.registerComponentView(Ite),r.registerPreprocessor(function(e){aS(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Lte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ui);const kte=Lte;var Gd=Be(),Rte=function(r,e,t,n){var a=r.getData(),i;if(F(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=St(n.yAxis,n.xAxis);else{var u=IR(n,a,e,r);s=u.valueAxis;var f=v0(a,u.valueDataDim);l=sS(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=se(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=t.get("precision");p>=0&&Re(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,i=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Xr("Invalid markLine data."),i=[]}var g=[pc(r,i[0]),pc(r,i[1]),z({},i[2])];return g[2].type=g[2].type||null,ye(g[2],g[0]),ye(g[2],g[1]),g};function Hd(r){return!isNaN(r)&&!isFinite(r)}function kR(r,e,t,n){var a=1-r,i=n.dimensions[r];return Hd(e[a])&&Hd(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function Ote(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(kR(1,t,n,r)||kR(0,t,n,r)))return!0}return gc(r,e[0])&&gc(r,e[1])}function fS(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=Y(o.get("x"),a.getWidth()),u=Y(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,c=r.get(f[0],e),h=r.get(f[1],e);s=i.dataToPoint([c,h])}if(Jo(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Hd(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):Hd(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var Nte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Ui.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Gd(o).from,u=Gd(o).to;l.each(function(f){fS(l,f,!0,i,a),fS(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new G_);this.group.add(f.group);var c=Vte(o,t,n),h=c.from,v=c.to,d=c.line;Gd(n).from=h,Gd(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");F(p)||(p=[p,p]),F(g)||(g=[g,g]),F(y)||(y=[y,y]),F(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var x=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);fS(S,x,b,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Tf(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:me(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:me(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:me(w.get("symbolSize"),g[b?0:1]),symbol:me(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(uS);function Vte(r,e,t){var n;r?n=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return z(z({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new ir(n,t),i=new ir(n,t),o=new ir([],t),s=G(t.get("data"),de(Rte,e,r,t));r&&(s=Ye(s,de(Ote,r)));var l=PR(!!r,n);return a.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const Bte=Nte;function zte(r){r.registerComponentModel(kte),r.registerComponentView(Bte),r.registerPreprocessor(function(e){aS(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Fte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ui);const Gte=Fte;var Wd=Be(),Hte=function(r,e,t,n){var a=pc(r,n[0]),i=pc(r,n[1]),o=a.coord,s=i.coord;o[0]=St(o[0],-1/0),o[1]=St(o[1],-1/0),s[0]=St(s[0],1/0),s[1]=St(s[1],1/0);var l=Hc([{},a,i]);return l.coord=[a.coord,i.coord],l.x0=a.x,l.y0=a.y,l.x1=i.x,l.y1=i.y,l};function Yd(r){return!isNaN(r)&&!isFinite(r)}function RR(r,e,t,n){var a=1-r;return Yd(e[a])&&Yd(t[a])}function Wte(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Jo(r,"cartesian2d")?t&&n&&(RR(1,t,n)||RR(0,t,n))?!0:Cte(r,a,i):gc(r,a)||gc(r,i)}function OR(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=Y(o.get(t[0]),a.getWidth()),u=Y(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(t,e));else{var f=r.get(t[0],e),c=r.get(t[1],e),h=[f,c];i.clampData&&i.clampData(h,h),s=i.dataToPoint(h,!0)}if(Jo(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),f=r.get(t[0],e),c=r.get(t[1],e);Yd(f)?s[0]=v.toGlobalCoord(v.getExtent()[t[0]==="x0"?0:1]):Yd(c)&&(s[1]=d.toGlobalCoord(d.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var NR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Yte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Ui.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(NR,function(c){return OR(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new fe});this.group.add(f.group),this.markKeep(f);var c=$te(o,t,n);n.setData(c),c.each(function(h){var v=G(NR,function(T){return OR(c,h,T,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];Br(m),Br(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;c.setItemLayout(h,{points:v,allClipped:x});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Tf(l,"color");b.fill||(b.fill=w,$(b.fill)&&(b.fill=Pu(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Wd(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var d=new Sr({shape:{points:v.points}});c.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,v){var d=Wd(f).data.getItemGraphicEl(v),p=c.getItemLayout(h);p.allClipped?d&&f.group.remove(d):(d?Oe(d,{shape:{points:p.points}},n,h):d=new Sr({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Wd(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),tr(h,Yt(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:$(p.fill)?Pu(p.fill,1):"#000"}),jt(h,d),yt(h,null,null,d.get(["emphasis","disabled"])),ve(h).dataModel=n}),Wd(f).data=c,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(uS);function $te(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return z(z({},c),{name:u,ordinalMeta:null})});a=G(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new ir(a,t)}else a=[{name:"value",type:"float"}],n=new ir(a,t);var s=G(t.get("data"),de(Hte,e,r,t));r&&(s=Ye(s,de(Wte,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return Ii(v,a[h])}:function(u,f,c,h){return Ii(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Ute=Yte;function Zte(r){r.registerComponentModel(Gte),r.registerComponentView(Ute),r.registerPreprocessor(function(e){aS(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var jte=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Xte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),F(n)&&C(n,function(i,o){$(i)&&(i={type:i}),n[o]=ye(i,jte(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(s){var l=s.name;a.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,c=f.getAllNames();t.isSeriesFiltered(s)||(a=a.concat(c)),c.length?n=n.concat(c):u=!0}else u=!0;u&&ly(s)&&n.push(s.name)}),this._availableNames=a;var i=this.get("data")||n,o=G(i,function(s){return($(s)||Re(s))&&(s={name:s}),new je(s,this,this.ecModel)},this);this._data=o},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;C(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;C(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;C(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&we(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Ie);const cS=Xte;var Nl=de,hS=C,$d=fe,qte=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new $d),this.group.add(this._selectorGroup=new $d),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var f=t.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=t.get("padding"),v=Mt(f,c,h),d=this.layoutInner(t,o,v,i,l,u),p=Mt(ae({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$k(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=te(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),hS(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
79
+ `)){var g=new $d;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(p)[0];if(!f.get(p)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,p,d,v,n,t,_,x,S,c,i);b.on("click",Nl(VR,p,null,i,h)).on("mouseover",Nl(vS,y.name,null,i,h)).on("mouseout",Nl(dS,y.name,null,i,h)),f.set(p,!0)}else a.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),M=T.getItemVisual(D,"style"),A=T.getItemVisual(D,"legendIcon"),E=pr(M.fill);E&&E[3]===0&&(E[3]=.2,M=z(z({},M),{fill:In(E,"rgba")}));var I=this._createItem(w,p,d,v,n,t,{},M,A,c,i);I.on("click",Nl(VR,null,p,i,h)).on("mouseover",Nl(vS,null,p,i,h)).on("mouseout",Nl(dS,null,p,i,h)),f.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();hS(t,function(u){var f=u.type,c=new ke({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);tr(c,{normal:h,emphasis:v},{defaultText:u.title}),wi(c)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,c,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Kte(f,i,l,u,v,g,h),x=new $d,b=i.getModel("textStyle");if(Q(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(Qte({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),A=n;$(M)&&M?A=M.replace("{name}",n??""):Q(M)&&(A=M(n));var E=i.get("inactiveColor");x.add(new ke({style:Je(b,{text:A,x:T,y:p/2,fill:g?b.getTextColor():E,align:D,verticalAlign:"middle"})}));var I=new Le({shape:x.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Ks({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(L){L.silent=!0}),I.silent=!c,this.getContentGroup().add(x),wi(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Oo(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Oo("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ut);function Kte(r,e,t,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),hS(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:vl(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Qte(r){var e=r.icon||"roundRect",t=wt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function VR(r,e,t,n){dS(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),vS(r,e,t,n)}function BR(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function vS(r,e,t,n){BR(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function dS(r,e,t,n){BR(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}const zR=qte;function Jte(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function yc(r,e,t){var n={},a=r==="toggleSelected",i;return t.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),i=o.isSelected(e.name));var s=o.getData();C(s,function(l){var u=l.get("name");if(!(u===`
80
+ `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function ere(r){r.registerAction("legendToggleSelect","legendselectchanged",de(yc,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",de(yc,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",de(yc,"inverseSelect")),r.registerAction("legendSelect","legendselected",de(yc,"select")),r.registerAction("legendUnSelect","legendunselected",de(yc,"unSelect"))}function FR(r){r.registerComponentModel(cS),r.registerComponentView(zR),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Jte),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ere(r)}var tre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=rl(t);r.prototype.init.call(this,t,n,a),GR(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),GR(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Mi(cS.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(cS);function GR(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,Ei(e,t,{type:"box",ignoreSize:!!a})}const rre=tre;var HR=fe,pS=["width","height"],gS=["x","y"],nre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new HR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HR)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=F(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new ke({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=qs(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:j(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=pS[u],c=gS[u],h=pS[1-u],v=gS[1-u];o&&Oo("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=se(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;Oo(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),Oo("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=me(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var b={x:0,y:0};b[o]=Math.max(a[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Le({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Oe(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=pS[o],l=gS[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e}(zR);const are=nre;function ire(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function ore(r){Te(FR),r.registerComponentModel(rre),r.registerComponentView(are),ire(r)}function sre(r){Te(FR),Te(ore)}var lre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Mi(hc.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(hc);const ure=lre;var yS=Be();function fre(r,e,t){yS(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function cre(r,e){for(var t=yS(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||WR(t,o))}}}function WR(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function hre(r,e){var t={model:e,containsPoint:de(dre,e),dispatchAction:de(vre,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Xf(r.getZr());return C(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function vre(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function dre(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function pre(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function gre(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=yS(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=te());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=zk(i);C(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hre(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=te());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){WR(a,i);return}var f=pre(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ul(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var yre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),fre(a,t,{pan:j(mS.pan,this),zoom:j(mS.zoom,this),scrollMove:j(mS.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cre(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Y1),mS={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=_S[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ss(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:YR(function(r,e,t,n,a,i){var o=_S[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:YR(function(r,e,t,n,a,i){var o=_S[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function YR(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(ss(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var _S={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const mre=yre;function $R(r){$1(r),r.registerComponentModel(ure),r.registerComponentView(mre),gre(r)}var _re=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Mi(hc.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(hc);const Sre=_re;var mc=Le,UR=7,bre=1,SS=30,xre=7,_c="horizontal",ZR="vertical",wre=5,Tre=["line","bar","candlestick","scatter"],Dre={easing:"cubicOut",duration:100,delay:0},Cre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=j(this._onBrush,this),this._onBrushEnd=j(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),ul(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bf(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?xre:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===_c?{right:s.width-o.x-o.width,top:s.height-SS-UR-i,width:o.width,height:SS}:{right:UR,top:o.y,width:SS,height:o.height},u=rl(t.option);C(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=Mt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===ZR&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===_c&&!o?{scaleY:l?1:-1,scaleX:1}:a===_c&&o?{scaleY:l?1:-1,scaleX:-1}:a===ZR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new mc({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new mc({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:j(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(D,M){if(_>0&&M%_){m+=y;return}var A=D==null||isNaN(D)||D==="",E=A?0:He(D,c,v,!0);A&&!S&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,E]),g.push([m,E]),m+=y,S=A}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function b(D){var M=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new fe,E=new Sr({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new br({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(E),A.add(I),A}for(var w=0;w<3;w++){var T=b(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!a&&!(n!==!0&&we(Tre,u.get("type"))<0)){var f=i.getComponent(Yi(o),s).axis,c=Are(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new mc({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new mc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:bre,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!mv[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&nn("handleIcon now needs 'path://' prefix when using a path string"));var x=wt(S,-1,0,2,2,null,!0);x.attr({cursor:jR(this._orient),draggable:!0,drift:j(this._onDragMove,this,_),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Y(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),wi(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[_]=x);var D=l.getModel("textStyle");t.add(i[_]=new ke({silent:!0,invisible:!0,style:Je(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(c){var d=Y(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Le({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=wt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Le({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:jR(this._orient),drift:j(this._onDragMove,this,"all"),ondragstart:j(this._showDataInfo,this,!0),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[He(t[0],[0,100],n,!0),He(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ss(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?He(s.minSpan,l,o,!0):null,s.maxSpan!=null?He(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Br([He(i[0],o,l,!0),He(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Br(a.slice()),o=this._size;C([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new Le,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=Br(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Ci(a.handles[d].parent,this.group),g=Zh(d===0?"right":"left",p),y=this._handleWidth/2+wre,m=Vn([h[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===_c?"middle":g,align:o===_c?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Q(i)?i(t,s):$(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!t),a[1].attr("invisible",!t),n.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,Ma(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Vn([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new be(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Br([He(a.x,o,s,!0),He(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ma(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new mc({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Dre:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=zk(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Y1);function Are(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function jR(r){return r==="vertical"?"ns-resize":"ew-resize"}const Mre=Cre;function XR(r){r.registerComponentModel(Sre),r.registerComponentView(Mre),$1(r)}function Ere(r){Te($R),Te(XR)}var Ire={get:function(r,e,t){var n=se((Pre[r]||{})[e]);return t&&F(n)?n[n.length-1]:n}},Pre={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const qR=Ire;var KR=qt.mapVisual,Lre=qt.eachVisual,kre=F,QR=C,Rre=Br,Ore=He,Nre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&pR(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=j(t,this),this.controllerVisuals=eS(this.option.controller,n,t),this.targetVisuals=eS(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Ze(t),n},e.prototype.eachTargetSeries=function(t,n){C(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],F(t)&&(t=t.slice(),u=!0);var f=n?t:u?[c(t[0]),c(t[1])]:c(t);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=Rre([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});ye(i,a),ye(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){kre(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},QR(d,function(g,y){if(qt.isValidType(y)){var m=qR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";QR(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&se(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&se(v)||(s?m[0]:[m[0],m[0]])),_.symbol=KR(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;Lre(S,function(b){b>x&&(x=b)}),_.symbolSize=KR(S,function(b){return Ore(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Ie);const Ud=Nre;var JR=[20,140],Vre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=JR[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=JR[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):F(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Br((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=t)&&(n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=eO(this,"outOfRange",this.getExtent()),a=eO(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Mi(Ud.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Ud);function eO(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}const Bre=Vre;var zre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Lo(n.get("padding")||0),i=t.getBoundingRect();t.add(new Le({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(t)],h=qt.prepareVisualTypes(c);return C(h,function(v){var d=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),qt.dependsOn(v,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api;iv(t,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(ut);const tO=zre;var rO=[["left","right","width"],["top","bottom","height"]];function nO(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=rO[o],l=[0,null,10],u={},f=0;f<3;f++)u[rO[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=Mt(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function Zd(r,e){return C(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var ya=He,Fre=C,aO=Math.min,bS=Math.max,Gre=12,Hre=6,Wre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new ke({style:Je(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=nO(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new fe;u.add(f),f.add(a.outOfRange=iO()),f.add(a.inRange=iO(null,s?sO(this._orient):null,j(this._dragHandle,this,"all",!1),j(this._dragHandle,this,"all",!0))),f.setClipPath(new Le({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=bS(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=j(this._dragHandle,this,a,!1),u=j(this._dragHandle,this,a,!0),f=Ln(t.get("handleSize"),i[0]),c=wt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=sO(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Ma(y.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ao(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new ke({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Ma(y.event)},ondragend:u,style:Je(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=Ln(t.get("indicatorSize"),a[0]),l=wt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Wt){var f=l.style;l.useStyle(z({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new ke({silent:!0,invisible:!0,style:Je(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:Hre)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():oO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[ya(n[0],a,i,!0),ya(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ss(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[ya(i[0],o,s,!0),ya(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Us(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new fe(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Fre([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=t[f];var h=ya(t[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var d=Vn(a.handleLabelPoints[f],Ci(c,this.group));s[f].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=ya(t,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Vn(f.indicatorLabelPoint,Ci(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,D),_.animateTo(T,D)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var A=0;A<M.length;A++)this._api.enterBlur(M[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=aO(bS(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=aO(bS(o[0],t),o[1]);var l=Yre(a,s,o),u=[t-l,t+l],f=ya(t,o,s,!0),c=[ya(u[0],o,s,!0),ya(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||oO(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=y3(h,v);this._dispatchHighDown("downplay",Zd(d[0],a)),this._dispatchHighDown("highlight",Zd(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Fo(t.target,function(l){var u=ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this._api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Zd(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Ci(n,i?null:this.group);return F(t)?Vn(t,o,a):Zh(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(tO);function iO(r,e,t,n){return new Sr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Ma(a.event)},ondragend:n})}function Yre(r,e,t){var n=Gre/2,a=r.get("hoverLinkDataSize");return a&&(n=ya(a,e,t,!0)/2),n}function oO(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function sO(r){return r==="vertical"?"ns-resize":"ew-resize"}const $re=Wre;var Ure={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Zre=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},jre=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(Hee(n.stateList,n.targetVisuals,j(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(j(Xre,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Xre(r,e,t,n){for(var a=e.targetVisuals[n],i=qt.prepareVisualTypes(a),o={color:Tf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var lO=C;function qre(r){var e=r&&r.visualMap;F(e)||(e=e?[e]:[]),lO(e,function(t){if(t){Vl(t,"splitList")&&!Vl(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&F(n)&&lO(n,function(a){re(a)&&(Vl(a,"start")&&!Vl(a,"min")&&(a.min=a.start),Vl(a,"end")&&!Vl(a,"max")&&(a.max=a.end))})}})}function Vl(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var uO=!1;function fO(r){uO||(uO=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Ure,Zre),C(jre,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(qre))}function cO(r){r.registerComponentModel(Bre),r.registerComponentView($re),fO(r)}var Kre=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Qre[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=se(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=se(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=qt.listVisualTypes(),i=this.isCategory();C(t.pieces,function(s){C(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),C(n,function(s,l){var u=!1;C(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&C(this.stateList,function(f){(t[f]||(t[f]={}))[l]=qR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,C(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;C(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=se(t)},e.prototype.getValueState=function(t){var n=qt.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=qt.findPieceIndex(l,a);f===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=t(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Mi(Ud.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Ud),Qre={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),sy(r),C(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;C(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),hO(e,r)},pieces:function(r){var e=this.option;C(e.pieces,function(t,n){re(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=t[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=qt.retrieveVisuals(t),r.push(a)},this),hO(e,r),sy(r),C(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function hO(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const Jre=Kre;var ene=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=St(n.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,h,l),C(f.viewPieceList,function(v){var d=v.piece,p=new fe;p.onclick=j(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var g=n.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);p.add(new ke({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(p)},this),c&&this._renderEndsText(t,c[1],u,h,l),Oo(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Zd(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return nO(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new fe,l=this.visualMapModel.textStyleModel;s.add(new ke({style:Je(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a){t.add(wt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=se(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,C(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(tO);const tne=ene;function vO(r){r.registerComponentModel(Jre),r.registerComponentView(tne),fO(r)}function rne(r){Te(cO),Te(vO)}var nne={label:{enabled:!0},decal:{show:!1}},dO=Be(),ane={};function ine(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=se(nne);ye(n.label,r.getLocaleModel().get("aria"),!1),ye(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var c=te();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),dO(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(Q(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=mm(h.ecModel,h.name,ane,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=dO(h).scope;v.each(function(x){var b=v.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=mm(h.ecModel,w,g,y),D=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",S(D,T))})}function S(x,b){var w=x?z(z({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=ae(f.option,u),!!f.get("enabled")){var c=e.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D<p){var M=void 0,A=T.get("name"),E=A?"withName":"withoutName";M=h>1?f.get(["series","multiple",E]):f.get(["series","single",E]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var L=f.get(["data","separator","middle"]),k=f.get(["data","separator","end"]),V=[],O=0;O<I.count();O++)if(O<v){var B=I.getName(O),H=I.getValues(O),W=f.get(["data",B?"withName":"withoutName"]);V.push(o(W,{name:B,value:H.join(L)}))}M+=V.join(L)+k,_.push(M)}});var x=f.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,c.setAttribute("aria-label",g)}}}function o(u,f){if(!$(u))return u;var c=u;return C(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function one(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},C(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function sne(r){r.registerPreprocessor(one),r.registerVisual(r.PRIORITY.VISUAL.ARIA,ine)}var pO={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},lne=function(){function r(e){var t=this._condVal=$(e)?new RegExp(e):ug(e)?e:null;if(t==null){var n="";process.env.NODE_ENV!=="production"&&(n=gr("Illegal regexp",e,"in")),Ge(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return $(t)?this._condVal.test(e):Re(t)?this._condVal.test(e+""):!1},r}(),une=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),fne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),cne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),hne=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),vne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r}();function xS(r,e){if(r===!0||r===!1){var t=new une;return t.value=r,t}var n="";return yO(r)||(process.env.NODE_ENV!=="production"&&(n=gr("Illegal config. Expect a plain object but actually",r)),Ge(n)),r.and?gO("and",r,e):r.or?gO("or",r,e):r.not?dne(r,e):pne(r,e)}function gO(r,e,t){var n=e[r],a="";process.env.NODE_ENV!=="production"&&(a=gr('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e)),F(n)||Ge(a),n.length||Ge(a);var i=r==="and"?new fne:new cne;return i.children=G(n,function(o){return xS(o,t)}),i.children.length||Ge(a),i}function dne(r,e){var t=r.not,n="";process.env.NODE_ENV!=="production"&&(n=gr('"not" condition should only be `not: {}`.',"Illegal condition:",r)),yO(t)||Ge(n);var a=new hne;return a.child=xS(t,e),a.child||Ge(n),a}function pne(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=Me(r),o=r.parser,s=o?GC(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=X(pO,u)?pO[u]:u,c=r[u],h=s?s(c):c,v=LG(f,h)||f==="reg"&&new lne(h);v||(process.env.NODE_ENV!=="production"&&(t=gr('Illegal relational operation: "'+u+'" in condition:',r)),Ge(t)),a.push(v)}}a.length||(process.env.NODE_ENV!=="production"&&(t=gr("Relational condition must have at least one operator.","Illegal condition:",r)),Ge(t));var d=new vne;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function yO(r){return re(r)&&!Ut(r)}var gne=function(){function r(e,t){this._cond=xS(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function yne(r,e){return new gne(r,e)}var mne={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=yne(r.config,{valueGetterAttrMap:te({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;X(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=gr('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Ge(l));var f=e.getDimensionInfo(u);return f||(process.env.NODE_ENV!=="production"&&(l=gr("Can not find dimension info via: "+u+`.
81
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
82
+ `,"Illegal condition:",s,`.
83
+ `)),Ge(l)),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},wS="";process.env.NODE_ENV!=="production"&&(wS=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var _ne={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Ze(t);a.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),Ge(n));var i=[];C(a,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+wS),Ge(n)),h!=="asc"&&h!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+wS),Ge(n)),d&&d!=="min"&&d!=="max"){var p="";process.env.NODE_ENV!=="production"&&(p='incomparable must be "min" or "max" rather than "'+d+'".'),Ge(p)}if(h!=="asc"&&h!=="desc"){var g="";process.env.NODE_ENV!=="production"&&(g='order must be "asc" or "desc" rather than "'+h+'".'),Ge(g)}var y=e.getDimensionInfo(c);y||(process.env.NODE_ENV!=="production"&&(n=gr("Can not find dimension info via: "+c+`.
84
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
85
+ `,"Illegal config:",f,`.
86
+ `)),Ge(n));var m=v?GC(v):null;v&&!m&&(process.env.NODE_ENV!=="production"&&(n=gr("Invalid parser name "+v+`.
87
+ `,"Illegal config:",f,`.
88
+ `)),Ge(n)),i.push({dimIdx:y.index,parser:m,comparator:new WC(h,d)})});var o=e.sourceFormat;o!==rr&&o!==fn&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Ge(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],d=e.retrieveValueFromItem(f,v.dimIdx),p=e.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Sne(r){r.registerTransform(mne),r.registerTransform(_ne)}var bne=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new XC(this),qC(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),qC(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:fa},e}(Ie),xne=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(ut);function wne(r){r.registerComponentModel(bne),r.registerComponentView(xne)}var ma=sa.CMD;function Bl(r,e){return Math.abs(r-e)<1e-5}function TS(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,L,k){Bl(I,L)&&Bl(P,k)||a.push(I,P,L,k,L,k)}function c(I,P,L,k,V,O){var B=Math.abs(P-I),H=Math.tan(B/4)*4/3,W=P<I?-1:1,q=Math.cos(I),ee=Math.sin(I),ue=Math.cos(P),Ae=Math.sin(P),Ce=q*V+L,pe=ee*O+k,J=ue*V+L,Se=Ae*O+k,he=V*H*W,K=O*H*W;a.push(Ce-he*ee,pe+K*q,J+he*Ae,Se-K*ue,J,Se)}for(var h,v,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===ma.L||y===ma.C||y===ma.Q)&&(a=[s,l])),y){case ma.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case ma.L:h=e[g++],v=e[g++],f(i,o,h,v),i=h,o=v;break;case ma.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case ma.Q:h=e[g++],v=e[g++],d=e[g++],p=e[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case ma.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var D=!e[g++];h=Math.cos(w)*x+_,v=Math.sin(w)*b+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var M=(D?-1:1)*Math.PI/2,A=w;D?A>T:A<T;A+=M){var E=D?Math.max(A+M,T):Math.min(A+M,T);c(A,E,_,S,x,b)}break;case ma.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case ma.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function DS(r,e,t,n,a,i,o,s,l,u){if(Bl(r,t)&&Bl(e,n)&&Bl(a,o)&&Bl(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=t-r,g=n-e,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var x=h*p+v*g,b=-h*y-v*m,w=_-x*x,T=S-b*b;if(w<c&&x>=0&&T<c&&b>=0){l.push(o,s);return}var D=[],M=[];pi(r,t,a,o,.5,D),pi(e,n,i,s,.5,M),DS(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),DS(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function Tne(r,e){var t=TS(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];DS(s,l,f,c,h,v,d,p,o,e),s=d,l=p}n.push(o)}return n}function mO(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=t-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function _O(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=mO([l,u],f?0:1,e),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function Dne(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=mO([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=r.x,p.y+=r.y,t.push(p)}}function SO(r,e,t,n){return r*n-t*e}function Cne(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=SO(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,d=e-i,p=SO(v,d,f,c)/h;return p<0||p>1?null:new be(p*l+r,p*u+e)}function Ane(r,e,t){var n=new be;be.sub(n,t,e),n.normalize();var a=new be;be.sub(a,r,e);var i=a.dot(n);return i}function zl(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Mne(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=Cne(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Ane(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],i=u.idx+1;i<=f.idx;i++)zl(d,r[i].slice());zl(d,v),zl(d,h);for(var i=f.idx+1;i<=u.idx+n;i++)zl(p,r[i%n].slice());return zl(p,h),zl(p,v),[{points:d},{points:p}]}function bO(r){var e=r.points,t=[],n=[];Ah(e,t,n);var a=new xe(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new be,f=new be;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),Mne(e,u,f)}function jd(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);jd(r,i[0],a,n),jd(r,i[1],t-a,n)}return n}function Ene(r,e){for(var t=[],n=0;n<e;n++)t.push(Gy(r));return t}function Ine(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Pne(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Lne(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":Dne(n,e,t),a=Le;break;case"sector":_O(n,e,t),a=_r;break;case"circle":_O({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=_r;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(Tne(r.getUpdatedPathProxy(),o),function(y){return Pne(y)}),l=s.length;if(l===0)jd(bO,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,c=G(s,function(y){var m=[],_=[];Ah(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*e);d<0||(jd(bO,{points:v.poly},d,t),h-=d)}}a=Sr;break}if(!a)return Ene(r,e);for(var p=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),Ine(r,g),p.push(g)}return p}function kne(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],x=o[v++];if(h<=0){c.push(g,y,m,_,S,x);continue}for(var b=Math.min(h,f-1)+1,w=1;w<=b;w++){var T=w/b;pi(d,g,m,S,T,a),pi(p,y,_,x,T,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}h-=b-1}return o===r?[c,e]:[r,c]}function xO(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function Rne(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,c=void 0;l?u?(t=kne(l,u),f=t[0],c=t[1],n=f,a=c):(c=xO(a||l,l),f=l):(f=xO(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function wO(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;e+=c,t+=(s+u)*c,n+=(l+f)*c}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function One(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=r[v]-t[0],p=r[v+1]-t[1],g=e[h]-n[0],y=e[h+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function Nne(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function Vne(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=wO(s),f=wO(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=Nne(s));for(var y=One(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],t>0)for(var x=n/t,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),D=0,_=0;_<s.length;_+=2){var M=c[_],A=c[_+1],E=l[_]-f[0],I=l[_+1]-f[1],P=E*T-I*w,L=E*w+I*T;p[_]=P,p[_+1]=L;var k=P-M,V=L-A;D+=k*k+V*V}if(D<d){d=D,v=b;for(var O=0;O<p.length;O++)h[O]=p[O]}}else for(var B=0;B<g;B+=2)h[B]=l[B]-f[0],h[B+1]=l[B+1]-f[1];a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function Xd(r){return r.__isCombineMorphing}var TO="__mOriginal_";function qd(r,e,t){var n=TO+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Sc(r,e){var t=TO+e;r[t]&&(r[e]=r[t],r[t]=null)}function DO(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function CO(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Rne(TS(t),TS(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&DO(i,s),l&&DO(o,l),qd(e,"updateTransform",{replace:u}),e.transform=null;var f=Vne(i,o,10,Math.PI),c=[];qd(e,"buildPath",{replace:function(h){for(var v=e.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);Su(p,x,b,v);for(var D=0;D<m.length;D+=2){var M=m[D],A=m[D+1],E=_[D],I=_[D+1],P=M*d+E*v,L=A*d+I*v;c[D]=P*T-L*w+p[0],c[D+1]=P*w+L*T+p[1]}var k=c[0],V=c[1];h.moveTo(k,V);for(var D=2;D<m.length;){var E=c[D++],I=c[D++],O=c[D++],B=c[D++],H=c[D++],W=c[D++];k===E&&V===I&&O===H&&B===W?h.lineTo(H,W):h.bezierCurveTo(E,I,O,B,H,W),k=H,V=W}}}})}function CS(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;CO(r,e),e.__morphT=0;function i(){Sc(e,"buildPath"),Sc(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ae({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function Bne(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(e&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Kd(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(c,t),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=G(i,function(s,l){return{cp:s,z:Bne(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function AO(r){return Lne(r.path,r.count)}function AS(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zne(r,e,t){var n=[];function a(x){for(var b=0;b<x.length;b++){var w=x[b];Xd(w)?a(w.childrenRef()):w instanceof De&&n.push(w)}}a(r);var i=n.length;if(!i)return AS();var o=t.dividePath||AO,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),AS();n=Kd(n),s=Kd(s);for(var l=t.done,u=t.during,f=t.individualDelay,c=new Ia,h=0;h<i;h++){var v=n[h],d=s[h];d.parent=e,d.copyTransform(c),f||CO(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}qd(e,"addSelfToZr",{after:function(x){p(x)}}),qd(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Sc(e,"addSelfToZr"),Sc(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?ae({delay:(t.delay||0)+f(h,y,n[h],s[h]),done:_},t):t;CS(n[h],s[h],S)}else e.__morphT=0,e.animateTo({__morphT:1},ae({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Sc(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Fne(r,e,t){var n=e.length,a=[],i=t.dividePath||AO;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Xd(p)?o(p.childrenRef()):p instanceof De&&a.push(p)}}if(Xd(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Gy(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),AS()}a=Kd(a),e=Kd(e);for(var c=t.individualDelay,u=0;u<n;u++){var h=c?ae({delay:(t.delay||0)+c(u,n,a[u],e[u])},t):t;CS(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function MO(r){return F(r[0])}function EO(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var Gne={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Gy(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function MS(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Zs("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;MO(r)&&(u=r,f=e),MO(e)&&(u=e,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,D=m?w:b[0];if(Xd(T))c({many:[T],one:D},!0,_,S,!0);else{var M=s?ae({delay:s(_,S)},l):l;CS(T,D,M),i(T,D,T,D,M)}}else for(var A=ae({dividePath:Gne[t],individualDelay:s&&function(V,O,B,H){return s(V+_,S)}},l),E=m?zne(b,w,A):Fne(w,b,A),I=E.fromIndividuals,P=E.toIndividuals,L=I.length,k=0;k<L;k++){var M=s?ae({delay:s(k,L)},l):l;i(I[k],P[k],m?b[k]:y.one,m?y.one:b[k],M)}}for(var h=u?u===r:r.length>e.length,v=u?EO(f,u):EO(h?e:r,[h?r:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function vs(r){if(!r)return[];if(F(r)){for(var e=[],t=0;t<r.length;t++)e.push(vs(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof De&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var IO=1e4,Hne=Be();function Wne(r){for(var e=r.dimensions,t=0;t<e.length;t++){var n=r.getDimensionInfo(e[t]);if(n&&n.otherDims.itemGroupId===0)return e[t]}}function PO(r){var e=[];return C(r,function(t){var n=t.data;if(n.count()>IO){process.env.NODE_ENV!=="production"&&Jt("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),i=Wne(n),o=0;o<a.length;o++)e.push({data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function ES(r,e,t){r.traverse(function(n){n instanceof De&&lt(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function IS(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Fl(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function Yne(r,e,t){var n=Zs("update",t,e);n&&r.traverse(function(a){if(a instanceof an){var i=f4(a);i&&a.animateFrom({style:i},n)}})}function $ne(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function LO(r,e,t){var n=PO(r),a=PO(e);function i(y,m,_,S,x){(_||y)&&m.animateFrom({style:_&&_!==y?z(z({},_.style),y.style):y.style},x)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(a),u=!1;function f(y,m){return function(_){var S=_.data,x=_.dataIndex;if(m)return S.getId(x);var b=S.hostModel&&S.hostModel.get("dataGroupId"),w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),D=T&&T.ordinalMeta;if(T){var M=S.get(T.name,x);return D&&D.categories[M]||M+""}var A=S.getRawDataItem(x);return A&&A.groupId?A.groupId+"":b||S.getId(x)}}var c=$ne(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var d=a[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(h[p.id]=!0)}function g(y,m){var _=n[m],S=a[y],x=S.data.hostModel,b=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(b===w){w&&Yne(w,S.dataIndex,x);return}b&&h[b.id]||w&&(Fl(w),b?(Fl(b),IS(b),u=!0,MS(vs(b),vs(w),S.divide,x,y,i)):ES(w,x,y))}new Ba(n,a,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(y,m){var _=a[y],S=_.data,x=S.hostModel,b=S.getItemGraphicEl(_.dataIndex),w=Ye(G(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b&&!h[T.id]});b&&(Fl(b),w.length?(C(w,function(T){Fl(T),IS(T)}),u=!0,MS(vs(w),vs(b),_.divide,x,y,i)):ES(b,x,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&h[S.id])){var x=Ye(G(y,function(w){return a[w].data.getItemGraphicEl(a[w].dataIndex)}),function(w){return w&&w!==S}),b=a[y[0]].data.hostModel;x.length&&(C(x,function(w){return Fl(w)}),S?(Fl(S),IS(S),u=!0,MS(vs(S),vs(x),_.divide,b,y[0],i)):C(x,function(w){return ES(w,b,y[0])}))}}).updateManyToMany(function(y,m){new Ba(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&C(e,function(y){var m=y.data,_=m.hostModel,S=_&&t.getViewOfSeriesModel(_),x=Zs("update",_,0);S&&_.isAnimationEnabled()&&x&&x.duration>0&&S.group.traverse(function(b){b instanceof De&&!b.animators.length&&b.animateFrom({style:{opacity:0}},x)})})}function kO(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function RO(r){return F(r)?r.sort().join(","):r}function Zi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Une(r,e){var t=te(),n=te(),a=te();C(r.oldSeries,function(o,s){var l=r.oldData[s],u=kO(o),f=RO(u);n.set(f,l),F(u)&&C(u,function(c){a.set(c,{data:l,key:f})})});function i(o){t.get(o)&&Jt("Duplicated seriesKey in universalTransition "+o)}return C(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.getData(),l=kO(o),u=RO(l),f=n.get(u);if(f)process.env.NODE_ENV!=="production"&&i(u),t.set(u,{oldSeries:[{divide:Zi(f),data:f}],newSeries:[{divide:Zi(s),data:s}]});else if(F(l)){process.env.NODE_ENV!=="production"&&i(u);var c=[];C(l,function(d){var p=n.get(d);p&&c.push({divide:Zi(p),data:p})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{data:s,divide:Zi(s)}]})}else{var h=a.get(l);if(h){var v=t.get(h.key);v||(v={oldSeries:[{data:h.data,divide:Zi(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({data:s,divide:Zi(s)})}}}}),t}function OO(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function Zne(r,e,t,n){var a=[],i=[];C(Ze(r.from),function(o){var s=OO(e.oldSeries,o);s>=0&&a.push({data:e.oldData[s],divide:Zi(e.oldData[s]),dim:o.dimension})}),C(Ze(r.to),function(o){var s=OO(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({data:l,divide:Zi(l),dim:o.dimension})}}),a.length>0&&i.length>0&&LO(a,i,n)}function jne(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){C(Ze(n.seriesTransition),function(a){C(Ze(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][cv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=Hne(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)C(Ze(i),function(h){Zne(h,a,n,t)});else{var o=Une(a,n);C(o.keys(),function(h){var v=o.get(h);LO(v.oldSeries,v.newSeries,t)})}C(n.updatedSeries,function(h){h[cv]&&(h[cv]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldData=[],f=0;f<s.length;f++){var c=s[f].getData();c.count()<IO&&(l.push(s[f]),u.push(c))}})}Te([v$]),Te([o$]),Te([V$,t9,v9,e8,y8,c7,H7,MU,rZ,cZ,xZ,Cj,Jj,vX,LX,zX,nq,vq,Cq,Rq,Zq,PK]),Te(eQ),Te(RQ),Te(AI),Te(KQ),Te(XP),Te(aJ),Te(vJ),Te(dee),Te(Vee),Te(cc),Te(nte),Te(ote),Te(bte),Te(Pte),Te(zte),Te(Zte),Te(sre),Te(Ere),Te($R),Te(XR),Te(rne),Te(cO),Te(vO),Te(sne),Te(Sne),Te(wne),Te(jne),Te(DY);const Xne=Object.freeze(Object.defineProperty({__proto__:null,Axis:dn,ChartView:Xe,ComponentModel:Ie,ComponentView:ut,List:ir,Model:je,PRIORITY:KA,SeriesModel:tt,color:hz,connect:C6,dataTool:k6,dependencies:l6,disConnect:hM,disconnect:A6,dispose:M6,env:Ve,extendChartView:cY,extendComponentModel:lY,extendComponentView:uY,extendSeriesModel:fY,format:qW,getCoordinateSystemDimensions:I6,getInstanceByDom:a0,getInstanceById:E6,getMap:L6,graphic:XW,helper:GW,init:D6,innerDrawElementOnCanvas:Wm,matrix:BB,number:ZW,parseGeoJSON:C0,parseGeoJson:C0,registerAction:zn,registerCoordinateSystem:pM,registerLayout:gM,registerLoading:u0,registerLocale:tm,registerMap:mM,registerPostInit:vM,registerPostUpdate:dM,registerPreprocessor:o0,registerProcessor:s0,registerTheme:i0,registerTransform:_M,registerUpdateLifecycle:Iv,registerVisual:ki,setCanvasCreator:P6,setPlatformAPI:Mx,throttle:dv,time:jW,use:Te,util:KW,vector:xB,version:s6,zrUtil:pB,zrender:Jz},Symbol.toStringTag,{value:"Module"}));function PS(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ds={},Gl={},NO={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1,t=function(){return"".concat(e++)};r.default=t})(NO);var Qd={},Jd={},LS={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];clearTimeout(i),i=setTimeout(function(){n.apply(o,l)},a)}};r.default=e})(LS);var Za={};Object.defineProperty(Za,"__esModule",{value:!0}),Za.SensorTabIndex=Za.SensorClassName=Za.SizeSensorId=void 0;var qne="size-sensor-id";Za.SizeSensorId=qne;var Kne="size-sensor-object";Za.SensorClassName=Kne;var Qne="-1";Za.SensorTabIndex=Qne,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.createSensor=void 0;var Jne=eae(LS),VO=Za;function eae(r){return r&&r.__esModule?r:{default:r}}var tae=function(e){var t=void 0,n=[],a=function(){getComputedStyle(e).position==="static"&&(e.style.position="relative");var f=document.createElement("object");return f.onload=function(){f.contentDocument.defaultView.addEventListener("resize",i),i()},f.style.display="block",f.style.position="absolute",f.style.top="0",f.style.left="0",f.style.height="100%",f.style.width="100%",f.style.overflow="hidden",f.style.pointerEvents="none",f.style.zIndex="-1",f.style.opacity="0",f.setAttribute("class",VO.SensorClassName),f.setAttribute("tabindex",VO.SensorTabIndex),f.type="text/html",e.appendChild(f),f.data="about:blank",f},i=(0,Jne.default)(function(){n.forEach(function(u){u(e)})}),o=function(f){t||(t=a()),n.indexOf(f)===-1&&n.push(f)},s=function(){t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",i),t.parentNode.removeChild(t),t=void 0,n=[])},l=function(f){var c=n.indexOf(f);c!==-1&&n.splice(c,1),n.length===0&&t&&s()};return{element:e,bind:o,destroy:s,unbind:l}};Jd.createSensor=tae;var ep={};Object.defineProperty(ep,"__esModule",{value:!0}),ep.createSensor=void 0;var rae=nae(LS);function nae(r){return r&&r.__esModule?r:{default:r}}var aae=function(e){var t=void 0,n=[],a=(0,rae.default)(function(){n.forEach(function(u){u(e)})}),i=function(){var f=new ResizeObserver(a);return f.observe(e),a(),f},o=function(f){t||(t=i()),n.indexOf(f)===-1&&n.push(f)},s=function(){t.disconnect(),n=[],t=void 0},l=function(f){var c=n.indexOf(f);c!==-1&&n.splice(c,1),n.length===0&&t&&s()};return{element:e,bind:o,destroy:s,unbind:l}};ep.createSensor=aae,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.createSensor=void 0;var iae=Jd,oae=ep,sae=typeof ResizeObserver<"u"?oae.createSensor:iae.createSensor;Qd.createSensor=sae,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.removeSensor=Gl.getSensor=void 0;var lae=fae(NO),uae=Qd,tp=Za;function fae(r){return r&&r.__esModule?r:{default:r}}var bc={},cae=function(e){var t=e.getAttribute(tp.SizeSensorId);if(t&&bc[t])return bc[t];var n=(0,lae.default)();e.setAttribute(tp.SizeSensorId,n);var a=(0,uae.createSensor)(e);return bc[n]=a,a};Gl.getSensor=cae;var hae=function(e){var t=e.element.getAttribute(tp.SizeSensorId);e.element.removeAttribute(tp.SizeSensorId),e.destroy(),t&&bc[t]&&delete bc[t]};Gl.removeSensor=hae,Object.defineProperty(ds,"__esModule",{value:!0}),ds.ver=zO=ds.clear=BO=ds.bind=void 0;var kS=Gl,vae=function(e,t){var n=(0,kS.getSensor)(e);return n.bind(t),function(){n.unbind(t)}},BO=ds.bind=vae,dae=function(e){var t=(0,kS.getSensor)(e);(0,kS.removeSensor)(t)},zO=ds.clear=dae,pae="1.0.1";ds.ver=pae;function FO(r,e){var t={};return e.forEach(function(n){t[n]=r[n]}),t}function RS(r){return typeof r=="function"}function gae(r){return typeof r=="string"}var yae=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t};const Hl=PS(yae);var OS={exports:{}},Wl={};/*
89
+ object-assign
90
+ (c) Sindre Sorhus
91
+ @license MIT
92
+ */var NS,GO;function HO(){if(GO)return NS;GO=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return NS=a()?Object.assign:function(i,o){for(var s,l=n(i),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var c in s)e.call(s,c)&&(l[c]=s[c]);if(r){u=r(s);for(var h=0;h<u.length;h++)t.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},NS}/** @license React v17.0.2
93
+ * react-jsx-runtime.production.min.js
94
+ *
95
+ * Copyright (c) Facebook, Inc. and its affiliates.
96
+ *
97
+ * This source code is licensed under the MIT license found in the
98
+ * LICENSE file in the root directory of this source tree.
99
+ */var WO;function mae(){if(WO)return Wl;WO=1,HO();var r=at,e=60103;if(Wl.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;e=t("react.element"),Wl.Fragment=t("react.fragment")}var n=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var f,c={},h=null,v=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)a.call(l,f)&&!i.hasOwnProperty(f)&&(c[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)c[f]===void 0&&(c[f]=l[f]);return{$$typeof:e,type:s,key:h,ref:v,props:c,_owner:n.current}}return Wl.jsx=o,Wl.jsxs=o,Wl}var VS={};/** @license React v17.0.2
100
+ * react-jsx-runtime.development.js
101
+ *
102
+ * Copyright (c) Facebook, Inc. and its affiliates.
103
+ *
104
+ * This source code is licensed under the MIT license found in the
105
+ * LICENSE file in the root directory of this source tree.
106
+ */var YO;function _ae(){return YO||(YO=1,function(r){process.env.NODE_ENV!=="production"&&function(){var e=at,t=HO(),n=60103,a=60106;r.Fragment=60107;var i=60108,o=60114,s=60109,l=60110,u=60112,f=60113,c=60120,h=60115,v=60116,d=60121,p=60122,g=60117,y=60129,m=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;n=_("react.element"),a=_("react.portal"),r.Fragment=_("react.fragment"),i=_("react.strict_mode"),o=_("react.profiler"),s=_("react.provider"),l=_("react.context"),u=_("react.forward_ref"),f=_("react.suspense"),c=_("react.suspense_list"),h=_("react.memo"),v=_("react.lazy"),d=_("react.block"),p=_("react.server.block"),g=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),y=_("react.debug_trace_mode"),_("react.offscreen"),m=_("react.legacy_hidden")}var S=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function b(R){if(R===null||typeof R!="object")return null;var Z=S&&R[S]||R[x];return typeof Z=="function"?Z:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(R){{for(var Z=arguments.length,oe=new Array(Z>1?Z-1:0),Ee=1;Ee<Z;Ee++)oe[Ee-1]=arguments[Ee];D("error",R,oe)}}function D(R,Z,oe){{var Ee=w.ReactDebugCurrentFrame,ct=Ee.getStackAddendum();ct!==""&&(Z+="%s",oe=oe.concat([ct]));var ht=oe.map(function(Ue){return""+Ue});ht.unshift("Warning: "+Z),Function.prototype.apply.call(console[R],console,ht)}}var M=!1;function A(R){return!!(typeof R=="string"||typeof R=="function"||R===r.Fragment||R===o||R===y||R===i||R===f||R===c||R===m||M||typeof R=="object"&&R!==null&&(R.$$typeof===v||R.$$typeof===h||R.$$typeof===s||R.$$typeof===l||R.$$typeof===u||R.$$typeof===g||R.$$typeof===d||R[0]===p))}function E(R,Z,oe){var Ee=Z.displayName||Z.name||"";return R.displayName||(Ee!==""?oe+"("+Ee+")":oe)}function I(R){return R.displayName||"Context"}function P(R){if(R==null)return null;if(typeof R.tag=="number"&&T("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case r.Fragment:return"Fragment";case a:return"Portal";case o:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case c:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case l:var Z=R;return I(Z)+".Consumer";case s:var oe=R;return I(oe._context)+".Provider";case u:return E(R,R.render,"ForwardRef");case h:return P(R.type);case d:return P(R._render);case v:{var Ee=R,ct=Ee._payload,ht=Ee._init;try{return P(ht(ct))}catch{return null}}}return null}var L=0,k,V,O,B,H,W,q;function ee(){}ee.__reactDisabledLog=!0;function ue(){{if(L===0){k=console.log,V=console.info,O=console.warn,B=console.error,H=console.group,W=console.groupCollapsed,q=console.groupEnd;var R={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}L++}}function Ae(){{if(L--,L===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},R,{value:k}),info:t({},R,{value:V}),warn:t({},R,{value:O}),error:t({},R,{value:B}),group:t({},R,{value:H}),groupCollapsed:t({},R,{value:W}),groupEnd:t({},R,{value:q})})}L<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=w.ReactCurrentDispatcher,pe;function J(R,Z,oe){{if(pe===void 0)try{throw Error()}catch(ct){var Ee=ct.stack.trim().match(/\n( *(at )?)/);pe=Ee&&Ee[1]||""}return`
107
+ `+pe+R}}var Se=!1,he;{var K=typeof WeakMap=="function"?WeakMap:Map;he=new K}function ge(R,Z){if(!R||Se)return"";{var oe=he.get(R);if(oe!==void 0)return oe}var Ee;Se=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ht;ht=Ce.current,Ce.current=null,ue();try{if(Z){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(oi){Ee=oi}Reflect.construct(R,[],Ue)}else{try{Ue.call()}catch(oi){Ee=oi}R.call(Ue.prototype)}}else{try{throw Error()}catch(oi){Ee=oi}R()}}catch(oi){if(oi&&Ee&&typeof oi.stack=="string"){for(var We=oi.stack.split(`
108
+ `),Tr=Ee.stack.split(`
109
+ `),Pt=We.length-1,Rt=Tr.length-1;Pt>=1&&Rt>=0&&We[Pt]!==Tr[Rt];)Rt--;for(;Pt>=1&&Rt>=0;Pt--,Rt--)if(We[Pt]!==Tr[Rt]){if(Pt!==1||Rt!==1)do if(Pt--,Rt--,Rt<0||We[Pt]!==Tr[Rt]){var ii=`
110
+ `+We[Pt].replace(" at new "," at ");return typeof R=="function"&&he.set(R,ii),ii}while(Pt>=1&&Rt>=0);break}}}finally{Se=!1,Ce.current=ht,Ae(),Error.prepareStackTrace=ct}var cu=R?R.displayName||R.name:"",J5=cu?J(cu):"";return typeof R=="function"&&he.set(R,J5),J5}function nt(R,Z,oe){return ge(R,!1)}function Pe(R){var Z=R.prototype;return!!(Z&&Z.isReactComponent)}function st(R,Z,oe){if(R==null)return"";if(typeof R=="function")return ge(R,Pe(R));if(typeof R=="string")return J(R);switch(R){case f:return J("Suspense");case c:return J("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case u:return nt(R.render);case h:return st(R.type,Z,oe);case d:return nt(R._render);case v:{var Ee=R,ct=Ee._payload,ht=Ee._init;try{return st(ht(ct),Z,oe)}catch{}}}return""}var ft={},Ft=w.ReactDebugCurrentFrame;function Rr(R){if(R){var Z=R._owner,oe=st(R.type,R._source,Z?Z.type:null);Ft.setExtraStackFrame(oe)}else Ft.setExtraStackFrame(null)}function hr(R,Z,oe,Ee,ct){{var ht=Function.call.bind(Object.prototype.hasOwnProperty);for(var Ue in R)if(ht(R,Ue)){var We=void 0;try{if(typeof R[Ue]!="function"){var Tr=Error((Ee||"React class")+": "+oe+" type `"+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[Ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Tr.name="Invariant Violation",Tr}We=R[Ue](Z,Ue,Ee,oe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pt){We=Pt}We&&!(We instanceof Error)&&(Rr(ct),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ee||"React class",oe,Ue,typeof We),Rr(null)),We instanceof Error&&!(We.message in ft)&&(ft[We.message]=!0,Rr(ct),T("Failed %s type: %s",oe,We.message),Rr(null))}}}var Ta=w.ReactCurrentOwner,Cn=Object.prototype.hasOwnProperty,Qp={key:!0,ref:!0,__self:!0,__source:!0},uu,U5,bx;bx={};function Yce(R){if(Cn.call(R,"ref")){var Z=Object.getOwnPropertyDescriptor(R,"ref").get;if(Z&&Z.isReactWarning)return!1}return R.ref!==void 0}function $ce(R){if(Cn.call(R,"key")){var Z=Object.getOwnPropertyDescriptor(R,"key").get;if(Z&&Z.isReactWarning)return!1}return R.key!==void 0}function Uce(R,Z){if(typeof R.ref=="string"&&Ta.current&&Z&&Ta.current.stateNode!==Z){var oe=P(Ta.current.type);bx[oe]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(Ta.current.type),R.ref),bx[oe]=!0)}}function Zce(R,Z){{var oe=function(){uu||(uu=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Z))};oe.isReactWarning=!0,Object.defineProperty(R,"key",{get:oe,configurable:!0})}}function jce(R,Z){{var oe=function(){U5||(U5=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Z))};oe.isReactWarning=!0,Object.defineProperty(R,"ref",{get:oe,configurable:!0})}}var Xce=function(R,Z,oe,Ee,ct,ht,Ue){var We={$$typeof:n,type:R,key:Z,ref:oe,props:Ue,_owner:ht};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function qce(R,Z,oe,Ee,ct){{var ht,Ue={},We=null,Tr=null;oe!==void 0&&(We=""+oe),$ce(Z)&&(We=""+Z.key),Yce(Z)&&(Tr=Z.ref,Uce(Z,ct));for(ht in Z)Cn.call(Z,ht)&&!Qp.hasOwnProperty(ht)&&(Ue[ht]=Z[ht]);if(R&&R.defaultProps){var Pt=R.defaultProps;for(ht in Pt)Ue[ht]===void 0&&(Ue[ht]=Pt[ht])}if(We||Tr){var Rt=typeof R=="function"?R.displayName||R.name||"Unknown":R;We&&Zce(Ue,Rt),Tr&&jce(Ue,Rt)}return Xce(R,We,Tr,ct,Ee,Ta.current,Ue)}}var xx=w.ReactCurrentOwner,Z5=w.ReactDebugCurrentFrame;function fu(R){if(R){var Z=R._owner,oe=st(R.type,R._source,Z?Z.type:null);Z5.setExtraStackFrame(oe)}else Z5.setExtraStackFrame(null)}var Tx;Tx=!1;function Dx(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function j5(){{if(xx.current){var R=P(xx.current.type);if(R)return`
111
+
112
+ Check the render method of \``+R+"`."}return""}}function Kce(R){{if(R!==void 0){var Z=R.fileName.replace(/^.*[\\\/]/,""),oe=R.lineNumber;return`
113
+
114
+ Check your code at `+Z+":"+oe+"."}return""}}var X5={};function Qce(R){{var Z=j5();if(!Z){var oe=typeof R=="string"?R:R.displayName||R.name;oe&&(Z=`
115
+
116
+ Check the top-level render call using <`+oe+">.")}return Z}}function q5(R,Z){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var oe=Qce(Z);if(X5[oe])return;X5[oe]=!0;var Ee="";R&&R._owner&&R._owner!==xx.current&&(Ee=" It was passed a child from "+P(R._owner.type)+"."),fu(R),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,Ee),fu(null)}}function K5(R,Z){{if(typeof R!="object")return;if(Array.isArray(R))for(var oe=0;oe<R.length;oe++){var Ee=R[oe];Dx(Ee)&&q5(Ee,Z)}else if(Dx(R))R._store&&(R._store.validated=!0);else if(R){var ct=b(R);if(typeof ct=="function"&&ct!==R.entries)for(var ht=ct.call(R),Ue;!(Ue=ht.next()).done;)Dx(Ue.value)&&q5(Ue.value,Z)}}}function Jce(R){{var Z=R.type;if(Z==null||typeof Z=="string")return;var oe;if(typeof Z=="function")oe=Z.propTypes;else if(typeof Z=="object"&&(Z.$$typeof===u||Z.$$typeof===h))oe=Z.propTypes;else return;if(oe){var Ee=P(Z);hr(oe,R.props,"prop",Ee,R)}else if(Z.PropTypes!==void 0&&!Tx){Tx=!0;var ct=P(Z);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ct||"Unknown")}typeof Z.getDefaultProps=="function"&&!Z.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ehe(R){{for(var Z=Object.keys(R.props),oe=0;oe<Z.length;oe++){var Ee=Z[oe];if(Ee!=="children"&&Ee!=="key"){fu(R),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),fu(null);break}}R.ref!==null&&(fu(R),T("Invalid attribute `ref` supplied to `React.Fragment`."),fu(null))}}function Q5(R,Z,oe,Ee,ct,ht){{var Ue=A(R);if(!Ue){var We="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(We+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Tr=Kce(ct);Tr?We+=Tr:We+=j5();var Pt;R===null?Pt="null":Array.isArray(R)?Pt="array":R!==void 0&&R.$$typeof===n?(Pt="<"+(P(R.type)||"Unknown")+" />",We=" Did you accidentally export a JSX literal instead of a component?"):Pt=typeof R,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pt,We)}var Rt=qce(R,Z,oe,ct,ht);if(Rt==null)return Rt;if(Ue){var ii=Z.children;if(ii!==void 0)if(Ee)if(Array.isArray(ii)){for(var cu=0;cu<ii.length;cu++)K5(ii[cu],R);Object.freeze&&Object.freeze(ii)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else K5(ii,R)}return R===r.Fragment?ehe(Rt):Jce(Rt),Rt}}function the(R,Z,oe){return Q5(R,Z,oe,!0)}function rhe(R,Z,oe){return Q5(R,Z,oe,!1)}var nhe=rhe,ahe=the;r.jsx=nhe,r.jsxs=ahe}()}(VS)),VS}process.env.NODE_ENV==="production"?OS.exports=mae():OS.exports=_ae();var $O=OS.exports;const Dt=$O.jsx,or=$O.jsxs;var Sae=function(r){Cx(e,r);function e(t){var n=r.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var n=this.props.shouldSetOption;if(!(RS(n)&&!n(t,this.props))){if(!Hl(t.theme,this.props.theme)||!Hl(t.opts,this.props.opts)||!Hl(t.onEvents,this.props.onEvents)){this.dispose(),this.renderNewEcharts();return}var a=["option","notMerge","lazyUpdate","showLoading","loadingOption"];Hl(FO(this.props,a),FO(t,a))||this.updateEChartsOption(),(!Hl(t.style,this.props.style)||!Hl(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},e.prototype.dispose=function(){if(this.ele){try{zO(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){var t=this,n=this.props,a=n.onEvents,i=n.onChartReady,o=this.updateEChartsOption();this.bindEvents(o,a||{}),RS(i)&&i(o),this.ele&&BO(this.ele,function(){t.resize()})},e.prototype.bindEvents=function(t,n){function a(o,s){gae(o)&&RS(s)&&t.on(o,function(l){s(l,t)})}for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a(i,n[i])},e.prototype.updateEChartsOption=function(){var t=this.props,n=t.option,a=t.notMerge,i=a===void 0?!1:a,o=t.lazyUpdate,s=o===void 0?!1:o,l=t.showLoading,u=t.loadingOption,f=u===void 0?null:u,c=this.getEchartsInstance();return c.setOption(n,i,s),l?c.showLoading(f):c.hideLoading(),c},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize()}catch(n){console.warn(n)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,n=this.props,a=n.style,i=n.className,o=i===void 0?"":i,s=tg({height:300},a);return Dt("div",{ref:function(l){t.ele=l},style:s,className:"echarts-for-react "+o})},e}(at.PureComponent),bae=function(r){Cx(e,r);function e(t){var n=r.call(this,t)||this;return n.echarts=Xne,n}return e}(Sae);const UO=r=>{const{backgroundColor:e,names:t,values:n}=r,a=n||[50,45,40,35,30],i=()=>({backgroundColor:e||"#03164700",grid:{containLabel:!1,left:10,right:10,bottom:10,top:10},xAxis:{show:!1,data:t,type:"category"},yAxis:{type:"value",show:!1},tooltip:{trigger:"axis",backgroundColor:"rgba(0,0,0,0.8)",borderWidth:0,textStyle:{color:"#ffffff",fontSize:"12"},axisPointer:{type:"shadow"},position:function(s,l,u,f,c){return[s[0],s[1]]},confine:!1,formatter:function(s){let l=s[0].name;return l.length>30?l=l.substring(0,15)+"<br/>"+l.substring(15,30)+"<br/>"+l.substring(30):l.length>15&&(l=l.substring(0,15)+"<br/>"+l.substring(15)),l+" : "+s[0].value}},series:[{data:a,type:"bar",barWidth:20,itemStyle:{color:{type:"linear",x:0,y:1,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(0, 89, 84, 0)"},{offset:1,color:"#2063c7"}]},borderRadius:[10,10,0,0]},label:{show:!0,position:"top",distance:10,formatter:s=>s.dataIndex+1+"",fontFamily:"serif",color:"#fff",fontWeight:600,lineHeight:28,fontSize:20,width:28,height:28,backgroundColor:"#2063c7c8",borderRadius:20}},{data:a.map(()=>a[0]*1.25),type:"bar",barWidth:50,barGap:"-180%",z:0,itemStyle:{color:"#122860"},label:{show:!0,formatter:"{b}",fontSize:14,color:"#d8e0e7",position:"top"}}]}),o=at.useMemo(()=>i(),[]);return Dt(bae,{option:o})};var Pr=function(){return Pr=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Pr.apply(this,arguments)};function ps(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;function xae(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var wae=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tae=xae(function(r){return wae.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),vt="-ms-",xc="-moz-",et="-webkit-",ZO="comm",rp="rule",BS="decl",Dae="@import",jO="@keyframes",Cae="@layer",Aae=Math.abs,zS=String.fromCharCode,FS=Object.assign;function Mae(r,e){return $t(r,0)^45?(((e<<2^$t(r,0))<<2^$t(r,1))<<2^$t(r,2))<<2^$t(r,3):0}function XO(r){return r.trim()}function ja(r,e){return(r=e.exec(r))?r[0]:r}function ze(r,e,t){return r.replace(e,t)}function np(r,e){return r.indexOf(e)}function $t(r,e){return r.charCodeAt(e)|0}function Yl(r,e,t){return r.slice(e,t)}function _a(r){return r.length}function qO(r){return r.length}function wc(r,e){return e.push(r),r}function Eae(r,e){return r.map(e).join("")}function KO(r,e){return r.filter(function(t){return!ja(t,e)})}var ap=1,$l=1,QO=0,bn=0,kt=0,Ul="";function ip(r,e,t,n,a,i,o,s){return{value:r,root:e,parent:t,type:n,props:a,children:i,line:ap,column:$l,length:o,return:"",siblings:s}}function ji(r,e){return FS(ip("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function Zl(r){for(;r.root;)r=ji(r.root,{children:[r]});wc(r,r.siblings)}function Iae(){return kt}function Pae(){return kt=bn>0?$t(Ul,--bn):0,$l--,kt===10&&($l=1,ap--),kt}function Wn(){return kt=bn<QO?$t(Ul,bn++):0,$l++,kt===10&&($l=1,ap++),kt}function gs(){return $t(Ul,bn)}function op(){return bn}function sp(r,e){return Yl(Ul,r,e)}function GS(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Lae(r){return ap=$l=1,QO=_a(Ul=r),bn=0,[]}function kae(r){return Ul="",r}function HS(r){return XO(sp(bn-1,WS(r===91?r+2:r===40?r+1:r)))}function Rae(r){for(;(kt=gs())&&kt<33;)Wn();return GS(r)>2||GS(kt)>3?"":" "}function Oae(r,e){for(;--e&&Wn()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return sp(r,op()+(e<6&&gs()==32&&Wn()==32))}function WS(r){for(;Wn();)switch(kt){case r:return bn;case 34:case 39:r!==34&&r!==39&&WS(kt);break;case 40:r===41&&WS(r);break;case 92:Wn();break}return bn}function Nae(r,e){for(;Wn()&&r+kt!==47+10;)if(r+kt===42+42&&gs()===47)break;return"/*"+sp(e,bn-1)+"*"+zS(r===47?r:Wn())}function Vae(r){for(;!GS(gs());)Wn();return sp(r,bn)}function Bae(r){return kae(lp("",null,null,null,[""],r=Lae(r),0,[0],r))}function lp(r,e,t,n,a,i,o,s,l){for(var u=0,f=0,c=o,h=0,v=0,d=0,p=1,g=1,y=1,m=0,_="",S=a,x=i,b=n,w=_;g;)switch(d=m,m=Wn()){case 40:if(d!=108&&$t(w,c-1)==58){np(w+=ze(HS(m),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=HS(m);break;case 9:case 10:case 13:case 32:w+=Rae(d);break;case 92:w+=Oae(op()-1,7);continue;case 47:switch(gs()){case 42:case 47:wc(zae(Nae(Wn(),op()),e,t,l),l);break;default:w+="/"}break;case 123*p:s[u++]=_a(w)*y;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+f:y==-1&&(w=ze(w,/\f/g,"")),v>0&&_a(w)-c&&wc(v>32?eN(w+";",n,t,c-1,l):eN(ze(w," ","")+";",n,t,c-2,l),l);break;case 59:w+=";";default:if(wc(b=JO(w,e,t,u,f,a,s,_,S=[],x=[],c,i),i),m===123)if(f===0)lp(w,e,b,b,S,i,c,s,x);else switch(h===99&&$t(w,3)===110?100:h){case 100:case 108:case 109:case 115:lp(r,b,b,n&&wc(JO(r,b,b,0,0,a,s,_,a,S=[],c,x),x),a,x,c,s,n?S:x);break;default:lp(w,b,b,b,[""],x,0,s,x)}}u=f=v=0,p=y=1,_=w="",c=o;break;case 58:c=1+_a(w),v=d;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&Pae()==125)continue}switch(w+=zS(m),m*p){case 38:y=f>0?1:(w+="\f",-1);break;case 44:s[u++]=(_a(w)-1)*y,y=1;break;case 64:gs()===45&&(w+=HS(Wn())),h=gs(),f=c=_a(_=w+=Vae(op())),m++;break;case 45:d===45&&_a(w)==2&&(p=0)}}return i}function JO(r,e,t,n,a,i,o,s,l,u,f,c){for(var h=a-1,v=a===0?i:[""],d=qO(v),p=0,g=0,y=0;p<n;++p)for(var m=0,_=Yl(r,h+1,h=Aae(g=o[p])),S=r;m<d;++m)(S=XO(g>0?v[m]+" "+_:ze(_,/&\f/g,v[m])))&&(l[y++]=S);return ip(r,e,t,a===0?rp:s,l,u,f,c)}function zae(r,e,t,n){return ip(r,e,t,ZO,zS(Iae()),Yl(r,2,-2),0,n)}function eN(r,e,t,n,a){return ip(r,e,t,BS,Yl(r,0,n),Yl(r,n+1,-1),n,a)}function tN(r,e,t){switch(Mae(r,e)){case 5103:return et+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return et+r+r;case 4789:return xc+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return et+r+xc+r+vt+r+r;case 5936:switch($t(r,e+11)){case 114:return et+r+vt+ze(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return et+r+vt+ze(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return et+r+vt+ze(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return et+r+vt+r+r;case 6165:return et+r+vt+"flex-"+r+r;case 5187:return et+r+ze(r,/(\w+).+(:[^]+)/,et+"box-$1$2"+vt+"flex-$1$2")+r;case 5443:return et+r+vt+"flex-item-"+ze(r,/flex-|-self/g,"")+(ja(r,/flex-|baseline/)?"":vt+"grid-row-"+ze(r,/flex-|-self/g,""))+r;case 4675:return et+r+vt+"flex-line-pack"+ze(r,/align-content|flex-|-self/g,"")+r;case 5548:return et+r+vt+ze(r,"shrink","negative")+r;case 5292:return et+r+vt+ze(r,"basis","preferred-size")+r;case 6060:return et+"box-"+ze(r,"-grow","")+et+r+vt+ze(r,"grow","positive")+r;case 4554:return et+ze(r,/([^-])(transform)/g,"$1"+et+"$2")+r;case 6187:return ze(ze(ze(r,/(zoom-|grab)/,et+"$1"),/(image-set)/,et+"$1"),r,"")+r;case 5495:case 3959:return ze(r,/(image-set\([^]*)/,et+"$1$`$1");case 4968:return ze(ze(r,/(.+:)(flex-)?(.*)/,et+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+et+r+r;case 4200:if(!ja(r,/flex-|baseline/))return vt+"grid-column-align"+Yl(r,e)+r;break;case 2592:case 3360:return vt+ze(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,a){return e=a,ja(n.props,/grid-\w+-end/)})?~np(r+(t=t[e].value),"span")?r:vt+ze(r,"-start","")+r+vt+"grid-row-span:"+(~np(t,"span")?ja(t,/\d+/):+ja(t,/\d+/)-+ja(r,/\d+/))+";":vt+ze(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return ja(n.props,/grid-\w+-start/)})?r:vt+ze(ze(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return ze(r,/(.+)-inline(.+)/,et+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_a(r)-1-e>6)switch($t(r,e+1)){case 109:if($t(r,e+4)!==45)break;case 102:return ze(r,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+xc+($t(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~np(r,"stretch")?tN(ze(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return ze(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,i,o,s,l,u){return vt+a+":"+i+u+(o?vt+a+"-span:"+(s?l:+l-+i)+u:"")+r});case 4949:if($t(r,e+6)===121)return ze(r,":",":"+et)+r;break;case 6444:switch($t(r,$t(r,14)===45?18:11)){case 120:return ze(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+et+($t(r,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+vt+"$2box$3")+r;case 100:return ze(r,":",":"+vt)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ze(r,"scroll-","scroll-snap-")+r}return r}function up(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function Fae(r,e,t,n){switch(r.type){case Cae:if(r.children.length)break;case Dae:case BS:return r.return=r.return||r.value;case ZO:return"";case jO:return r.return=r.value+"{"+up(r.children,n)+"}";case rp:if(!_a(r.value=r.props.join(",")))return""}return _a(t=up(r.children,n))?r.return=r.value+"{"+t+"}":""}function Gae(r){var e=qO(r);return function(t,n,a,i){for(var o="",s=0;s<e;s++)o+=r[s](t,n,a,i)||"";return o}}function Hae(r){return function(e){e.root||(e=e.return)&&r(e)}}function Wae(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case BS:r.return=tN(r.value,r.length,t);return;case jO:return up([ji(r,{value:ze(r.value,"@","@"+et)})],n);case rp:if(r.length)return Eae(t=r.props,function(a){switch(ja(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Zl(ji(r,{props:[ze(a,/:(read-\w+)/,":"+xc+"$1")]})),Zl(ji(r,{props:[a]})),FS(r,{props:KO(t,n)});break;case"::placeholder":Zl(ji(r,{props:[ze(a,/:(plac\w+)/,":"+et+"input-$1")]})),Zl(ji(r,{props:[ze(a,/:(plac\w+)/,":"+xc+"$1")]})),Zl(ji(r,{props:[ze(a,/:(plac\w+)/,vt+"input-$1")]})),Zl(ji(r,{props:[a]})),FS(r,{props:KO(t,n)});break}return""})}}var Yae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ys=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",YS=typeof window<"u"&&"HTMLElement"in window,$ae=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),rN=/invalid hook call/i,fp=new Set,Uae=function(r,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(r).concat(t,` has been created dynamically.
117
+ `)+`You may see this warning because you've called styled inside another component.
118
+ To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var i=!0;console.error=function(o){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];rN.test(o)?(i=!1,fp.delete(n)):a.apply(void 0,ps([o],s,!1))},at.useRef(),i&&!fp.has(n)&&(console.warn(n),fp.add(n))}catch(o){rN.test(o.message)&&fp.delete(n)}finally{console.error=a}}},cp=Object.freeze([]),jl=Object.freeze({});function Zae(r,e,t){return t===void 0&&(t=jl),r.theme!==t.theme&&r.theme||e||t.theme}var $S=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),jae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xae=/(^-|-$)/g;function nN(r){return r.replace(jae,"-").replace(Xae,"")}var qae=/(a)(d)/gi,aN=function(r){return String.fromCharCode(r+(r>25?39:97))};function US(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=aN(e%52)+t;return(aN(e%52)+t).replace(qae,"$1-$2")}var ZS,ms=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},iN=function(r){return ms(5381,r)};function oN(r){return US(iN(r)>>>0)}function sN(r){return process.env.NODE_ENV!=="production"&&typeof r=="string"&&r||r.displayName||r.name||"Component"}function jS(r){return typeof r=="string"&&(process.env.NODE_ENV==="production"||r.charAt(0)===r.charAt(0).toLowerCase())}var lN=typeof Symbol=="function"&&Symbol.for,uN=lN?Symbol.for("react.memo"):60115,Kae=lN?Symbol.for("react.forward_ref"):60112,Qae={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eie=((ZS={})[Kae]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ZS[uN]=fN,ZS);function cN(r){return("type"in(e=r)&&e.type.$$typeof)===uN?fN:"$$typeof"in r?eie[r.$$typeof]:Qae;var e}var tie=Object.defineProperty,rie=Object.getOwnPropertyNames,hN=Object.getOwnPropertySymbols,nie=Object.getOwnPropertyDescriptor,aie=Object.getPrototypeOf,vN=Object.prototype;function dN(r,e,t){if(typeof e!="string"){if(vN){var n=aie(e);n&&n!==vN&&dN(r,n,t)}var a=rie(e);hN&&(a=a.concat(hN(e)));for(var i=cN(r),o=cN(e),s=0;s<a.length;++s){var l=a[s];if(!(l in Jae||t&&t[l]||o&&l in o||i&&l in i)){var u=nie(e,l);try{tie(r,l,u)}catch{}}}}return r}function Xl(r){return typeof r=="function"}function XS(r){return typeof r=="object"&&"styledComponentId"in r}function _s(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function qS(r,e){if(r.length===0)return"";for(var t=r[0],n=1;n<r.length;n++)t+=e?e+r[n]:r[n];return t}function ql(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function KS(r,e,t){if(t===void 0&&(t=!1),!t&&!ql(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=KS(r[n],e[n]);else if(ql(e))for(var n in e)r[n]=KS(r[n],e[n]);return r}function QS(r,e){Object.defineProperty(r,"toString",{value:e})}var iie=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
119
+
120
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
121
+
122
+ - Are you trying to reuse it across renders?
123
+ - Are you accidentally calling collectStyles twice?
124
+
125
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
126
+
127
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
128
+
129
+ - Does this error occur on the client and is your target falsy?
130
+ - Does this error occur on the server and is the sheet falsy?
131
+
132
+ `,5:`The clone method cannot be used on the client!
133
+
134
+ - Are you running in a client-like environment on the server?
135
+ - Are you trying to run SSR on the client?
136
+
137
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
138
+
139
+ - Are you using a custom target that isn't mounted?
140
+ - Does your document not have a valid head element?
141
+ - Have you accidentally removed a style tag manually?
142
+
143
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
144
+
145
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
146
+
147
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
148
+
149
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
150
+
151
+ `,14:`ThemeProvider: "theme" prop is required.
152
+
153
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
154
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
155
+ as for instance in your render method then you may be running into this limitation.
156
+
157
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
158
+ Has styled-components' style tag been unmounted or altered by another script?
159
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function oie(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r[0],n=[],a=1,i=r.length;a<i;a+=1)n.push(r[a]);return n.forEach(function(o){t=t.replace(/%[a-z]/,o)}),t}function Kl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(oie.apply(void 0,ps([iie[r]],e,!1)).trim())}var sie=function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return r.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,i=a;e>=i;)if((i<<=1)<0)throw Kl(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=a;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),l=(o=0,t.length);o<l;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),a=n+t;this.groupSizes[e]=0;for(var i=n;i<a;i++)this.tag.deleteRule(n)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],a=this.indexOfGroup(e),i=a+n,o=a;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(`/*!sc*/
160
+ `);return t},r}(),hp=new Map,vp=new Map,JS=1,dp=function(r){if(hp.has(r))return hp.get(r);for(;vp.has(JS);)JS++;var e=JS++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw Kl(16,"".concat(e));return hp.set(r,e),vp.set(e,r),e},lie=function(r,e){hp.set(r,e),vp.set(e,r)},uie="style[".concat(ys,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),fie=new RegExp("^".concat(ys,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cie=function(r,e,t){for(var n,a=t.split(","),i=0,o=a.length;i<o;i++)(n=a[i])&&r.registerName(e,n)},hie=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
161
+ `),a=[],i=0,o=n.length;i<o;i++){var s=n[i].trim();if(s){var l=s.match(fie);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(lie(f,u),cie(r,f,l[3]),r.getTag().insertRules(u,a)),a.length=0}else a.push(s)}}};function vie(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var pN=function(r){var e=document.head,t=r||e,n=document.createElement("style"),a=function(s){var l=Array.from(s.querySelectorAll("style[".concat(ys,"]")));return l[l.length-1]}(t),i=a!==void 0?a.nextSibling:null;n.setAttribute(ys,"active"),n.setAttribute("data-styled-version","6.0.7");var o=vie();return o&&n.setAttribute("nonce",o),t.insertBefore(n,i),n},die=function(){function r(e){this.element=pN(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,a=0,i=n.length;a<i;a++){var o=n[a];if(o.ownerNode===t)return o}throw Kl(17)}(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r}(),pie=function(){function r(e){this.element=pN(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r}(),gie=function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r}(),gN=YS,yie={isServer:!YS,useCSSOMInjection:!$ae},yN=function(){function r(e,t,n){e===void 0&&(e=jl),t===void 0&&(t={});var a=this;this.options=Pr(Pr({},yie),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&YS&&gN&&(gN=!1,function(i){for(var o=document.querySelectorAll(uie),s=0,l=o.length;s<l;s++){var u=o[s];u&&u.getAttribute(ys)!=="active"&&(hie(i,u),u.parentNode&&u.parentNode.removeChild(u))}}(this)),QS(this,function(){return function(i){for(var o=i.getTag(),s=o.length,l="",u=function(c){var h=function(y){return vp.get(y)}(c);if(h===void 0)return"continue";var v=i.names.get(h),d=o.getGroup(c);if(v===void 0||d.length===0)return"continue";var p="".concat(ys,".g").concat(c,'[id="').concat(h,'"]'),g="";v!==void 0&&v.forEach(function(y){y.length>0&&(g+="".concat(y,","))}),l+="".concat(d).concat(p,'{content:"').concat(g,'"}').concat(`/*!sc*/
162
+ `)},f=0;f<s;f++)u(f);return l}(a)})}return r.registerId=function(e){return dp(e)},r.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new r(Pr(Pr({},this.options),e),this.gs,t&&this.names||void 0)},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var n=t.useCSSOMInjection,a=t.target;return t.isServer?new gie(a):n?new die(a):new pie(a)}(this.options),new sie(e)));var e},r.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},r.prototype.registerName=function(e,t){if(dp(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(dp(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(dp(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r}(),mie=/&/g,_ie=/^\s*\/\/.*$/gm;function mN(r,e){return r.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=mN(t.children,e)),t})}function Sie(r){var e,t,n,a=r===void 0?jl:r,i=a.options,o=i===void 0?jl:i,s=a.plugins,l=s===void 0?cp:s,u=function(h,v,d){return d===t||d.startsWith(t)&&d.endsWith(t)&&d.replaceAll(t,"").length>0?".".concat(e):h},f=l.slice();f.push(function(h){h.type===rp&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(mie,t).replace(n,u))}),o.prefix&&f.push(Wae),f.push(Fae);var c=function(h,v,d,p){v===void 0&&(v=""),d===void 0&&(d=""),p===void 0&&(p="&"),e=p,t=v,n=new RegExp("\\".concat(t,"\\b"),"g");var g=h.replace(_ie,""),y=Bae(d||v?"".concat(d," ").concat(v," { ").concat(g," }"):g);o.namespace&&(y=mN(y,o.namespace));var m=[];return up(y,Gae(f.concat(Hae(function(_){return m.push(_)})))),m};return c.hash=l.length?l.reduce(function(h,v){return v.name||Kl(15),ms(h,v.name)},5381).toString():"",c}var bie=new yN,eb=Sie(),_N=at.createContext({shouldForwardProp:void 0,styleSheet:bie,stylis:eb});_N.Consumer,at.createContext(void 0);function SN(){return at.useContext(_N)}var tb=function(){function r(e,t){var n=this;this.inject=function(a,i){i===void 0&&(i=eb);var o=n.name+i.hash;a.hasNameForId(n.id,o)||a.insertRules(n.id,o,i(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,QS(this,function(){throw Kl(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=eb),this.name+e.hash},r}(),xie=function(r){return r>="A"&&r<="Z"};function bN(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;xie(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var xN=function(r){return r==null||r===!1||r===""},wN=function(r){var e,t,n=[];for(var a in r){var i=r[a];r.hasOwnProperty(a)&&!xN(i)&&(Array.isArray(i)&&i.isCss||Xl(i)?n.push("".concat(bN(a),":"),i,";"):ql(i)?n.push.apply(n,ps(ps(["".concat(a," {")],wN(i),!1),["}"],!1)):n.push("".concat(bN(a),": ").concat((e=a,(t=i)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Yae||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return n};function Ss(r,e,t,n){if(xN(r))return[];if(XS(r))return[".".concat(r.styledComponentId)];if(Xl(r)){if(!Xl(i=r)||i.prototype&&i.prototype.isReactComponent||!e)return[r];var a=r(e);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof tb||ql(a)||a===null||console.error("".concat(sN(r)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ss(a,e,t,n)}var i;return r instanceof tb?t?(r.inject(t,n),[r.getName(n)]):[r]:ql(r)?wN(r):Array.isArray(r)?Array.prototype.concat.apply(cp,r.map(function(o){return Ss(o,e,t,n)})):[r.toString()]}function wie(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(Xl(t)&&!XS(t))return!1}return!0}var Tie=iN("6.0.7"),Die=function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&wie(e),this.componentId=t,this.baseHash=ms(Tie,t),this.baseStyle=n,yN.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))a=_s(a,this.staticRulesId);else{var i=qS(Ss(this.rules,e,t,n)),o=US(ms(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}a=_s(a,o),this.staticRulesId=o}else{for(var l=ms(this.baseHash,n.hash),u="",f=0;f<this.rules.length;f++){var c=this.rules[f];if(typeof c=="string")u+=c,process.env.NODE_ENV!=="production"&&(l=ms(l,c));else if(c){var h=qS(Ss(c,e,t,n));l=ms(l,h),u+=h}}if(u){var v=US(l>>>0);t.hasNameForId(this.componentId,v)||t.insertRules(this.componentId,v,n(u,".".concat(v),void 0,this.componentId)),a=_s(a,v)}}return a},r}(),TN=at.createContext(void 0);TN.Consumer;var rb={},DN=new Set;function Cie(r,e,t){var n=XS(r),a=r,i=!jS(r),o=e.attrs,s=o===void 0?cp:o,l=e.componentId,u=l===void 0?function(S,x){var b=typeof S!="string"?"sc":nN(S);rb[b]=(rb[b]||0)+1;var w="".concat(b,"-").concat(oN("6.0.7"+b+rb[b]));return x?"".concat(x,"-").concat(w):w}(e.displayName,e.parentComponentId):l,f=e.displayName,c=f===void 0?function(S){return jS(S)?"styled.".concat(S):"Styled(".concat(sN(S),")")}(r):f,h=e.displayName&&e.componentId?"".concat(nN(e.displayName),"-").concat(e.componentId):e.componentId||u,v=n&&a.attrs?a.attrs.concat(s).filter(Boolean):s,d=e.shouldForwardProp;if(n&&a.shouldForwardProp){var p=a.shouldForwardProp;if(e.shouldForwardProp){var g=e.shouldForwardProp;d=function(S,x){return p(S,x)&&g(S,x)}}else d=p}var y=new Die(t,h,n?a.componentStyle:void 0);function m(S,x){return function(b,w,T){var D=b.attrs,M=b.componentStyle,A=b.defaultProps,E=b.foldedComponentIds,I=b.styledComponentId,P=b.target,L=at.useContext(TN),k=SN(),V=b.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&at.useDebugValue(I);var O=function(ue,Ae,Ce){for(var pe,J=Pr(Pr({},Ae),{className:void 0,theme:Ce}),Se=0;Se<ue.length;Se+=1){var he=Xl(pe=ue[Se])?pe(J):pe;for(var K in he)J[K]=K==="className"?_s(J[K],he[K]):K==="style"?Pr(Pr({},J[K]),he[K]):he[K]}return Ae.className&&(J.className=_s(J.className,Ae.className)),J}(D,w,Zae(w,L,A)||jl),B=O.as||P,H={};for(var W in O)O[W]===void 0||W[0]==="$"||W==="as"||W==="theme"||(W==="forwardedAs"?H.as=O.forwardedAs:V&&!V(W,B)||(H[W]=O[W],V||process.env.NODE_ENV!=="development"||Tae(W)||DN.has(W)||!$S.has(B)||(DN.add(W),console.warn('styled-components: it looks like an unknown prop "'.concat(W,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var q=function(ue,Ae){var Ce=SN(),pe=ue.generateAndInjectStyles(Ae,Ce.styleSheet,Ce.stylis);return process.env.NODE_ENV!=="production"&&at.useDebugValue(pe),pe}(M,O);process.env.NODE_ENV!=="production"&&b.warnTooManyClasses&&b.warnTooManyClasses(q);var ee=_s(E,I);return q&&(ee+=" "+q),O.className&&(ee+=" "+O.className),H[jS(B)&&!$S.has(B)?"class":"className"]=ee,H.ref=T,at.createElement(B,H)}(_,S,x)}process.env.NODE_ENV!=="production"&&(m.displayName=c);var _=at.forwardRef(m);return _.attrs=v,_.componentStyle=y,_.shouldForwardProp=d,process.env.NODE_ENV!=="production"&&(_.displayName=c),_.foldedComponentIds=n?_s(a.foldedComponentIds,a.styledComponentId):"",_.styledComponentId=h,_.target=n?a.target:r,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=n?function(x){for(var b=[],w=1;w<arguments.length;w++)b[w-1]=arguments[w];for(var T=0,D=b;T<D.length;T++)KS(x,D[T],!0);return x}({},a.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(Uae(c,h),_.warnTooManyClasses=function(S,x){var b={},w=!1;return function(T){if(!w&&(b[T]=!0,Object.keys(b).length>=200)){var D=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(D,`.
163
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
164
+ Example:
165
+ const Component = styled.div.attrs(props => ({
166
+ style: {
167
+ background: props.background,
168
+ },
169
+ }))\`width: 100%;\`
170
+
171
+ <Component />`),w=!0,b={}}}}(c,h)),QS(_,function(){return".".concat(_.styledComponentId)}),i&&dN(_,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function CN(r,e){for(var t=[r[0]],n=0,a=e.length;n<a;n+=1)t.push(e[n],r[n+1]);return t}var AN=function(r){return Object.assign(r,{isCss:!0})};function MN(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Xl(r)||ql(r)){var n=r;return AN(Ss(CN(cp,ps([n],e,!0))))}var a=r;return e.length===0&&a.length===1&&typeof a[0]=="string"?Ss(a):AN(Ss(CN(a,e)))}function nb(r,e,t){if(t===void 0&&(t=jl),!e)throw Kl(1,e);var n=function(a){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return r(e,t,MN.apply(void 0,ps([a],i,!1)))};return n.attrs=function(a){return nb(r,e,Pr(Pr({},t),{attrs:Array.prototype.concat(t.attrs,a).filter(Boolean)}))},n.withConfig=function(a){return nb(r,e,Pr(Pr({},t),a))},n}var EN=function(r){return nb(Cie,r)},ce=EN;$S.forEach(function(r){ce[r]=EN(r)});function Aie(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=qS(MN.apply(void 0,ps([r],e,!1))),a=oN(n);return new tb(a,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
172
+ Perhaps you're looking to import 'styled-components/native'?
173
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var pp="__sc-".concat(ys,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[pp]||(window[pp]=0),window[pp]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
174
+
175
+ See https://s-c.sh/2BAXzed for more info.`),window[pp]+=1);function Mie(r){const{icon:e,style:t,onClick:n,color:a,size:i}=r,o=()=>n==null?void 0:n();return Dt("span",{className:r.className,style:{...t},children:Dt("i",{style:{fontSize:i??"18px"},className:`iconfont ${e}`,onClick:o})})}const Yn=ce.div`
176
+ width: 100%;
177
+ height: 100%;
178
+ transition: all 0.2s;
179
+ position: relative;
180
+ cursor: ${r=>r.pointer?"pointer":"auto"};
181
+
182
+
183
+ &:hover{
184
+ box-shadow: ${r=>r.hoverColor?`0 0 6px ${r.hoverColor}`:"none"};
185
+ }
186
+ `;ce.div`
187
+ width: 100%;
188
+ height: 100%;
189
+ display: grid;
190
+ grid-template-columns: repeat(3, 1fr);
191
+ grid-template-rows: repeat(3, 1fr)
192
+ `,ce(Yn)`
193
+ display: flex;
194
+ flex-wrap: wrap;
195
+ justify-content:flex-start
196
+ `,ce(Yn)`
197
+ display:flex;
198
+ justify-content:space-between
199
+ `,ce(Yn)`
200
+ display:flex;
201
+ justify-content:space-between
202
+ `,ce(Yn)`
203
+ display: flex;
204
+ flex-direction: column;
205
+ justify-content: space-evenly;
206
+ align-items: flex-start;
207
+ `,ce(Yn)`
208
+ display: flex;
209
+ flex-direction: column;
210
+ justify-content: space-evenly;
211
+ align-items: flex-end;
212
+ `;const Eie=ce(Yn)`
213
+ display: flex;
214
+ flex-direction: column;
215
+ justify-content: space-evenly;
216
+ align-items: center;
217
+ `;ce(Yn)`
218
+ display:flex;
219
+ justify-content:flex-end
220
+ `,ce(Yn)`
221
+ display:flex;
222
+ align-items: center;
223
+ justify-content:flex-start
224
+ `,ce(Yn)`
225
+ display:flex;
226
+ align-items: center;
227
+ justify-content:center
228
+ `,ce.div`
229
+ width: 100%;
230
+ height: 100%;
231
+ transition: all 0.2s;
232
+ position: absolute;
233
+ cursor: ${r=>r.pointer?"pointer":"auto"};
234
+
235
+
236
+ &:hover{
237
+ box-shadow: ${r=>r.hoverColor?`0 0 6px ${r.hoverColor}`:"none"};
238
+ }
239
+ `;const Iie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAAAyCAYAAAAgE3KTAAAAAXNSR0IArs4c6QAAArRJREFUeF7t2z1rUwEUBuBEHCxF/4CO/izBQajUreDkUERw8G/opFDFycFNxK/B0cVJMODQRVOS3DS5VxoQiqBwkkz3fTql5Czvcw4vN6QdXj381Q3O/YweXBn++fXa/Z/Xz7/nNQECBBIEhooxYc0yEiBQEVCMFS2zBAhECCjGiDULSYBARUAxVrTMEiAQIaAYI9YsJAECFQHFWNEyS4BAhIBijFizkAQIVAQUY0XLLAECEQKKMWLNQhIgUBFQjBUtswQIRAgoxog1C0mAQEVAMVa0zBIgECGgGCPWLCQBAhUBxVjRMkuAQISAYoxYs5AECFQEFGNFyywBAhECijFizUISIFARUIwVLbMECEQIrFWMu3uXDsdPmocXpt0yQklIAgSiBNYqxssHO1+7ZvB68mx80B5fbKLEhCVAoPcCaxfjmUw3H7yZPB3fUY69vxMBCUQJbFSMq3JsuncnL0/3B6PlJEpOWAIEeiuwcTGuZJaDL9O3i1uLz6fHvZUSjACBGIHtFOPZk2M7/D57v7ix+DQfxegJSoBALwW2V4zL7tvsQ3tTMfbyToQiECWwnWL0UTrqaIQl0HeBjYuxOx18PHkx3/PlS99PRT4COQIbFePqz3WOmv32RzvPIZOUAIG+C6xdjG3TvZo+n99Vin0/EfkI5AmsVYy7t3fujR/PHvmXwLyDkZhAgsBaxZgAIyMBArkCijF395ITIPAPAcXoNAgQIPCXgGJ0EgQIEFCMboAAAQL/F/DE6EIIECDgidENECBAwBOjGyBAgEBJwEfpEpdhAgQSBBRjwpZlJECgJKAYS1yGCRBIEFCMCVuWkQCBkoBiLHEZJkAgQUAxJmxZRgIESgKKscRlmACBBAHFmLBlGQkQKAkoxhKXYQIEEgQUY8KWZSRAoCSgGEtchgkQSBD4DXdaldS4ZUjjAAAAAElFTkSuQmCC",gp=ce.div`
240
+ text-shadow: 0px 0px 14px rgb(27, 126, 242);
241
+ `,ab=ce.div`
242
+ font-weight: 600;
243
+ `,Xi=ce.div`
244
+ display: flex;
245
+ color: white;
246
+ font-size: 16px;
247
+ align-items:center;
248
+ justify-content: center;
249
+ `,ib=ce.div`
250
+ display: flex;
251
+ color: white;
252
+ font-size: 16px;
253
+ align-items:center;
254
+ justify-content: center;
255
+ `;ce(Xi)`
256
+ font-style: italic;
257
+ `,ce(Xi)`
258
+ ${gp};
259
+ ${ab};
260
+ justify-content: left;
261
+ width: 100%;
262
+ font-size: 40px;
263
+ `;const Pie=ce(Xi)`
264
+ font-size: 26px;
265
+ `;ce(Xi)`
266
+ width: 100%;
267
+ font-size: 18px;
268
+ `,ce(ib)`
269
+ font-size: 12px;
270
+ color: #ffffffcc;
271
+ `,ce(Xi)`
272
+ ${gp};
273
+ ${ab};
274
+ font-size: 32px;
275
+ `,ce(Xi)`
276
+ display:flex;
277
+ justify-content:flex-end;
278
+ `,ce(Xi)`
279
+ display:flex;
280
+ justify-content:flex-start;
281
+ `,ce(Xi)`
282
+ ${gp};
283
+ ${ab};
284
+ width: 326px;
285
+ background: url(${Iie}) no-repeat;
286
+ height: 50px;
287
+ `;const IN={background:"linear-gradient(0deg, #00BBFF, #00BCD4, #0000ff)","-webkit-background-clip":"text","background-clip":"text",color:"transparent"},Lie=ce(Mie)`
288
+ ${IN}
289
+ `;ce(ib)`
290
+ ${IN};
291
+ `;var PN={exports:{}};/*!
292
+ Copyright (c) 2018 Jed Watson.
293
+ Licensed under the MIT License (MIT), see
294
+ http://jedwatson.github.io/classnames
295
+ */(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if(o==="string"||o==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=t.apply(null,i);s&&n.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(PN);var kie=PN.exports;const Rie=PS(kie),ihe="",Oie=ce.img`
296
+ width: ${r=>r.size||200};
297
+ height: ${r=>r.size||200};
298
+ background-size: 100% 100%;
299
+ `;ce.img`
300
+ width: ${r=>r.width||200};
301
+ height: ${r=>r.height||200};
302
+ background-size: 100% 100%;
303
+ `;const Nie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAoCAYAAACrUDmFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABISSURBVHgBrVoLcFzVef7Oua+9u6vV+2FbtmSDjbFwgrETJ6nBduySNI0DaTAlmTZAJiWNCZO2kwTSSWpRaJu2TMOEQoa2UwhTEsamkxIymRJMIx6DpzEQsJEAg41sYdnWe7W7d+/75DsrKQjnAYN8Z672de+55z///3/f9/9HAlBCKeDmmyF27+YHvu7sh8BOYNcAxPWA3DQMdXgxjDzfnxwGFi3mGw/GdBYq8iAmy1CJPyaWtrbIxhKSahtSl5fs70fS3gNRN4i0tRtpzxVA34NIf7YbKZ8H/by55wJCCVGbC1/5fH7GWThqxmkj9V/9sDVrIP5xEvLGRohvvwFjaAj4IH87aMFseRloWAPzSAmyPAKVbYSUoyUVNwip7x8N8nHPqrI1NZSPXQNJkoVIBxBt2AZZbyF++HWkf9IM9f9NENUJJH39NGwvUj0FMTuh3l4InuqsGTjrQaFXFJx8/wBwYBCyuxt47RGItStglZbCOH6oiIal9dbpo0C6GDLjQ1YMvtpV4YeuashVZei7STbLQUOoIIPUjhF7yXRqG4VkmYmksB6i60GEp1ZDdixHeqoDanQA6a41UDt3Iq35bf7aazMFFnRIcMX2cpw+vh/ex5UrwOjmDxNHYLRfAvtQSI+9CEO21jsTHqz2VchFIRw/hyy9lHUybraQQ94w3RwsuH7A3yQcV8DxZNVZ0lzIygi2x88nDkMeWg7raD3EM69D9nAxP/3xGZu4wjVbtAdnpqbEXGQt5BB79iiDBhrac10MneeOw6w7CcNVMEQBVjGFYZowYxqa8LvEg0kvmRNlwLJgNGVglrwo0YNlc4zDAOm0RFiQUG6G+SgQxVVEto34HCbx0ZPw162lEXVIeg4gHtwMHNqPZMfdSHSO7N69mzk4E55nw4Ni505l5HoGLQx245VXIIzNyITMseMepFWFFdMvDTnYoxOQdTYylhHZ054Fx4FpcGFiDmKksUiFmZh8HySIpY1ECiTK4scAURLSYNru0MipaUSrIqTVDUj9KpK6LqS7jyHeysgnCkARcWjUbP4tPA/N3MdgVSa7xVEb4lgrjBYaF0zAtCowssvglANYqYeMiGFEAjbNtjP0HGHFinTW0HfKNoXvIabFqSQYxRENNBGpKc5ar4INlH0axPBfxCgZPo0IzyBxG4E3xmlMM7CT4NYzsFtduVdbRTit2agWjKbyqeegisOQk42w2lphaeNCTj5sg5OmYJDBDRWYaXHOMJHj5N1KCtcL6OkEmdhEthojYzvIwUBOSeSSFA4957h1cAW9HqehTYOd0mjVOD1MZM1AkEaMqgnZ2QzxT00wmI+1YNyzk9TROz/3FpaHxrareu2RMZjeQQi7kUYlsHwXVgbIBBXYphFnYyUzCKWbMDIZbi495Qq+F1wAOsghzluQiakYmJyOzGaYqzpsIZXFCyxlKOki1e4lFKEUIvGZj51jSFcxxqeLUPIcoI58+vjjM/youbCvb26aN+PdHmL9dSpbJe85ebhjgp6L4GQceo5eY1a4gQ/LcZEl3rpxClMvAD0kz1mE+s9cgvOWNKG5zoFbDlPvZFGO/KAP/a+PYJKertoGInrd532EGfhpASGjNUgjhEmC4NxphNEGCoUqgm0M3UPkxlZSBr2pZo2cBZp3H6ZmI0OTr9b4JIxKSDpohs0J2QQM+gEZAoMbxrBTwryicbs+hgs+uw2fWNSA82oErQNI6UCqcT2uJVoMjePAPY/hge8/iVcY5kkqETEkzEwABoD2dVVmHNc4ahetpeP1scflOzVBbzJ8FxNVezncbsyMu2AUXftF1Tjqw+T0MpJeqxRDp75Z5BFbGUZPNtGG8lzRhqZvXY3LN6zEtppBM8//9QHnvb40pB76+v3inpeOYyyuwCOq+vk8AmUiLJ+iJ10s4nP/YPmF+E6RVNHWM0P6pC2di7PEvzCQEZ07VZOoI2CQnJ2IoagNteN8HIhsmBqOYSX5Fe1GwwNfxY0tdeicM04fQ6M4cnwcw1VfVfMunKXNYvHiZqz8lSLhn6kynt/wVXzJFPBDA9VGB1HIsFVjBCuFfRxrKS+79Ys7cEsfVc0W3tZ/RpguBElNpxmmYm6ZcWAr27E4klMNTZPEbJtxLQ+t+76sbmipE51q9jGHhzHwzfvTHx14TU44UhssIgJNnKRJuLnHKNz4KbVjVae4RAdtYx4XcnqpMKByBCCqodhgWLhZTKGCu3nJrRz2G999GIXOTfhK30moXfySuqOmjfGbA+UdH0bHpt5CQFgv+6ZFxeJyoq5SiWsKoia9eud18qMXnSM2zxn3yC/w6KdvS394apKhlhA3DaHFcsywiyFkNDSaFL//lNx/bjuGmwrIvTiEB39yAIfCchSFKgmVNJKcqqYN+QiZsrWfsu4g79/GoTdPH0dX5OOJjo0IcAzqbIhuseTzqpOr60Zleksiy2TMQxtJMdXFvHv4m7g566BZP+Wnz6vHrv838Sg0jJKJiZA0TkaMgIihRA/CtwgosUh8+AgiGL6dJ8DEDEnJyHStcJrv6yjfMsRV4SFsX4r0tWmc75XwAP3Vxce8YBWw7c9aMbm7d44E372R0qa+pGQShkGNmSdaUrGQnPk15HUfwQZtnL5w2sPkDd8V+7RySRXhyJAqjGVCOjgnDPGpIMQfxjEaY4HQSniVoVLSDUkT1GogvljwKlQvMcssjkeSV/V8bfcmVPcFeJE5fCmNOcav3huV8Mx/HkO3fq5aoFiTvh4kgiS/mQwPaVNqSeakFIn1vlVYp1NAP+O/9+P/mEpSx4xppPp6RS67PE5wA7/7MCfyCZ630+DNiTJSyyZlUsiRRxObwpuiO7GcUBZMIj+NW0z1su4rWLb69qYn138cyz77+xjM29jOhzE40e3HeGzRNehaCAfWDCS/UV+Q8VTNi4biSQlGPQWzrZ6oOQv8zx1JT5umNGgYDZR8LtbynkvOHJC/f47gkkMa1ybGiSakSEXsZHVsJwxRNVVB+gbPCmqjv6exEz8JtqK7wcAxSr7t/Pogz25y6M86rlHdv2nivUp13xKry/F2BjrJjAU0rCacmUeKecRS1hB1mZnc0y585Fl5iuFLuKUM42IkMVb8ljFz9FwL3aRyLmS+jhVHiDRLmc5qymhp0EUyRAtP6817unJN+OmOf8a6dhppCXyY3z2kPckF+0XrZ9SF8x/wd6G60KLx/P3CtzWwSP1H/FOmA8EcgmVrHTlj6PxWgj5SjfuM37c76N28koQalkUcGyEpO1Z2WmFFMTZFzxFvJxm6qXjL8F1mHnu27Ea9FuPzx6OAb3jLAwz8kHPrxjs4ZAN1Sq4A6VIcc1iVskZLNG/RHs/H+MyMGUcrUND20YtKJKlWZs/8ljFHKMZfTEJTUfrxWoJJHUSFrww/5HWpxe+VgzNF2AvxOLY/egulXBX7+PkynoOMrK1j/6UbDm8ekcRW3t2Hd3BIkWNOlLmaqRlnMhohkRIelMFAPD2FITFjH67ahPNrulK7UEhlSAxLpA/QWxNzg/H9MUbA35Bu6DHmqjkb+hFQnw2NgGhdUqiFQAubWmY685408+PiS/jof/wVcKqCn/Or92rjsjlsHbkHL5w56V4hBr8hxVZW2Pe+nYEmSyLtrYQTSqkwEtOmk6g1SGLhy2/g5eUdM3F+6UXqQzfdJ56SLH/ilERBfxuWPMB7n2Nod9CYEkwcppr2KRzIIvydABZH5B3WS7ptEapAxYaD1gbWgkMUBwQ0tjjuevpOfO3wq1gaCvwvH6W5cDBjYts1HTj+uyavDX07A2UUsZVQqHmOEyD50kgSf0QoT779IzxFKvC0B+td0fi9v1A7OGmmBH3Hk6JA0NCQ7YsjNPwEk9ZQ2jZNNZYurWJTCVNWvZqX2A9wsJQ0EU0xEhiiff+O449+CTcNHMQF1eqscQovNAls+FwXBlErKRZIEzQordBbJOWEwRf7WnXEbDckCF8bRemR5/HjOfG86XzxoTu/gO1ciISEKDRl6Jglopq116RmoEWPGnf/OT65/1vmbbddjc0qtVgIs6jnAgzpJjFXqEKOyEUQR2Js0p7jfV1crO81ZLG9YwWKMx6aE9vv/hAXfFm1T5yGzYrCjdiGIEVkWQzWkcCzNET3b7NP/L28aUmLWKlmK4nnj6pnb/sfse/Z1zDpR5RiZFFqKl6O8OI1KPztH6urlrWJDXpurC3Lq6/Hpfzd1yfpIvKL8OvrEbMzdwUj546Zlca//uBa/CULevSPsmRiNYGzoUUXXadazGnYzW3IjVfgMFecHPuchPQMaTHHXHJXtKeNe74mbmwqvFlR6OP4qDo6NC5OVANU6rK6XMISNpVWza8JR4p4amsvvh54KBPE4kDC72I9eGwMDssnjZbLKCpuveMy9A5oAmhl9G9B2jtXRSxQyfyq4CXruuyFZhiabtWHowU3u2H5KEkyQhjOqiVo+oc/xSfXr6zJsrcc8/ly7r0+Xz6hHvrr+9J7D58wRvxpVNI6hCT/kA2MWtHrh1hEDPjI5nW4o8y2/sZmJP1s5/f0zBinq4mFtizExhvGC8Vik0XBbQUFNpIYplkLuRI/E1GzzKsMDc0RGS3ym3PFRnSzbXFZdxvrvDOMrA3Ic7SIF/c8jb23P4yf634MEzPgmOzuICh5fjWOM0FDI+KOHGJ2zYNNrpYDQA83fFgIxnPGzY64IA+arUFTPEp+KjTD8KgbWdPHLCUCImTKPKytHYGIzd1a7ybhxF996AC+09mU5q7aJM9f1ormrKMyXqQqpybk6fufwKEjp5NpdojDlIRDyZbw3iiIKWgkYmFn0qV5iNcPIarfOKned3GjUX4DybUXQw0wPPXmz8DA/CJ3Yb1R8cF/Ue6rp2B2JXCCYq10sogWNjdWHKr7DCWcS26z6Un2spmjrDykZGOKKKq5wqjJGz1SwnAyojRKYschjzIQpRWHjm2GbBME7KN6VrbWVYuKFUSNBXIva8fOQ4PhH63tVs7VSPcdRaqdeOXO2R2nBbYranezdW/vp4P8Om6PubCnRsiNgJ1roTFBrXvNLQZCPw3kWloUwhabuFakOY+NW0P3K/yZsHJMXXmBtyAiWmqO98MygkIB8TQFAOkj6CB6TnLXadkQwlUt7I+uQ9o/23DaMrNUtePNEF2YkbptqJayGUuPpe5JyryCrgW5v0BCLkbso5CzOPuU1JFWCA6BDYsbEibDzTRYP4baMIuVr5Z4WbZ32HPJMhTDgNxqcBwa50dBaJgqVh4b4SWkjVRLeD/FJ7mw6SBbEwz9u2gFm02i5sEr5wxd+BaafJZ/1la4jxcgLq1E2sYWwlSRbYdEKzIEsQNvIkJFh5hbQGB5qJCMQwKOR/7zuDETMDk9kZiVpMTXEB73MHyGdhg58ImUfsV2graCigtsYU2XEDaOjkVmFeqiMVb4F0HdxV3gLZyH7qTV9gnneU3v+mIBh7zxbqTr11OKcdurh3nR2s+OM8PFH0W1WGI3mirH9NjPNNlj4eTNZoTcQaqwh1LmvoRXDlEuV8ySaUV+lQthugioyHyWSFUuQGjqrTSPXYuSW9td6qaynexsUYVDzEfuQuW5Capb9P1r9tKTN8/z1pxhC8tBAwO90uW+wXksaUYDoLicoccQ8k5Anbukll+pHbAIZo3O3kvCvIyZdxE/J6wOItZwcdYMYunYEXE28qloStP0IGUfQ7SWi0TmxNKNJp1jTyM89xXEjddBvr+de4jcf9z1e9S/Az2qD4+jd8uWs7InMXdITao6oXmmjYtYu3VRdLM5tIJefIVdr8UrucpLOLlmsMhA2NCMiKnju1Qkdga+E1V96Tke17nqGPALDj1Ypud5DRVlgFGEHQQVVvnR6UmEH/gAn3olcC+BZdUqNnevQXDlbJOXf84KsLzFwDm1oP+7YXIfjZyEKg0jOTmM6AuLiXhHiYrj5LEiqvlwIsh68FobEdYx9wzmYzDqVjJuJRp7EmV6yQuPokKQCRYxlImWPrfkQrOddJCF+nwPktWrEW/nQu6cRMqdpFT/V0cvZtWPOLvGzYyk9I7xm+05BoXo5R/9ryQ9uyAePgxRPQnhDUIueg+EM839TFYEoQcxwuvbeJ70Z5RafgRJ82qIehK5/heSTAfSHcshXzZngGMj861/LxK996D/u0K/zKHkmfJvod20ueOXlQSuqGFCqIAAAAAASUVORK5CYII=",LN="#09193b";ce.div`
304
+ background-color: '#09193b';
305
+ `;const Vie=ce.div`
306
+ position: relative;
307
+ height: 100%;
308
+ width: 100%;
309
+ `;ce(Vie)`
310
+ background-color: ${LN}63;
311
+ box-shadow: 0 0 18px ${LN}63;
312
+ backdrop-filter: blur(1px);
313
+ `;const Bie=Aie`
314
+ from { transform: rotate(0deg); }
315
+ to { transform: rotate(360deg); }
316
+ `;ce.div`
317
+ border: 4px solid rgba(0, 0, 0, 0.3); /* 边框颜色和粗细 */
318
+ border-top: 4px solid #3498db; /* 旋转的边框颜色 */
319
+ border-radius: 50%; /* 创建一个圆形边框 */
320
+ width: 40px; /* 设置圆的直径 */
321
+ height: 40px;
322
+ position: absolute;
323
+ top: 50%; /* 垂直居中 */
324
+ left: 50%; /* 水平居中 */
325
+ margin: -20px 0 0 -20px; /* 通过负边距居中 */
326
+ animation: ${Bie} 2s linear infinite; /* 旋转动画 */
327
+ `;const Xa=ce.div`
328
+ width: 100%;
329
+ height: 100%;
330
+ `;ce.div`
331
+ width: 100%;
332
+ height: 100%;
333
+ position: relative;
334
+ padding: 4px;
335
+ `;const Tc=ce.div`
336
+ display: flex;
337
+ color: white;
338
+ font-size: 16px;
339
+ width: 100%;
340
+ position: absolute;
341
+ align-items: center;
342
+ height: ${r=>r.height||"32px"};
343
+ padding-left: ${r=>r.left||"28px"};
344
+ top: 0;
345
+ text-shadow: 0px 0px 14px rgb(27, 126, 242);
346
+ font-weight: 600;
347
+ `;ce(Tc)`
348
+ &:before {
349
+ content: '';
350
+ position: absolute;
351
+ left: 0px;
352
+ background-image: url(${Nie});
353
+ height: 40px;
354
+ width: 56px;
355
+ }
356
+ `,ce(Tc)`
357
+ &::after {
358
+ content: '';
359
+ position: absolute;
360
+ left: 0px;
361
+ background-image: url("/imgs/label/label5.png");
362
+ height: 100%;
363
+ width: 100%;
364
+ background-size: 100% 100%;
365
+ z-index: 0;
366
+ }
367
+ `,ce(Tc)`
368
+ z-index: 1;
369
+ &::before {
370
+ content: '';
371
+ position: absolute;
372
+ left: 0px;
373
+ background-image: url("/imgs/label/label3.png");
374
+ height: 100%;
375
+ width: 100%;
376
+ background-size: 100% 100%;
377
+ z-index: -1;
378
+ background-repeat: no-repeat;
379
+ }
380
+ `,ce(Tc)`
381
+ z-index: 1;
382
+ &::before {
383
+ content: '';
384
+ position: absolute;
385
+ left: 0px;
386
+ background-image: url("/imgs/label/label6.png");
387
+ height: 100%;
388
+ width: 100%;
389
+ background-size: 100% 26px;
390
+ background-position-y: 12px;
391
+ z-index: -1;
392
+ background-repeat: no-repeat;
393
+ }
394
+ `,ce(Tc)`
395
+ box-shadow: 0px 2px 2px #023eb938;
396
+
397
+ &:after {
398
+ content: '';
399
+ position: absolute;
400
+ top: 50%;
401
+ transform: translateY(-50%) skewY(329deg);
402
+ left: 10px;
403
+ width: 5px;
404
+ height: 50%;
405
+ background-color: #ffcc00;
406
+ box-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00;
407
+ }
408
+ `,ce.div`
409
+ position: absolute;
410
+ top: ${r=>r.top||"32px"};
411
+ bottom: 0;
412
+ width: 100%;
413
+ color: white;
414
+ display: flex;
415
+ flex-direction: column;
416
+ justify-content: space-evenly;
417
+
418
+ .echarts-for-react {
419
+ height: 100% !important;
420
+ }
421
+ `,ce(Xa)`
422
+ border-top: 3px solid ${r=>r.color+"f0"||"#0065e9f0"};
423
+ background: radial-gradient(ellipse at center top, ${r=>r.color+"ba"||"#0065e9ba"}, ${r=>r.color+"30"||"#0065e99b30"});
424
+ border-radius: 2px 2px 2px 2px;
425
+ opacity: 1;
426
+ `,ce(Xa)`
427
+ background: linear-gradient(180deg, #134da5 0%, rgba(19, 77, 165, 0.26) 98%);
428
+ border-radius: 0px 0px 0px 0px;
429
+ opacity: 1;
430
+ border: 1px solid;
431
+ `,ce(Xa)`
432
+ background: linear-gradient(
433
+ 90deg,
434
+ rgba(0, 49, 116, 0.21) 0%,
435
+ rgba(1, 41, 104, 0.92) 53%,
436
+ #126ad1 100%
437
+ );
438
+ border-radius: 2px 2px 2px 2px;
439
+ opacity: 1;
440
+ `,ce(Xa)`
441
+ background: rgba(0, 15, 51, 0.94);
442
+ border-bottom: 1px solid #0e1c47;
443
+ border-top: 1px solid #0e1c47;
444
+ `,ce(Xa)`
445
+ border-top: 2px solid ${r=>r.color+"f0"||"#0065e9f0"};
446
+ `,ce(Xa)`
447
+ box-shadow: 0 0 1.2vw #237ad4 inset;
448
+ background: linear-gradient(#1359df, #1359df) left top, linear-gradient(#1359df, #1359df) left top,
449
+ linear-gradient(#1359df, #1359df) right top, linear-gradient(#1359df, #1359df) right top,
450
+ linear-gradient(#1359df, #1359df) left bottom, linear-gradient(#1359df, #1359df) left bottom,
451
+ linear-gradient(#1359df, #1359df) right bottom, linear-gradient(#1359df, #1359df) right bottom;
452
+ background-repeat: no-repeat;
453
+ background-size: 0.08vw 1.2vw, 1.2vw 0.08vw;
454
+ padding: 6px;
455
+ `,ce(Xa)`
456
+ position: relative;
457
+ clip-path: polygon(1% 0, 99% 0, 99% 1%, 100% 1%, 100% 99%, 99% 99%, 99% 100%, 99% 100%, 1% 100%, 1% 99%, 0 99%, 0 1% ,1% 1%);
458
+ `,ce(Xa)`
459
+ position: relative;
460
+ border-right: ${r=>r.size||4}px solid;
461
+ border-left: ${r=>r.size||4}px solid;
462
+ background-color: ${r=>r.withBG?(r.color||"#02DEFF")+"22":(r.color||"#02DEFF")+"00"};
463
+ border-image: linear-gradient(
464
+ to bottom,
465
+ ${r=>r.color||"#02DEFF"},
466
+ ${r=>r.color||"#02DEFF"} ${r=>r.size||4}px,
467
+ ${r=>r.color?r.color+"00":"#02DEFF00"} ${r=>r.size||4}px,
468
+ ${r=>r.color?r.color+"00":"#02DEFF00"} calc( 100% - ${r=>r.size||4}px) ,
469
+ ${r=>r.color||"#02DEFF"} calc( 100% - ${r=>r.size||4}px),
470
+ ${r=>r.color||"#02DEFF"}
471
+ ) 1
472
+ `;const zie=ce.div`
473
+ ${gp};
474
+ width: 100%;
475
+ display: flex;
476
+ align-items: center;
477
+ height: 36px;
478
+ font-size: 15px;
479
+ color: white;
480
+ font-weight: 600;
481
+ position: relative;
482
+ padding-left: ${r=>r.left||"14px"};
483
+ box-sizing: border-box;
484
+ border-bottom: 2px solid #0a6eb578;
485
+ position: relative;
486
+ `;ce(zie)`
487
+ &:after {
488
+ content: '';
489
+ position: absolute;
490
+ bottom: -2px;
491
+ left: 18px;
492
+ width: 100px;
493
+ height: 2px;
494
+ background-color: ${r=>r.color||"#ffcc00"};
495
+ box-shadow: 0 0 3px ${r=>r.color||"#ffcc00"}, 0 0 6px ${r=>r.color||"#ffcc00"};
496
+ }
497
+ `,ce(Xa)`
498
+ display: flex;
499
+ flex-direction: column;
500
+ `,ce.img`
501
+ object-fit: contain;
502
+ `,ce.div`
503
+ display: flex;
504
+ justify-content: center;
505
+ align-items: center;
506
+ `,ce(Yn)`
507
+ display:flex;
508
+ justify-content: center;
509
+
510
+ .custom {
511
+
512
+ }
513
+
514
+ .lightd-number-roll-animate-dom {
515
+ margin: 0 6px;
516
+ font-size: 32px;
517
+ width: 30px;
518
+ }
519
+
520
+ .lightd-number-roll-animate-span {
521
+ background:url("/imgs/components/number.png");
522
+ background-size: 100% 100%;
523
+ line-height: 45px;
524
+ text-shadow: 0px 0px 20px #04f9f9;
525
+ }
526
+
527
+ `,ce(Yn)`
528
+ border-top: 2px solid ${r=>r.lineColor||"#0065e9"};
529
+ background: linear-gradient(
530
+ 90deg,
531
+ rgba(0, 49, 116, 0.21) 0%,
532
+ rgba(1, 41, 104, 0.92) 53%,
533
+ #126ad1 100%
534
+ );
535
+ border-radius: 2px 2px 2px 2px;
536
+ opacity: 1;
537
+ `;const kN=r=>{const{label:e,count:t,suffix:n,theme:a="dark",icon:i,color:o="#0065e9",size:s}=r;return or(Eie,{children:[Dt(Lie,{size:s||20,customClass:"itemImg",icon:i??"icon-shijieditu"}),Dt(Oie,{style:{position:"absolute",bottom:42},src:"/imgs/components/count4.png",width:"110px",height:"95px"}),or(Pie,{style:{position:"absolute",bottom:0,fontSize:22},children:[t||"-"," "]}),or(ib,{style:{position:"absolute",top:0,fontSize:12},children:[e," ",n?`${n}`:""]})]})};var Fie=at.createContext({});const RN=Fie;function ob(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ON(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function $n(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ON(Object(t),!0).forEach(function(n){ob(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ON(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Gie(r){if(Array.isArray(r))return r}function Hie(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n=[],a=!0,i=!1,o,s;try{for(t=t.call(r);!(a=(o=t.next()).done)&&(n.push(o.value),!(e&&n.length===e));a=!0);}catch(l){i=!0,s=l}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw s}}return n}}function NN(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Wie(r,e){if(r){if(typeof r=="string")return NN(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return NN(r,e)}}function Yie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
538
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VN(r,e){return Gie(r)||Hie(r,e)||Wie(r,e)||Yie()}function $ie(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(t[a]=r[a]);return t}function BN(r,e){if(r==null)return{};var t=$ie(r,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function yp(r){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(r)}function xn(r,e){Uie(r)&&(r="100%");var t=Zie(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Uie(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function Zie(r){return typeof r=="string"&&r.indexOf("%")!==-1}function jie(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function mp(r){return r<=1?"".concat(Number(r)*100,"%"):r}function sb(r){return r.length===1?"0"+r:String(r)}function Xie(r,e,t){return{r:xn(r,255)*255,g:xn(e,255)*255,b:xn(t,255)*255}}function lb(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function qie(r,e,t){var n,a,i;if(r=xn(r,360),e=xn(e,100),t=xn(t,100),e===0)a=t,i=t,n=t;else{var o=t<.5?t*(1+e):t+e-t*e,s=2*t-o;n=lb(s,o,r+1/3),a=lb(s,o,r),i=lb(s,o,r-1/3)}return{r:n*255,g:a*255,b:i*255}}function Kie(r,e,t){r=xn(r,255),e=xn(e,255),t=xn(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case r:i=(e-t)/s+(e<t?6:0);break;case e:i=(t-r)/s+2;break;case t:i=(r-e)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Qie(r,e,t){r=xn(r,360)*6,e=xn(e,100),t=xn(t,100);var n=Math.floor(r),a=r-n,i=t*(1-e),o=t*(1-a*e),s=t*(1-(1-a)*e),l=n%6,u=[t,o,i,i,s,t][l],f=[s,t,t,o,i,i][l],c=[i,i,s,t,t,o][l];return{r:u*255,g:f*255,b:c*255}}function Jie(r,e,t,n){var a=[sb(Math.round(r).toString(16)),sb(Math.round(e).toString(16)),sb(Math.round(t).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function zN(r){return Yr(r)/255}function Yr(r){return parseInt(r,16)}var FN={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Dc(r){var e={r:0,g:0,b:0},t=1,n=null,a=null,i=null,o=!1,s=!1;return typeof r=="string"&&(r=roe(r)),typeof r=="object"&&(qa(r.r)&&qa(r.g)&&qa(r.b)?(e=Xie(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):qa(r.h)&&qa(r.s)&&qa(r.v)?(n=mp(r.s),a=mp(r.v),e=Qie(r.h,n,a),o=!0,s="hsv"):qa(r.h)&&qa(r.s)&&qa(r.l)&&(n=mp(r.s),i=mp(r.l),e=qie(r.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=jie(t),{ok:o,format:r.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var eoe="[-\\+]?\\d+%?",toe="[-\\+]?\\d*\\.\\d+%?",qi="(?:".concat(toe,")|(?:").concat(eoe,")"),ub="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),fb="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),Un={CSS_UNIT:new RegExp(qi),rgb:new RegExp("rgb"+ub),rgba:new RegExp("rgba"+fb),hsl:new RegExp("hsl"+ub),hsla:new RegExp("hsla"+fb),hsv:new RegExp("hsv"+ub),hsva:new RegExp("hsva"+fb),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function roe(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(FN[r])r=FN[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Un.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=Un.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Un.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=Un.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Un.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=Un.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Un.hex8.exec(r),t?{r:Yr(t[1]),g:Yr(t[2]),b:Yr(t[3]),a:zN(t[4]),format:e?"name":"hex8"}:(t=Un.hex6.exec(r),t?{r:Yr(t[1]),g:Yr(t[2]),b:Yr(t[3]),format:e?"name":"hex"}:(t=Un.hex4.exec(r),t?{r:Yr(t[1]+t[1]),g:Yr(t[2]+t[2]),b:Yr(t[3]+t[3]),a:zN(t[4]+t[4]),format:e?"name":"hex8"}:(t=Un.hex3.exec(r),t?{r:Yr(t[1]+t[1]),g:Yr(t[2]+t[2]),b:Yr(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function qa(r){return!!Un.CSS_UNIT.exec(String(r))}var _p=2,GN=.16,noe=.05,aoe=.05,ioe=.15,HN=5,WN=4,ooe=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function YN(r){var e=r.r,t=r.g,n=r.b,a=Kie(e,t,n);return{h:a.h*360,s:a.s,v:a.v}}function Sp(r){var e=r.r,t=r.g,n=r.b;return"#".concat(Jie(e,t,n,!1))}function soe(r,e,t){var n=t/100,a={r:(e.r-r.r)*n+r.r,g:(e.g-r.g)*n+r.g,b:(e.b-r.b)*n+r.b};return a}function $N(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-_p*e:Math.round(r.h)+_p*e:n=t?Math.round(r.h)+_p*e:Math.round(r.h)-_p*e,n<0?n+=360:n>=360&&(n-=360),n}function UN(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-GN*e:e===WN?n=r.s+GN:n=r.s+noe*e,n>1&&(n=1),t&&e===HN&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function ZN(r,e,t){var n;return t?n=r.v+aoe*e:n=r.v-ioe*e,n>1&&(n=1),Number(n.toFixed(2))}function cb(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=Dc(r),a=HN;a>0;a-=1){var i=YN(n),o=Sp(Dc({h:$N(i,a,!0),s:UN(i,a,!0),v:ZN(i,a,!0)}));t.push(o)}t.push(Sp(n));for(var s=1;s<=WN;s+=1){var l=YN(n),u=Sp(Dc({h:$N(l,s),s:UN(l,s),v:ZN(l,s)}));t.push(u)}return e.theme==="dark"?ooe.map(function(f){var c=f.index,h=f.opacity,v=Sp(soe(Dc(e.backgroundColor||"#141414"),Dc(t[c]),h*100));return v}):t}var hb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vb={},db={};Object.keys(hb).forEach(function(r){vb[r]=cb(hb[r]),vb[r].primary=vb[r][5],db[r]=cb(hb[r],{theme:"dark",backgroundColor:"#141414"}),db[r].primary=db[r][5]});var jN={};function loe(r,e){process.env.NODE_ENV!=="production"&&!r&&console!==void 0&&console.error("Warning: ".concat(e))}function uoe(r,e,t){!e&&!jN[t]&&(r(!1,t),jN[t]=!0)}function foe(r,e){uoe(loe,r,e)}function coe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hoe(r,e){if(!r)return!1;if(r.contains)return r.contains(e);for(var t=e;t;){if(t===r)return!0;t=t.parentNode}return!1}var XN="data-rc-order",voe="rc-util-key",pb=new Map;function qN(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):voe}function gb(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function doe(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function KN(r){return Array.from((pb.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function QN(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!coe())return null;var t=e.csp,n=e.prepend,a=document.createElement("style");a.setAttribute(XN,doe(n)),t!=null&&t.nonce&&(a.nonce=t==null?void 0:t.nonce),a.innerHTML=r;var i=gb(e),o=i.firstChild;if(n){if(n==="queue"){var s=KN(i).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(XN))});if(s.length)return i.insertBefore(a,s[s.length-1].nextSibling),a}i.insertBefore(a,o)}else i.appendChild(a);return a}function poe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=gb(e);return KN(t).find(function(n){return n.getAttribute(qN(e))===r})}function goe(r,e){var t=pb.get(r);if(!t||!hoe(document,t)){var n=QN("",e),a=n.parentNode;pb.set(r,a),a.removeChild(n)}}function yoe(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=gb(t);goe(n,t);var a=poe(e,t);if(a){var i,o;if(!((i=t.csp)===null||i===void 0)&&i.nonce&&a.nonce!==((o=t.csp)===null||o===void 0?void 0:o.nonce)){var s;a.nonce=(s=t.csp)===null||s===void 0?void 0:s.nonce}return a.innerHTML!==r&&(a.innerHTML=r),a}var l=QN(r,t);return l.setAttribute(qN(t),e),l}function moe(r,e){foe(r,"[@ant-design/icons] ".concat(e))}function JN(r){return yp(r)==="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(yp(r.icon)==="object"||typeof r.icon=="function")}function eV(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(e,t){var n=r[t];switch(t){case"class":e.className=n,delete e.class;break;default:e[t]=n}return e},{})}function yb(r,e,t){return t?at.createElement(r.tag,$n($n({key:e},eV(r.attrs)),t),(r.children||[]).map(function(n,a){return yb(n,"".concat(e,"-").concat(r.tag,"-").concat(a))})):at.createElement(r.tag,$n({key:e},eV(r.attrs)),(r.children||[]).map(function(n,a){return yb(n,"".concat(e,"-").concat(r.tag,"-").concat(a))}))}function tV(r){return cb(r)[0]}function rV(r){return r?Array.isArray(r)?r:[r]:[]}var _oe=`
539
+ .anticon {
540
+ display: inline-block;
541
+ color: inherit;
542
+ font-style: normal;
543
+ line-height: 0;
544
+ text-align: center;
545
+ text-transform: none;
546
+ vertical-align: -0.125em;
547
+ text-rendering: optimizeLegibility;
548
+ -webkit-font-smoothing: antialiased;
549
+ -moz-osx-font-smoothing: grayscale;
550
+ }
551
+
552
+ .anticon > * {
553
+ line-height: 1;
554
+ }
555
+
556
+ .anticon svg {
557
+ display: inline-block;
558
+ }
559
+
560
+ .anticon::before {
561
+ display: none;
562
+ }
563
+
564
+ .anticon .anticon-icon {
565
+ display: block;
566
+ }
567
+
568
+ .anticon[tabindex] {
569
+ cursor: pointer;
570
+ }
571
+
572
+ .anticon-spin::before,
573
+ .anticon-spin {
574
+ display: inline-block;
575
+ -webkit-animation: loadingCircle 1s infinite linear;
576
+ animation: loadingCircle 1s infinite linear;
577
+ }
578
+
579
+ @-webkit-keyframes loadingCircle {
580
+ 100% {
581
+ -webkit-transform: rotate(360deg);
582
+ transform: rotate(360deg);
583
+ }
584
+ }
585
+
586
+ @keyframes loadingCircle {
587
+ 100% {
588
+ -webkit-transform: rotate(360deg);
589
+ transform: rotate(360deg);
590
+ }
591
+ }
592
+ `,Soe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_oe,t=at.useContext(RN),n=t.csp;at.useEffect(function(){yoe(e,"@ant-design-icons",{prepend:!0,csp:n})},[])},boe=["icon","className","onClick","style","primaryColor","secondaryColor"],Cc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xoe(r){var e=r.primaryColor,t=r.secondaryColor;Cc.primaryColor=e,Cc.secondaryColor=t||tV(e),Cc.calculated=!!t}function woe(){return $n({},Cc)}var bp=function(e){var t=e.icon,n=e.className,a=e.onClick,i=e.style,o=e.primaryColor,s=e.secondaryColor,l=BN(e,boe),u=Cc;if(o&&(u={primaryColor:o,secondaryColor:s||tV(o)}),Soe(),moe(JN(t),"icon should be icon definiton, but got ".concat(t)),!JN(t))return null;var f=t;return f&&typeof f.icon=="function"&&(f=$n($n({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),yb(f.icon,"svg-".concat(f.name),$n({className:n,onClick:a,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};bp.displayName="IconReact",bp.getTwoToneColors=woe,bp.setTwoToneColors=xoe;const mb=bp;function nV(r){var e=rV(r),t=VN(e,2),n=t[0],a=t[1];return mb.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Toe(){var r=mb.getTwoToneColors();return r.calculated?[r.primaryColor,r.secondaryColor]:r.primaryColor}var Doe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nV("#1890ff");var xp=Jp.forwardRef(function(r,e){var t,n=r.className,a=r.icon,i=r.spin,o=r.rotate,s=r.tabIndex,l=r.onClick,u=r.twoToneColor,f=BN(r,Doe),c=Jp.useContext(RN),h=c.prefixCls,v=h===void 0?"anticon":h,d=Rie(v,(t={},ob(t,"".concat(v,"-").concat(a.name),!!a.name),ob(t,"".concat(v,"-spin"),!!i||a.name==="loading"),t),n),p=s;p===void 0&&l&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=rV(u),m=VN(y,2),_=m[0],S=m[1];return Dt("span",{...$n($n({role:"img","aria-label":a.name},f),{},{ref:e,tabIndex:p,onClick:l,className:d}),children:Dt(mb,{icon:a,primaryColor:_,secondaryColor:S,style:g})})});xp.displayName="AntdIcon",xp.getTwoToneColor=Toe,xp.setTwoToneColor=nV;const Coe=xp;var Aoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"};const Moe=Aoe;var aV=function(e,t){return Dt(Coe,{...$n($n({},e),{},{ref:t,icon:Moe})})};aV.displayName="EnvironmentOutlined";const Eoe=Jp.forwardRef(aV);var _b={exports:{}},iV=function(e,t){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return e.apply(t,a)}},Ioe=iV,bs=Object.prototype.toString;function Sb(r){return bs.call(r)==="[object Array]"}function bb(r){return typeof r>"u"}function Poe(r){return r!==null&&!bb(r)&&r.constructor!==null&&!bb(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function Loe(r){return bs.call(r)==="[object ArrayBuffer]"}function koe(r){return typeof FormData<"u"&&r instanceof FormData}function Roe(r){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&r.buffer instanceof ArrayBuffer,e}function Ooe(r){return typeof r=="string"}function Noe(r){return typeof r=="number"}function oV(r){return r!==null&&typeof r=="object"}function wp(r){if(bs.call(r)!=="[object Object]")return!1;var e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}function Voe(r){return bs.call(r)==="[object Date]"}function Boe(r){return bs.call(r)==="[object File]"}function zoe(r){return bs.call(r)==="[object Blob]"}function sV(r){return bs.call(r)==="[object Function]"}function Foe(r){return oV(r)&&sV(r.pipe)}function Goe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}function Hoe(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function Woe(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function xb(r,e){if(!(r===null||typeof r>"u"))if(typeof r!="object"&&(r=[r]),Sb(r))for(var t=0,n=r.length;t<n;t++)e.call(null,r[t],t,r);else for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.call(null,r[a],a,r)}function wb(){var r={};function e(a,i){wp(r[i])&&wp(a)?r[i]=wb(r[i],a):wp(a)?r[i]=wb({},a):Sb(a)?r[i]=a.slice():r[i]=a}for(var t=0,n=arguments.length;t<n;t++)xb(arguments[t],e);return r}function Yoe(r,e,t){return xb(e,function(a,i){t&&typeof a=="function"?r[i]=Ioe(a,t):r[i]=a}),r}function $oe(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}var $r={isArray:Sb,isArrayBuffer:Loe,isBuffer:Poe,isFormData:koe,isArrayBufferView:Roe,isString:Ooe,isNumber:Noe,isObject:oV,isPlainObject:wp,isUndefined:bb,isDate:Voe,isFile:Boe,isBlob:zoe,isFunction:sV,isStream:Foe,isURLSearchParams:Goe,isStandardBrowserEnv:Woe,forEach:xb,merge:wb,extend:Yoe,trim:Hoe,stripBOM:$oe},Ql=$r;function lV(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var uV=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(Ql.isURLSearchParams(t))a=t.toString();else{var i=[];Ql.forEach(t,function(l,u){l===null||typeof l>"u"||(Ql.isArray(l)?u=u+"[]":l=[l],Ql.forEach(l,function(c){Ql.isDate(c)?c=c.toISOString():Ql.isObject(c)&&(c=JSON.stringify(c)),i.push(lV(u)+"="+lV(c))}))}),a=i.join("&")}if(a){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e},Uoe=$r;function Tp(){this.handlers=[]}Tp.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Tp.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Tp.prototype.forEach=function(e){Uoe.forEach(this.handlers,function(n){n!==null&&e(n)})};var Zoe=Tp,joe=$r,Xoe=function(e,t){joe.forEach(e,function(a,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[i])})},fV=function(e,t,n,a,i){return e.config=t,n&&(e.code=n),e.request=a,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},Tb,cV;function hV(){if(cV)return Tb;cV=1;var r=fV;return Tb=function(t,n,a,i,o){var s=new Error(t);return r(s,n,a,i,o)},Tb}var Db,vV;function qoe(){if(vV)return Db;vV=1;var r=hV();return Db=function(t,n,a){var i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):n(r("Request failed with status code "+a.status,a.config,null,a.request,a))},Db}var Cb,dV;function Koe(){if(dV)return Cb;dV=1;var r=$r;return Cb=r.isStandardBrowserEnv()?function(){return{write:function(n,a,i,o,s,l){var u=[];u.push(n+"="+encodeURIComponent(a)),r.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Cb}var Ab,pV;function Qoe(){return pV||(pV=1,Ab=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),Ab}var Mb,gV;function Joe(){return gV||(gV=1,Mb=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),Mb}var Eb,yV;function ese(){if(yV)return Eb;yV=1;var r=Qoe(),e=Joe();return Eb=function(n,a){return n&&!r(a)?e(n,a):a},Eb}var Ib,mV;function tse(){if(mV)return Ib;mV=1;var r=$r,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ib=function(n){var a={},i,o,s;return n&&r.forEach(n.split(`
593
+ `),function(u){if(s=u.indexOf(":"),i=r.trim(u.substr(0,s)).toLowerCase(),o=r.trim(u.substr(s+1)),i){if(a[i]&&e.indexOf(i)>=0)return;i==="set-cookie"?a[i]=(a[i]?a[i]:[]).concat([o]):a[i]=a[i]?a[i]+", "+o:o}}),a},Ib}var Pb,_V;function rse(){if(_V)return Pb;_V=1;var r=$r;return Pb=r.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function i(o){var s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(s){var l=r.isString(s)?i(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),Pb}var Lb,SV;function bV(){if(SV)return Lb;SV=1;var r=$r,e=qoe(),t=Koe(),n=uV,a=ese(),i=tse(),o=rse(),s=hV();return Lb=function(u){return new Promise(function(c,h){var v=u.data,d=u.headers,p=u.responseType;r.isFormData(v)&&delete d["Content-Type"];var g=new XMLHttpRequest;if(u.auth){var y=u.auth.username||"",m=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";d.Authorization="Basic "+btoa(y+":"+m)}var _=a(u.baseURL,u.url);g.open(u.method.toUpperCase(),n(_,u.params,u.paramsSerializer),!0),g.timeout=u.timeout;function S(){if(g){var b="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,w=!p||p==="text"||p==="json"?g.responseText:g.response,T={data:w,status:g.status,statusText:g.statusText,headers:b,config:u,request:g};e(c,h,T),g=null}}if("onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(h(s("Request aborted",u,"ECONNABORTED",g)),g=null)},g.onerror=function(){h(s("Network Error",u,null,g)),g=null},g.ontimeout=function(){var w="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(w=u.timeoutErrorMessage),h(s(w,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var x=(u.withCredentials||o(_))&&u.xsrfCookieName?t.read(u.xsrfCookieName):void 0;x&&(d[u.xsrfHeaderName]=x)}"setRequestHeader"in g&&r.forEach(d,function(w,T){typeof v>"u"&&T.toLowerCase()==="content-type"?delete d[T]:g.setRequestHeader(T,w)}),r.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),p&&p!=="json"&&(g.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&g.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(w){g&&(g.abort(),h(w),g=null)}),v||(v=null),g.send(v)})},Lb}var Kt=$r,xV=Xoe,nse=fV,ase={"Content-Type":"application/x-www-form-urlencoded"};function wV(r,e){!Kt.isUndefined(r)&&Kt.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function ise(){var r;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(r=bV()),r}function ose(r,e,t){if(Kt.isString(r))try{return(e||JSON.parse)(r),Kt.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var Dp={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ise(),transformRequest:[function(e,t){return xV(t,"Accept"),xV(t,"Content-Type"),Kt.isFormData(e)||Kt.isArrayBuffer(e)||Kt.isBuffer(e)||Kt.isStream(e)||Kt.isFile(e)||Kt.isBlob(e)?e:Kt.isArrayBufferView(e)?e.buffer:Kt.isURLSearchParams(e)?(wV(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Kt.isObject(e)||t&&t["Content-Type"]==="application/json"?(wV(t,"application/json"),ose(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&Kt.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?nse(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Dp.headers={common:{Accept:"application/json, text/plain, */*"}},Kt.forEach(["delete","get","head"],function(e){Dp.headers[e]={}}),Kt.forEach(["post","put","patch"],function(e){Dp.headers[e]=Kt.merge(ase)});var kb=Dp,sse=$r,lse=kb,use=function(e,t,n){var a=this||lse;return sse.forEach(n,function(o){e=o.call(a,e,t)}),e},Rb,TV;function DV(){return TV||(TV=1,Rb=function(e){return!!(e&&e.__CANCEL__)}),Rb}var CV=$r,Ob=use,fse=DV(),cse=kb;function Nb(r){r.cancelToken&&r.cancelToken.throwIfRequested()}var hse=function(e){Nb(e),e.headers=e.headers||{},e.data=Ob.call(e,e.data,e.headers,e.transformRequest),e.headers=CV.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),CV.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]});var t=e.adapter||cse.adapter;return t(e).then(function(a){return Nb(e),a.data=Ob.call(e,a.data,a.headers,e.transformResponse),a},function(a){return fse(a)||(Nb(e),a&&a.response&&(a.response.data=Ob.call(e,a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})},sr=$r,AV=function(e,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(h,v){return sr.isPlainObject(h)&&sr.isPlainObject(v)?sr.merge(h,v):sr.isPlainObject(v)?sr.merge({},v):sr.isArray(v)?v.slice():v}function u(h){sr.isUndefined(t[h])?sr.isUndefined(e[h])||(n[h]=l(void 0,e[h])):n[h]=l(e[h],t[h])}sr.forEach(a,function(v){sr.isUndefined(t[v])||(n[v]=l(void 0,t[v]))}),sr.forEach(i,u),sr.forEach(o,function(v){sr.isUndefined(t[v])?sr.isUndefined(e[v])||(n[v]=l(void 0,e[v])):n[v]=l(void 0,t[v])}),sr.forEach(s,function(v){v in t?n[v]=l(e[v],t[v]):v in e&&(n[v]=l(void 0,e[v]))});var f=a.concat(i).concat(o).concat(s),c=Object.keys(e).concat(Object.keys(t)).filter(function(v){return f.indexOf(v)===-1});return sr.forEach(c,u),n},MV={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},Vb={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){Vb[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var EV={},vse=MV.version.split(".");function IV(r,e){for(var t=e?e.split("."):vse,n=r.split("."),a=0;a<3;a++){if(t[a]>n[a])return!0;if(t[a]<n[a])return!1}return!1}Vb.transitional=function(e,t,n){var a=t&&IV(t);function i(o,s){return"[Axios v"+MV.version+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return function(o,s,l){if(e===!1)throw new Error(i(s," has been removed in "+t));return a&&!EV[s]&&(EV[s]=!0,console.warn(i(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,l):!0}};function dse(r,e,t){if(typeof r!="object")throw new TypeError("options must be an object");for(var n=Object.keys(r),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=r[i],l=s===void 0||o(s,i,r);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(t!==!0)throw Error("Unknown option "+i)}}var pse={isOlderVersion:IV,assertOptions:dse,validators:Vb},PV=$r,gse=uV,LV=Zoe,kV=hse,Cp=AV,RV=pse,Jl=RV.validators;function Ac(r){this.defaults=r,this.interceptors={request:new LV,response:new LV}}Ac.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Cp(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;t!==void 0&&RV.assertOptions(t,{silentJSONParsing:Jl.transitional(Jl.boolean,"1.0.0"),forcedJSONParsing:Jl.transitional(Jl.boolean,"1.0.0"),clarifyTimeoutError:Jl.transitional(Jl.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(e)===!1||(a=a&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var i=[];this.interceptors.response.forEach(function(h){i.push(h.fulfilled,h.rejected)});var o;if(!a){var s=[kV,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;n.length;){var u=n.shift(),f=n.shift();try{l=u(l)}catch(c){f(c);break}}try{o=kV(l)}catch(c){return Promise.reject(c)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Ac.prototype.getUri=function(e){return e=Cp(this.defaults,e),gse(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},PV.forEach(["delete","get","head","options"],function(e){Ac.prototype[e]=function(t,n){return this.request(Cp(n||{},{method:e,url:t,data:(n||{}).data}))}}),PV.forEach(["post","put","patch"],function(e){Ac.prototype[e]=function(t,n,a){return this.request(Cp(a||{},{method:e,url:t,data:n}))}});var yse=Ac,Bb,OV;function NV(){if(OV)return Bb;OV=1;function r(e){this.message=e}return r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,Bb=r,Bb}var zb,VV;function mse(){if(VV)return zb;VV=1;var r=NV();function e(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(o){n=o});var a=this;t(function(o){a.reason||(a.reason=new r(o),n(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.source=function(){var n,a=new e(function(o){n=o});return{token:a,cancel:n}},zb=e,zb}var Fb,BV;function _se(){return BV||(BV=1,Fb=function(e){return function(n){return e.apply(null,n)}}),Fb}var Gb,zV;function Sse(){return zV||(zV=1,Gb=function(e){return typeof e=="object"&&e.isAxiosError===!0}),Gb}var FV=$r,bse=iV,Ap=yse,xse=AV,wse=kb;function GV(r){var e=new Ap(r),t=bse(Ap.prototype.request,e);return FV.extend(t,Ap.prototype,e),FV.extend(t,e),t}var Zn=GV(wse);Zn.Axios=Ap,Zn.create=function(e){return GV(xse(Zn.defaults,e))},Zn.Cancel=NV(),Zn.CancelToken=mse(),Zn.isCancel=DV(),Zn.all=function(e){return Promise.all(e)},Zn.spread=_se(),Zn.isAxiosError=Sse(),_b.exports=Zn,_b.exports.default=Zn;var Tse=_b.exports,Dse=Tse;const Cse=PS(Dse);//! moment.js
594
+ //! version : 2.29.4
595
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
596
+ //! license : MIT
597
+ //! momentjs.com
598
+ var HV;function ne(){return HV.apply(null,arguments)}function Ase(r){HV=r}function jn(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function xs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function qe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function Hb(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var e;for(e in r)if(qe(r,e))return!1;return!0}function Lr(r){return r===void 0}function Ka(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function Mc(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function WV(r,e){var t=[],n,a=r.length;for(n=0;n<a;++n)t.push(e(r[n],n));return t}function Ki(r,e){for(var t in e)qe(e,t)&&(r[t]=e[t]);return qe(e,"toString")&&(r.toString=e.toString),qe(e,"valueOf")&&(r.valueOf=e.valueOf),r}function Sa(r,e,t,n){return g5(r,e,t,n,!0).utc()}function Mse(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ne(r){return r._pf==null&&(r._pf=Mse()),r._pf}var Wb;Array.prototype.some?Wb=Array.prototype.some:Wb=function(r){var e=Object(this),t=e.length>>>0,n;for(n=0;n<t;n++)if(n in e&&r.call(this,e[n],n,e))return!0;return!1};function Yb(r){if(r._isValid==null){var e=Ne(r),t=Wb.call(e.parsedDateParts,function(a){return a!=null}),n=!isNaN(r._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&t);if(r._strict&&(n=n&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=n;else return n}return r._isValid}function Mp(r){var e=Sa(NaN);return r!=null?Ki(Ne(e),r):Ne(e).userInvalidated=!0,e}var YV=ne.momentProperties=[],$b=!1;function Ub(r,e){var t,n,a,i=YV.length;if(Lr(e._isAMomentObject)||(r._isAMomentObject=e._isAMomentObject),Lr(e._i)||(r._i=e._i),Lr(e._f)||(r._f=e._f),Lr(e._l)||(r._l=e._l),Lr(e._strict)||(r._strict=e._strict),Lr(e._tzm)||(r._tzm=e._tzm),Lr(e._isUTC)||(r._isUTC=e._isUTC),Lr(e._offset)||(r._offset=e._offset),Lr(e._pf)||(r._pf=Ne(e)),Lr(e._locale)||(r._locale=e._locale),i>0)for(t=0;t<i;t++)n=YV[t],a=e[n],Lr(a)||(r[n]=a);return r}function Ec(r){Ub(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),$b===!1&&($b=!0,ne.updateOffset(this),$b=!1)}function Xn(r){return r instanceof Ec||r!=null&&r._isAMomentObject!=null}function $V(r){ne.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function wn(r,e){var t=!0;return Ki(function(){if(ne.deprecationHandler!=null&&ne.deprecationHandler(null,r),t){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
599
+ [`+i+"] ";for(o in arguments[0])qe(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}$V(r+`
600
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
601
+ `+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var UV={};function ZV(r,e){ne.deprecationHandler!=null&&ne.deprecationHandler(r,e),UV[r]||($V(e),UV[r]=!0)}ne.suppressDeprecationWarnings=!1,ne.deprecationHandler=null;function ba(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function Ese(r){var e,t;for(t in r)qe(r,t)&&(e=r[t],ba(e)?this[t]=e:this["_"+t]=e);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Zb(r,e){var t=Ki({},r),n;for(n in e)qe(e,n)&&(xs(r[n])&&xs(e[n])?(t[n]={},Ki(t[n],r[n]),Ki(t[n],e[n])):e[n]!=null?t[n]=e[n]:delete t[n]);for(n in r)qe(r,n)&&!qe(e,n)&&xs(r[n])&&(t[n]=Ki({},t[n]));return t}function jb(r){r!=null&&this.set(r)}var Xb;Object.keys?Xb=Object.keys:Xb=function(r){var e,t=[];for(e in r)qe(r,e)&&t.push(e);return t};var Ise={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Pse(r,e,t){var n=this._calendar[r]||this._calendar.sameElse;return ba(n)?n.call(e,t):n}function xa(r,e,t){var n=""+Math.abs(r),a=e-n.length,i=r>=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var qb=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ep=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Kb={},eu={};function _e(r,e,t,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),r&&(eu[r]=a),e&&(eu[e[0]]=function(){return xa(a.apply(this,arguments),e[1],e[2])}),t&&(eu[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),r)})}function Lse(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function kse(r){var e=r.match(qb),t,n;for(t=0,n=e.length;t<n;t++)eu[e[t]]?e[t]=eu[e[t]]:e[t]=Lse(e[t]);return function(a){var i="",o;for(o=0;o<n;o++)i+=ba(e[o])?e[o].call(a,r):e[o];return i}}function Ip(r,e){return r.isValid()?(e=jV(e,r.localeData()),Kb[e]=Kb[e]||kse(e),Kb[e](r)):r.localeData().invalidDate()}function jV(r,e){var t=5;function n(a){return e.longDateFormat(a)||a}for(Ep.lastIndex=0;t>=0&&Ep.test(r);)r=r.replace(Ep,n),Ep.lastIndex=0,t-=1;return r}var Rse={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ose(r){var e=this._longDateFormat[r],t=this._longDateFormat[r.toUpperCase()];return e||!t?e:(this._longDateFormat[r]=t.match(qb).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[r])}var Nse="Invalid date";function Vse(){return this._invalidDate}var Bse="%d",zse=/\d{1,2}/;function Fse(r){return this._ordinal.replace("%d",r)}var Gse={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Hse(r,e,t,n){var a=this._relativeTime[t];return ba(a)?a(r,e,t,n):a.replace(/%d/i,r)}function Wse(r,e){var t=this._relativeTime[r>0?"future":"past"];return ba(t)?t(e):t.replace(/%s/i,e)}var Ic={};function lr(r,e){var t=r.toLowerCase();Ic[t]=Ic[t+"s"]=Ic[e]=r}function Tn(r){return typeof r=="string"?Ic[r]||Ic[r.toLowerCase()]:void 0}function Qb(r){var e={},t,n;for(n in r)qe(r,n)&&(t=Tn(n),t&&(e[t]=r[n]));return e}var XV={};function ur(r,e){XV[r]=e}function Yse(r){var e=[],t;for(t in r)qe(r,t)&&e.push({unit:t,priority:XV[t]});return e.sort(function(n,a){return n.priority-a.priority}),e}function Pp(r){return r%4===0&&r%100!==0||r%400===0}function Dn(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function Fe(r){var e=+r,t=0;return e!==0&&isFinite(e)&&(t=Dn(e)),t}function tu(r,e){return function(t){return t!=null?(qV(this,r,t),ne.updateOffset(this,e),this):Lp(this,r)}}function Lp(r,e){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+e]():NaN}function qV(r,e,t){r.isValid()&&!isNaN(t)&&(e==="FullYear"&&Pp(r.year())&&r.month()===1&&r.date()===29?(t=Fe(t),r._d["set"+(r._isUTC?"UTC":"")+e](t,r.month(),zp(t,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+e](t))}function $se(r){return r=Tn(r),ba(this[r])?this[r]():this}function Use(r,e){if(typeof r=="object"){r=Qb(r);var t=Yse(r),n,a=t.length;for(n=0;n<a;n++)this[t[n].unit](r[t[n].unit])}else if(r=Tn(r),ba(this[r]))return this[r](e);return this}var KV=/\d/,Ur=/\d\d/,QV=/\d{3}/,Jb=/\d{4}/,kp=/[+-]?\d{6}/,dt=/\d\d?/,JV=/\d\d\d\d?/,e5=/\d\d\d\d\d\d?/,Rp=/\d{1,3}/,ex=/\d{1,4}/,Op=/[+-]?\d{1,6}/,ru=/\d+/,Np=/[+-]?\d+/,Zse=/Z|[+-]\d\d:?\d\d/gi,Vp=/Z|[+-]\d\d(?::?\d\d)?/gi,jse=/[+-]?\d+(\.\d{1,3})?/,Pc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Bp;Bp={};function le(r,e,t){Bp[r]=ba(e)?e:function(n,a){return n&&t?t:e}}function Xse(r,e){return qe(Bp,r)?Bp[r](e._strict,e._locale):new RegExp(qse(r))}function qse(r){return Zr(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,i){return t||n||a||i}))}function Zr(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tx={};function ot(r,e){var t,n=e,a;for(typeof r=="string"&&(r=[r]),Ka(e)&&(n=function(i,o){o[e]=Fe(i)}),a=r.length,t=0;t<a;t++)tx[r[t]]=n}function Lc(r,e){ot(r,function(t,n,a,i){a._w=a._w||{},e(t,a._w,a,i)})}function Kse(r,e,t){e!=null&&qe(tx,r)&&tx[r](e,t._a,t,r)}var fr=0,Qa=1,wa=2,zt=3,qn=4,Ja=5,ws=6,Qse=7,Jse=8;function ele(r,e){return(r%e+e)%e}var It;Array.prototype.indexOf?It=Array.prototype.indexOf:It=function(r){var e;for(e=0;e<this.length;++e)if(this[e]===r)return e;return-1};function zp(r,e){if(isNaN(r)||isNaN(e))return NaN;var t=ele(e,12);return r+=(e-t)/12,t===1?Pp(r)?29:28:31-t%7%2}_e("M",["MM",2],"Mo",function(){return this.month()+1}),_e("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)}),_e("MMMM",0,0,function(r){return this.localeData().months(this,r)}),lr("month","M"),ur("month",8),le("M",dt),le("MM",dt,Ur),le("MMM",function(r,e){return e.monthsShortRegex(r)}),le("MMMM",function(r,e){return e.monthsRegex(r)}),ot(["M","MM"],function(r,e){e[Qa]=Fe(r)-1}),ot(["MMM","MMMM"],function(r,e,t,n){var a=t._locale.monthsParse(r,n,t._strict);a!=null?e[Qa]=a:Ne(t).invalidMonth=r});var tle="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),t5="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),r5=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rle=Pc,nle=Pc;function ale(r,e){return r?jn(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||r5).test(e)?"format":"standalone"][r.month()]:jn(this._months)?this._months:this._months.standalone}function ile(r,e){return r?jn(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[r5.test(e)?"format":"standalone"][r.month()]:jn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ole(r,e,t){var n,a,i,o=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=Sa([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return t?e==="MMM"?(a=It.call(this._shortMonthsParse,o),a!==-1?a:null):(a=It.call(this._longMonthsParse,o),a!==-1?a:null):e==="MMM"?(a=It.call(this._shortMonthsParse,o),a!==-1?a:(a=It.call(this._longMonthsParse,o),a!==-1?a:null)):(a=It.call(this._longMonthsParse,o),a!==-1?a:(a=It.call(this._shortMonthsParse,o),a!==-1?a:null))}function sle(r,e,t){var n,a,i;if(this._monthsParseExact)return ole.call(this,r,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=Sa([2e3,n]),t&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!t&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[n].test(r))return n;if(t&&e==="MMM"&&this._shortMonthsParse[n].test(r))return n;if(!t&&this._monthsParse[n].test(r))return n}}function n5(r,e){var t;if(!r.isValid())return r;if(typeof e=="string"){if(/^\d+$/.test(e))e=Fe(e);else if(e=r.localeData().monthsParse(e),!Ka(e))return r}return t=Math.min(r.date(),zp(r.year(),e)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](e,t),r}function a5(r){return r!=null?(n5(this,r),ne.updateOffset(this,!0),this):Lp(this,"Month")}function lle(){return zp(this.year(),this.month())}function ule(r){return this._monthsParseExact?(qe(this,"_monthsRegex")||i5.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(qe(this,"_monthsShortRegex")||(this._monthsShortRegex=rle),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function fle(r){return this._monthsParseExact?(qe(this,"_monthsRegex")||i5.call(this),r?this._monthsStrictRegex:this._monthsRegex):(qe(this,"_monthsRegex")||(this._monthsRegex=nle),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function i5(){function r(o,s){return s.length-o.length}var e=[],t=[],n=[],a,i;for(a=0;a<12;a++)i=Sa([2e3,a]),e.push(this.monthsShort(i,"")),t.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(e.sort(r),t.sort(r),n.sort(r),a=0;a<12;a++)e[a]=Zr(e[a]),t[a]=Zr(t[a]);for(a=0;a<24;a++)n[a]=Zr(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}_e("Y",0,0,function(){var r=this.year();return r<=9999?xa(r,4):"+"+r}),_e(0,["YY",2],0,function(){return this.year()%100}),_e(0,["YYYY",4],0,"year"),_e(0,["YYYYY",5],0,"year"),_e(0,["YYYYYY",6,!0],0,"year"),lr("year","y"),ur("year",1),le("Y",Np),le("YY",dt,Ur),le("YYYY",ex,Jb),le("YYYYY",Op,kp),le("YYYYYY",Op,kp),ot(["YYYYY","YYYYYY"],fr),ot("YYYY",function(r,e){e[fr]=r.length===2?ne.parseTwoDigitYear(r):Fe(r)}),ot("YY",function(r,e){e[fr]=ne.parseTwoDigitYear(r)}),ot("Y",function(r,e){e[fr]=parseInt(r,10)});function kc(r){return Pp(r)?366:365}ne.parseTwoDigitYear=function(r){return Fe(r)+(Fe(r)>68?1900:2e3)};var o5=tu("FullYear",!0);function cle(){return Pp(this.year())}function hle(r,e,t,n,a,i,o){var s;return r<100&&r>=0?(s=new Date(r+400,e,t,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(r)):s=new Date(r,e,t,n,a,i,o),s}function Rc(r){var e,t;return r<100&&r>=0?(t=Array.prototype.slice.call(arguments),t[0]=r+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(r)):e=new Date(Date.UTC.apply(null,arguments)),e}function Fp(r,e,t){var n=7+e-t,a=(7+Rc(r,0,n).getUTCDay()-e)%7;return-a+n-1}function s5(r,e,t,n,a){var i=(7+t-n)%7,o=Fp(r,n,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=r-1,u=kc(l)+s):s>kc(r)?(l=r+1,u=s-kc(r)):(l=r,u=s),{year:l,dayOfYear:u}}function Oc(r,e,t){var n=Fp(r.year(),e,t),a=Math.floor((r.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=r.year()-1,i=a+ei(o,e,t)):a>ei(r.year(),e,t)?(i=a-ei(r.year(),e,t),o=r.year()+1):(o=r.year(),i=a),{week:i,year:o}}function ei(r,e,t){var n=Fp(r,e,t),a=Fp(r+1,e,t);return(kc(r)-n+a)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),lr("week","w"),lr("isoWeek","W"),ur("week",5),ur("isoWeek",5),le("w",dt),le("ww",dt,Ur),le("W",dt),le("WW",dt,Ur),Lc(["w","ww","W","WW"],function(r,e,t,n){e[n.substr(0,1)]=Fe(r)});function vle(r){return Oc(r,this._week.dow,this._week.doy).week}var dle={dow:0,doy:6};function ple(){return this._week.dow}function gle(){return this._week.doy}function yle(r){var e=this.localeData().week(this);return r==null?e:this.add((r-e)*7,"d")}function mle(r){var e=Oc(this,1,4).week;return r==null?e:this.add((r-e)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)}),_e("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)}),_e("dddd",0,0,function(r){return this.localeData().weekdays(this,r)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),lr("day","d"),lr("weekday","e"),lr("isoWeekday","E"),ur("day",11),ur("weekday",11),ur("isoWeekday",11),le("d",dt),le("e",dt),le("E",dt),le("dd",function(r,e){return e.weekdaysMinRegex(r)}),le("ddd",function(r,e){return e.weekdaysShortRegex(r)}),le("dddd",function(r,e){return e.weekdaysRegex(r)}),Lc(["dd","ddd","dddd"],function(r,e,t,n){var a=t._locale.weekdaysParse(r,n,t._strict);a!=null?e.d=a:Ne(t).invalidWeekday=r}),Lc(["d","e","E"],function(r,e,t,n){e[n]=Fe(r)});function _le(r,e){return typeof r!="string"?r:isNaN(r)?(r=e.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Sle(r,e){return typeof r=="string"?e.weekdaysParse(r)%7||7:isNaN(r)?null:r}function rx(r,e){return r.slice(e,7).concat(r.slice(0,e))}var ble="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),l5="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xle="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wle=Pc,Tle=Pc,Dle=Pc;function Cle(r,e){var t=jn(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return r===!0?rx(t,this._week.dow):r?t[r.day()]:t}function Ale(r){return r===!0?rx(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Mle(r){return r===!0?rx(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Ele(r,e,t){var n,a,i,o=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Sa([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=It.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=It.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=It.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=It.call(this._weekdaysParse,o),a!==-1||(a=It.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=It.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=It.call(this._shortWeekdaysParse,o),a!==-1||(a=It.call(this._weekdaysParse,o),a!==-1)?a:(a=It.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=It.call(this._minWeekdaysParse,o),a!==-1||(a=It.call(this._weekdaysParse,o),a!==-1)?a:(a=It.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Ile(r,e,t){var n,a,i;if(this._weekdaysParseExact)return Ele.call(this,r,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Sa([2e3,1]).day(n),t&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[n].test(r))return n;if(t&&e==="ddd"&&this._shortWeekdaysParse[n].test(r))return n;if(t&&e==="dd"&&this._minWeekdaysParse[n].test(r))return n;if(!t&&this._weekdaysParse[n].test(r))return n}}function Ple(r){if(!this.isValid())return r!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=_le(r,this.localeData()),this.add(r-e,"d")):e}function Lle(r){if(!this.isValid())return r!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return r==null?e:this.add(r-e,"d")}function kle(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var e=Sle(r,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Rle(r){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||nx.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(qe(this,"_weekdaysRegex")||(this._weekdaysRegex=wle),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ole(r){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||nx.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(qe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tle),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Nle(r){return this._weekdaysParseExact?(qe(this,"_weekdaysRegex")||nx.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(qe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dle),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nx(){function r(f,c){return c.length-f.length}var e=[],t=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=Sa([2e3,1]).day(i),s=Zr(this.weekdaysMin(o,"")),l=Zr(this.weekdaysShort(o,"")),u=Zr(this.weekdays(o,"")),e.push(s),t.push(l),n.push(u),a.push(s),a.push(l),a.push(u);e.sort(r),t.sort(r),n.sort(r),a.sort(r),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function ax(){return this.hours()%12||12}function Vle(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,ax),_e("k",["kk",2],0,Vle),_e("hmm",0,0,function(){return""+ax.apply(this)+xa(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+ax.apply(this)+xa(this.minutes(),2)+xa(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+xa(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+xa(this.minutes(),2)+xa(this.seconds(),2)});function u5(r,e){_e(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}u5("a",!0),u5("A",!1),lr("hour","h"),ur("hour",13);function f5(r,e){return e._meridiemParse}le("a",f5),le("A",f5),le("H",dt),le("h",dt),le("k",dt),le("HH",dt,Ur),le("hh",dt,Ur),le("kk",dt,Ur),le("hmm",JV),le("hmmss",e5),le("Hmm",JV),le("Hmmss",e5),ot(["H","HH"],zt),ot(["k","kk"],function(r,e,t){var n=Fe(r);e[zt]=n===24?0:n}),ot(["a","A"],function(r,e,t){t._isPm=t._locale.isPM(r),t._meridiem=r}),ot(["h","hh"],function(r,e,t){e[zt]=Fe(r),Ne(t).bigHour=!0}),ot("hmm",function(r,e,t){var n=r.length-2;e[zt]=Fe(r.substr(0,n)),e[qn]=Fe(r.substr(n)),Ne(t).bigHour=!0}),ot("hmmss",function(r,e,t){var n=r.length-4,a=r.length-2;e[zt]=Fe(r.substr(0,n)),e[qn]=Fe(r.substr(n,2)),e[Ja]=Fe(r.substr(a)),Ne(t).bigHour=!0}),ot("Hmm",function(r,e,t){var n=r.length-2;e[zt]=Fe(r.substr(0,n)),e[qn]=Fe(r.substr(n))}),ot("Hmmss",function(r,e,t){var n=r.length-4,a=r.length-2;e[zt]=Fe(r.substr(0,n)),e[qn]=Fe(r.substr(n,2)),e[Ja]=Fe(r.substr(a))});function Ble(r){return(r+"").toLowerCase().charAt(0)==="p"}var zle=/[ap]\.?m?\.?/i,Fle=tu("Hours",!0);function Gle(r,e,t){return r>11?t?"pm":"PM":t?"am":"AM"}var c5={calendar:Ise,longDateFormat:Rse,invalidDate:Nse,ordinal:Bse,dayOfMonthOrdinalParse:zse,relativeTime:Gse,months:tle,monthsShort:t5,week:dle,weekdays:ble,weekdaysMin:xle,weekdaysShort:l5,meridiemParse:zle},mt={},Nc={},Vc;function Hle(r,e){var t,n=Math.min(r.length,e.length);for(t=0;t<n;t+=1)if(r[t]!==e[t])return t;return n}function h5(r){return r&&r.toLowerCase().replace("_","-")}function Wle(r){for(var e=0,t,n,a,i;e<r.length;){for(i=h5(r[e]).split("-"),t=i.length,n=h5(r[e+1]),n=n?n.split("-"):null;t>0;){if(a=Gp(i.slice(0,t).join("-")),a)return a;if(n&&n.length>=t&&Hle(i,n)>=t-1)break;t--}e++}return Vc}function Yle(r){return r.match("^[^/\\\\]*$")!=null}function Gp(r){var e=null,t;if(mt[r]===void 0&&typeof module<"u"&&module&&module.exports&&Yle(r))try{e=Vc._abbr,t=require,t("./locale/"+r),Qi(e)}catch{mt[r]=null}return mt[r]}function Qi(r,e){var t;return r&&(Lr(e)?t=ti(r):t=ix(r,e),t?Vc=t:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Vc._abbr}function ix(r,e){if(e!==null){var t,n=c5;if(e.abbr=r,mt[r]!=null)ZV("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=mt[r]._config;else if(e.parentLocale!=null)if(mt[e.parentLocale]!=null)n=mt[e.parentLocale]._config;else if(t=Gp(e.parentLocale),t!=null)n=t._config;else return Nc[e.parentLocale]||(Nc[e.parentLocale]=[]),Nc[e.parentLocale].push({name:r,config:e}),null;return mt[r]=new jb(Zb(n,e)),Nc[r]&&Nc[r].forEach(function(a){ix(a.name,a.config)}),Qi(r),mt[r]}else return delete mt[r],null}function $le(r,e){if(e!=null){var t,n,a=c5;mt[r]!=null&&mt[r].parentLocale!=null?mt[r].set(Zb(mt[r]._config,e)):(n=Gp(r),n!=null&&(a=n._config),e=Zb(a,e),n==null&&(e.abbr=r),t=new jb(e),t.parentLocale=mt[r],mt[r]=t),Qi(r)}else mt[r]!=null&&(mt[r].parentLocale!=null?(mt[r]=mt[r].parentLocale,r===Qi()&&Qi(r)):mt[r]!=null&&delete mt[r]);return mt[r]}function ti(r){var e;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Vc;if(!jn(r)){if(e=Gp(r),e)return e;r=[r]}return Wle(r)}function Ule(){return Xb(mt)}function ox(r){var e,t=r._a;return t&&Ne(r).overflow===-2&&(e=t[Qa]<0||t[Qa]>11?Qa:t[wa]<1||t[wa]>zp(t[fr],t[Qa])?wa:t[zt]<0||t[zt]>24||t[zt]===24&&(t[qn]!==0||t[Ja]!==0||t[ws]!==0)?zt:t[qn]<0||t[qn]>59?qn:t[Ja]<0||t[Ja]>59?Ja:t[ws]<0||t[ws]>999?ws:-1,Ne(r)._overflowDayOfYear&&(e<fr||e>wa)&&(e=wa),Ne(r)._overflowWeeks&&e===-1&&(e=Qse),Ne(r)._overflowWeekday&&e===-1&&(e=Jse),Ne(r).overflow=e),r}var Zle=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jle=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xle=/Z|[+-]\d\d(?::?\d\d)?/,Hp=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],sx=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qle=/^\/?Date\((-?\d+)/i,Kle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qle={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function v5(r){var e,t,n=r._i,a=Zle.exec(n)||jle.exec(n),i,o,s,l,u=Hp.length,f=sx.length;if(a){for(Ne(r).iso=!0,e=0,t=u;e<t;e++)if(Hp[e][1].exec(a[1])){o=Hp[e][0],i=Hp[e][2]!==!1;break}if(o==null){r._isValid=!1;return}if(a[3]){for(e=0,t=f;e<t;e++)if(sx[e][1].exec(a[3])){s=(a[2]||" ")+sx[e][0];break}if(s==null){r._isValid=!1;return}}if(!i&&s!=null){r._isValid=!1;return}if(a[4])if(Xle.exec(a[4]))l="Z";else{r._isValid=!1;return}r._f=o+(s||"")+(l||""),ux(r)}else r._isValid=!1}function Jle(r,e,t,n,a,i){var o=[eue(r),t5.indexOf(e),parseInt(t,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function eue(r){var e=parseInt(r,10);return e<=49?2e3+e:e<=999?1900+e:e}function tue(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rue(r,e,t){if(r){var n=l5.indexOf(r),a=new Date(e[0],e[1],e[2]).getDay();if(n!==a)return Ne(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function nue(r,e,t){if(r)return Qle[r];if(e)return 0;var n=parseInt(t,10),a=n%100,i=(n-a)/100;return i*60+a}function d5(r){var e=Kle.exec(tue(r._i)),t;if(e){if(t=Jle(e[4],e[3],e[2],e[5],e[6],e[7]),!rue(e[1],t,r))return;r._a=t,r._tzm=nue(e[8],e[9],e[10]),r._d=Rc.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),Ne(r).rfc2822=!0}else r._isValid=!1}function aue(r){var e=qle.exec(r._i);if(e!==null){r._d=new Date(+e[1]);return}if(v5(r),r._isValid===!1)delete r._isValid;else return;if(d5(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:ne.createFromInputFallback(r)}ne.createFromInputFallback=wn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function nu(r,e,t){return r??e??t}function iue(r){var e=new Date(ne.now());return r._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function lx(r){var e,t,n=[],a,i,o;if(!r._d){for(a=iue(r),r._w&&r._a[wa]==null&&r._a[Qa]==null&&oue(r),r._dayOfYear!=null&&(o=nu(r._a[fr],a[fr]),(r._dayOfYear>kc(o)||r._dayOfYear===0)&&(Ne(r)._overflowDayOfYear=!0),t=Rc(o,0,r._dayOfYear),r._a[Qa]=t.getUTCMonth(),r._a[wa]=t.getUTCDate()),e=0;e<3&&r._a[e]==null;++e)r._a[e]=n[e]=a[e];for(;e<7;e++)r._a[e]=n[e]=r._a[e]==null?e===2?1:0:r._a[e];r._a[zt]===24&&r._a[qn]===0&&r._a[Ja]===0&&r._a[ws]===0&&(r._nextDay=!0,r._a[zt]=0),r._d=(r._useUTC?Rc:hle).apply(null,n),i=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[zt]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==i&&(Ne(r).weekdayMismatch=!0)}}function oue(r){var e,t,n,a,i,o,s,l,u;e=r._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=nu(e.GG,r._a[fr],Oc(pt(),1,4).year),n=nu(e.W,1),a=nu(e.E,1),(a<1||a>7)&&(l=!0)):(i=r._locale._week.dow,o=r._locale._week.doy,u=Oc(pt(),i,o),t=nu(e.gg,r._a[fr],u.year),n=nu(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),n<1||n>ei(t,i,o)?Ne(r)._overflowWeeks=!0:l!=null?Ne(r)._overflowWeekday=!0:(s=s5(t,n,a,i,o),r._a[fr]=s.year,r._dayOfYear=s.dayOfYear)}ne.ISO_8601=function(){},ne.RFC_2822=function(){};function ux(r){if(r._f===ne.ISO_8601){v5(r);return}if(r._f===ne.RFC_2822){d5(r);return}r._a=[],Ne(r).empty=!0;var e=""+r._i,t,n,a,i,o,s=e.length,l=0,u,f;for(a=jV(r._f,r._locale).match(qb)||[],f=a.length,t=0;t<f;t++)i=a[t],n=(e.match(Xse(i,r))||[])[0],n&&(o=e.substr(0,e.indexOf(n)),o.length>0&&Ne(r).unusedInput.push(o),e=e.slice(e.indexOf(n)+n.length),l+=n.length),eu[i]?(n?Ne(r).empty=!1:Ne(r).unusedTokens.push(i),Kse(i,n,r)):r._strict&&!n&&Ne(r).unusedTokens.push(i);Ne(r).charsLeftOver=s-l,e.length>0&&Ne(r).unusedInput.push(e),r._a[zt]<=12&&Ne(r).bigHour===!0&&r._a[zt]>0&&(Ne(r).bigHour=void 0),Ne(r).parsedDateParts=r._a.slice(0),Ne(r).meridiem=r._meridiem,r._a[zt]=sue(r._locale,r._a[zt],r._meridiem),u=Ne(r).era,u!==null&&(r._a[fr]=r._locale.erasConvertYear(u,r._a[fr])),lx(r),ox(r)}function sue(r,e,t){var n;return t==null?e:r.meridiemHour!=null?r.meridiemHour(e,t):(r.isPM!=null&&(n=r.isPM(t),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function lue(r){var e,t,n,a,i,o,s=!1,l=r._f.length;if(l===0){Ne(r).invalidFormat=!0,r._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,e=Ub({},r),r._useUTC!=null&&(e._useUTC=r._useUTC),e._f=r._f[a],ux(e),Yb(e)&&(o=!0),i+=Ne(e).charsLeftOver,i+=Ne(e).unusedTokens.length*10,Ne(e).score=i,s?i<n&&(n=i,t=e):(n==null||i<n||o)&&(n=i,t=e,o&&(s=!0));Ki(r,t||e)}function uue(r){if(!r._d){var e=Qb(r._i),t=e.day===void 0?e.date:e.day;r._a=WV([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(n){return n&&parseInt(n,10)}),lx(r)}}function fue(r){var e=new Ec(ox(p5(r)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function p5(r){var e=r._i,t=r._f;return r._locale=r._locale||ti(r._l),e===null||t===void 0&&e===""?Mp({nullInput:!0}):(typeof e=="string"&&(r._i=e=r._locale.preparse(e)),Xn(e)?new Ec(ox(e)):(Mc(e)?r._d=e:jn(t)?lue(r):t?ux(r):cue(r),Yb(r)||(r._d=null),r))}function cue(r){var e=r._i;Lr(e)?r._d=new Date(ne.now()):Mc(e)?r._d=new Date(e.valueOf()):typeof e=="string"?aue(r):jn(e)?(r._a=WV(e.slice(0),function(t){return parseInt(t,10)}),lx(r)):xs(e)?uue(r):Ka(e)?r._d=new Date(e):ne.createFromInputFallback(r)}function g5(r,e,t,n,a){var i={};return(e===!0||e===!1)&&(n=e,e=void 0),(t===!0||t===!1)&&(n=t,t=void 0),(xs(r)&&Hb(r)||jn(r)&&r.length===0)&&(r=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=t,i._i=r,i._f=e,i._strict=n,fue(i)}function pt(r,e,t,n){return g5(r,e,t,n,!1)}var hue=wn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=pt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:Mp()}),vue=wn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=pt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:Mp()});function y5(r,e){var t,n;if(e.length===1&&jn(e[0])&&(e=e[0]),!e.length)return pt();for(t=e[0],n=1;n<e.length;++n)(!e[n].isValid()||e[n][r](t))&&(t=e[n]);return t}function due(){var r=[].slice.call(arguments,0);return y5("isBefore",r)}function pue(){var r=[].slice.call(arguments,0);return y5("isAfter",r)}var gue=function(){return Date.now?Date.now():+new Date},Bc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yue(r){var e,t=!1,n,a=Bc.length;for(e in r)if(qe(r,e)&&!(It.call(Bc,e)!==-1&&(r[e]==null||!isNaN(r[e]))))return!1;for(n=0;n<a;++n)if(r[Bc[n]]){if(t)return!1;parseFloat(r[Bc[n]])!==Fe(r[Bc[n]])&&(t=!0)}return!0}function mue(){return this._isValid}function _ue(){return Kn(NaN)}function Wp(r){var e=Qb(r),t=e.year||0,n=e.quarter||0,a=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,f=e.millisecond||0;this._isValid=yue(e),this._milliseconds=+f+u*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+t*12,this._data={},this._locale=ti(),this._bubble()}function Yp(r){return r instanceof Wp}function fx(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Sue(r,e,t){var n=Math.min(r.length,e.length),a=Math.abs(r.length-e.length),i=0,o;for(o=0;o<n;o++)(t&&r[o]!==e[o]||!t&&Fe(r[o])!==Fe(e[o]))&&i++;return i+a}function m5(r,e){_e(r,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+xa(~~(t/60),2)+e+xa(~~t%60,2)})}m5("Z",":"),m5("ZZ",""),le("Z",Vp),le("ZZ",Vp),ot(["Z","ZZ"],function(r,e,t){t._useUTC=!0,t._tzm=cx(Vp,r)});var bue=/([\+\-]|\d\d)/gi;function cx(r,e){var t=(e||"").match(r),n,a,i;return t===null?null:(n=t[t.length-1]||[],a=(n+"").match(bue)||["-",0,0],i=+(a[1]*60)+Fe(a[2]),i===0?0:a[0]==="+"?i:-i)}function hx(r,e){var t,n;return e._isUTC?(t=e.clone(),n=(Xn(r)||Mc(r)?r.valueOf():pt(r).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+n),ne.updateOffset(t,!1),t):pt(r).local()}function vx(r){return-Math.round(r._d.getTimezoneOffset())}ne.updateOffset=function(){};function xue(r,e,t){var n=this._offset||0,a;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=cx(Vp,r),r===null)return this}else Math.abs(r)<16&&!t&&(r=r*60);return!this._isUTC&&e&&(a=vx(this)),this._offset=r,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==r&&(!e||this._changeInProgress?x5(this,Kn(r-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ne.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:vx(this)}function wue(r,e){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,e),this):-this.utcOffset()}function Tue(r){return this.utcOffset(0,r)}function Due(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(vx(this),"m")),this}function Cue(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=cx(Zse,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Aue(r){return this.isValid()?(r=r?pt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Mue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Eue(){if(!Lr(this._isDSTShifted))return this._isDSTShifted;var r={},e;return Ub(r,this),r=p5(r),r._a?(e=r._isUTC?Sa(r._a):pt(r._a),this._isDSTShifted=this.isValid()&&Sue(r._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Iue(){return this.isValid()?!this._isUTC:!1}function Pue(){return this.isValid()?this._isUTC:!1}function _5(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Lue=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kn(r,e){var t=r,n=null,a,i,o;return Yp(r)?t={ms:r._milliseconds,d:r._days,M:r._months}:Ka(r)||!isNaN(+r)?(t={},e?t[e]=+r:t.milliseconds=+r):(n=Lue.exec(r))?(a=n[1]==="-"?-1:1,t={y:0,d:Fe(n[wa])*a,h:Fe(n[zt])*a,m:Fe(n[qn])*a,s:Fe(n[Ja])*a,ms:Fe(fx(n[ws]*1e3))*a}):(n=kue.exec(r))?(a=n[1]==="-"?-1:1,t={y:Ts(n[2],a),M:Ts(n[3],a),w:Ts(n[4],a),d:Ts(n[5],a),h:Ts(n[6],a),m:Ts(n[7],a),s:Ts(n[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Rue(pt(t.from),pt(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new Wp(t),Yp(r)&&qe(r,"_locale")&&(i._locale=r._locale),Yp(r)&&qe(r,"_isValid")&&(i._isValid=r._isValid),i}Kn.fn=Wp.prototype,Kn.invalid=_ue;function Ts(r,e){var t=r&&parseFloat(r.replace(",","."));return(isNaN(t)?0:t)*e}function S5(r,e){var t={};return t.months=e.month()-r.month()+(e.year()-r.year())*12,r.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+r.clone().add(t.months,"M"),t}function Rue(r,e){var t;return r.isValid()&&e.isValid()?(e=hx(e,r),r.isBefore(e)?t=S5(r,e):(t=S5(e,r),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function b5(r,e){return function(t,n){var a,i;return n!==null&&!isNaN(+n)&&(ZV(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=n,n=i),a=Kn(t,n),x5(this,a,r),this}}function x5(r,e,t,n){var a=e._milliseconds,i=fx(e._days),o=fx(e._months);r.isValid()&&(n=n??!0,o&&n5(r,Lp(r,"Month")+o*t),i&&qV(r,"Date",Lp(r,"Date")+i*t),a&&r._d.setTime(r._d.valueOf()+a*t),n&&ne.updateOffset(r,i||o))}var Oue=b5(1,"add"),Nue=b5(-1,"subtract");function w5(r){return typeof r=="string"||r instanceof String}function Vue(r){return Xn(r)||Mc(r)||w5(r)||Ka(r)||zue(r)||Bue(r)||r===null||r===void 0}function Bue(r){var e=xs(r)&&!Hb(r),t=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],t=t||qe(r,i);return e&&t}function zue(r){var e=jn(r),t=!1;return e&&(t=r.filter(function(n){return!Ka(n)&&w5(r)}).length===0),e&&t}function Fue(r){var e=xs(r)&&!Hb(r),t=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],t=t||qe(r,i);return e&&t}function Gue(r,e){var t=r.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Hue(r,e){arguments.length===1&&(arguments[0]?Vue(arguments[0])?(r=arguments[0],e=void 0):Fue(arguments[0])&&(e=arguments[0],r=void 0):(r=void 0,e=void 0));var t=r||pt(),n=hx(t,this).startOf("day"),a=ne.calendarFormat(this,n)||"sameElse",i=e&&(ba(e[a])?e[a].call(this,t):e[a]);return this.format(i||this.localeData().calendar(a,this,pt(t)))}function Wue(){return new Ec(this)}function Yue(r,e){var t=Xn(r)?r:pt(r);return this.isValid()&&t.isValid()?(e=Tn(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function $ue(r,e){var t=Xn(r)?r:pt(r);return this.isValid()&&t.isValid()?(e=Tn(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function Uue(r,e,t,n){var a=Xn(r)?r:pt(r),i=Xn(e)?e:pt(e);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,t):!this.isBefore(a,t))&&(n[1]===")"?this.isBefore(i,t):!this.isAfter(i,t))):!1}function Zue(r,e){var t=Xn(r)?r:pt(r),n;return this.isValid()&&t.isValid()?(e=Tn(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(n=t.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())):!1}function jue(r,e){return this.isSame(r,e)||this.isAfter(r,e)}function Xue(r,e){return this.isSame(r,e)||this.isBefore(r,e)}function que(r,e,t){var n,a,i;if(!this.isValid())return NaN;if(n=hx(r,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,e=Tn(e),e){case"year":i=$p(this,n)/12;break;case"month":i=$p(this,n);break;case"quarter":i=$p(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return t?i:Dn(i)}function $p(r,e){if(r.date()<e.date())return-$p(e,r);var t=(e.year()-r.year())*12+(e.month()-r.month()),n=r.clone().add(t,"months"),a,i;return e-n<0?(a=r.clone().add(t-1,"months"),i=(e-n)/(n-a)):(a=r.clone().add(t+1,"months"),i=(e-n)/(a-n)),-(t+i)||0}ne.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ne.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Kue(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Que(r){if(!this.isValid())return null;var e=r!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Ip(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ba(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ip(t,"Z")):Ip(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jue(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",e="",t,n,a,i;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+r+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+n+a+i)}function efe(r){r||(r=this.isUtc()?ne.defaultFormatUtc:ne.defaultFormat);var e=Ip(this,r);return this.localeData().postformat(e)}function tfe(r,e){return this.isValid()&&(Xn(r)&&r.isValid()||pt(r).isValid())?Kn({to:this,from:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function rfe(r){return this.from(pt(),r)}function nfe(r,e){return this.isValid()&&(Xn(r)&&r.isValid()||pt(r).isValid())?Kn({from:this,to:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function afe(r){return this.to(pt(),r)}function T5(r){var e;return r===void 0?this._locale._abbr:(e=ti(r),e!=null&&(this._locale=e),this)}var D5=wn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function C5(){return this._locale}var Up=1e3,au=60*Up,Zp=60*au,A5=(365*400+97)*24*Zp;function iu(r,e){return(r%e+e)%e}function M5(r,e,t){return r<100&&r>=0?new Date(r+400,e,t)-A5:new Date(r,e,t).valueOf()}function E5(r,e,t){return r<100&&r>=0?Date.UTC(r+400,e,t)-A5:Date.UTC(r,e,t)}function ife(r){var e,t;if(r=Tn(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?E5:M5,r){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=iu(e+(this._isUTC?0:this.utcOffset()*au),Zp);break;case"minute":e=this._d.valueOf(),e-=iu(e,au);break;case"second":e=this._d.valueOf(),e-=iu(e,Up);break}return this._d.setTime(e),ne.updateOffset(this,!0),this}function ofe(r){var e,t;if(r=Tn(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?E5:M5,r){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Zp-iu(e+(this._isUTC?0:this.utcOffset()*au),Zp)-1;break;case"minute":e=this._d.valueOf(),e+=au-iu(e,au)-1;break;case"second":e=this._d.valueOf(),e+=Up-iu(e,Up)-1;break}return this._d.setTime(e),ne.updateOffset(this,!0),this}function sfe(){return this._d.valueOf()-(this._offset||0)*6e4}function lfe(){return Math.floor(this.valueOf()/1e3)}function ufe(){return new Date(this.valueOf())}function ffe(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function cfe(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function hfe(){return this.isValid()?this.toISOString():null}function vfe(){return Yb(this)}function dfe(){return Ki({},Ne(this))}function pfe(){return Ne(this).overflow}function gfe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),le("N",dx),le("NN",dx),le("NNN",dx),le("NNNN",Afe),le("NNNNN",Mfe),ot(["N","NN","NNN","NNNN","NNNNN"],function(r,e,t,n){var a=t._locale.erasParse(r,n,t._strict);a?Ne(t).era=a:Ne(t).invalidEra=r}),le("y",ru),le("yy",ru),le("yyy",ru),le("yyyy",ru),le("yo",Efe),ot(["y","yy","yyy","yyyy"],fr),ot(["yo"],function(r,e,t,n){var a;t._locale._eraYearOrdinalRegex&&(a=r.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[fr]=t._locale.eraYearOrdinalParse(r,a):e[fr]=parseInt(r,10)});function yfe(r,e){var t,n,a,i=this._eras||ti("en")._eras;for(t=0,n=i.length;t<n;++t){switch(typeof i[t].since){case"string":a=ne(i[t].since).startOf("day"),i[t].since=a.valueOf();break}switch(typeof i[t].until){case"undefined":i[t].until=1/0;break;case"string":a=ne(i[t].until).startOf("day").valueOf(),i[t].until=a.valueOf();break}}return i}function mfe(r,e,t){var n,a,i=this.eras(),o,s,l;for(r=r.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(s===r)return i[n];break;case"NNNN":if(o===r)return i[n];break;case"NNNNN":if(l===r)return i[n];break}else if([o,s,l].indexOf(r)>=0)return i[n]}function _fe(r,e){var t=r.since<=r.until?1:-1;return e===void 0?ne(r.since).year():ne(r.since).year()+(e-r.offset)*t}function Sfe(){var r,e,t,n=this.localeData().eras();for(r=0,e=n.length;r<e;++r)if(t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return n[r].name;return""}function bfe(){var r,e,t,n=this.localeData().eras();for(r=0,e=n.length;r<e;++r)if(t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return n[r].narrow;return""}function xfe(){var r,e,t,n=this.localeData().eras();for(r=0,e=n.length;r<e;++r)if(t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return n[r].abbr;return""}function wfe(){var r,e,t,n,a=this.localeData().eras();for(r=0,e=a.length;r<e;++r)if(t=a[r].since<=a[r].until?1:-1,n=this.clone().startOf("day").valueOf(),a[r].since<=n&&n<=a[r].until||a[r].until<=n&&n<=a[r].since)return(this.year()-ne(a[r].since).year())*t+a[r].offset;return this.year()}function Tfe(r){return qe(this,"_erasNameRegex")||px.call(this),r?this._erasNameRegex:this._erasRegex}function Dfe(r){return qe(this,"_erasAbbrRegex")||px.call(this),r?this._erasAbbrRegex:this._erasRegex}function Cfe(r){return qe(this,"_erasNarrowRegex")||px.call(this),r?this._erasNarrowRegex:this._erasRegex}function dx(r,e){return e.erasAbbrRegex(r)}function Afe(r,e){return e.erasNameRegex(r)}function Mfe(r,e){return e.erasNarrowRegex(r)}function Efe(r,e){return e._eraYearOrdinalRegex||ru}function px(){var r=[],e=[],t=[],n=[],a,i,o=this.eras();for(a=0,i=o.length;a<i;++a)e.push(Zr(o[a].name)),r.push(Zr(o[a].abbr)),t.push(Zr(o[a].narrow)),n.push(Zr(o[a].name)),n.push(Zr(o[a].abbr)),n.push(Zr(o[a].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}_e(0,["gg",2],0,function(){return this.weekYear()%100}),_e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function jp(r,e){_e(0,[r,r.length],0,e)}jp("gggg","weekYear"),jp("ggggg","weekYear"),jp("GGGG","isoWeekYear"),jp("GGGGG","isoWeekYear"),lr("weekYear","gg"),lr("isoWeekYear","GG"),ur("weekYear",1),ur("isoWeekYear",1),le("G",Np),le("g",Np),le("GG",dt,Ur),le("gg",dt,Ur),le("GGGG",ex,Jb),le("gggg",ex,Jb),le("GGGGG",Op,kp),le("ggggg",Op,kp),Lc(["gggg","ggggg","GGGG","GGGGG"],function(r,e,t,n){e[n.substr(0,2)]=Fe(r)}),Lc(["gg","GG"],function(r,e,t,n){e[n]=ne.parseTwoDigitYear(r)});function Ife(r){return I5.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Pfe(r){return I5.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Lfe(){return ei(this.year(),1,4)}function kfe(){return ei(this.isoWeekYear(),1,4)}function Rfe(){var r=this.localeData()._week;return ei(this.year(),r.dow,r.doy)}function Ofe(){var r=this.localeData()._week;return ei(this.weekYear(),r.dow,r.doy)}function I5(r,e,t,n,a){var i;return r==null?Oc(this,n,a).year:(i=ei(r,n,a),e>i&&(e=i),Nfe.call(this,r,e,t,n,a))}function Nfe(r,e,t,n,a){var i=s5(r,e,t,n,a),o=Rc(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_e("Q",0,"Qo","quarter"),lr("quarter","Q"),ur("quarter",7),le("Q",KV),ot("Q",function(r,e){e[Qa]=(Fe(r)-1)*3});function Vfe(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),lr("date","D"),ur("date",9),le("D",dt),le("DD",dt,Ur),le("Do",function(r,e){return r?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ot(["D","DD"],wa),ot("Do",function(r,e){e[wa]=Fe(r.match(dt)[0])});var P5=tu("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),lr("dayOfYear","DDD"),ur("dayOfYear",4),le("DDD",Rp),le("DDDD",QV),ot(["DDD","DDDD"],function(r,e,t){t._dayOfYear=Fe(r)});function Bfe(r){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?e:this.add(r-e,"d")}_e("m",["mm",2],0,"minute"),lr("minute","m"),ur("minute",14),le("m",dt),le("mm",dt,Ur),ot(["m","mm"],qn);var zfe=tu("Minutes",!1);_e("s",["ss",2],0,"second"),lr("second","s"),ur("second",15),le("s",dt),le("ss",dt,Ur),ot(["s","ss"],Ja);var Ffe=tu("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),lr("millisecond","ms"),ur("millisecond",16),le("S",Rp,KV),le("SS",Rp,Ur),le("SSS",Rp,QV);var Ji,L5;for(Ji="SSSS";Ji.length<=9;Ji+="S")le(Ji,ru);function Gfe(r,e){e[ws]=Fe(("0."+r)*1e3)}for(Ji="S";Ji.length<=9;Ji+="S")ot(Ji,Gfe);L5=tu("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function Hfe(){return this._isUTC?"UTC":""}function Wfe(){return this._isUTC?"Coordinated Universal Time":""}var U=Ec.prototype;U.add=Oue,U.calendar=Hue,U.clone=Wue,U.diff=que,U.endOf=ofe,U.format=efe,U.from=tfe,U.fromNow=rfe,U.to=nfe,U.toNow=afe,U.get=$se,U.invalidAt=pfe,U.isAfter=Yue,U.isBefore=$ue,U.isBetween=Uue,U.isSame=Zue,U.isSameOrAfter=jue,U.isSameOrBefore=Xue,U.isValid=vfe,U.lang=D5,U.locale=T5,U.localeData=C5,U.max=vue,U.min=hue,U.parsingFlags=dfe,U.set=Use,U.startOf=ife,U.subtract=Nue,U.toArray=ffe,U.toObject=cfe,U.toDate=ufe,U.toISOString=Que,U.inspect=Jue,typeof Symbol<"u"&&Symbol.for!=null&&(U[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),U.toJSON=hfe,U.toString=Kue,U.unix=lfe,U.valueOf=sfe,U.creationData=gfe,U.eraName=Sfe,U.eraNarrow=bfe,U.eraAbbr=xfe,U.eraYear=wfe,U.year=o5,U.isLeapYear=cle,U.weekYear=Ife,U.isoWeekYear=Pfe,U.quarter=U.quarters=Vfe,U.month=a5,U.daysInMonth=lle,U.week=U.weeks=yle,U.isoWeek=U.isoWeeks=mle,U.weeksInYear=Rfe,U.weeksInWeekYear=Ofe,U.isoWeeksInYear=Lfe,U.isoWeeksInISOWeekYear=kfe,U.date=P5,U.day=U.days=Ple,U.weekday=Lle,U.isoWeekday=kle,U.dayOfYear=Bfe,U.hour=U.hours=Fle,U.minute=U.minutes=zfe,U.second=U.seconds=Ffe,U.millisecond=U.milliseconds=L5,U.utcOffset=xue,U.utc=Tue,U.local=Due,U.parseZone=Cue,U.hasAlignedHourOffset=Aue,U.isDST=Mue,U.isLocal=Iue,U.isUtcOffset=Pue,U.isUtc=_5,U.isUTC=_5,U.zoneAbbr=Hfe,U.zoneName=Wfe,U.dates=wn("dates accessor is deprecated. Use date instead.",P5),U.months=wn("months accessor is deprecated. Use month instead",a5),U.years=wn("years accessor is deprecated. Use year instead",o5),U.zone=wn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wue),U.isDSTShifted=wn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Eue);function Yfe(r){return pt(r*1e3)}function $fe(){return pt.apply(null,arguments).parseZone()}function k5(r){return r}var Ke=jb.prototype;Ke.calendar=Pse,Ke.longDateFormat=Ose,Ke.invalidDate=Vse,Ke.ordinal=Fse,Ke.preparse=k5,Ke.postformat=k5,Ke.relativeTime=Hse,Ke.pastFuture=Wse,Ke.set=Ese,Ke.eras=yfe,Ke.erasParse=mfe,Ke.erasConvertYear=_fe,Ke.erasAbbrRegex=Dfe,Ke.erasNameRegex=Tfe,Ke.erasNarrowRegex=Cfe,Ke.months=ale,Ke.monthsShort=ile,Ke.monthsParse=sle,Ke.monthsRegex=fle,Ke.monthsShortRegex=ule,Ke.week=vle,Ke.firstDayOfYear=gle,Ke.firstDayOfWeek=ple,Ke.weekdays=Cle,Ke.weekdaysMin=Mle,Ke.weekdaysShort=Ale,Ke.weekdaysParse=Ile,Ke.weekdaysRegex=Rle,Ke.weekdaysShortRegex=Ole,Ke.weekdaysMinRegex=Nle,Ke.isPM=Ble,Ke.meridiem=Gle;function Xp(r,e,t,n){var a=ti(),i=Sa().set(n,e);return a[t](i,r)}function R5(r,e,t){if(Ka(r)&&(e=r,r=void 0),r=r||"",e!=null)return Xp(r,e,t,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Xp(r,n,t,"month");return a}function gx(r,e,t,n){typeof r=="boolean"?(Ka(e)&&(t=e,e=void 0),e=e||""):(e=r,t=e,r=!1,Ka(e)&&(t=e,e=void 0),e=e||"");var a=ti(),i=r?a._week.dow:0,o,s=[];if(t!=null)return Xp(e,(t+i)%7,n,"day");for(o=0;o<7;o++)s[o]=Xp(e,(o+i)%7,n,"day");return s}function Ufe(r,e){return R5(r,e,"months")}function Zfe(r,e){return R5(r,e,"monthsShort")}function jfe(r,e,t){return gx(r,e,t,"weekdays")}function Xfe(r,e,t){return gx(r,e,t,"weekdaysShort")}function qfe(r,e,t){return gx(r,e,t,"weekdaysMin")}Qi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var e=r%10,t=Fe(r%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return r+t}}),ne.lang=wn("moment.lang is deprecated. Use moment.locale instead.",Qi),ne.langData=wn("moment.langData is deprecated. Use moment.localeData instead.",ti);var ri=Math.abs;function Kfe(){var r=this._data;return this._milliseconds=ri(this._milliseconds),this._days=ri(this._days),this._months=ri(this._months),r.milliseconds=ri(r.milliseconds),r.seconds=ri(r.seconds),r.minutes=ri(r.minutes),r.hours=ri(r.hours),r.months=ri(r.months),r.years=ri(r.years),this}function O5(r,e,t,n){var a=Kn(e,t);return r._milliseconds+=n*a._milliseconds,r._days+=n*a._days,r._months+=n*a._months,r._bubble()}function Qfe(r,e){return O5(this,r,e,1)}function Jfe(r,e){return O5(this,r,e,-1)}function N5(r){return r<0?Math.floor(r):Math.ceil(r)}function ece(){var r=this._milliseconds,e=this._days,t=this._months,n=this._data,a,i,o,s,l;return r>=0&&e>=0&&t>=0||r<=0&&e<=0&&t<=0||(r+=N5(yx(t)+e)*864e5,e=0,t=0),n.milliseconds=r%1e3,a=Dn(r/1e3),n.seconds=a%60,i=Dn(a/60),n.minutes=i%60,o=Dn(i/60),n.hours=o%24,e+=Dn(o/24),l=Dn(V5(e)),t+=l,e-=N5(yx(l)),s=Dn(t/12),t%=12,n.days=e,n.months=t,n.years=s,this}function V5(r){return r*4800/146097}function yx(r){return r*146097/4800}function tce(r){if(!this.isValid())return NaN;var e,t,n=this._milliseconds;if(r=Tn(r),r==="month"||r==="quarter"||r==="year")switch(e=this._days+n/864e5,t=this._months+V5(e),r){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(yx(this._months)),r){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+r)}}function rce(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Fe(this._months/12)*31536e6:NaN}function ni(r){return function(){return this.as(r)}}var nce=ni("ms"),ace=ni("s"),ice=ni("m"),oce=ni("h"),sce=ni("d"),lce=ni("w"),uce=ni("M"),fce=ni("Q"),cce=ni("y");function hce(){return Kn(this)}function vce(r){return r=Tn(r),this.isValid()?this[r+"s"]():NaN}function Ds(r){return function(){return this.isValid()?this._data[r]:NaN}}var dce=Ds("milliseconds"),pce=Ds("seconds"),gce=Ds("minutes"),yce=Ds("hours"),mce=Ds("days"),_ce=Ds("months"),Sce=Ds("years");function bce(){return Dn(this.days()/7)}var ai=Math.round,ou={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xce(r,e,t,n,a){return a.relativeTime(e||1,!!t,r,n)}function wce(r,e,t,n){var a=Kn(r).abs(),i=ai(a.as("s")),o=ai(a.as("m")),s=ai(a.as("h")),l=ai(a.as("d")),u=ai(a.as("M")),f=ai(a.as("w")),c=ai(a.as("y")),h=i<=t.ss&&["s",i]||i<t.s&&["ss",i]||o<=1&&["m"]||o<t.m&&["mm",o]||s<=1&&["h"]||s<t.h&&["hh",s]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(h=h||f<=1&&["w"]||f<t.w&&["ww",f]),h=h||u<=1&&["M"]||u<t.M&&["MM",u]||c<=1&&["y"]||["yy",c],h[2]=e,h[3]=+r>0,h[4]=n,xce.apply(null,h)}function Tce(r){return r===void 0?ai:typeof r=="function"?(ai=r,!0):!1}function Dce(r,e){return ou[r]===void 0?!1:e===void 0?ou[r]:(ou[r]=e,r==="s"&&(ou.ss=e-1),!0)}function Cce(r,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,n=ou,a,i;return typeof r=="object"&&(e=r,r=!1),typeof r=="boolean"&&(t=r),typeof e=="object"&&(n=Object.assign({},ou,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),i=wce(this,!t,n,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var mx=Math.abs;function su(r){return(r>0)-(r<0)||+r}function qp(){if(!this.isValid())return this.localeData().invalidDate();var r=mx(this._milliseconds)/1e3,e=mx(this._days),t=mx(this._months),n,a,i,o,s=this.asSeconds(),l,u,f,c;return s?(n=Dn(r/60),a=Dn(n/60),r%=60,n%=60,i=Dn(t/12),t%=12,o=r?r.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=su(this._months)!==su(s)?"-":"",f=su(this._days)!==su(s)?"-":"",c=su(this._milliseconds)!==su(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?f+e+"D":"")+(a||n||r?"T":"")+(a?c+a+"H":"")+(n?c+n+"M":"")+(r?c+o+"S":"")):"P0D"}var $e=Wp.prototype;$e.isValid=mue,$e.abs=Kfe,$e.add=Qfe,$e.subtract=Jfe,$e.as=tce,$e.asMilliseconds=nce,$e.asSeconds=ace,$e.asMinutes=ice,$e.asHours=oce,$e.asDays=sce,$e.asWeeks=lce,$e.asMonths=uce,$e.asQuarters=fce,$e.asYears=cce,$e.valueOf=rce,$e._bubble=ece,$e.clone=hce,$e.get=vce,$e.milliseconds=dce,$e.seconds=pce,$e.minutes=gce,$e.hours=yce,$e.days=mce,$e.weeks=bce,$e.months=_ce,$e.years=Sce,$e.humanize=Cce,$e.toISOString=qp,$e.toString=qp,$e.toJSON=qp,$e.locale=T5,$e.localeData=C5,$e.toIsoString=wn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qp),$e.lang=D5,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),le("x",Np),le("X",jse),ot("X",function(r,e,t){t._d=new Date(parseFloat(r)*1e3)}),ot("x",function(r,e,t){t._d=new Date(Fe(r))});//! moment.js
602
+ ne.version="2.29.4",Ase(pt),ne.fn=U,ne.min=due,ne.max=pue,ne.now=gue,ne.utc=Sa,ne.unix=Yfe,ne.months=Ufe,ne.isDate=Mc,ne.locale=Qi,ne.invalid=Mp,ne.duration=Kn,ne.isMoment=Xn,ne.weekdays=jfe,ne.parseZone=$fe,ne.localeData=ti,ne.isDuration=Yp,ne.monthsShort=Zfe,ne.weekdaysMin=qfe,ne.defineLocale=ix,ne.updateLocale=$le,ne.locales=Ule,ne.weekdaysShort=Xfe,ne.normalizeUnits=Tn,ne.relativeTimeRounding=Tce,ne.relativeTimeThreshold=Dce,ne.calendarFormat=Gue,ne.prototype=U,ne.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ace="31b340ddbffb4949a777ed7c0f67c89c";async function Mce(r){const{data:e}=await Cse.get("https://devapi.qweather.com/v7/grid-weather/now",{params:{location:r,key:Ace}});return{...e.now,obsTime:ne(e.now.obsTime).format("YYYY-MM-DD HH:mm")}}var _x,Sx;(function(){var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;r&&e?(_x=function(t,n){var a={value:null};function i(){a.value=r(i),t()}return i(),a},Sx=function(t){e(t.value)}):(_x=setInterval,Sx=clearInterval)})();var B5=500,cr=.08,Ct=2*Math.PI,z5=2/Math.sqrt(2);function Ece(r,e,t,n){r.beginPath(),r.arc(e,t,n,0,Ct,!1),r.fill()}function Cs(r,e,t,n,a){r.beginPath(),r.moveTo(e,t),r.lineTo(n,a),r.stroke()}function Ice(r,e,t,n,a,i,o,s){var l=Math.cos(e*Ct),u=Math.sin(e*Ct);s-=o,Ece(r,t-u*a,n+l*i+s*.5,o+(1-l*.5)*s)}function Kp(r,e,t,n,a,i,o,s){var l;for(l=5;l--;)Ice(r,e+l/5,t,n,a,i,o,s)}function lu(r,e,t,n,a,i,o){e/=3e4;var s=a*.21,l=a*.12,u=a*.24,f=a*.28;r.fillStyle=o,Kp(r,e,t,n,s,l,u,f),r.globalCompositeOperation="destination-out",Kp(r,e,t,n,s,l,u-i,f-i),r.globalCompositeOperation="source-over"}function F5(r,e,t,n,a,i,o){e/=12e4;var s=a*.25-i*.5,l=a*.32+i*.5,u=a*.5-i*.5,f,c,h,v;for(r.strokeStyle=o,r.lineWidth=i,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.arc(t,n,s,0,Ct,!1),r.stroke(),f=8;f--;)c=(e+f/8)*Ct,h=Math.cos(c),v=Math.sin(c),Cs(r,t+h*l,n+v*l,t+h*u,n+v*u)}function G5(r,e,t,n,a,i,o){e/=15e3;var s=a*.29-i*.5,l=a*.05,u=Math.cos(e*Ct),f=u*Ct/-16;r.strokeStyle=o,r.lineWidth=i,r.lineCap="round",r.lineJoin="round",t+=u*l,r.beginPath(),r.arc(t,n,s,f+Ct/8,f+Ct*7/8,!1),r.arc(t+Math.cos(f)*s*z5,n+Math.sin(f)*s*z5,s,f+Ct*5/8,f+Ct*3/8,!0),r.closePath(),r.stroke()}function Pce(r,e,t,n,a,i,o){o="#5ebb8d",e/=1350;var s=a*.16,l=Ct*11/12,u=Ct*7/12,f,c,h,v;for(r.fillStyle=o,f=4;f--;)c=(e+f/4)%1,h=t+(f-1.5)/1.5*(f===1||f===2?-1:1)*s,v=n+c*c*a,r.beginPath(),r.moveTo(h,v-i*1.5),r.arc(h,v,i*.75,l,u,!1),r.fill()}function Lce(r,e,t,n,a,i,o){o="#5ebb8d",e/=750;var s=a*.1875,l,u,f,c;for(r.strokeStyle=o,r.lineWidth=i*.5,r.lineCap="round",r.lineJoin="round",l=4;l--;)u=(e+l/4)%1,f=Math.floor(t+(l-1.5)/1.5*(l===1||l===2?-1:1)*s)+.5,c=n+u*a,Cs(r,f,c-i*1.5,f,c+i*1.5)}function kce(r,e,t,n,a,i,o){o="#5ebb8d",e/=3e3;var s=a*.16,l=i*.75,u=e*Ct*.7,f=Math.cos(u)*l,c=Math.sin(u)*l,h=u+Ct/3,v=Math.cos(h)*l,d=Math.sin(h)*l,p=u+Ct*2/3,g=Math.cos(p)*l,y=Math.sin(p)*l,m,_,S,x;for(r.strokeStyle=o,r.lineWidth=i*.5,r.lineCap="round",r.lineJoin="round",m=4;m--;)_=(e+m/4)%1,S=t+Math.sin((_+m/4)*Ct)*s,x=n+_*a,Cs(r,S-f,x-c,S+f,x+c),Cs(r,S-v,x-d,S+v,x+d),Cs(r,S-g,x-y,S+g,x+y)}function Rce(r,e,t,n,a,i,o){e/=3e4;var s=a*.21,l=a*.06,u=a*.21,f=a*.28;r.fillStyle=o,Kp(r,e,t,n,s,l,u,f),r.globalCompositeOperation="destination-out",Kp(r,e,t,n,s,l,u-i,f-i),r.globalCompositeOperation="source-over"}var Oce=[[-.75,-.18,-.7219,-.1527,-.6971,-.1225,-.6739,-.091,-.6516,-.0588,-.6298,-.0262,-.6083,.0065,-.5868,.0396,-.5643,.0731,-.5372,.1041,-.5033,.1259,-.4662,.1406,-.4275,.1493,-.3881,.153,-.3487,.1526,-.3095,.1488,-.2708,.1421,-.2319,.1342,-.1943,.1217,-.16,.1025,-.129,.0785,-.1012,.0509,-.0764,.0206,-.0547,-.012,-.0378,-.0472,-.0324,-.0857,-.0389,-.1241,-.0546,-.1599,-.0814,-.1876,-.1193,-.1964,-.1582,-.1935,-.1931,-.1769,-.2157,-.1453,-.229,-.1085,-.2327,-.0697,-.224,-.0317,-.2064,.0033,-.1853,.0362,-.1613,.0672,-.135,.0961,-.1051,.1213,-.0706,.1397,-.0332,.1512,.0053,.158,.0442,.1624,.0833,.1636,.1224,.1615,.1613,.1565,.1999,.15,.2378,.1402,.2749,.1279,.3118,.1147,.3487,.1015,.3858,.0892,.4236,.0787,.4621,.0715,.5012,.0702,.5398,.0766,.5768,.089,.6123,.1055,.6466,.1244,.6805,.144,.7147,.163,.75,.18],[-.75,0,-.7033,.0195,-.6569,.0399,-.6104,.06,-.5634,.0789,-.5155,.0954,-.4667,.1089,-.4174,.1206,-.3676,.1299,-.3174,.1365,-.2669,.1398,-.2162,.1391,-.1658,.1347,-.1157,.1271,-.0661,.1169,-.017,.1046,.0316,.0903,.0791,.0728,.1259,.0534,.1723,.0331,.2188,.0129,.2656,-.0064,.3122,-.0263,.3586,-.0466,.4052,-.0665,.4525,-.0847,.5007,-.1002,.5497,-.113,.5991,-.124,.6491,-.1325,.6994,-.138,.75,-.14]],H5=[{start:.36,end:.11},{start:.56,end:.16}];function Nce(r,e,t,n,a,i,o){var s=a/8,l=s/3,u=2*l,f=e%1*Ct,c=Math.cos(f),h=Math.sin(f);r.fillStyle=o,r.strokeStyle=o,r.lineWidth=i,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.arc(t,n,s,f,f+Math.PI,!1),r.arc(t-l*c,n-l*h,u,f+Math.PI,f,!1),r.arc(t+u*c,n+u*h,l,f+Math.PI,f,!0),r.globalCompositeOperation="destination-out",r.fill(),r.globalCompositeOperation="source-over",r.stroke()}function W5(r,e,t,n,a,i,o,s,l){e/=2500;var u=Oce[o],f=(e+o-H5[o].start)%s,c=(e+o-H5[o].end)%s,h=(e+o)%s,v,d,p,g;if(r.strokeStyle=l,r.lineWidth=i,r.lineCap="round",r.lineJoin="round",f<1){if(r.beginPath(),f*=u.length/2-1,v=Math.floor(f),f-=v,v*=2,v+=2,r.moveTo(t+(u[v-2]*(1-f)+u[v]*f)*a,n+(u[v-1]*(1-f)+u[v+1]*f)*a),c<1){for(c*=u.length/2-1,d=Math.floor(c),c-=d,d*=2,d+=2,g=v;g!==d;g+=2)r.lineTo(t+u[g]*a,n+u[g+1]*a);r.lineTo(t+(u[d-2]*(1-c)+u[d]*c)*a,n+(u[d-1]*(1-c)+u[d+1]*c)*a)}else for(g=v;g!==u.length;g+=2)r.lineTo(t+u[g]*a,n+u[g+1]*a);r.stroke()}else if(c<1){for(r.beginPath(),c*=u.length/2-1,d=Math.floor(c),c-=d,d*=2,d+=2,r.moveTo(t+u[0]*a,n+u[1]*a),g=2;g!==d;g+=2)r.lineTo(t+u[g]*a,n+u[g+1]*a);r.lineTo(t+(u[d-2]*(1-c)+u[d]*c)*a,n+(u[d-1]*(1-c)+u[d+1]*c)*a),r.stroke()}h<1&&(h*=u.length/2-1,p=Math.floor(h),h-=p,p*=2,p+=2,Nce(r,e,t+(u[p-2]*(1-h)+u[p]*h)*a,n+(u[p-1]*(1-h)+u[p+1]*h)*a,a,i,l))}var kr=function(r){this.list=[],this.interval=null,this.color=r&&r.color?r.color:"black",this.resizeClear=!!(r&&r.resizeClear)};kr.CLEAR_DAY=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);F5(r,e,n*.5,a*.5,i,i*cr,t)},kr.CLEAR_NIGHT=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);G5(r,e,n*.5,a*.5,i,i*cr,t)},kr.PARTLY_CLOUDY_DAY=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);F5(r,e,n*.625,a*.375,i*.75,i*cr,t),lu(r,e,n*.375,a*.625,i*.75,i*cr,t)},kr.PARTLY_CLOUDY_NIGHT=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);G5(r,e,n*.667,a*.375,i*.75,i*cr,t),lu(r,e,n*.375,a*.625,i*.75,i*cr,t)},kr.CLOUDY=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);lu(r,e,n*.5,a*.5,i,i*cr,t)},kr.RAIN=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);Pce(r,e,n*.5,a*.37,i*.9,i*cr,t),lu(r,e,n*.5,a*.37,i*.9,i*cr,t)},kr.SLEET=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);Lce(r,e,n*.5,a*.37,i*.9,i*cr,t),lu(r,e,n*.5,a*.37,i*.9,i*cr,t)},kr.SNOW=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);kce(r,e,n*.5,a*.37,i*.9,i*cr,t),lu(r,e,n*.5,a*.37,i*.9,i*cr,t)},kr.WIND=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a);W5(r,e,n*.5,a*.5,i,i*cr,0,2,t),W5(r,e,n*.5,a*.5,i,i*cr,1,2,t)},kr.FOG=function(r,e,t){var n=r.canvas.width,a=r.canvas.height,i=Math.min(n,a),o=i*cr;Rce(r,e,n*.5,a*.32,i*.75,o,t),e/=5e3;var s=Math.cos(e*Ct)*i*.02,l=Math.cos((e+.25)*Ct)*i*.02,u=Math.cos((e+.5)*Ct)*i*.02,f=Math.cos((e+.75)*Ct)*i*.02,c=a*.936,h=Math.floor(c-o*.5)+.5,v=Math.floor(c-o*2.5)+.5;r.strokeStyle=t,r.lineWidth=o,r.lineCap="round",r.lineJoin="round",Cs(r,s+n*.2+o*.5,h,l+n*.8-o*.5,h),Cs(r,u+n*.2+o*.5,v,f+n*.8-o*.5,v)},kr.prototype={add:function(r,e){var t;typeof r=="string"&&(r=document.getElementById(r)),r!==null&&(typeof e=="string"&&(e=e.toUpperCase().replace(/-/g,"_"),e=kr.hasOwnProperty(e)?kr[e]:null),typeof e=="function"&&(t={element:r,context:r.getContext("2d"),drawing:e},this.list.push(t),this.draw(t,B5)))},set:function(r,e){var t;for(typeof r=="string"&&(r=document.getElementById(r)),t=this.list.length;t--;)if(this.list[t].element===r){this.list[t].drawing=e,this.draw(this.list[t],B5);return}this.add(r,e)},remove:function(r){var e;for(typeof r=="string"&&(r=document.getElementById(r)),e=this.list.length;e--;)if(this.list[e].element===r){this.list.splice(e,1);return}},draw:function(r,e){var t=r.context.canvas;this.resizeClear?t.width=t.width:r.context.clearRect(0,0,t.width,t.height),r.drawing(r.context,e,this.color)},play:function(){var r=this;this.pause(),this.interval=_x(function(){var e=Date.now(),t;for(t=r.list.length;t--;)r.draw(r.list[t],e)},1e3/60)},pause:function(){this.interval&&(Sx(this.interval),this.interval=null)}};const zc=ce.div`
603
+ width: 100%;
604
+ height: 100%;
605
+ padding: 4%;
606
+ border-radius: 16px;
607
+
608
+ .title1{
609
+ font-size: 18px;
610
+ color: #242121c7;
611
+ font-weight: 600;
612
+ }
613
+
614
+ .title2{
615
+ font-size: 12px;
616
+ color: #000000b0;
617
+ }
618
+
619
+ .title3{
620
+ font-size: 40px;
621
+ color: #000000b2;
622
+ }
623
+
624
+ .weather-top{
625
+ display: flex;
626
+ justify-content: space-between;
627
+ align-items: center;
628
+ }
629
+
630
+ .weather-center{
631
+ display: flex;
632
+ justify-content: center;
633
+ align-items: center;
634
+ height: 64%;
635
+ padding: 3% 0;
636
+ }
637
+
638
+ .weather-bottom{
639
+ display: flex;
640
+ height: 24%;
641
+ padding: 0 21px;
642
+ background-color: rgba(0, 0, 0, 0.03);
643
+ justify-content: space-evenly;
644
+ align-items: center;
645
+ border-radius: 10px;
646
+ }
647
+
648
+ `,Y5=ce(zc)`
649
+ background-image: -webkit-linear-gradient(225deg, #fee5ca, #e9f0ff 55%, #dce3fb);
650
+ background-image: -o-linear-gradient(225deg, #fee5ca, #e9f0ff 55%, #dce3fb);
651
+ background-image: -moz-linear-gradient(225deg, #fee5ca, #e9f0ff 55%, #dce3fb);
652
+ background-image: linear-gradient(225deg, #fee5ca, #e9f0ff 55%, #dce3fb);
653
+ `,Vce=ce(zc)`
654
+ background-image: -webkit-linear-gradient(225deg, #D0DAE8, #CCD4DF 55%, #A5B3C5);
655
+ background-image: -o-linear-gradient(225deg, #D0DAE8, #CCD4DF 55%, #A5B3C5);
656
+ background-image: -moz-linear-gradient(225deg, #D0DAE8, #CCD4DF 55%, #A5B3C5);
657
+ background-image: linear-gradient(225deg, #D0DAE8, #CCD4DF 55%, #A5B3C5);
658
+ `,Bce=ce(zc)`
659
+ background-image: -webkit-linear-gradient(225deg, #DBEBFF, #DDE5F4 55%, #BECDDD);
660
+ background-image: -o-linear-gradient(225deg, #DBEBFF, #DDE5F4 55%, #BECDDD);
661
+ background-image: -moz-linear-gradient(225deg, #DBEBFF, #DDE5F4 55%, #BECDDD);
662
+ background-image: linear-gradient(225deg, #DBEBFF, #DDE5F4 55%, #BECDDD);
663
+ `,zce=ce(zc)`
664
+ background-image: -webkit-linear-gradient(225deg, #b29c82, #ded9d7 64.29%, #d9d7dc);
665
+ background-image: -o-linear-gradient(225deg, #b29c82, #ded9d7 64.29%, #d9d7dc);
666
+ background-image: -moz-linear-gradient(225deg, #b29c82, #ded9d7 64.29%, #d9d7dc);
667
+ background-image: linear-gradient(225deg, #b29c82, #ded9d7 64.29%, #d9d7dc);
668
+ `,Fce=ce(zc)`
669
+ background-image: -webkit-linear-gradient(225deg, #D2F0FD, #E6F8FE 55%, #D6EDED);
670
+ background-image: -o-linear-gradient(225deg, #D2F0FD, #E6F8FE 55%, #D6EDED);
671
+ background-image: -moz-linear-gradient(225deg, #D2F0FD, #E6F8FE 55%, #D6EDED);
672
+ background-image: linear-gradient(225deg, #D2F0FD, #E6F8FE 55%, #D6EDED);
673
+ `;function $5(r){const{onClick:e,lnglat:t,name:n}=r,[a,i]=at.useState(null),o=at.useRef(new kr({color:"#0856cc"})),s=c=>{var v,d,p,g,y;const h=c||a;return(v=h==null?void 0:h.text)!=null&&v.includes("晴")?"CLEAR_DAY":(d=h==null?void 0:h.text)!=null&&d.includes("阴")?"CLOUDY":(p=h==null?void 0:h.text)!=null&&p.includes("雨")?"RAIN":(g=h==null?void 0:h.text)!=null&&g.includes("雾")?"FOG":(y=h==null?void 0:h.text)!=null&&y.includes("雪")?"SNOW":"CLEAR_DAY"};at.useRef(null);const l=c=>{switch(c){case"CLEAR_DAY":return Y5;case"CLOUDY":return Vce;case"RAIN":return Bce;case"FOG":return zce;case"SNOW":return Fce;default:return Y5}},u=()=>{Mce(t).then(c=>{i(c),o.current.set("canvas",s(c)),o.current.play()}).catch(()=>{})};at.useEffect(()=>{t&&u();const c=setInterval(()=>{u()},30*60*1e3);return()=>{clearInterval(c)}},[t]);const f=l(s());return or(f,{children:[or("div",{className:"weather-top",children:[or("div",{className:"lnglat",children:[Dt("span",{style:{marginRight:5},className:"title1",children:n})," ",Dt(Eoe,{})," ",Dt("span",{className:"title2",children:t})]}),Dt("div",{title:"预报发布时间",className:"title2",children:(a==null?void 0:a.obsTime)||"-"})]}),or("div",{className:"weather-center",children:[Dt("canvas",{id:"canvas",style:{height:"100%"}}),or("div",{className:"live",children:[or("p",{className:"title3",children:[(a==null?void 0:a.temp)||"-"," ",Dt("span",{className:"title1",children:"°C"})]}),Dt("p",{className:"title1",children:(a==null?void 0:a.text)||"-"})]})]}),or("div",{className:"weather-bottom",children:[or("div",{className:"live",children:[or("p",{className:"title1",children:[(a==null?void 0:a.windScale)||"-"," ",Dt("span",{className:"title2",children:"级"})]}),Dt("p",{className:"title2",children:(a==null?void 0:a.windDir)||"-"})]}),or("div",{className:"live",children:[or("p",{className:"title1",children:[(a==null?void 0:a.humidity)||"-"," ",Dt("span",{className:"title2",children:"%"})]}),Dt("p",{className:"title2",children:"相对湿度"})]}),or("div",{className:"live",children:[or("p",{className:"title1",children:[(a==null?void 0:a.pressure)||"-"," ",Dt("span",{className:"title2",children:"hPa"})," "]}),Dt("p",{className:"title2",children:"气压"})]})]})]})}const Gce={RankMark:UO},Hce={CountWithImgIcon:kN},Wce={HefengWeather:$5};jr.Charts=Gce,jr.Comps=Wce,jr.CountWithImgIcon=kN,jr.Display=Hce,jr.HefengWeather=$5,jr.RankMark=UO,Object.defineProperty(jr,Symbol.toStringTag,{value:"Module"})});