@deep-eye/core 1.3.60 → 1.3.62
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.
- package/CHANGELOG.md +27 -0
- package/README.md +1 -1
- package/dist/ChartRenderer-BPPk1HRO.cjs +47 -0
- package/dist/ChartRenderer-D5JL8mjQ.js +29070 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/_detached-asset_md4x-BNCCDSd7.js +4 -0
- package/dist/_detached-asset_md4x-ZnnIwwVu.cjs +1 -0
- package/dist/chart-C16JRbn_.js +7028 -0
- package/dist/chart-D3isPV5Q.cjs +18 -0
- package/dist/components/chat/ChatApp.vue.d.ts +8 -5
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/chatSessionSidebarTypes.d.ts.map +1 -1
- package/dist/components/chat/components/ChatComposerContextBar.vue.d.ts +24 -0
- package/dist/components/chat/components/ChatComposerContextBar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPastedTextCard.vue.d.ts +16 -0
- package/dist/components/chat/components/ChatPastedTextCard.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSender.vue.d.ts +1 -0
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts.map +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/OpenGenerativeUiChartRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/DocxPreviewEngine.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/pdf/PdfPage.vue.d.ts +1 -1
- package/dist/components/chat/components/document-viewer/pdf/PdfPage.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/pdf/pdfWorker.d.ts +5 -2
- package/dist/components/chat/components/document-viewer/pdf/pdfWorker.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/pdf/usePdfDocument.d.ts +1 -1
- package/dist/components/chat/components/document-viewer/pdf/usePdfDocument.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/xlsx/parseSpreadsheet.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatSessionGroups.d.ts +1 -1
- package/dist/components/chat/composables/useChatSessionGroups.d.ts.map +1 -1
- package/dist/components/chat/fileIcons.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/textContent.d.ts.map +1 -1
- package/dist/components/chat/pastedText.d.ts +4 -0
- package/dist/components/chat/pastedText.d.ts.map +1 -0
- package/dist/components/chat/types.d.ts +11 -3
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/chat/useChatReport.d.ts +10 -0
- package/dist/components/chat/useChatReport.d.ts.map +1 -0
- package/dist/components/ui/components/UiMenuColumn.vue.d.ts.map +1 -1
- package/dist/docx-preview-CAU_uzYl.cjs +38 -0
- package/dist/docx-preview-HSNGvrBH.js +5581 -0
- package/dist/index-BoHWHC9p.cjs +1065 -0
- package/dist/{index-CiU37iHC.js → index-CZhtteLP.js} +1 -1
- package/dist/{index-0ZP8pbwh.cjs → index-DUJ_JEet.cjs} +1 -1
- package/dist/index-DpvLwjBq.js +52094 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +17 -17
- package/dist/katex-BuPdKLic.cjs +257 -0
- package/dist/katex-yuB6V-q6.js +11615 -0
- package/dist/md4x.wasm +0 -0
- package/dist/papaparse.min-BOX0WPZu.cjs +15 -0
- package/dist/papaparse.min-Vgu5If04.js +416 -0
- package/dist/pdf-CCxzGVA8.cjs +12 -0
- package/dist/pdf-Cl8ZP0Rp.js +14601 -0
- package/dist/pdf.worker.min.mjs +21 -0
- package/dist/style.css +2 -2
- package/dist/xlsx-BopDBbWb.js +24176 -0
- package/dist/xlsx-qn1xoUuv.cjs +105 -0
- package/package.json +3 -4
- package/dist/index-3LA-TuxT.js +0 -140345
- package/dist/index-BU2MKGdZ.cjs +0 -1474
- package/dist/md4x-C41yoHW7.js +0 -4
- package/dist/md4x-DWOZHZ3f.cjs +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";var fx=Object.defineProperty;var cx=(r,e,t)=>e in r?fx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var sp=(r,e,t)=>cx(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("vue"),os=require("./index-BoHWHC9p.cjs");/*! *****************************************************************************
|
|
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 ch=function(r,e){return ch=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},ch(r,e)};function H(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ch(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var hx=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vx=function(){function r(){this.browser=new hx,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}(),ue=new vx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ue.wxa=!0,ue.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ue.worker=!0:!ue.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ue.node=!0,ue.svgSupported=!0):dx(navigator.userAgent,ue);function dx(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var kv=12,px="sans-serif",wn=kv+"px "+px,gx=20,mx=100,yx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _x(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-gx)/mx;e[n]=i}return e}var Sx=_x(yx),dt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var i=dt.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||wn),r.measureText(t);t=t||"",n=n||wn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||kv,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=Sx[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}},Z0=xn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),q0=xn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),La=Object.prototype.toString,zu=Array.prototype,bx=zu.forEach,xx=zu.filter,Vv=zu.slice,Tx=zu.map,lp=(function(){}).constructor,Ss=lp?lp.prototype:null,Bv="__proto__",Tf=2311,Cx=Math.pow(2,53)-1;function K0(){return Tf>=Cx&&(Tf=0),Tf++}function ui(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=La.call(r);if(t==="[object Array]"){if(!xo(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=ie(r[n])}}else if(q0[t]){if(!xo(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!Z0[t]&&!xo(r)&&!_a(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Bv&&(e[o]=ie(r[o]))}return e}function me(r,e,t){if(!j(e)||!j(r))return t?ie(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==Bv){var i=r[n],a=e[n];j(a)&&j(i)&&!U(a)&&!U(i)&&!_a(a)&&!_a(i)&&!up(a)&&!up(i)&&!xo(a)&&!xo(i)?me(i,a,t):(t||!(n in r))&&(r[n]=ie(e[n]))}return r}function G(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Bv&&(r[t]=e[t]);return r}function Dx(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var i=t[n];r[i]=e[i]}return r}function ce(r,e,t){for(var n=De(e),i=0,a=n.length;i<a;i++){var o=n[i];r[o]==null&&(r[o]=e[o])}return r}function de(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 Ex(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function Mt(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),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&r[a]==null&&(r[a]=e[a])}else ce(r,e)}function xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function E(r,e,t){if(r&&e)if(r.forEach&&r.forEach===bx)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function q(r,e,t){if(!r)return[];if(!e)return Fv(r);if(r.map&&r.map===Tx)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function xn(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function Qe(r,e,t){if(!r)return[];if(!e)return Fv(r);if(r.filter&&r.filter===xx)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function zv(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function De(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 Mx(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(Vv.call(arguments)))}}var oe=Ss&&re(Ss.bind)?Ss.call.bind(Ss.bind):Mx;function Oe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Vv.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):La.call(r)==="[object Array]"}function re(r){return typeof r=="function"}function K(r){return typeof r=="string"}function Fl(r){return La.call(r)==="[object String]"}function _e(r){return typeof r=="number"}function j(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function up(r){return!!Z0[La.call(r)]}function gt(r){return!!q0[La.call(r)]}function _a(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Fu(r){return r.colorStops!=null}function Ax(r){return r.image!=null}function Ix(r){return La.call(r)==="[object RegExp]"}function zr(r){return r!==r}function Wr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Q(r,e){return r??e}function br(r,e,t){return r??e??t}function Fv(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Vv.apply(r,e)}function Hv(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 B(r,e){if(!r)throw new Error(e)}function _r(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var j0="__ec_primitive__";function Hl(r){r[j0]=!0}function xo(r){return r[j0]}var Lx=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return De(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),Q0=typeof Map=="function";function Ox(){return Q0?new Map:new Lx}var Px=function(){function r(e){var t=U(e);this.data=Ox();var n=this;e instanceof r?e.each(i):e&&E(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return Q0?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function ee(r){return new Px(r)}function Rx(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function Hu(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&G(t,e),t}function J0(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function pt(r,e){return r.hasOwnProperty(e)}function $e(){}var Nx=180/Math.PI;function Oa(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function fp(r,e){return r[0]=e[0],r[1]=e[1],r}function kx(r){return[r[0],r[1]]}function To(r,e,t){return r[0]=e,r[1]=t,r}function cp(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Vx(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Bx(r){return Math.sqrt(zx(r))}function zx(r){return r[0]*r[0]+r[1]*r[1]}function Cf(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Fx(r,e){var t=Bx(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function hh(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var vh=hh;function Hx(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ua=Hx;function Df(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 ot(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function ra(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function na(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Ri=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),Gx=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 Ri(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new Ri(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ri(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ri(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ri(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ri(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),ar=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[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 i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}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 i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.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 a&&a.afterTrigger&&a.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 i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.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 a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),Ux=Math.log(2);function dh(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/Ux);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&i||(c+=(v%2?-1:1)*r[t][h]*dh(r,e-1,f,u,i|d,a),v++)}return a[o]=c,c}function hp(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={},i=dh(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*dh(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Gl="___zrEVENTSAVED",Ef=[];function Wx(r,e,t,n,i){return ph(Ef,e,n,i,!0)&&ph(r,t,Ef[0],Ef[1])}function Yx(r,e){r&&t(r),e&&t(e);function t(n){var i=n[Gl];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Gl])}}function ph(r,e,t,n,i){if(e.getBoundingClientRect&&ue.domSupported&&!e_(e)){var a=e[Gl]||(e[Gl]={}),o=Xx(e,a),s=$x(o,a,i);if(s)return s(r,t,n),!0}return!1}function Xx(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){E(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function $x(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=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&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?hp(s,o):hp(o,s))}function e_(r){return r.nodeName.toUpperCase()==="CANVAS"}var Zx=/([&<>"'])/g,qx={"&":"&","<":"<",">":">",'"':""","'":"'"};function _t(r){return r==null?"":(r+"").replace(Zx,function(e,t){return qx[t]})}var Kx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mf=[],jx=ue.browser.firefox&&+ue.browser.version.split(".")[0]<39;function gh(r,e,t,n){return t=t||{},n?vp(r,e,t):jx&&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):vp(r,e,t),t}function vp(r,e,t){if(ue.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(e_(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(ph(Mf,r,n,i)){t.zrX=Mf[0],t.zrY=Mf[1];return}}t.zrX=t.zrY=0}function Gv(r){return r||window.event}function Rt(r,e,t){if(e=Gv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&gh(r,o,e,t)}else{gh(r,e,e,t);var a=Qx(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Kx.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Qx(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function Jx(r,e,t,n){r.addEventListener(e,t,n)}function eT(r,e,t,n){r.removeEventListener(e,t,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function dp(r){return r.which===2||r.which===3}var tT=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 i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=gh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in Af)if(Af.hasOwnProperty(t)){var n=Af[t](this._track,e);if(n)return n}},r}();function pp(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function rT(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Af={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=pp(n)/pp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=rT(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Xe(){return[1,0,0,1,0,0]}function ss(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Bo(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 fi(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=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]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function mh(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 Uv(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function nT(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function Ti(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}var le=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,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),ai=Math.min,ia=Math.max,yh=Math.abs,gp=["x","y"],iT=["width","height"],In=new le,Ln=new le,On=new le,Pn=new le,Ct=r_(),ho=Ct.minTv,_h=Ct.maxTv,Co=[0,0],ne=function(){function r(e,t,n,i){If(this,e,t,n,i)}return r.set=function(e,t,n,i,a){return i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),e.x=t,e.y=n,e.width=i,e.height=a,e},r.prototype.union=function(e){var t=ai(e.x,this.x),n=ai(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ia(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ia(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return t_(Xe(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,i){n&&le.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=If(sT,e.x,e.y,e.width,e.height)),t instanceof r||(t=If(lT,t.x,t.y,t.width,t.height));var s=!!n;Ct.reset(i,s);var l=Ct.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,h=e.y+e.height-l,v=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||c>h||v>d||p>g)return!1;var m=!(f<v||d<u||h<p||g<c);return(s||a)&&(Co[0]=1/0,Co[1]=0,mp(u,f,v,d,0,s,a,o),mp(c,h,p,g,1,s,a,o),s&&le.copy(n,m?Ct.useDir?Ct.dirMinTv:ho:_h)),m},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){Sa(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&Sa(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}In.x=On.x=t.x,In.y=Pn.y=t.y,Ln.x=Pn.x=t.x+t.width,Ln.y=On.y=t.y+t.height,In.transform(n),Pn.transform(n),Ln.transform(n),On.transform(n),e.x=ai(In.x,Ln.x,On.x,Pn.x),e.y=ai(In.y,Ln.y,On.y,Pn.y);var l=ia(In.x,Ln.x,On.x,Pn.x),u=ia(In.y,Ln.y,On.y,Pn.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var i=n.width/t.width,a=n.height/t.height;return e=ss(e||[]),mh(e,e,To(Lf,-t.x,-t.y)),nT(e,e,To(Lf,i,a)),mh(e,e,To(Lf,n.x,n.y)),e},r}(),Gu=ne.create,If=ne.set,Sa=ne.copy,t_=ne.calculateTransform,aT=ne.applyTransform,oT=ne.contain,sT=new ne(0,0,0,0),lT=new ne(0,0,0,0),Lf=[];function mp(r,e,t,n,i,a,o,s){var l=yh(e-t),u=yh(n-r),f=ai(l,u),c=gp[i],h=gp[1-i],v=iT[i];e<t||n<r?l<u?(a&&(_h[c]=-l),s&&(o[c]=e,o[v]=0)):(a&&(_h[c]=u),s&&(o[c]=r,o[v]=0)):(o&&(o[c]=ia(r,t),o[v]=ai(e,n)-o[c]),a&&(f<Co[0]||Ct.useDir)&&(Co[0]=ai(f,Co[0]),(l<u||!Ct.bidirectional)&&(ho[c]=l,ho[h]=0,Ct.useDir&&Ct.calcDirMTV()),(l>=u||!Ct.bidirectional)&&(ho[c]=-u,ho[h]=0,Ct.useDir&&Ct.calcDirMTV())))}function r_(){var r=0,e=new le,t=new le,n={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=ia(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,i(t.x)&&i(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function i(a){return yh(a)<1e-10}return n}var n_="silent";function uT(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:fT}}function fT(){gi(this.event)}var cT=function(r){H(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}(ar),Ha=function(){function r(e,t){this.x=e,this.y=t}return r}(),hT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Of=new ne(0,0,0,0),i_=function(r){H(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ha(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new cT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Gx(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(E(hT,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,i=t.zrY,a=a_(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ha(n,i):this.findHover(n,i),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 Ha(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.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,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=uT(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new Ha(t,n);if(yp(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(t-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Of.copy(h.getBoundingRect()),h.transform&&Of.applyTransform(h.transform),Of.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 m=0;m<p;m+=d){var y=t+g*Math.cos(m),_=n+g*Math.sin(m);if(yp(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new tT);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Ha;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(ar);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){i_.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=a_(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.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||vh(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function vT(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?n_:!0}return!1}function yp(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=vT(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==n_)){e.target=o;break}}}function a_(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var o_=32,Ga=7;function dT(r){for(var e=0;r>=o_;)e|=r&1,r>>=1;return r+e}function _p(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;pT(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function pT(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Sp(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,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]=a}}function Pf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function Rf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function gT(r,e){var t=Ga,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],m=i[v+1];i[v]=p+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=Rf(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=Pf(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?c(d,p,g,m):h(d,p,g,m)))}function c(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y];return}for(var b=t,w,x,C;;){w=0,x=0,C=!1;do if(e(r[_],o[y])<0){if(r[S++]=r[_++],x++,w=0,--g===0){C=!0;break}}else if(r[S++]=o[y++],w++,x=0,--d===1){C=!0;break}while((w|x)<b);if(C)break;do{if(w=Rf(r[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)r[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(x=Pf(o[y],r,_,g,0,e),x!==0){for(m=0;m<x;m++)r[S+m]=r[_+m];if(S+=x,_+=x,g-=x,g===0){C=!0;break}}if(r[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=Ga||x>=Ga);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,_=g-1,S=p+g-1,b=0,w=0;if(r[S--]=r[y--],--d===0){for(b=S-(g-1),m=0;m<g;m++)r[b+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_];return}for(var x=t;;){var C=0,M=0,T=!1;do if(e(o[_],r[y])<0){if(r[S--]=r[y--],C++,M=0,--d===0){T=!0;break}}else if(r[S--]=o[_--],M++,C=0,--g===1){T=!0;break}while((C|M)<x);if(T)break;do{if(C=d-Rf(o[_],r,v,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)r[w+m]=r[b+m];if(d===0){T=!0;break}}if(r[S--]=o[_--],--g===1){T=!0;break}if(M=g-Pf(r[y],o,0,g,g-1,e),M!==0){for(S-=M,_-=M,g-=M,w=S+1,b=_+1,m=0;m<M;m++)r[w+m]=o[b+m];if(g<=1){T=!0;break}}if(r[S--]=r[y--],--d===0){T=!0;break}x--}while(C>=Ga||M>=Ga);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _l(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<o_){a=_p(r,t,n,e),Sp(r,t,n,t+a,e);return}var o=gT(r,e),s=dT(i);do{if(a=_p(r,t,n,e),a<s){var l=i;l>s&&(l=s),Sp(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var wt=1,vo=2,ea=4,bp=!1;function Nf(){bp||(bp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wp(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var mT=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wp}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,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,_l(n,wp)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),h=0;h<c.length;h++){var v=c[h];e.__dirty&&(v.__dirty|=wt),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Nf(),d.z=0),isNaN(d.z2)&&(Nf(),d.z2=0),isNaN(d.zlevel)&&(Nf(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=de(this._roots,e);i>=0&&this._roots.splice(i,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}(),Ul;Ul=ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Do={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-Do.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?Do.bounceIn(r*2)*.5:Do.bounceOut(r*2-1)*.5+.5}},bs=Math.pow,_n=Math.sqrt,Wl=1e-8,s_=1e-4,xp=_n(3),ws=1/3,mr=Oa(),Vt=Oa(),fa=Oa();function dn(r){return r>-Wl&&r<Wl}function l_(r){return r>Wl||r<-Wl}function Je(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function Tp(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function Yl(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(dn(f)&&dn(c))if(dn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(dn(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(p>0){var y=_n(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-bs(-_,ws):_=bs(_,ws),S<0?S=-bs(-S,ws):S=bs(S,ws);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*_n(f*f*f)),w=Math.acos(b)/3,x=_n(f),C=Math.cos(w),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+xp*Math.sin(w)))/(3*o),M=(-s+x*(C-xp*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),M>=0&&M<=1&&(a[v++]=M)}}return v}function u_(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(dn(o)){if(l_(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(dn(f))i[0]=-a/(2*o);else if(f>0){var c=_n(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Xl(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function yT(r,e,t,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,m;mr[0]=l,mr[1]=u;for(var y=0;y<1;y+=.05)Vt[0]=Je(r,t,i,o,y),Vt[1]=Je(e,n,a,s,y),g=ua(mr,Vt),g<v&&(c=y,v=g);v=1/0;for(var _=0;_<32&&!(h<s_);_++)d=c-h,p=c+h,Vt[0]=Je(r,t,i,o,d),Vt[1]=Je(e,n,a,s,d),g=ua(Vt,mr),d>=0&&g<v?(c=d,v=g):(fa[0]=Je(r,t,i,o,p),fa[1]=Je(e,n,a,s,p),m=ua(fa,mr),p<=1&&m<v?(c=p,v=m):h*=.5);return _n(v)}function _T(r,e,t,n,i,a,o,s,l){for(var u=r,f=e,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Je(r,t,i,o,d),g=Je(e,n,a,s,d),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function St(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function Cp(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function ST(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(dn(a)){if(l_(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(dn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=_n(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function f_(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function $l(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function bT(r,e,t,n,i,a,o,s,l){var u,f=.005,c=1/0;mr[0]=o,mr[1]=s;for(var h=0;h<1;h+=.05){Vt[0]=St(r,t,i,h),Vt[1]=St(e,n,a,h);var v=ua(mr,Vt);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<s_);d++){var p=u-f,g=u+f;Vt[0]=St(r,t,i,p),Vt[1]=St(e,n,a,p);var v=ua(Vt,mr);if(p>=0&&v<c)u=p,c=v;else{fa[0]=St(r,t,i,g),fa[1]=St(e,n,a,g);var m=ua(fa,mr);g<=1&&m<c?(u=g,c=m):f*=.5}}return _n(c)}function wT(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=St(r,t,i,h),d=St(e,n,a,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var xT=/cubic-bezier\(([0-9,\.e ]+)\)/;function c_(r){var e=r&&xT.exec(r);if(e){var t=e[1].split(","),n=+_r(t[0]),i=+_r(t[1]),a=+_r(t[2]),o=+_r(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Yl(0,n,a,1,l,s)&&Je(0,i,o,1,s[0])}}}var TT=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||$e,this.ondestroy=e.ondestroy||$e,this.onrestart=e.onrestart||$e,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,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%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=re(e)?e:Do[e]||c_(e)},r}(),h_=function(){function r(e){this.value=e}return r}(),CT=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new h_(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}(),ba=function(){function r(e){this._list=new CT,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new h_(t),s.key=e,n.insertEntry(s),i[e]=s}return a},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}(),Dp={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 er(r){return r=Math.round(r),r<0?0:r>255?255:r}function DT(r){return r=Math.round(r),r<0?0:r>360?360:r}function zo(r){return r<0?0:r>1?1:r}function kf(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?er(parseFloat(e)/100*255):er(parseInt(e,10))}function ci(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?zo(parseFloat(e)/100):zo(parseFloat(e))}function Vf(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 pn(r,e,t){return r+(e-r)*t}function Ot(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Sh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var v_=new ba(20),xs=null;function Ni(r,e){xs&&Sh(xs,e),xs=v_.put(r,xs||e.slice())}function Wt(r,e){if(r){e=e||[];var t=v_.get(r);if(t)return Sh(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Dp)return Sh(e,Dp[n]),Ni(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Ot(e,0,0,0,1);return}return Ot(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ni(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ot(e,0,0,0,1);return}return Ot(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ni(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){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?Ot(e,+u[0],+u[1],+u[2],1):Ot(e,0,0,0,1);f=ci(u.pop());case"rgb":if(u.length>=3)return Ot(e,kf(u[0]),kf(u[1]),kf(u[2]),u.length===3?f:ci(u[3])),Ni(r,e),e;Ot(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ot(e,0,0,0,1);return}return u[3]=ci(u[3]),bh(u,e),Ni(r,e),e;case"hsl":if(u.length!==3){Ot(e,0,0,0,1);return}return bh(u,e),Ni(r,e),e;default:return}}Ot(e,0,0,0,1)}}function bh(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=ci(r[1]),i=ci(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Ot(e,er(Vf(o,a,t+1/3)*255),er(Vf(o,a,t)*255),er(Vf(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function ET(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-c:t===a?l=1/3+f-h:n===a&&(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 Ep(r,e){var t=Wt(r);if(t){for(var n=0;n<3;n++)t[n]=t[n]*(1-e)|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Fr(t,t.length===4?"rgba":"rgb")}}function Bf(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=er(pn(o[0],s[0],l)),t[1]=er(pn(o[1],s[1],l)),t[2]=er(pn(o[2],s[2],l)),t[3]=zo(pn(o[3],s[3],l)),t}}function MT(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Wt(e[i]),s=Wt(e[a]),l=n-i,u=Fr([er(pn(o[0],s[0],l)),er(pn(o[1],s[1],l)),er(pn(o[2],s[2],l)),zo(pn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function ca(r,e,t,n){var i=Wt(r);if(r)return i=ET(i),e!=null&&(i[0]=DT(re(e)?e(i[0]):e)),t!=null&&(i[1]=ci(re(t)?t(i[1]):t)),n!=null&&(i[2]=ci(re(n)?n(i[2]):n)),Fr(bh(i),"rgba")}function AT(r,e){var t=Wt(r);if(t&&e!=null)return t[3]=zo(e),Fr(t,"rgba")}function Fr(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 Zl(r,e){var t=Wt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Mp=new ba(100);function Ap(r){if(K(r)){var e=Mp.get(r);return e||(e=Ep(r,-.1),Mp.put(r,e)),e}else if(Fu(r)){var t=G({},r);return t.colorStops=q(r.colorStops,function(n){return{offset:n.offset,color:Ep(n.color,-.1)}}),t}return r}function IT(r){return r.type==="linear"}function LT(r){return r.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return process.env.NODE_ENV!=="production"&&ui("Base64 isn't natively supported in the current environment."),null}})();var wh=Array.prototype.slice;function Rr(r,e,t){return(e-r)*t+r}function zf(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=Rr(e[a],t[a],n);return r}function OT(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Rr(e[o][s],t[o][s],n)}return r}function Ts(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function Ip(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function PT(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function RT(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:wh.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Sl(r){if(xt(r)){var e=r.length;if(xt(r[0])){for(var t=[],n=0;n<e;n++)t.push(wh.call(r[n]));return t}return wh.call(r)}return r}function bl(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 NT(r){return xt(r&&r[0])?2:1}var Cs=0,wl=1,d_=2,po=3,xh=4,Th=5,Lp=6;function Op(r){return r===xh||r===Th}function Ds(r){return r===wl||r===d_}var Ua=[0,0,0,0],kT=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 i=this.keyframes,a=i.length,o=!1,s=Lp,l=t;if(xt(t)){var u=NT(t);s=u,(u===1&&!_e(t[0])||u===2&&!_e(t[0][0]))&&(o=!0)}else if(_e(t)&&!zr(t))s=Cs;else if(K(t))if(!isNaN(+t))s=Cs;else{var f=Wt(t);f&&(l=f,s=po)}else if(Fu(t)){var c=G({},l);c.colorStops=q(t.colorStops,function(v){return{offset:v.offset,color:Wt(v.color)}}),IT(t)?s=xh:LT(t)&&(s=Th),l=c}a===0?this.valType=s:(s!==this.valType||s===Lp)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=re(n)?n:Do[n]||c_(n)),i.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 i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ds(i),u=Op(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(l&&f!==a-1?RT(h,v,i):u&&PT(h.colorStops,v.colorStops))}if(!s&&i!==Th&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<a;f++)i===Cs?n[f].additiveValue=n[f].value-d:i===po?n[f].additiveValue=Ts([],n[f].value,d,-1):Ds(i)&&(n[f].additiveValue=i===wl?Ts([],n[f].value,d,-1):Ip([],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,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===po,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,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ua:e[l];if((Ds(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(Ds(a))a===wl?zf(y,v[i],d[i],m):OT(y,v[i],d[i],m);else if(Op(a)){var _=v[i],S=d[i],b=a===xh;e[l]={type:b?"linear":"radial",x:Rr(_.x,S.x,m),y:Rr(_.y,S.y,m),colorStops:q(_.colorStops,function(x,C){var M=S.colorStops[C];return{offset:Rr(x.offset,M.offset,m),color:bl(zf([],x.color,M.color,m))}}),global:S.global},b?(e[l].x2=Rr(_.x2,S.x2,m),e[l].y2=Rr(_.y2,S.y2,m)):e[l].r=Rr(_.r,S.r,m)}else if(u)zf(y,v[i],d[i],m),n||(e[l]=bl(y));else{var w=Rr(v[i],d[i],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Cs?e[n]=e[n]+i:t===po?(Wt(e[n],Ua),Ts(Ua,Ua,i,1),e[n]=bl(Ua)):t===wl?Ts(e[n],e[n],i,1):t===d_&&Ip(e[n],e[n],i,1)},r}(),Wv=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){ui("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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,De(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new kT(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===po&&u&&(u=bl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Sl(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Sl(t[s]),i)}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 i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,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 TT({life:i,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 m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[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 q(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,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Sl(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||De(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function aa(){return new Date().getTime()}var VT=function(r){H(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,i=t.next;n?n.next=i:this._head=i,i?i.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=aa()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Ul(n),!t._paused&&t.update())}Ul(n)},e.prototype.start=function(){this._running||(this._time=aa(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=aa(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=aa()-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 i=new Wv(t,n.loop);return this.addAnimator(i),i},e}(ar),BT=300,Ff=ue.domSupported,Hf=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=q(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),Pp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Rp=!1;function Ch(r){var e=r.pointerType;return e==="pen"||e==="touch"}function zT(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 Gf(r){r&&(r.zrByTouch=!0)}function FT(r,e){return Rt(r.dom,new HT(r,e),!0)}function p_(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 HT=function(){function r(e,t){this.stopPropagation=$e,this.stopImmediatePropagation=$e,this.preventDefault=$e,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Jt={mousedown:function(r){r=Rt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Rt(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=Rt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Rt(this.dom,r);var e=r.toElement||r.relatedTarget;p_(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Rp=!0,r=Rt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Rp||(r=Rt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Rt(this.dom,r),Gf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Jt.mousemove.call(this,r),Jt.mousedown.call(this,r)},touchmove:function(r){r=Rt(this.dom,r),Gf(r),this.handler.processGesture(r,"change"),Jt.mousemove.call(this,r)},touchend:function(r){r=Rt(this.dom,r),Gf(r),this.handler.processGesture(r,"end"),Jt.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<BT&&Jt.click.call(this,r)},pointerdown:function(r){Jt.mousedown.call(this,r)},pointermove:function(r){Ch(r)||Jt.mousemove.call(this,r)},pointerup:function(r){Jt.mouseup.call(this,r)},pointerout:function(r){Ch(r)||Jt.mouseout.call(this,r)}};E(["click","dblclick","contextmenu"],function(r){Jt[r]=function(e){e=Rt(this.dom,e),this.trigger(r,e)}});var Dh={pointermove:function(r){Ch(r)||Dh.mousemove.call(this,r)},pointerup:function(r){Dh.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 GT(r,e){var t=e.domHandlers;ue.pointerEventsSupported?E(Hf.pointer,function(n){xl(e,n,function(i){t[n].call(r,i)})}):(ue.touchEventsSupported&&E(Hf.touch,function(n){xl(e,n,function(i){t[n].call(r,i),zT(e)})}),E(Hf.mouse,function(n){xl(e,n,function(i){i=Gv(i),e.touching||t[n].call(r,i)})}))}function UT(r,e){ue.pointerEventsSupported?E(Pp.pointer,t):ue.touchEventsSupported||E(Pp.mouse,t);function t(n){function i(a){a=Gv(a),p_(r,a.target)||(a=FT(r,a),e.domHandlers[n].call(r,a))}xl(e,n,i,{capture:!0})}}function xl(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Jx(r.domTarget,e,t,n)}function Uf(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&eT(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Np=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),WT=function(r){H(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new Np(t,Jt),Ff&&(i._globalHandlerScope=new Np(document,Dh)),GT(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Uf(this._localHandlerScope),Ff&&Uf(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,Ff&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?UT(this,n):Uf(n)}},e}(ar),g_=1;ue.hasGlobalWindow&&(g_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ql=g_,Eh=.4,Mh="#333",Ah="#ccc",YT="#eee",kp=ss,Vp=5e-5;function Rn(r){return r>Vp||r<-Vp}var Nn=[],ki=[],Wf=Xe(),Yf=Math.abs,Ci=function(){function r(){}return r.prototype.getLocalTransform=function(e){return mi(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 Rn(this.rotation)||Rn(this.x)||Rn(this.y)||Rn(this.scaleX-1)||Rn(this.scaleY-1)||Rn(this.skewX)||Rn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(kp(n),this.invTransform=null);return}n=n||Xe(),t?this.getLocalTransform(n):kp(n),e&&(t?fi(n,e,n):Bo(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Xe(),Ti(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Nn);var n=Nn[0]<0?-1:1,i=Nn[1]<0?-1:1,a=((Nn[0]-n)*t+n)/Nn[0]||0,o=((Nn[1]-i)*t+i)/Nn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Xe(),fi(ki,e.invTransform,t),t=ki);var n=this.originX,i=this.originY;(n||i)&&(Wf[4]=n,Wf[5]=i,fi(ki,t,Wf),ki[4]-=n,ki[5]-=i,t=ki),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],i=this.invTransform;return i&&ot(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&ot(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Yf(e[0]-1)>1e-10&&Yf(e[3]-1)>1e-10?Math.sqrt(Yf(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Yr(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=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||i||s||l){var d=n+s,p=i+l;t[4]=-d*a-h*p*o,t[5]=-p*o-v*d*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=v*a,t[2]=h*o,u&&Uv(t,t,u),t[4]+=n+f,t[5]+=i+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}(),mi=Ci.getLocalTransform;function ha(){return new Ci}var Uu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yr(r,e){return Dx(r,e,Uu)}function wr(r){Es||(Es=new ba(100)),r=r||wn;var e=Es.get(r);return e||(e={font:r,strWidthCache:new ba(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:dt.measureText("国",r).width,asciiCharWidth:dt.measureText("a",r).width},Es.put(r,e)),e}var Es;function XT(r){if(!(Xf>=Bp)){r=r||wn;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=dt.measureText(String.fromCharCode(n),r).width;var i=+new Date-t;return i>16?Xf=Bp:i>2&&Xf++,e}}var Xf=0,Bp=5;function m_(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=XT(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function xr(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=dt.measureText(e,r.font).width,t.put(e,n)),n}function zp(r,e,t,n){var i=xr(wr(e),r),a=Wu(e),o=wa(0,i,t),s=hi(0,a,n),l=new ne(o,s,i,a);return l}function y_(r,e,t,n){var i=((r||"")+"").split(`
|
|
15
|
+
`),a=i.length;if(a===1)return zp(i[0],e,t,n);for(var o=new ne(0,0,0,0),s=0;s<i.length;s++){var l=zp(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function wa(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function hi(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function Wu(r){return wr(r).stWideCharWidth}function Xr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Kl(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(n instanceof Array)l+=Xr(n[0],t.width),u+=Xr(n[1],t.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var $f="__zr_normal__",Zf=Uu.concat(["ignore"]),$T=xn(Uu,function(r,e){return r[e]=!0,r},{ignore:!1}),Vi={},ZT=new ne(0,0,0,0),Ms=[],Tl=0,Yu=1,Xu=function(){function r(e){this.id=K0(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[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,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(t);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=ZT,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Vi,n,h):Kl(Vi,n,h),a.x=Vi.x,a.y=Vi.y,o=Vi.align,s=Vi.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=h.width*.5,p=h.height*.5):(d=Xr(v[0],h.width),p=Xr(v[1],h.height)),u=!0,a.originX=-a.x+d+(i?0:h.x),a.originY=-a.y+p+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ne(0,0,0,0);a.getLocalTransform(Ms),Ti(Ms,Ms),ne.copy(y,h),y.applyTransform(Ms)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=wt,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()?Ah:Mh},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&Wt(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Fr(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},G(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var n=e,i=De(n),a=0;a<i.length;a++){var o=i[a];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 i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==$f)){var o=i.targetName,s=o?t[o]:t;i.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,Zf)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},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($f,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===$f,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(de(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){ui("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Fp(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,Gp(this,n,l),l);var h=this._textGuide;return f&&f.useState(e,t,n,!!c),h&&h.useState(e,t,n,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Tl,this.__dirty&=~wt),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[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&&i.push(f)}var c=i[o-1],h=this._textContent,v=Fp(this,h,c,n);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Gp(this,t,p),p);var g=this._textGuide;h&&h.useStates(e,t,!!v),g&&g.useStates(e,t,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Tl,this.__dirty&=~wt)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=de(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=de(i,e),o=de(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];G(t,a),a.textConfig&&(n=n||{},G(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){if(this.__inHover!==Yu){var s=!(t&&i);t&&t.textConfig?(this.textConfig=G({},i?this.textConfig:n.textConfig),G(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Zf.length;f++){var c=Zf[f],h=a&&$T[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(!a)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 Ci,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=wt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){ui('Property "'+e+'" is not existed in element '+this.id);return}var a=new Wv(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=de(a,e);o>=0&&a.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,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){qf(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){qf(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=qf(this,t,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Tl,e.__dirty=wt;var t={};function n(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,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&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();Mt(Xu,ar);Mt(Xu,Ci);function qf(r,e,t,n,i){t=t||{};var a=[];__(r,"",r,e,t,n,a,i);var o=a.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(),a.length>0&&t.during&&a[0].during(function(d,p){t.during(p)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),t.force&&v.duration(t.duration),v.start(t.easing)}return a}function Kf(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function qT(r){return xt(r[0])}function KT(r,e,t){if(xt(e[t]))if(xt(r[t])||(r[t]=[]),gt(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Kf(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(qT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Kf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Kf(a,i,o);a.length=i.length}else r[t]=e[t]}function jT(r,e){return r===e||xt(r)&&xt(e)&&QT(r,e)}function QT(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 __(r,e,t,n,i,a,o,s){for(var l=De(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!j(a),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&t[m]!=null&&(v||a[m]))if(j(y)&&!xt(y)&&!Fu(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}__(r,m,t[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(p);if(w){var x=de(d,b);d.splice(x,1)}}}if(i.force||(p=Qe(p,function(D){return!jT(n[D],t[D])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,T=void 0;if(s){M={},h&&(C={});for(var S=0;S<_;S++){var m=p[S];M[m]=t[m],h?C[m]=n[m]:t[m]=n[m]}}else if(h){T={};for(var S=0;S<_;S++){var m=p[S];T[m]=Sl(t[m]),KT(t,n,m)}}var b=new Wv(t,!1,!1,c?Qe(d,function(I){return I.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),h&&C&&b.whenWithKeys(0,C,p),T&&b.whenWithKeys(0,T,p),b.whenWithKeys(u??500,s?M:n,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}function Fp(r,e,t,n){return!(t&&t.hoverLayer||n)||Hp(r)||e&&Hp(e)?Tl:Yu}function Hp(r){return r.type==="text"||r.type==="tspan"}function Gp(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Ee=function(r){H(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,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},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 i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=de(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.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,i=this._children,a=de(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.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 i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new ne(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Xu);Ee.prototype.type="group";/*!
|
|
16
|
+
* ZRender, a high performance 2d drawing library.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
19
|
+
* All rights reserved.
|
|
20
|
+
*
|
|
21
|
+
* LICENSE
|
|
22
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
23
|
+
*/var go={},S_={};function JT(r){delete S_[r]}function eC(r){if(!r)return!1;if(typeof r=="string")return Zl(r,1)<Eh;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=Zl(e[i].color,1);return t/=n,t<Eh}return!1}var tC=function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new mT,o=n.renderer||"canvas";if(go[o]||(o=De(go)[0]),process.env.NODE_ENV!=="production"&&!go[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new go[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ue.node&&!ue.worker&&!l?new WT(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ue.touchEventsSupported:!!f,h=44,v;c&&(v=Q(n.pointerSize,h)),this.handler=new i_(a,s,u,s.root,v),this.animation=new VT({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=eC(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,n=aa(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(t=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=aa();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ee&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,JT(this.id))},r}();function Up(r,e){var t=new tC(K0(),r,e);return S_[t.id]=t,t}function rC(r,e){go[r]=e}var Wp=1e-4,b_=20,nC=14;function iC(r){return r.replace(/^\s+|\s+$/g,"")}var st=Math.min,ye=Math.max,ke=Math.abs,$r=Math.round,yi=Math.floor,ls=Math.ceil,Di=Math.pow,Fo=Math.log,Ih=Math.LN10,aC=Math.PI,oC=Math.random;function je(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}var ae=sC;function sC(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Lh(r,e,t)}function Lh(r,e,t){return K(r)?w_(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function lC(r){return K(r)&&w_(r)}function w_(r){return!!iC(r).match(/%$/)}function pe(r,e,t){return process.env.NODE_ENV!=="production"&&B(e!=null),isNaN(e)?t?""+r:+r:(e=st(ye(0,e),b_),r=(+r).toFixed(e),t?r:+r)}function Pa(r){return r.sort(function(e,t){return e-t}),r}function kr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if($r(r*e)/e===r)return t}return uC(r)}function uC(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ye(0,o-n)}function fC(r,e,t){var n=ke(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var i=Fo(2*ke(t||1)*ke(n))/Ih,a=Fo(ke(e))/Ih,o=ye(0,ls(-i+a));return isFinite(o)||(o=NaN),o}function cC(r,e){var t=xn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Di(10,e),i=q(r,function(v){return(isNaN(v)?0:v)/t*n*100}),a=n*100,o=q(i,function(v){return yi(v)}),s=xn(o,function(v,d){return v+d},0),l=q(i,function(v,d){return v-o[d]});s<a;){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 q(o,function(v){return v/n})}function ti(r,e){var t=ye(kr(r),kr(e)),n=r+e;return t>b_?n:pe(n,t)}var Yp=Di(2,53)-1;function x_(r){var e=aC*2;return(r%e+e)%e}function jl(r){return r>-Wp&&r<Wp}var hC=/^(?:(\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 Ra(r){if(r instanceof Date)return r;if(K(r)){var e=hC.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($r(r))}function T_(r){return Di(10,Yv(r))}function Yv(r){if(r===0)return 0;var e=yi(Fo(r)/Ih);return r/Di(10,e)>=10&&e++,e}var C_=2;function Xv(r,e){var t=Yv(r),n=Di(10,t),i=r/n,a;return e===C_?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,pe(r,-t)}function Xp(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 i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-t),e=i[o],t=a[o];i[0]===i[1]&&a[0]*a[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 Ql(r){var e=parseFloat(r);return e==r&&(e!==0||!K(r)||r.indexOf("x")<=0)?e:NaN}function D_(r){return!isNaN(Ql(r))}function $v(){return $r(oC()*9)}function E_(r,e){return e===0?r:E_(e,r%e)}function $p(r,e){return r==null?e:e==null?r:r*e/E_(r,e)}function Dt(r){return r!=null&&isFinite(r)}var vC="[ECharts] ",Zp={},dC=typeof console<"u"&&console.warn&&console.log;function $u(r,e,t){if(dC){if(t){if(Zp[e])return;Zp[e]=!0}console[r](vC+e)}}function M_(r,e){$u("log",r,e)}function Ye(r,e){$u("warn",r,e)}function Se(r,e){$u("error",r,e)}function Zr(r){process.env.NODE_ENV!=="production"&&$u("warn","DEPRECATED: "+r,!0)}function He(r,e,t){process.env.NODE_ENV!=="production"&&Zr((t?"["+t+"]":"")+(r+" is deprecated; use "+e+" instead."))}function Jl(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":zr(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":re(i)?"function () { ... }":Ix(i)?i+"":null};t=q(r,function(i){if(K(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function bt(r){throw new Error(r)}function qp(r,e,t){return(e-r)*t+r}var A_="series\0",pC="\0_ec_\0";function lt(r){return r instanceof Array?r:r==null?[]:[r]}function Oh(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var Kp=["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 us(r){return j(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function gC(r){return j(r)&&!(r instanceof Array)}function mC(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ee();E(e,function(l,u){if(!j(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Qp(l.id)&&jp(l.id),l.name!=null&&!Qp(l.name)&&jp(l.name))});var s=yC(r,o,t);return(n||i)&&_C(s,r,o,e),n&&SC(s,e),n||i?bC(s,e,i):a&&wC(s,e),xC(s),s}function yC(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||xa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function _C(r,e,t,n){E(n,function(i,a){if(!(!i||i.id==null)){var o=Eo(i.id),s=t.get(o);if(s!=null){var l=r[s];B(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function SC(r,e){E(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!xa(t)&&!xa(a)&&I_("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function bC(r,e,t){E(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||xa(i.existing)||i.existing&&n.id!=null&&!I_("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function wC(r,e){E(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function xC(r){var e=ee();E(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),E(r,function(t){var n=t.newOption;B(!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={})}),E(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(j(a)){if(o.name=a.name!=null?Eo(a.name):i?i.name:A_+n,i)o.id=Eo(i.id);else if(a.id!=null)o.id=Eo(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function I_(r,e,t){var n=Yt(e[r],null),i=Yt(t[r],null);return n!=null&&i!=null&&n===i}function Eo(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return Yt(r,"")}function Yt(r,e){return r==null?e:K(r)?r:_e(r)||Fl(r)?r+"":e}function jp(r){process.env.NODE_ENV!=="production"&&Ye("`"+r+"` is invalid id or name. Must be a string or number.")}function Qp(r){return Fl(r)||D_(r)}function Zv(r){var e=r.name;return!!(e&&e.indexOf(A_))}function xa(r){return r&&r.id!=null&&Eo(r.id).indexOf(pC)===0}function TC(r,e,t){E(r,function(n){var i=n.newOption;j(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=CC(e,i,n.existing,t))})}function CC(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function DC(r,e){var t={},n={};return i(r||[],t),i(e||[],n,t),[a(t),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=Yt(o[u].seriesId,null);if(c==null)return;for(var h=lt(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 a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function _i(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?q(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?q(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function we(){var r="__ec_inner_"+EC++;return function(e){return e[r]||(e[r]={})}}var EC=$v();function jf(r,e,t){var n=qv(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Na(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 qv(r,e){var t;if(K(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=ee(),a={},o=!1;return E(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&de(e.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ht={useDefault:!0,enableAll:!1,enableNone:!1};function Na(r,e,t,n){n=n||Ht;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&Se('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&Se('`"all"` is not a valid value on index option.'),i=-1)),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s}function L_(r,e,t){process.env.NODE_ENV!=="production"&&B(e);var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var i={mainType:e,query:n};return t&&(i.subType=t),i}function O_(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function MC(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function AC(r){return r==="auto"?ue.domSupported?"html":"richText":r||"html"}function IC(r,e){var t=ee(),n=[];return E(r,function(i){var a=e(i);(t.get(a)||(n.push(a),t.set(a,[]))).push(i)}),{keys:n,buckets:t}}function P_(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(_e(n)){var o=qp(t||0,n,i);return pe(o,a?Math.max(kr(t||0),kr(n)):e)}else{if(K(n))return i<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]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=qp(v,d,i);s[c]=pe(o,a?Math.max(kr(v),kr(d)):e)}}return s}}function Bt(){return[1/0,-1/0]}function Ph(r,e){qr(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function R_(r,e){qr(e)&&e<r[0]&&(r[0]=e)}function N_(r,e){qr(e)&&e>r[1]&&(r[1]=e)}function LC(r,e){Ta(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function qr(r){return r!=null&&isFinite(r)}function Ta(r,e){return qr(r)&&qr(e)&&r<=e}function OC(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function PC(r){Ta(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function k_(){var r="__ec_once_"+RC++;return function(e,t){process.env.NODE_ENV!=="production"&&B(e),pt(e,r)||(e[r]=1,t())}}var RC=$v();function Kv(r,e,t){var n=ee(),i=0;E(r,function(a){var o=e(a);process.env.NODE_ENV!=="production"&&B(K(o));var s=n.get(o)||0;t&&t(a,s),!s&&!t&&(r[i++]=a),n.set(o,s+1)}),t||(r.length=i)}function NC(r){return process.env.NODE_ENV!=="production"&&B(r.value!=null),r.value+""}function kC(r){return process.env.NODE_ENV!=="production"&&B(r!=null),r+""}function jv(r,e){return Q(e,!0)?r.seriesIndex+2:0}function V_(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function VC(r,e){B(r.start===e.start&&r.end===e.end)}function Zu(r,e){return{seriesType:r,overallReset:e}}function Qv(r){return{overallReset:r}}var BC=".",kn="___EC__COMPONENT__CONTAINER___",B_="___EC__EXTENDED_CLASS___";function Sr(r){var e={main:"",sub:""};if(r){var t=r.split(BC);e.main=t[0]||"",e.sub=t[1]||""}return e}function zC(r){B(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function FC(r){return!!(r&&r[B_])}function Jv(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&E(e,function(a){t[a]||console.warn("Method `"+a+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i;return HC(n)?i=function(a){H(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},Ex(i,this)),G(i.prototype,t),i[B_]=!0,i.extend=this.extend,i.superCall=WC,i.superApply=YC,i.superClass=n,i}}function HC(r){return re(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function z_(r,e){r.extend=e.extend}var GC=Math.round(Math.random()*10);function UC(r){var e=["__\0is_clz",GC++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&B(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function WC(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 YC(r,e,t){return this.superClass.prototype[e].apply(r,t)}function qu(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){zC(i),n.prototype.type=i;var a=Sr(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==kn){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[kn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Sr(n),a=[],o=e[i.main];return o&&o[kn]?E(o,function(s,l){l!==kn&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Sr(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return E(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Sr(n),a=e[i.main];return a&&a[kn]};function t(n){var i=e[n.main];return(!i||!i[kn])&&(i=e[n.main]={},i[kn]=!0),i}}function Ho(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,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&de(i,l)>=0||a&&de(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var XC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],$C=Ho(XC),ZC=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return $C(this,e,t)},r}(),Rh=new ba(50);function qC(r){if(typeof r=="string"){var e=Rh.get(r);return e&&e.image}else return r}function F_(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=Rh.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!Ku(e)&&a.pending.push(o)):(e=dt.loadImage(r,Jp,Jp),e.__zrImageSrc=r,Rh.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Jp(){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 Ku(r){return r&&r.width&&r.height}var Qf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function KC(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
24
|
+
`);a=H_(t,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)G_(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
25
|
+
`),r.isTruncated=s}function H_(r,e,t,n){n=n||{};var i=G({},n);t=Q(t,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0),o=i.fontMeasureInfo=wr(e),s=o.asciiCharWidth;i.placeholder=Q(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=xr(o,t);return f>l&&(t="",f=0),l=r-f,i.ellipsis=t,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=r,i}function G_(r,e,t){var n=t.containerWidth,i=t.contentWidth,a=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=xr(a,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?jC(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=xr(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function jC(r,e,t){for(var n=0,i=0,a=r.length;i<a&&n<e;i++)n+=m_(t,r.charCodeAt(i));return i}function QC(r,e,t,n){var i=ed(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Wu(u),h=Q(e.lineHeight,c),v=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(a==="break"||a==="breakAll")?m=i?U_(i,e.font,p,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
26
|
+
`):[];var y=m.length*h;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&f&&p!=null)for(var S=H_(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)G_(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var x=g,C=0,M=wr(u),w=0;w<m.length;w++)C=Math.max(xr(M,m[w]),C);p==null&&(p=C);var T=p;return x+=l,T+=s,{lines:m,height:g,outerWidth:T,outerHeight:x,lineHeight:h,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var JC=function(){function r(){}return r}(),eg=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),eD=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function tD(r,e,t,n,i){var a=new eD,o=ed(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var h=e.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=Qf.lastIndex=0,p;(p=Qf.exec(o))!=null;){var g=p.index;g>d&&Jf(a,o.substring(d,g),e,v),Jf(a,p[2],e,v,p[1]),d=Qf.lastIndex}d<o.length&&Jf(a,o.substring(d,o.length),e,v);var m=[],y=0,_=0,S=h==="truncate",b=e.lineOverflow==="truncate",w={};function x(fe,Pe,ze){fe.width=Pe,fe.lineHeight=ze,y+=ze,_=Math.max(_,Pe)}e:for(var C=0;C<a.lines.length;C++){for(var M=a.lines[C],T=0,D=0,I=0;I<M.tokens.length;I++){var A=M.tokens[I],L=A.styleName&&e.rich[A.styleName]||{},O=A.textPadding=L.padding,P=O?O[1]+O[3]:0,N=A.font=L.font||e.font;A.contentHeight=Wu(N);var R=Q(L.height,A.contentHeight);if(A.innerHeight=R,O&&(R+=O[0]+O[2]),A.height=R,A.lineHeight=br(L.lineHeight,e.lineHeight,R),A.align=L&&L.align||i,A.verticalAlign=L&&L.verticalAlign||"middle",b&&c!=null&&y+A.lineHeight>c){var k=a.lines.length;I>0?(M.tokens=M.tokens.slice(0,I),x(M,D,T),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<k;break e}var F=L.width,V=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")A.percentWidth=F,m.push(A),A.contentWidth=xr(wr(N),A.text);else{if(V){var X=L.backgroundColor,Z=X&&X.image;Z&&(Z=qC(Z),Ku(Z)&&(A.width=Math.max(A.width,Z.width*R/Z.height)))}var W=S&&f!=null?f-D:null;W!=null&&W<A.width?!V||W<P?(A.text="",A.width=A.contentWidth=0):(KC(w,A.text,W-P,N,e.ellipsis,{minChar:e.truncateMinChar}),A.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,A.width=A.contentWidth=xr(wr(N),A.text)):A.contentWidth=xr(wr(N),A.text)}A.width+=P,D+=A.width,L&&(T=Math.max(T,A.lineHeight))}x(M,D,T)}a.outerWidth=a.width=Q(f,_),a.outerHeight=a.height=Q(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<m.length;C++){var A=m[C],J=A.percentWidth;A.width=parseInt(J,10)/100*a.width}return a}function Jf(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},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=Xr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
27
|
+
`),u=!0),n.accumWidth=d}else{var p=U_(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}f||(f=e.split(`
|
|
28
|
+
`));for(var g=wr(l),m=0;m<f.length;m++){var y=f[m],_=new JC;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:xr(g,y),!m&&!u){var S=(s[s.length-1]||(s[0]=new eg)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new eg([_]))}}function rD(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var nD=xn(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function iD(r){return rD(r)?!!nD[r]:!0}function U_(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=wr(e),h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
|
|
29
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=m_(c,v.charCodeAt(0)),p=n?!1:!iD(v);if(a.length?f+d>t:i+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):p?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function tg(r,e,t,n,i,a){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(rg,wa(t,o,i),hi(n,s,a),o,s),ne.intersect(e,rg,null,ng);var l=ng.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=wa(l.x,l.width,i,!0),r.baseY=hi(l.y,l.height,a,!0)}}var rg=new ne(0,0,0,0),ng={outIntersectRect:{},clamp:!0};function ed(r){return r!=null?r+="":r=""}function aD(r){var e=ed(r.text),t=r.font,n=xr(wr(t),e),i=Wu(t);return Nh(r,n,i,null)}function Nh(r,e,t,n){var i=new ne(wa(r.x||0,e,r.textAlign),hi(r.y||0,t,r.textBaseline),e,t),a=n??(W_(r)?r.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function W_(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var kh="__zr_style_"+Math.round(Math.random()*10),vi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ju={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vi[kh]=!0;var ig=["z","z2","invisible"],oD=["invisible"],fs=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=De(t),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&sD(this,t,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var 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 i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(t,i,n):t.copy(i),(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 ne(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:G(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=vo,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&vo)},e.prototype.styleUpdated=function(){this.__dirty&=~vo},e.prototype.createStyle=function(t){return Hu(vi,t)},e.prototype.useStyle=function(t){t[kh]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[kh]},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,ig)},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===Yu,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=De(c),v=0;v<h.length;v++){var d=h[v];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=De(f),v=0;v<p.length;v++){var d=p[v];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?oD:ig,v=0;v<g.length;v++){var d=g[v];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,n){return G(t,n),t},e.prototype.getAnimationStyleProps=function(){return ju},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=wt|vo}(),e}(Xu),ec=new ne(0,0,0,0),tc=new ne(0,0,0,0);function sD(r,e,t){return ec.copy(r.getBoundingRect()),r.transform&&ec.applyTransform(r.transform),tc.width=e,tc.height=t,!ec.intersect(tc)}var zt=Math.min,Ft=Math.max,rc=Math.sin,nc=Math.cos,Vn=Math.PI*2,As=Oa(),Is=Oa(),Ls=Oa();function ag(r,e,t,n,i,a){i[0]=zt(r,t),i[1]=zt(e,n),a[0]=Ft(r,t),a[1]=Ft(e,n)}var og=[],sg=[];function lD(r,e,t,n,i,a,o,s,l,u){var f=u_,c=Je,h=f(r,t,i,o,og);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,i,o,og[v]);l[0]=zt(d,l[0]),u[0]=Ft(d,u[0])}h=f(e,n,a,s,sg);for(var v=0;v<h;v++){var p=c(e,n,a,s,sg[v]);l[1]=zt(p,l[1]),u[1]=Ft(p,u[1])}l[0]=zt(r,l[0]),u[0]=Ft(r,u[0]),l[0]=zt(o,l[0]),u[0]=Ft(o,u[0]),l[1]=zt(e,l[1]),u[1]=Ft(e,u[1]),l[1]=zt(s,l[1]),u[1]=Ft(s,u[1])}function uD(r,e,t,n,i,a,o,s){var l=f_,u=St,f=Ft(zt(l(r,t,i),1),0),c=Ft(zt(l(e,n,a),1),0),h=u(r,t,i,f),v=u(e,n,a,c);o[0]=zt(r,i,h),o[1]=zt(e,a,v),s[0]=Ft(r,i,h),s[1]=Ft(e,a,v)}function fD(r,e,t,n,i,a,o,s,l){var u=ra,f=na,c=Math.abs(i-a);if(c%Vn<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(As[0]=nc(i)*t+r,As[1]=rc(i)*n+e,Is[0]=nc(a)*t+r,Is[1]=rc(a)*n+e,u(s,As,Is),f(l,As,Is),i=i%Vn,i<0&&(i=i+Vn),a=a%Vn,a<0&&(a=a+Vn),i>a&&!o?a+=Vn:i<a&&o&&(i+=Vn),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Ls[0]=nc(v)*t+r,Ls[1]=rc(v)*n+e,u(s,Ls,s),f(l,Ls,l))}var Te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bn=[],zn=[],cr=[],tn=[],hr=[],vr=[],ic=Math.min,ac=Math.max,Fn=Math.cos,Hn=Math.sin,Ir=Math.abs,Vh=Math.PI,hn=Vh*2,oc=typeof Float32Array<"u",Wa=[];function sc(r){var e=Math.round(r/Vh*1e8)/1e8;return e%2*Vh}function td(r,e){var t=sc(r[0]);t<0&&(t+=hn);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=hn?i=t+hn:e&&t-i>=hn?i=t-hn:!e&&t>i?i=t+(hn-sc(t-i)):e&&t<i&&(i=t-(hn-sc(i-t))),r[0]=t,r[1]=i}var Si=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=Ir(n/ql/e)||0,this._uy=Ir(n/ql/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(Te.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=Ir(e-this._xi),i=Ir(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Te.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(Te.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(Te.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Wa[0]=i,Wa[1]=a,td(Wa,o),i=Wa[0],a=Wa[1];var s=a-i;return this.addData(Te.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=Fn(a)*n+e,this._yi=Hn(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(Te.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Te.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&oc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,a=0;a<t;a++)n+=e[a].len();var o=this.data;if(oc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<t;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},r.prototype.addData=function(e,t,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var 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,oc&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){cr[0]=cr[1]=hr[0]=hr[1]=Number.MAX_VALUE,tn[0]=tn[1]=vr[0]=vr[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],i=t,a=n),s){case Te.M:t=i=e[o++],n=a=e[o++],hr[0]=i,hr[1]=a,vr[0]=i,vr[1]=a;break;case Te.L:ag(t,n,e[o],e[o+1],hr,vr),t=e[o++],n=e[o++];break;case Te.C:lD(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],hr,vr),t=e[o++],n=e[o++];break;case Te.Q:uD(t,n,e[o++],e[o++],e[o],e[o+1],hr,vr),t=e[o++],n=e[o++];break;case Te.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&&(i=Fn(v)*c+u,a=Hn(v)*h+f),fD(u,f,c,h,v,d,p,hr,vr),t=Fn(d)*c+u,n=Hn(d)*h+f;break;case Te.R:i=t=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];ag(i,a,i+g,a+m,hr,vr);break;case Te.Z:t=i,n=a;break}ra(cr,cr,hr),na(tn,tn,vr)}return o===0&&(cr[0]=cr[1]=tn[0]=tn[1]=0),new ne(cr[0],cr[1],tn[0]-cr[0],tn[1]-cr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,a=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&&(a=e[h],o=e[h+1],s=a,l=o);var p=-1;switch(v){case Te.M:a=s=e[h++],o=l=e[h++];break;case Te.L:{var g=e[h++],m=e[h++],y=g-a,_=m-o;(Ir(y)>n||Ir(_)>i||h===t-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case Te.C:{var S=e[h++],b=e[h++],g=e[h++],m=e[h++],w=e[h++],x=e[h++];p=_T(a,o,S,b,g,m,w,x,10),a=w,o=x;break}case Te.Q:{var S=e[h++],b=e[h++],g=e[h++],m=e[h++];p=wT(a,o,S,b,g,m,10),a=g,o=m;break}case Te.A:var C=e[h++],M=e[h++],T=e[h++],D=e[h++],I=e[h++],A=e[h++],L=A+I;h+=1,d&&(s=Fn(I)*T+C,l=Hn(I)*D+M),p=ac(T,D)*ic(hn,Math.abs(A)),a=Fn(L)*T+C,o=Hn(L)*D+M;break;case Te.R:{s=a=e[h++],l=o=e[h++];var O=e[h++],P=e[h++];p=O*2+P*2;break}case Te.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=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,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=t<1,d,p,g=0,m=0,y,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=t*p,!y)))e:for(var w=0;w<o;){var x=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),x!==Te.L&&_>0&&(e.lineTo(S,b),_=0),x){case Te.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case Te.L:{c=n[w++],h=n[w++];var M=Ir(c-u),T=Ir(h-f);if(M>i||T>a){if(v){var D=d[m++];if(g+D>y){var I=(y-g)/D;e.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break e}g+=D}e.lineTo(c,h),u=c,f=h,_=0}else{var A=M*M+T*T;A>_&&(S=c,b=h,_=A)}break}case Te.C:{var L=n[w++],O=n[w++],P=n[w++],N=n[w++],R=n[w++],k=n[w++];if(v){var D=d[m++];if(g+D>y){var I=(y-g)/D;Xl(u,L,P,R,I,Bn),Xl(f,O,N,k,I,zn),e.bezierCurveTo(Bn[1],zn[1],Bn[2],zn[2],Bn[3],zn[3]);break e}g+=D}e.bezierCurveTo(L,O,P,N,R,k),u=R,f=k;break}case Te.Q:{var L=n[w++],O=n[w++],P=n[w++],N=n[w++];if(v){var D=d[m++];if(g+D>y){var I=(y-g)/D;$l(u,L,P,I,Bn),$l(f,O,N,I,zn),e.quadraticCurveTo(Bn[1],zn[1],Bn[2],zn[2]);break e}g+=D}e.quadraticCurveTo(L,O,P,N),u=P,f=N;break}case Te.A:var F=n[w++],V=n[w++],X=n[w++],Z=n[w++],W=n[w++],J=n[w++],fe=n[w++],Pe=!n[w++],ze=X>Z?X:Z,xe=Ir(X-Z)>.001,Le=W+J,se=!1;if(v){var D=d[m++];g+D>y&&(Le=W+J*(y-g)/D,se=!0),g+=D}if(xe&&e.ellipse?e.ellipse(F,V,X,Z,fe,W,Le,Pe):e.arc(F,V,ze,W,Le,Pe),se)break e;C&&(s=Fn(W)*X+F,l=Hn(W)*Z+V),u=Fn(Le)*X+F,f=Hn(Le)*Z+V;break;case Te.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var he=n[w++],fr=n[w++];if(v){var D=d[m++];if(g+D>y){var Ge=y-g;e.moveTo(c,h),e.lineTo(c+ic(Ge,he),h),Ge-=he,Ge>0&&e.lineTo(c+he,h+ic(Ge,fr)),Ge-=fr,Ge>0&&e.lineTo(c+ac(he-Ge,0),h+fr),Ge-=he,Ge>0&&e.lineTo(c,h+ac(fr-Ge,0));break e}g+=D}e.rect(c,h,he,fr);break;case Te.Z:if(v){var D=d[m++];if(g+D>y){var I=(y-g)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Te,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Bi(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function cD(r,e,t,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>r+c&&u>t+c&&u>i+c&&u>o+c||u<r-c&&u<t-c&&u<i-c&&u<o-c)return!1;var h=yT(r,e,t,n,i,a,o,s,u,f);return h<=c/2}function hD(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var f=bT(r,e,t,n,i,a,s,l);return f<=u/2}var lg=Math.PI*2;function Os(r){return r%=lg,r<0&&(r+=lg),r}var Ya=Math.PI*2;function vD(r,e,t,n,i,a,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-i)%Ya<1e-4)return!0;if(a){var c=n;n=Os(i),i=Os(c)}else n=Os(n),i=Os(i);n>i&&(i+=Ya);var h=Math.atan2(l,s);return h<0&&(h+=Ya),h>=n&&h<=i||h+Ya>=n&&h+Ya<=i}function Gn(r,e,t,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-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===i?1/0:l>i?s:0}var rn=Si.CMD,Un=Math.PI*2,dD=1e-4;function pD(r,e){return Math.abs(r-e)<dD}var ct=[-1,-1,-1],kt=[-1,-1];function gD(){var r=kt[0];kt[0]=kt[1],kt[1]=r}function mD(r,e,t,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=Yl(e,n,a,s,u,ct);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=ct[p],m=g===0||g===1?.5:1,y=Je(r,t,i,o,g);y<l||(h<0&&(h=u_(e,n,a,s,kt),kt[1]<kt[0]&&h>1&&gD(),v=Je(e,n,a,s,kt[0]),h>1&&(d=Je(e,n,a,s,kt[1]))),h===2?g<kt[0]?c+=v<e?m:-m:g<kt[1]?c+=d<v?m:-m:c+=s<d?m:-m:g<kt[0]?c+=v<e?m:-m:c+=s<v?m:-m)}return c}function yD(r,e,t,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=ST(e,n,a,s,ct);if(l===0)return 0;var u=f_(e,n,a);if(u>=0&&u<=1){for(var f=0,c=St(e,n,a,u),h=0;h<l;h++){var v=ct[h]===0||ct[h]===1?.5:1,d=St(r,t,i,ct[h]);d<o||(ct[h]<u?f+=c<e?v:-v:f+=a<c?v:-v)}return f}else{var v=ct[0]===0||ct[0]===1?.5:1,d=St(r,t,i,ct[0]);return d<o?0:a<e?v:-v}}function _D(r,e,t,n,i,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ct[0]=-l,ct[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Un-1e-4){n=0,i=Un;var f=a?1:-1;return o>=ct[0]+r&&o<=ct[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Un,i+=Un);for(var h=0,v=0;v<2;v++){var d=ct[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Un+p),(p>=n&&p<=i||p+Un>=n&&p+Un<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function Y_(r,e,t,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===rn.M&&d>1&&(t||(s+=Gn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(t){if(Bi(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Gn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(t){if(cD(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=mD(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(t){if(hD(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=yD(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(b)*_+m,v=Math.sin(b)*S+y,g?(f=h,c=v):s+=Gn(l,u,h,v,n,i);var C=(n-m)*S/_+m;if(t){if(vD(m,y,S,b,b+w,x,e,C,i))return!0}else s+=_D(m,y,S,b,b+w,x,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case rn.R:f=l=a[d++],c=u=a[d++];var M=a[d++],T=a[d++];if(h=f+M,v=c+T,t){if(Bi(f,c,h,c,e,n,i)||Bi(h,c,h,v,e,n,i)||Bi(h,v,f,v,e,n,i)||Bi(f,v,f,c,e,n,i))return!0}else s+=Gn(h,c,h,v,n,i),s+=Gn(f,v,f,c,n,i);break;case rn.Z:if(t){if(Bi(l,u,f,c,e,n,i))return!0}else s+=Gn(l,u,f,c,n,i);l=f,u=c;break}}return!t&&!pD(u,c)&&(s+=Gn(l,u,f,c,n,i)||0),s!==0}function SD(r,e,t){return Y_(r,0,!1,e,t)}function bD(r,e,t,n){return Y_(r,e,!0,t,n)}var X_=ce({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vi),wD={style:ce({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ju.style)},lc=Uu.concat(["invisible","culling","z","z2","zlevel","parent"]),be=function(r){H(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 i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<lc.length;++s)i[lc[s]]=this[lc[s]];i.__dirty|=wt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=De(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=t[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(K(t)){var n=Zl(t,0);return n>.5?Mh:n>.2?YT:Ah}else if(t)return Ah}return Mh},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(K(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Zl(t,0)<Eh;if(a===o)return n}},e.prototype.buildPath=function(t,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~ea},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 Si(!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,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ea)&&(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||i){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 i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.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)),bD(s,l/u,t,n)))return!0}if(this.hasFill())return SD(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ea,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 i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:G(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ea)},e.prototype.createStyle=function(t){return Hu(X_,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){if(r.prototype._applyStateObj.call(this,t,n,i,a,o,s),this.__inHover!==Yu){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=G({},i.shape),G(u,n.shape)):(u=G({},a?this.shape:i.shape),G(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=De(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),i,a=0;a<t.length;a++){var o=t[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return wD},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(a){H(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ie(t.style)},o.prototype.getDefaultShape=function(){return ie(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(n.prototype[i]=t[i]);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=wt|vo|ea}(),e}(fs),xD=ce({strokeFirst:!0,font:wn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},X_),eu=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return W_(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return Hu(xD,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=aD(this.style)),this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(fs);eu.prototype.type="tspan";var TD=ce({x:0,y:0},vi),CD={style:ce({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ju.style)};function DD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Kt=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Hu(TD,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=DD(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return CD},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ne(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(fs);Kt.prototype.type="image";function ED(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var oa=Math.round;function $_(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(oa(n*2)===oa(i*2)&&(r.x1=r.x2=oi(n,s,!0)),oa(a*2)===oa(o*2)&&(r.y1=r.y2=oi(a,s,!0))),r}}function Z_(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=oi(n,s,!0),r.y=oi(i,s,!0),r.width=Math.max(oi(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(oi(i+o,s,!1)-r.y,o===0?0:1)),r}}function oi(r,e,t){if(!e)return r;var n=oa(r*2);return(n+oa(e))%2===0?n/2:(n+(t?1:-1))/2}var MD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),AD={},Ce=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new MD},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=Z_(AD,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?ED(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(be);Ce.prototype.type="rect";var ug={fill:"#000"},fg=2,dr={},ID={style:ce({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},ju.style)},Ae=function(r){H(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ug,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,ND(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 ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ug},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 i=n.rich,a=t.rich||i&&{};return G(t,n),i&&a?(this._mergeRich(a,i),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,n){for(var i=De(n),a=0;a<i.length;a++){var o=i[a];t[o]=t[o]||{},G(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return ID},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||wn,i=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";tg(dr,a.overflowRect,o,s,l,u),o=dr.baseX,s=dr.baseY;var f=mg(t),c=QC(f,t,dr.outerWidth,dr.outerHeight),h=uc(t),v=!!t.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=hi(s,c.contentHeight,u);if(h||i){var S=wa(o,p,l),b=hi(s,d,u);h&&this._renderBackground(t,t,S,b,p,d)}_+=m/2,i&&(y=gg(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,x=!1,C=!1,M=pg("fill"in t?t.fill:(C=!0,a.fill)),T=dg("stroke"in t?t.stroke:!v&&(!a.autoStroke||C)?(w=fg,x=!0,a.stroke):null),D=t.textShadowBlur>0,I=0;I<g.length;I++){var A=this._getOrCreateChild(eu),L=A.createStyle();A.useStyle(L),L.text=g[I],L.x=y,L.y=_,L.textAlign=l,L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,D&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=T,L.fill=M,T&&(L.lineWidth=t.lineWidth||w,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=n,hg(L,t),_+=m,A.setBoundingRect(Nh(L,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,i=t.align||n.align,a=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;tg(dr,n.overflowRect,o,s,i,a),o=dr.baseX,s=dr.baseY;var l=mg(t),u=tD(l,t,dr.outerWidth,dr.outerHeight,i),f=u.width,c=u.outerWidth,h=u.outerHeight,v=t.padding;this.isTruncated=!!u.isTruncated;var d=wa(o,c,i),p=hi(s,h,a),g=d,m=p;v&&(g+=v[3],m+=v[0]);var y=g+f;uc(t)&&this._renderBackground(t,t,d,p,c,h);for(var _=!!t.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,x=w.length,C=b.lineHeight,M=b.width,T=0,D=g,I=y,A=x-1,L=void 0;T<x&&(L=w[T],!L.align||L.align==="left");)this._placeToken(L,t,C,m,D,"left",_),M-=L.width,D+=L.width,T++;for(;A>=0&&(L=w[A],L.align==="right");)this._placeToken(L,t,C,m,I,"right",_),M-=L.width,I-=L.width,A--;for(D+=(f-(D-g)-(y-I)-M)/2;T<=A;)L=w[T],this._placeToken(L,t,C,m,D+L.width/2,"center",_),D+=L.width,T++;m+=C}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+i/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+i-t.height/2);var h=!t.isLineHolder&&uc(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=gg(o,s,d),c-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(eu),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=pg("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=dg("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=fg,S=!0,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=c,x&&(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||wn,g.opacity=br(u.opacity,n.opacity,1),hg(g,u),w&&(g.lineWidth=br(u.lineWidth,n.lineWidth,_),g.lineDash=Q(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(Nh(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,n,i,a,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(Ce),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=Q(t.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Kt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Q(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.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=br(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return RD(t)&&(n=[t.fontStyle,t.fontWeight,PD(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&_r(n)||t.textFont||t.font},e}(fs),LD={left:!0,right:1,center:1},OD={top:1,bottom:1,middle:1},cg=["fontStyle","fontWeight","fontSize","fontFamily"];function PD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?kv+"px":r+"px"}function hg(r,e){for(var t=0;t<cg.length;t++){var n=cg[t],i=e[n];i!=null&&(r[n]=i)}}function RD(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ND(r){return vg(r),E(r.rich,vg),r}function vg(r){if(r){r.font=Ae.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||LD[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||OD[t]?t:"top";var n=r.padding;n&&(r.padding=Hv(r.padding))}}function dg(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function pg(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function gg(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function mg(r){var e=r.text;return e!=null&&(e+=""),e}function uc(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ve=we(),Bh=function(r,e,t,n){if(n){var i=ve(n);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ve(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},ka="undefined",Go="series",zh=ee(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),At="original",ut="arrayRows",jt="objectRows",or="keyedColumns",Hr="typedArray",q_="unknown",tr="column",Ei="row",K_="Roam",kD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],j_=function(){function r(e){E(kD,function(t){this[t]=oe(e[t],e)},this)}return r}();function Q_(r,e){return e.mainType===Go?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var yg=1,_g={},J_=we(),rd=we(),nd=0,Qu=1,Ju=2,Zt=["emphasis","blur","select"],tu=["normal","emphasis","blur","select"],VD=10,BD=9,di="highlight",Cl="downplay",ru="select",Fh="unselect",nu="toggleSelect",id="selectchanged";function zi(r){return r!=null&&r!=="none"}function ef(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function eS(r){ef(r,"emphasis",Ju)}function tS(r){r.hoverState===Ju&&ef(r,"normal",nd)}function ad(r){ef(r,"blur",Qu)}function rS(r){r.hoverState===Qu&&ef(r,"normal",nd)}function zD(r){r.selected=!0}function FD(r){r.selected=!1}function Sg(r,e,t){e(r,t)}function Jr(r,e,t){Sg(r,e,t),r.isGroup&&r.traverse(function(n){Sg(n,e,t)})}function bg(r,e){switch(e){case"emphasis":r.hoverState=Ju;break;case"normal":r.hoverState=nd;break;case"blur":r.hoverState=Qu;break;case"select":r.selected=!0}}function HD(r,e,t,n){for(var i=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[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(a,e)}return a}function GD(r,e,t,n){var i=t&&de(t,"select")>=0,a=!1;if(r instanceof be){var o=J_(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(zi(s)||zi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=G({},n),u=G({},u),u.fill=s):!zi(u.fill)&&zi(s)?(a=!0,n=G({},n),u=G({},u),u.fill=Ap(s)):!zi(u.stroke)&&zi(l)&&(a||(n=G({},n),u=G({},u)),u.stroke=Ap(l)),n.style=u}}if(n&&n.z2==null){a||(n=G({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??VD)}return n}function UD(r,e,t){if(t&&t.z2==null){t=G({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??BD)}return t}function WD(r,e,t){var n=de(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:HD(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=G({},t),o=G({opacity:n?i:a.opacity*.1},o),t.style=o),t}function fc(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return GD(this,r,e,t);if(r==="blur")return WD(this,r,t);if(r==="select")return UD(this,r,t)}return t}function YD(r){r.stateProxy=fc;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=fc),t&&(t.stateProxy=fc)}function wg(r,e){!oS(r,e)&&!r.__highByOuter&&Jr(r,eS)}function xg(r,e){!oS(r,e)&&!r.__highByOuter&&Jr(r,tS)}function Uo(r,e){r.__highByOuter|=1<<(e||0),Jr(r,eS)}function Wo(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Jr(r,tS)}function XD(r){Jr(r,ad)}function nS(r){Jr(r,rS)}function iS(r){Jr(r,zD)}function aS(r){Jr(r,FD)}function oS(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function sS(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=rd(a),s=Q_(r,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){rS(u)}),l&&t.push(a)),o.isBlured=!1}),E(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function Hh(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&nS(h)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.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){g.__highByOuter&&f&&e==="self"||ad(g)}),xt(e))a(u.getData(),e);else if(j(e))for(var d=De(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),rd(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Gh(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){rd(n).isBlured=!0;var i=t.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){ad(a)})}}}function $D(r,e,t){var n=r.seriesIndex,i=r.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&Se("Unknown dataType "+e.dataType);return}var a=_i(i,e);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ve(o);Hh(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Hh(n,f,c,t)}}function od(r,e,t,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var a=n.getModel().getComponent(r,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ca(s[u])&&Se("param should be highDownDispatcher"),ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function ZD(r,e,t){process.env.NODE_ENV!=="production"&&!Ca(r)&&Se("param should be highDownDispatcher");var n=ve(r),i=od(n.componentMainType,n.componentIndex,n.componentHighDownName,t),a=i.dispatchers,o=i.focusSelf;a?(o&&Gh(n.componentMainType,n.componentIndex,t),E(a,function(s){return wg(s,e)})):(Hh(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Gh(n.componentMainType,n.componentIndex,t),wg(r,e))}function qD(r,e,t){process.env.NODE_ENV!=="production"&&!Ca(r)&&Se("param should be highDownDispatcher"),sS(t);var n=ve(r),i=od(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;i?E(i,function(a){return xg(a,e)}):xg(r,e)}function KD(r,e,t){if(Wh(e)){var n=e.dataType,i=r.getData(n),a=_i(i,e);U(a)||(a=[a]),r[e.type===nu?"toggleSelect":e.type===ru?"select":"unselect"](a,n)}}function Tg(r){var e=r.getAllData();E(e,function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?iS(a):aS(a)})})}function jD(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();E(n,function(i){i.data;var a=i.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Uh(r,e,t){sd(r,!0),Jr(r,YD),JD(r,e,t)}function QD(r){sd(r,!1)}function rr(r,e,t,n){n?QD(r):Uh(r,e,t)}function JD(r,e,t){var n=ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var Cg=["emphasis","blur","select"],eE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Cr(r,e,t,n){t=t||"itemStyle";for(var i=0;i<Cg.length;i++){var a=Cg[i],o=e.getModel([a,t]),s=r.ensureState(a);s.style=n?n(o):o[eE[t]]()}}function sd(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 Ca(r){return!!(r&&r.__highDownDispatcher)}function tE(r){var e=_g[r];return e==null&&yg<=32&&(e=_g[r]=yg++),e}function Wh(r){var e=r.type;return e===ru||e===Fh||e===nu}function Dg(r){var e=r.type;return e===di||e===Cl}function rE(r){var e=J_(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 Fi=Si.CMD,nE=[[],[],[]],Eg=Math.sqrt,iE=Math.atan2;function aE(r,e){if(e){var t=r.data,n=r.len(),i,a,o,s,l,u,f=Fi.M,c=Fi.C,h=Fi.L,v=Fi.R,d=Fi.A,p=Fi.Q;for(o=0,s=0;o<n;){switch(i=t[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=e[4],m=e[5],y=Eg(e[0]*e[0]+e[1]*e[1]),_=Eg(e[2]*e[2]+e[3]*e[3]),S=iE(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=g,t[o]*=_,t[o++]+=m,t[o++]*=y,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],ot(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ot(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var b=nE[l];b[0]=t[o++],b[1]=t[o++],ot(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var cc=Math.sqrt,Ps=Math.sin,Rs=Math.cos,Xa=Math.PI;function Mg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Yh(r,e){return(r[0]*e[0]+r[1]*e[1])/(Mg(r)*Mg(e))}function Ag(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Yh(r,e))}function Ig(r,e,t,n,i,a,o,s,l,u,f){var c=l*(Xa/180),h=Rs(c)*(r-t)/2+Ps(c)*(e-n)/2,v=-1*Ps(c)*(r-t)/2+Rs(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=cc(d),s*=cc(d));var p=(i===a?-1:1)*cc((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,m=p*-s*h/o,y=(r+t)/2+Rs(c)*g-Ps(c)*m,_=(e+n)/2+Ps(c)*g+Rs(c)*m,S=Ag([1,0],[(h-g)/o,(v-m)/s]),b=[(h-g)/o,(v-m)/s],w=[(-1*h-g)/o,(-1*v-m)/s],x=Ag(b,w);if(Yh(b,w)<=-1&&(x=Xa),Yh(b,w)>=1&&(x=0),x<0){var C=Math.round(x/Xa*1e6)/1e6;x=Xa*2+C%2*Xa}f.addData(u,y,_,o,s,S,x,c,a)}var oE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,sE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lE(r){var e=new Si;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=Si.CMD,l=r.match(oE);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(sE)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=t,M=n,T=void 0,D=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),i=t,a=n,c="l";break;case"M":t=v[g++],n=v[g++],h=s.M,e.addData(h,t,n),i=t,a=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":m=t,y=n,T=e.len(),D=e.data,o===s.C&&(m+=t-D[T-4],y+=n-D[T-3]),h=s.C,C=v[g++],M=v[g++],t=v[g++],n=v[g++],e.addData(h,m,y,C,M,t,n);break;case"s":m=t,y=n,T=e.len(),D=e.data,o===s.C&&(m+=t-D[T-4],y+=n-D[T-3]),h=s.C,C=t+v[g++],M=n+v[g++],t+=v[g++],n+=v[g++],e.addData(h,m,y,C,M,t,n);break;case"Q":C=v[g++],M=v[g++],t=v[g++],n=v[g++],h=s.Q,e.addData(h,C,M,t,n);break;case"q":C=v[g++]+t,M=v[g++]+n,t+=v[g++],n+=v[g++],h=s.Q,e.addData(h,C,M,t,n);break;case"T":m=t,y=n,T=e.len(),D=e.data,o===s.Q&&(m+=t-D[T-4],y+=n-D[T-3]),t=v[g++],n=v[g++],h=s.Q,e.addData(h,m,y,t,n);break;case"t":m=t,y=n,T=e.len(),D=e.data,o===s.Q&&(m+=t-D[T-4],y+=n-D[T-3]),t+=v[g++],n+=v[g++],h=s.Q,e.addData(h,m,y,t,n);break;case"A":_=v[g++],S=v[g++],b=v[g++],w=v[g++],x=v[g++],C=t,M=n,t=v[g++],n=v[g++],h=s.A,Ig(C,M,t,n,w,x,_,S,b,h,e);break;case"a":_=v[g++],S=v[g++],b=v[g++],w=v[g++],x=v[g++],C=t,M=n,t+=v[g++],n+=v[g++],h=s.A,Ig(C,M,t,n,w,x,_,S,b,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),t=i,n=a),o=h}return e.toStatic(),e}var lS=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(be);function uS(r){return r.setData!=null}function fS(r,e){var t=lE(r),n=G({},e);return n.buildPath=function(i){var a=uS(i);if(a&&i.canSave()){i.appendPath(t);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&t.rebuildPath(o,1)}},n.applyTransform=function(i){aE(t,i),this.dirtyShape()},n}function uE(r,e){return new lS(fS(r,e))}function fE(r,e){var t=fS(r,e),n=function(i){H(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(lS);return n}function cE(r,e){for(var t=[],n=r.length,i=0;i<n;i++){var a=r[i];t.push(a.getUpdatedPathProxy(!0))}var o=new be(e);return o.createPathProxy(),o.buildPath=function(s){if(uS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var hE=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),cs=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new hE},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}(be);cs.prototype.type="circle";var vE=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),ld=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vE},e.prototype.buildPath=function(t,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e}(be);ld.prototype.type="ellipse";var cS=Math.PI,hc=cS*2,Wn=Math.sin,Hi=Math.cos,dE=Math.acos,nt=Math.atan2,Lg=Math.abs,Mo=Math.sqrt,mo=Math.max,pr=Math.min,Qt=1e-4;function pE(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Qt))return h=(f*(e-a)-c*(r-i))/h,[r+h*l,e+h*u]}function Ns(r,e,t,n,i,a,o){var s=r-t,l=e-n,u=(o?a:-a)/Mo(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,m=(v+p)/2,y=d-h,_=p-v,S=y*y+_*_,b=i-a,w=h*p-d*v,x=(_<0?-1:1)*Mo(mo(0,b*b*S-w*w)),C=(w*_-y*x)/S,M=(-w*y-_*x)/S,T=(w*_+y*x)/S,D=(-w*y+_*x)/S,I=C-g,A=M-m,L=T-g,O=D-m;return I*I+A*A>L*L+O*O&&(C=T,M=D),{cx:C,cy:M,x0:-f,y0:-c,x1:C*(i/b-1),y1:M*(i/b-1)}}function gE(r){var e;if(U(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 mE(r,e){var t,n=mo(e.r,0),i=mo(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=Lg(u-l),d=v>hc&&v%hc;if(d>Qt&&(v=d),!(n>Qt))r.moveTo(f,c);else if(v>hc-Qt)r.moveTo(f+n*Hi(l),c+n*Wn(l)),r.arc(f,c,n,l,u,!h),i>Qt&&(r.moveTo(f+i*Hi(u),c+i*Wn(u)),r.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=void 0,M=void 0,T=void 0,D=void 0,I=void 0,A=void 0,L=void 0,O=n*Hi(l),P=n*Wn(l),N=i*Hi(u),R=i*Wn(u),k=v>Qt;if(k){var F=e.cornerRadius;F&&(t=gE(F),p=t[0],g=t[1],m=t[2],y=t[3]);var V=Lg(n-i)/2;if(_=pr(V,m),S=pr(V,y),b=pr(V,p),w=pr(V,g),M=x=mo(_,S),T=C=mo(b,w),(x>Qt||C>Qt)&&(D=n*Hi(u),I=n*Wn(u),A=i*Hi(l),L=i*Wn(l),v<cS)){var X=pE(O,P,A,L,D,I,N,R);if(X){var Z=O-X[0],W=P-X[1],J=D-X[0],fe=I-X[1],Pe=1/Wn(dE((Z*J+W*fe)/(Mo(Z*Z+W*W)*Mo(J*J+fe*fe)))/2),ze=Mo(X[0]*X[0]+X[1]*X[1]);M=pr(x,(n-ze)/(Pe+1)),T=pr(C,(i-ze)/(Pe-1))}}}if(!k)r.moveTo(f+O,c+P);else if(M>Qt){var xe=pr(m,M),Le=pr(y,M),se=Ns(A,L,O,P,n,xe,h),he=Ns(D,I,N,R,n,Le,h);r.moveTo(f+se.cx+se.x0,c+se.cy+se.y0),M<x&&xe===Le?r.arc(f+se.cx,c+se.cy,M,nt(se.y0,se.x0),nt(he.y0,he.x0),!h):(xe>0&&r.arc(f+se.cx,c+se.cy,xe,nt(se.y0,se.x0),nt(se.y1,se.x1),!h),r.arc(f,c,n,nt(se.cy+se.y1,se.cx+se.x1),nt(he.cy+he.y1,he.cx+he.x1),!h),Le>0&&r.arc(f+he.cx,c+he.cy,Le,nt(he.y1,he.x1),nt(he.y0,he.x0),!h))}else r.moveTo(f+O,c+P),r.arc(f,c,n,l,u,!h);if(!(i>Qt)||!k)r.lineTo(f+N,c+R);else if(T>Qt){var xe=pr(p,T),Le=pr(g,T),se=Ns(N,R,D,I,i,-Le,h),he=Ns(O,P,A,L,i,-xe,h);r.lineTo(f+se.cx+se.x0,c+se.cy+se.y0),T<C&&xe===Le?r.arc(f+se.cx,c+se.cy,T,nt(se.y0,se.x0),nt(he.y0,he.x0),!h):(Le>0&&r.arc(f+se.cx,c+se.cy,Le,nt(se.y0,se.x0),nt(se.y1,se.x1),!h),r.arc(f,c,i,nt(se.cy+se.y1,se.cx+se.x1),nt(he.cy+he.y1,he.cx+he.x1),h),xe>0&&r.arc(f+he.cx,c+he.cy,xe,nt(he.y1,he.x1),nt(he.y0,he.x0),!h))}else r.lineTo(f+N,c+R),r.arc(f,c,i,u,l,h)}r.closePath()}}}var yE=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}(),Dr=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yE},e.prototype.buildPath=function(t,n){mE(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(be);Dr.prototype.type="sector";var _E=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),tf=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new _E},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(be);tf.prototype.type="ring";function SE(r,e,t,n){var i=[],a=[],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++)ra(f,f,r[h]),na(c,c,r[h]);ra(f,f,n[0]),na(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){i.push(kx(r[h]));continue}else l=r[h-1],u=r[h+1];Vx(a,u,l),Cf(a,a,e);var p=hh(d,l),g=hh(d,u),m=p+g;m!==0&&(p/=m,g/=m),Cf(o,a,-p),Cf(s,a,g);var y=cp([],d,o),_=cp([],d,s);n&&(na(y,y,f),ra(y,y,c),na(_,_,f),ra(_,_,c)),i.push(y),i.push(_)}return t&&i.push(i.shift()),i}function hS(r,e,t){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=SE(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var bE=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Va=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new bE},e.prototype.buildPath=function(t,n){hS(t,n,!0)},e}(be);Va.prototype.type="polygon";var wE=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Mi=function(r){H(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 wE},e.prototype.buildPath=function(t,n){hS(t,n,!1)},e}(be);Mi.prototype.type="polyline";var xE={},TE=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Er=function(r){H(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 TE},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=$_(xE,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(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}(be);Er.prototype.type="line";var mt=[],CE=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 Og(r,e,t){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(t?Tp:Je)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Tp:Je)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Cp:St)(r.x1,r.cpx1,r.x2,e),(t?Cp:St)(r.y1,r.cpy1,r.y2,e)]}var ud=function(r){H(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 CE},e.prototype.buildPath=function(t,n){var i=n.x1,a=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(i,a),f==null||c==null?(h<1&&($l(i,l,o,h,mt),l=mt[1],o=mt[2],$l(a,u,s,h,mt),u=mt[1],s=mt[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(Xl(i,l,f,o,h,mt),l=mt[1],f=mt[2],o=mt[3],Xl(a,u,c,s,h,mt),u=mt[1],c=mt[2],s=mt[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return Og(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=Og(this.shape,t,!0);return Fx(n,n)},e}(be);ud.prototype.type="bezier-curve";var DE=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}(),rf=function(r){H(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 DE},e.prototype.buildPath=function(t,n){var i=n.cx,a=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+i,c*o+a),t.arc(i,a,o,s,l,!u)},e}(be);rf.prototype.type="arc";var EE=function(r){H(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(),i=0;i<t.length;i++)n=n||t[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(n[0],n[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(t,i[a].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),be.prototype.getBoundingRect.call(this)},e}(be),vS=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),nf=function(r){H(e,r);function e(t,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(vS),ME=function(r){H(e,r);function e(t,n,i,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(vS),vc=Math.min,AE=Math.max,ks=Math.abs,Yn=[0,0],Xn=[0,0],We=r_(),Vs=We.minTv,Bs=We.maxTv,dS=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new le;for(var n=0;n<2;n++)this._axes[n]=new le;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);le.sub(i[0],n[1],n[0]),le.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(e,t,n){var i=!0,a=!t;return t&&le.set(t,0,0),We.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!We.negativeSize&&le.copy(t,i?We.useDir?We.dirMinTv:Vs:Bs),i},r.prototype._intersectCheckOneSide=function(e,t,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Yn),e._getProjMinMaxOnAxis(o,t._corners,Xn),We.negativeSize||Yn[1]<Xn[0]||Yn[0]>Xn[1]){if(a=!1,We.negativeSize||n)return a;var l=ks(Xn[0]-Yn[1]),u=ks(Yn[0]-Xn[1]);vc(l,u)>Bs.len()&&(l<u?le.scale(Bs,s,-l*i):le.scale(Bs,s,u*i))}else if(!n){var l=ks(Xn[0]-Yn[1]),u=ks(Yn[0]-Xn[1]);(We.useDir||vc(l,u)<Vs.len())&&((l<u||!We.bidirectional)&&(le.scale(Vs,s,l*i),We.useDir&&We.calcDirMTV()),(l>=u||!We.bidirectional)&&(le.scale(Vs,s,-u*i),We.useDir&&We.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(i)+a[e];s=vc(f,s),l=AE(f,l)}n[0]=s+We.touchThreshold,n[1]=l-We.touchThreshold,We.negativeSize=n[1]<n[0]},r}(),pS=0,IE=1,LE=2,OE=1,Dl=0,PE=[],RE=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=IE,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],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 ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(PE)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(fs),NE=we();function kE(r,e,t,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=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=Q(n.duration,200),f=Q(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),re(c)&&(c=c(t,i)),re(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function fd(r,e,t,n,i,a,o){var s=!1,l;re(i)?(o=a,a=i,i=null):j(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=kE(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):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:a,force:!!a||!!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),a&&a()}function Be(r,e,t,n,i,a){fd("update",r,e,t,n,i,a)}function Ze(r,e,t,n,i,a){fd("enter",r,e,t,n,i,a)}function Ao(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function iu(r,e,t,n,i,a){Ao(r)||fd("leave",r,e,t,n,i,a)}function Pg(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),iu(r,{style:{opacity:0}},e,t,n)}function Io(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||Pg(i,e,t,n)}):Pg(r,e,t,n)}function Yo(r){NE(r).oldStyle=r.style}var Xh={},Nr=["x","y"],Tn=["width","height"],gS=0,mS=1,af=2;function VE(r){return be.extend(r)}var BE=fE;function zE(r,e){return BE(r,e)}function sr(r,e){Xh[r]=e}function FE(r){if(Xh.hasOwnProperty(r))return Xh[r]}function cd(r,e,t,n){var i=uE(r,e);return t&&(n==="center"&&(t=_S(t,i.getBoundingRect())),SS(i,t)),i}function yS(r,e,t){var n=new Kt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var a={width:i.width,height:i.height};n.setStyle(_S(e,a))}}});return n}function _S(r,e){var t=e.width/e.height,n=r.height*t,i;n<=r.width?i=r.height:(n=r.width,i=n/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var $h=cE;function SS(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Xo(r,e){return $_(r,r,{lineWidth:e}),r}function HE(r,e){return Z_(r,r,e),r}var GE=oi;function El(r,e){for(var t=ss([]);r&&r!==e;)fi(t,r.getLocalTransform(),t),r=r.parent;return t}function va(r,e,t){return e&&!xt(e)&&(e=Ci.getLocalTransform(e)),t&&(e=Ti([],e)),ot([],r,e)}function bS(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:ke(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:ke(2*e[4]/e[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=va(a,e,t),ke(a[0])>ke(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Rg(r){return!r.isGroup}function UE(r){return r.shape!=null}function wS(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){Rg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return UE(o)&&(s.shape=ie(o.shape)),s}var a=n(r);e.traverse(function(o){if(Rg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Be(o,l,t,ve(o).dataIndex)}}})}function WE(r,e){return q(r,function(t){var n=t[0];n=ye(n,e.x),n=st(n,e.x+e.width);var i=t[1];return i=ye(i,e.y),i=st(i,e.y+e.height),[n,i]})}function YE(r,e){var t=ye(r.x,e.x),n=st(r.x+r.width,e.x+e.width),i=ye(r.y,e.y),a=st(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function hd(r,e,t){var n=G({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),ce(i,t),new Kt(n)):cd(r.replace("path://",""),n,t,"center")}function XE(r,e,t,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(xS(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function xS(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,c=s-a,h=dc(f,c,l,u);if($E(h))return!1;var v=r-i,d=e-a,p=dc(v,d,l,u)/h;if(p<0||p>1)return!1;var g=dc(v,d,f,c)/h;return!(g<0||g>1)}function dc(r,e,t,n){return r*n-t*e}function $E(r){return r<=1e-6&&r>=-1e-6}function au(r,e,t,n,i){return e==null||(_e(e)?Me[0]=Me[1]=Me[2]=Me[3]=e:(process.env.NODE_ENV!=="production"&&B(e.length===4),Me[0]=e[0],Me[1]=e[1],Me[2]=e[2],Me[3]=e[3]),n&&(Me[0]=ye(0,Me[0]),Me[1]=ye(0,Me[1]),Me[2]=ye(0,Me[2]),Me[3]=ye(0,Me[3])),t&&(Me[0]=-Me[0],Me[1]=-Me[1],Me[2]=-Me[2],Me[3]=-Me[3]),Ng(r,Me,"x","width",3,1,i&&i[0]||0),Ng(r,Me,"y","height",0,2,i&&i[1]||0)),r}var Me=[0,0,0,0];function Ng(r,e,t,n,i,a,o){var s=e[a]+e[i],l=r[n];r[n]+=s,o=ye(0,st(o,l)),r[n]<o?(r[n]=o,r[t]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:ke(s)>1e-8?(l-o)*e[i]/s:0):r[t]-=e[i]}function of(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=K(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&E(De(l),function(f){pt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ce({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Zh(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function hs(r,e){if(r)if(U(r))for(var t=0;t<r.length;t++)Zh(r[t],e);else Zh(r,e)}function vd(r){return!r||ke(r[1])<zs&&ke(r[2])<zs||ke(r[0])<zs&&ke(r[3])<zs}var zs=1e-5;function $o(r,e){return r?ne.copy(r,e):e.clone()}function dd(r,e){return e?Bo(r||Xe(),e):void 0}function Zo(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function ZE(r){var e=-1/0,t=1/0;Zh(r,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function TS(r,e,t){CS(r,e,t,-1/0)}function CS(r,e,t,n){if(r.ignoreModelZ)return n;var i=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=ye(CS(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=ye(r.z2||0,n);if(i&&(i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+2)),a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function pd(r){return r.animation={duration:0},r}function sf(r,e){return e?Bo(yo.transform,e):ss(yo.transform),yo.decomposeTransform(),Yr(r,yo),r}var yo=new Ci;yo.transform=Xe();function qE(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}sr("circle",cs);sr("ellipse",ld);sr("sector",Dr);sr("ring",tf);sr("polygon",Va);sr("polyline",Mi);sr("rect",Ce);sr("line",Er);sr("bezierCurve",ud);sr("arc",rf);const DS=Object.freeze(Object.defineProperty({__proto__:null,Arc:rf,BezierCurve:ud,BoundingRect:ne,Circle:cs,CompoundPath:EE,Ellipse:ld,Group:Ee,HOVER_LAYER_FOR_INCREMENTAL:af,HOVER_LAYER_FROM_THRESHOLD:mS,HOVER_LAYER_NO:gS,Image:Kt,IncrementalDisplayable:RE,Line:Er,LinearGradient:nf,OrientedBoundingRect:dS,Path:be,Point:le,Polygon:Va,Polyline:Mi,RadialGradient:ME,Rect:Ce,Ring:tf,Sector:Dr,Text:Ae,WH:Tn,XY:Nr,applyTransform:va,calcZ2Range:ZE,clipPointsByRect:WE,clipRectByRect:YE,createIcon:hd,decomposeTransform:sf,ensureCopyRect:$o,ensureCopyTransform:dd,expandOrShrinkRect:au,extendPath:zE,extendShape:VE,getCurrentCanvasPainter:qE,getShapeClass:FE,getTransform:El,groupTransition:wS,initProps:Ze,isBoundingRectAxisAligned:vd,isElementRemoved:Ao,lineLineIntersect:xS,linePolygonIntersect:XE,makeImage:yS,makePath:cd,mergePath:$h,payloadDisableAnimation:pd,registerShape:sr,removeElement:iu,removeElementWithFadeOut:Io,resizePath:SS,retrieveZInfo:Zo,setTooltipConfig:of,subPixelOptimize:GE,subPixelOptimizeLine:Xo,subPixelOptimizeRect:HE,transformDirection:bS,traverseElements:hs,traverseUpdateZ:TS,updateProps:Be},Symbol.toStringTag,{value:"Module"}));var lf={};function ES(r,e){for(var t=0;t<Zt.length;t++){var n=Zt[t],i=e[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function qh(r,e,t){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=re(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<Zt.length;u++){var f=Zt[u],c=e[f];l[f]=Q(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Kr(r,e,t,n){t=t||lf;for(var i=r instanceof Ae,a=!1,o=0;o<tu.length;o++){var s=e[tu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Ae,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=qh(t,e),f=e.normal,c=!!f.getShallow("show"),h=et(f,n&&n.normal,t,!1,!i);h.text=u.normal,i||r.setTextConfig(kg(f,t,!1));for(var o=0;o<Zt.length;o++){var v=Zt[o],s=e[v];if(s){var d=l.ensureState(v),p=!!Q(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=et(s,n&&n[v],t,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=kg(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&&(vs(l).setLabelText=function(m){var y=qh(t,e,m);ES(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Mr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Zt.length;n++){var i=Zt[n];t[i]=r.getModel([i,e])}return t}function et(r,e,t,n,i){var a={};return KE(a,r,t,n,i),e&&G(a,e),a}function kg(r,e,t){e=e||{};var n={},i,a=r.getShallow("rotate"),o=Q(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function KE(r,e,t,n,i){t=t||lf;var a=e.ecModel,o=a&&a.option.textStyle,s=jE(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);Fg(l[c]={},h,o,e,f,t,n,i,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=_e(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=sa.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=Hv(m),p.__marginType=sa.textMargin)}Fg(r,e,o,null,null,t,n,i,!0,!1)}function jE(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||lf).rich;if(t){e=e||{};for(var n=De(t),i=0;i<n.length;i++){var a=n[i];e[a]=1}}r=r.parentModel}return e}var Vg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Bg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],zg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Fg(r,e,t,n,i,a,o,s,l,u){t=!o&&t||lf;var f=a&&a.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=Q(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&He("color: 'auto'","color: 'inherit'"),f?c=f:c=null),(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&He("color: 'auto'","color: 'inherit'"),f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=Q(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Q(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=Q(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var m=0;m<Vg.length;m++){var y=Vg[m],_=i!==!1&&n?br(e.getShallow(y),n.getShallow(y),t[y]):Q(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var m=0;m<Bg.length;m++){var y=Bg[m],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<zg.length;m++){var y=zg[m],_=e.getShallow(y);_!=null&&(r[y]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&He("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&He("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=f)}}function QE(r,e){var t=e&&e.getModel("textStyle");return _r([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 vs=we();function MS(r,e,t,n){if(r){var i=vs(r);i.prevValue=i.value,i.value=t;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function JE(r,e,t,n,i){var a=vs(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Q(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=P_(t,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var h=qh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);ES(r,h)}r.percent=0,(a.prevValue==null?Ze:Be)(r,{percent:1},n,e,null,u)}var sa={minMargin:1,textMargin:2},eM=["textStyle","color"],pc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gc=new Ae,tM=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(eM):null)},r.prototype.getFont=function(){return QE({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<pc.length;n++)t[pc[n]]=this.getShallow(pc[n]);return gc.useStyle(t),gc.update(),gc.getBoundingRect()},r}(),AS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],rM=Ho(AS),nM=function(){function r(){}return r.prototype.getLineStyle=function(e){return rM(this,e)},r}(),IS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],iM=Ho(IS),aM=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return iM(this,e,t)},r}(),Ie=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){me(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,i=n==null?n:n[e];if(i==null&&!t){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},r.prototype.getModel=function(e,t){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,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(ie(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!ue.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();Jv(Ie);UC(Ie);Mt(Ie,nM);Mt(Ie,aM);Mt(Ie,ZC);Mt(Ie,tM);var oM=Math.round(Math.random()*10);function ds(r){return[r||"",oM++].join("_")}function sM(r){var e={};r.registerSubTypeDefaulter=function(t,n){var i=Sr(t);e[i.main]=n},r.determineSubType=function(t,n){var i=n.type;if(!i){var a=Sr(t).main;r.hasSubTypes(t)&&e[a]&&(i=e[a](n))}return i}}function lM(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(E(a,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),E(d.successor,p?m:g)}E(h,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Jl("Circular dependency may exists: ",h,a,o)),new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,g(y)}};function t(a){var o={},s=[];return E(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),E(c,function(h){de(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);de(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return E(a,function(l){de(o,l)>=0&&s.push(l)}),s}}function uf(r,e){return me(me({},r,!0),e,!0)}const uM={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},fM={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ou="ZH",gd="EN",da=gd,Ml={},md={},LS=ue.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||da).toUpperCase();return r.indexOf(ou)>-1?ou:da}():da;function OS(r,e){r=r.toUpperCase(),md[r]=new Ie(e),Ml[r]=e}function cM(r){if(K(r)){var e=Ml[r.toUpperCase()]||{};return r===ou||r===gd?ie(e):me(ie(e),ie(Ml[da]),!1)}else return me(ie(r),ie(Ml[da]),!1)}function hM(r){return md[r]}function vM(){return md[da]}OS(gd,uM);OS(ou,fM);var dM=null;function ps(){return dM}function PS(r,e){var t=ps(),n=e.breakOption,i=e.breakParsed;return!i&&t&&(i=t.parseAxisBreakOption(n,r)),i}function yd(r){var e=r.brk;return e?e.breaks:[]}function bi(r){var e=r.brk;return e?e.hasBreaks():!1}var _d=1e3,Sd=_d*60,Lo=Sd*60,Gt=Lo*24,Hg=Gt*365,pM={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Al={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},gM="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Fs="{yyyy}-{MM}-{dd}",Gg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Fs,hour:Fs+" "+Al.hour,minute:Fs+" "+Al.minute,second:Fs+" "+Al.second,millisecond:gM},pi=["year","month","day","hour","minute","second","millisecond"],mM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yM(r){return!K(r)&&!re(r)?_M(r):r}function _M(r){r=r||{};var e={},t=!0;return E(pi,function(n){t&&(t=r[n]==null)}),E(pi,function(n,i){var a=r[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=pi[s],u=j(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):K(u)?(o=u,f=[o]):(o==null?o=Al[n]:pM[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function nn(r,e){return r+="","0000".substr(0,e-r.length)+r}function Oo(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 SM(r){return r===Oo(r)}function bM(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ff(r,e,t,n){var i=Ra(r),a=i[RS(t)](),o=i[bd(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[wd(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[xd(t)](),c=(f-1)%12+1,h=i[Td(t)](),v=i[Cd(t)](),d=i[Dd(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ie?n:hM(n||LS)||vM(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,nn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,nn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,nn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,nn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,nn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,nn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,nn(d,3)).replace(/{S}/g,d+"")}function wM(r,e,t,n,i){var a=null;if(K(t))a=t;else if(re(t)){var o={time:r.time,level:r.time?r.time.level:0},s=ps();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Il(r.value,i);a=t[f][f][0]}}return ff(new Date(r.value),a,i,n)}function Il(r,e){var t=Ra(r),n=t[bd(e)]()+1,i=t[wd(e)](),a=t[xd(e)](),o=t[Td(e)](),s=t[Cd(e)](),l=t[Dd(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Kh(r,e,t){switch(e){case"year":r[NS(t)](0);case"month":r[kS(t)](1);case"day":r[VS(t)](0);case"hour":r[BS(t)](0);case"minute":r[zS(t)](0);case"second":r[FS(t)](0)}return r}function RS(r){return r?"getUTCFullYear":"getFullYear"}function bd(r){return r?"getUTCMonth":"getMonth"}function wd(r){return r?"getUTCDate":"getDate"}function xd(r){return r?"getUTCHours":"getHours"}function Td(r){return r?"getUTCMinutes":"getMinutes"}function Cd(r){return r?"getUTCSeconds":"getSeconds"}function Dd(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xM(r){return r?"setUTCFullYear":"setFullYear"}function NS(r){return r?"setUTCMonth":"setMonth"}function kS(r){return r?"setUTCDate":"setDate"}function VS(r){return r?"setUTCHours":"setHours"}function BS(r){return r?"setUTCMinutes":"setMinutes"}function zS(r){return r?"setUTCSeconds":"setSeconds"}function FS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function HS(r){if(!D_(r))return K(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function GS(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 gs=Hv;function jh(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&_r(f)?f:"-"}function a(f){return Dt(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Ra(r):r;if(isNaN(+l)){if(s)return"-"}else return ff(l,n,t)}if(e==="ordinal")return Fl(r)?i(r):_e(r)&&a(r)?r+"":"-";var u=Ql(r);return a(u)?HS(u):Fl(r)?i(r):typeof r=="boolean"?r+"":"-"}var Ug=["a","b","c","d","e","f","g"],mc=function(r,e){return"{"+r+(e??"")+"}"};function US(r,e,t){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Ug[a];r=r.replace(mc(o),mc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(mc(Ug[l],s),t?_t(u):u)}return r}function TM(r,e){var t=K(r)?{color:r,extraCssText:e}:r||{},n=t.color,i=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+_t(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+_t(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function wi(r,e){return e=e||"transparent",K(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Wg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ll={},yc={},ms=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ll,!0),this._normalMasterList=n(yc,!1);function n(i,a){var o=[];return E(i,function(s,l){var u=s.create(e,t);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&a&&E(u,function(f){return B(!f.update)})}),o}},r.prototype.update=function(e,t){E(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Ll[e]=t;return}yc[e]=t},r.get=function(e){return yc[e]||Ll[e]},r}();function CM(r){return!!Ll[r]}var DM=1,WS=2;function EM(r){process.env.NODE_ENV!=="production"&&B(!Qh.get(r.fullType)),Qh.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Qh=ee();function YS(r){var e=r.getShallow("coord",!0),t=DM;if(e==null){var n=Qh.get(r.type);n&&n.getCoord2&&(t=WS,e=n.getCoord2(r))}return{coord:e,from:t}}var pa=0,Ol=1,MM=2;function AM(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),i=n!=null,a=pa;if(t){var o=r.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=Ol,o||(process.env.NODE_ENV!=="production"&&i&&e&&Se('coordinateSystemUsage "data" is not supported in non-series components.'),a=pa)):n==="box"&&(a=MM,!o&&!CM(t)&&(process.env.NODE_ENV!=="production"&&i&&e&&Se('coordinateSystem "'+t+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+r.type+'" yet.')),a=pa))}return{coordSysType:t,kind:a}}function IM(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,i=r.isDefaultDataCoordSys,a=r.allowNotFound;process.env.NODE_ENV!=="production"&&B(!!t);var o=AM(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==Ol&&(s=Ol,l=t),s===pa||l!==t)return pa;var u=n(t,e);return u?(s===Ol?(process.env.NODE_ENV!=="production"&&B(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,s):(process.env.NODE_ENV!=="production"&&(a||Se(t+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),pa)}var Pl=E,LM=["left","right","top","bottom","width","height"],Hs=[["width","left","right"],["height","top","bottom"]];function Ed(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=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=a+p,v>n||l.newline?(a=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>i||l.newline?(a+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=d+t)})}var ga=Ed;Oe(Ed,"vertical");Oe(Ed,"horizontal");function OM(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function PM(r,e){var t=Ai(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),i,a;if(t.type===_o.point)a=t.refPoint,i=nr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];i=nr(n,t.refContainer),a=t.boxCoordFrom===WS?t.refPoint:[ae(s[0],i.width)+i.x,ae(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function RM(r,e){var t=PM(r,e),n=t.viewRect,i=t.center,a=r.get("radius");U(a)||(a=[0,a]);var o=ae(n.width,e.getWidth()),s=ae(n.height,e.getHeight()),l=Math.min(o,s),u=ae(a[0],l/2),f=ae(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function nr(r,e,t){t=gs(t||0);var n=e.width,i=e.height,a=ae(r.left,n),o=ae(r.top,i),s=ae(r.right,n),l=ae(r.bottom,i),u=ae(r.width,n),f=ae(r.height,i),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ne((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}var _o={rect:1,point:2};function Ai(r,e,t){var n,i,a,o=r.boxCoordinateSystem,s;if(o){var l=YS(r),u=l.coord,f=l.from;if(o.dataToLayout){a=_o.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint?(a=_o.point,s=f,i=o.dataToPoint(u)):process.env.NODE_ENV!=="production"&&Se(r.type+"["+r.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=_o.rect),a===_o.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function NM(r,e,t,n,i,a){a=a||r,a.x=r.x,a.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=nr(ce({width:o.width,height:o.height},e),t,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===r&&r.markRedraw(),!0}function qo(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function Cn(r,e,t){var n=t&&t.ignoreSize;!U(n)&&(n=[n,n]);var i=o(Hs[0],0),a=o(Hs[1],1);l(Hs[0],r,i),l(Hs[1],r,a);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Pl(u,function(y){v[y]=r[y]}),Pl(u,function(y){pt(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!pt(c,m)&&pt(r,m)){c[m]=r[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Pl(u,function(h){f[h]=c[h]})}}function ys(r){return kM({},r)}function kM(r,e){return e&&r&&Pl(LM,function(t){pt(e,t)&&(r[t]=e[t])}),r}var VM=we(),ge=function(r){H(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.uid=ds("ec_cpt_model"),a}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=qo(this),a=i?ys(t):{},o=n.getTheme();me(t,o.get(this.mainType)),me(t,this.getDefaultOption()),i&&Cn(t,a,i)},e.prototype.mergeOption=function(t,n){me(this.option,t,!0);var i=qo(this);i&&Cn(this.option,t,i)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!FC(t))return t.defaultOption;var n=VM(this);if(!n.defaultOption){for(var i=[],a=t;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=me(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return Na(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return OM(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ie);z_(ge,Ie);qu(ge);sM(ge);lM(ge,BM);function BM(r){var e=[];return E(ge.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=q(e,function(t){return Sr(t).main}),r!=="dataset"&&de(e,"dataset")<=0&&e.unshift("dataset"),e}var Y={color:{},darkColor:{},size:{}},Re=Y.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(Re,{primary:Re.neutral80,secondary:Re.neutral70,tertiary:Re.neutral60,quaternary:Re.neutral50,disabled:Re.neutral20,border:Re.neutral30,borderTint:Re.neutral20,borderShade:Re.neutral40,background:Re.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Re.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Re.neutral70,axisLineTint:Re.neutral40,axisTick:Re.neutral70,axisTickMinor:Re.neutral60,axisLabel:Re.neutral70,axisSplitLine:Re.neutral15,axisMinorSplitLine:Re.neutral05});for(var $n in Re)if(Re.hasOwnProperty($n)){var Yg=Re[$n];$n==="theme"?Y.darkColor.theme=Re.theme.slice():$n==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":$n.indexOf("accent")===0?Y.darkColor[$n]=ca(Yg,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Y.darkColor[$n]=ca(Yg,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Y.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var XS="";typeof navigator<"u"&&(XS=navigator.platform||"");var Gi="rgba(0, 0, 0, 0.2)",$S=Y.color.theme[0],zM=ca($S,null,null,.9);const ZS={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[zM,$S],aria:{decal:{decals:[{color:Gi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Gi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Gi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Gi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Gi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Gi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:XS.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 qe={Must:1,Might:2,Not:3},qS=we();function FM(r){qS(r).datasetMap=ee()}function HM(r,e,t){var n={},i=Md(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=qS(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),E(r,function(p,g){var m=j(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});E(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function GM(r,e,t){var n={},i=Md(r);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===jt||a===or)&&E(o,function(f,c){(j(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=jS(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===qe.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===qe.Not)&&(f.n=v),m(f)&&h[f.n]!==qe.Not)return f;g||(p===qe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Md(r){var e=r.get("data",!0);if(!e)return Na(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ht).models[0]}function UM(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Na(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ht).models}function KS(r,e){return jS(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function jS(r,e,t,n,i,a){var o,s=5;if(gt(r))return qe.Not;var l,u;if(n){var f=n[a];j(f)?(l=f.name,u=f.type):K(f)&&(l=f)}if(u!=null)return u==="ordinal"?qe.Must:qe.Not;if(e===ut){var c=r;if(t===Ei){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(e===jt){var p=r;if(!l)return qe.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===or){var m=r;if(!l)return qe.Not;var h=m[l];if(!h||gt(h))return qe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===At)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],_=us(g);if(!U(_))return qe.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=K(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?qe.Might:qe.Not;if(w&&b!=="-")return qe.Must}return qe.Not}var WM=ee();function YM(r,e,t){var n=WM.get(e);if(!n)return t;var i=n(r);if(!i)return t;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)B(xa(i[a]));return t.concat(i)}var Xg=we();we();var Ad=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var i=lt(this.get("color",!0)),a=this.get("colorLayer",!0);return $M(this,Xg,i,a,e,t,n)},r.prototype.clearColorPalette=function(){ZM(this,Xg)},r}();function XM(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 $M(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:XM(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function ZM(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Gs,$a,$g,_c="\0_ec_inner",Zg=1,qM={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},KM={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},su={};function jM(r){E(r,function(e,t){if(!ge.hasClass(t)){var n=qM[t];n&&!su[n]&&(Se("Component "+t+` is used but not imported.
|
|
30
|
+
import { `+n+` } from 'echarts/components';
|
|
31
|
+
echarts.use([`+n+"]);"),su[n]=!0)}})}var Id=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ie(a),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){process.env.NODE_ENV!=="production"&&(B(t!=null,"option is null/undefined"),B(t[_c]!==Zg,"please use chart.getOption()"));var a=jg(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,jg(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&jM(o),!this.option||t==="recreate"?$g(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&E(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ee(),u=n&&n.replaceMergeMainTypeMap;FM(this),E(t,function(c,h){c!=null&&(ge.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?ie(c):me(i[h],c,!0))}),u&&u.each(function(c,h){ge.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ge.topologicalTravel(s,ge.getAllClassMainTypes(),f,this);function f(c){var h=YM(this,c,lt(t[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=mC(v,h,d);TC(p,c,ge),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_,S;E(p,function(b,w){var x=b.existing,C=b.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var M=c==="series",T=ge.getClass(c,b.keyInfo.subType,!M);if(!T){if(process.env.NODE_ENV!=="production"){var D=b.keyInfo.subType,I=KM[D];su[D]||(su[D]=!0,Se(I?"Series "+D+` is used but not imported.
|
|
32
|
+
import { `+I+` } from 'echarts/charts';
|
|
33
|
+
echarts.use([`+I+"]);":"Unknown series "+D))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Ye("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(x&&x.constructor===T)x.name=b.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=G({componentIndex:w},b.keyInfo);x=new T(C,this,this,A),G(x,A),b.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Gs(this)}this._seriesIndices||Gs(this)},e.prototype.getOption=function(){var t=ie(this.option);return E(t,function(n,i){if(ge.hasClass(i)){for(var a=lt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!xa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[_c],t},e.prototype.setTheme=function(t){this._theme=new Ie(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var i=t.index,a=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],E(lt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=qg("id",a,s):o!=null?l=qg("name",o,s):l=Qe(s,function(u){return!!u}),Kg(l,t)},e.prototype.findComponents=function(t){var n=t.query,i=t.mainType,a=s(n),o=a?this.queryComponents(a):Qe(this._componentsMap.get(i),function(u){return!!u});return l(Kg(o,t));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?Qe(u,t.filter):u}},e.prototype.eachComponent=function(t,n,i){var a=this._componentsMap;if(re(t)){var o=n,s=t;a.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=K(t)?a.get(t):j(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=Yt(t,null);return Qe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Qe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Qe(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){$a(this),E(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];t.call(n,a,i)},this)},e.prototype.eachRawSeries=function(t,n){E(this._componentsMap.get("series"),function(i){i&&t.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,i){$a(this),E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,n,i){return E(this.getSeriesByType(t),n,i)},e.prototype.isSeriesFiltered=function(t){return $a(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){$a(this);var i=[];E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ee(i)},e.prototype.restoreData=function(t){Gs(this);var n=this._componentsMap,i=[];n.each(function(a,o){ge.hasClass(o)&&i.push(o)}),ge.topologicalTravel(i,ge.getAllClassMainTypes(),function(a){E(n.get(a),function(o){o&&(a!=="series"||!QM(o,t))&&o.restoreData()})})},e.internalField=function(){Gs=function(t){var n=t._seriesIndices=[];E(t._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),t._seriesIndicesMap=ee(n)},$a=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},$g=function(t,n){t.option={},t.option[_c]=Zg,t._componentsMap=ee({series:[]}),t._componentsCount=ee();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),JM(n,t._theme.option),me(n,ZS,!1),t._mergeOption(n,null)}}(),e}(Ie);function QM(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||i!=null&&r.name!==i}}function JM(r,e){var t=r.color&&!r.colorLayer;E(e,function(n,i){i==="colorLayer"&&t||i==="color"&&r.color||ge.hasClass(i)||(typeof n=="object"?r[i]=r[i]?me(r[i],n,!1):ie(n):r[i]==null&&(r[i]=n))})}function qg(r,e,t){if(U(e)){var n=ee();return E(e,function(a){if(a!=null){var o=Yt(a,null);o!=null&&n.set(a,!0)}}),Qe(t,function(a){return a&&n.get(a[r])})}else{var i=Yt(e,null);return Qe(t,function(a){return a&&i!=null&&a[r]===i})}}function Kg(r,e){return e.hasOwnProperty("subType")?Qe(r,function(t){return t&&t.subType===e.subType}):r}function jg(r){var e=ee();return r&&E(lt(r.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&B(ge.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Mt(Id,Ad);var eA=/^(min|max)?(.+)$/,tA=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(E(lt(e.series),function(o){o&&o.data&>(o.data)&&Hl(o.data)}),E(lt(e.dataset),function(o){o&&o.source&>(o.source)&&Hl(o.source)})),e=ie(e);var i=this._optionBackup,a=rA(e,t,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ie(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=ie(n[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)nA(i[l].query,t,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!aA(o,this._currentMediaIndices)&&(s=q(o,function(f){return ie(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function rA(r,e,t){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&(U(u)?E(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&j(v.query)&&j(v.query.option)&&Se("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&Se("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(a),E(l,function(v){return h(v)}),E(n,function(v){return h(v.option)});function h(v){E(e,function(d){d(v,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function nA(r,e,t){var n={width:e,height:t,aspectratio:e/t},i=!0;return E(r,function(a,o){var s=o.match(eA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iA(n[u],a,l)||(i=!1)}}),i}function iA(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function aA(r,e){return r.join(",")===e.join(",")}var It=E,Ko=j,Qg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sc(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Qg.length;t<n;t++){var i=Qg[t],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&He("itemStyle.normal."+i,i),r[i]=r[i]||{},r[i].normal?me(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&He("itemStyle.emphasis."+i,"emphasis."+i),r[i]=r[i]||{},r[i].emphasis?me(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function at(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,i=r[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&Zr("'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,ce(r[e],n)):r[e]=n),i&&(process.env.NODE_ENV!=="production"&&Zr(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function So(r){at(r,"itemStyle"),at(r,"lineStyle"),at(r,"areaStyle"),at(r,"label"),at(r,"labelLine"),at(r,"upperLabel"),at(r,"edgeLabel")}function Ve(r,e){var t=Ko(r)&&r[e],n=Ko(t)&&t.textStyle;if(n){process.env.NODE_ENV!=="production"&&Zr("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=Kp.length;i<a;i++){var o=Kp[i];n.hasOwnProperty(o)&&(t[o]=n[o])}}}function Nt(r){r&&(So(r),Ve(r,"label"),r.emphasis&&Ve(r.emphasis,"label"))}function oA(r){if(Ko(r)){Sc(r),So(r),Ve(r,"label"),Ve(r,"upperLabel"),Ve(r,"edgeLabel"),r.emphasis&&(Ve(r.emphasis,"label"),Ve(r.emphasis,"upperLabel"),Ve(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Sc(e),Nt(e));var t=r.markLine;t&&(Sc(t),Nt(t));var n=r.markArea;n&&Nt(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!gt(a))for(var o=0;o<a.length;o++)Nt(a[o]);E(r.categories,function(u){So(u)})}if(i&&!gt(i))for(var o=0;o<i.length;o++)Nt(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Nt(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)U(l[o])?(Nt(l[o][0]),Nt(l[o][1])):Nt(l[o]);r.type==="gauge"?(Ve(r,"axisLabel"),Ve(r,"title"),Ve(r,"detail")):r.type==="treemap"?(at(r.breadcrumb,"itemStyle"),E(r.levels,function(u){So(u)})):r.type==="tree"&&So(r.leaves)}}function Lr(r){return U(r)?r:r?[r]:[]}function Jg(r){return(U(r)?r[0]:r)||{}}function sA(r,e){It(Lr(r.series),function(n){Ko(n)&&oA(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),It(t,function(n){It(Lr(r[n]),function(i){i&&(Ve(i,"axisLabel"),Ve(i.axisPointer,"label"))})}),It(Lr(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Ve(i,"axisLabel"),Ve(i&&i.axisPointer,"label")}),It(Lr(r.calendar),function(n){at(n,"itemStyle"),Ve(n,"dayLabel"),Ve(n,"monthLabel"),Ve(n,"yearLabel")}),It(Lr(r.radar),function(n){Ve(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Zr("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"&&Zr("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&It(n.indicator,function(i){i.text&&He("text","name","radar.indicator")})}),It(Lr(r.geo),function(n){Ko(n)&&(Nt(n),It(Lr(n.regions),function(i){Nt(i)}))}),It(Lr(r.timeline),function(n){Nt(n),at(n,"label"),at(n,"itemStyle"),at(n,"controlStyle",!0);var i=n.data;U(i)&&E(i,function(a){j(a)&&(at(a,"label"),at(a,"itemStyle"))})}),It(Lr(r.toolbox),function(n){at(n,"iconStyle"),It(n.feature,function(i){at(i,"iconStyle")})}),Ve(Jg(r.axisPointer),"label"),Ve(Jg(r.tooltip).axisPointer,"label")}function lA(r,e){for(var t=e.split(","),n=r,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function uA(r,e,t,n){for(var i=e.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=t)}function em(r){r&&E(fA,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var fA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],bc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Za(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<bc.length;t++){var n=bc[t][1],i=bc[t][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&He(n,i))}}function tm(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&He("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function rm(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&He("downplay","blur","sunburst"))}function hA(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&He("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function QS(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&QS(r[t].children,e)}function JS(r,e){sA(r,e),r.series=lt(r.series),E(r.series,function(t){if(j(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&He("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&He("clockWise","clockwise")),tm(t.label);var i=t.data;if(i&&!gt(i))for(var a=0;a<i.length;a++)tm(i[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&He("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=lA(t,"pointer.color");o!=null&&uA(t,"itemStyle.color",o)}else if(n==="bar"){Za(t),Za(t.backgroundStyle),Za(t.emphasis);var i=t.data;if(i&&!gt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Za(i[a]),Za(i[a]&&i[a].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"&&He("highlightPolicy","emphasis.focus","sunburst"))),rm(t),QS(t.data,rm)}else n==="graph"||n==="sankey"?hA(t):n==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&He("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&Zr("`mapLocation` is not used anymore."),ce(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&He("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),em(t)}}),r.dataRange&&(r.visualMap=r.dataRange),E(cA,function(t){var n=r[t];n&&(U(n)||(n=[n]),E(n,function(i){em(i)}))})}var vA=Qv(dA);function dA(r){var e=ee();r.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&t.reverse(),E(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),pA(t)}})}function pA(r){E(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;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 m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=ti(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var cf=function(){function r(e){this.data=e.data||(e.sourceFormat===or?{}:[]),this.sourceFormat=e.sourceFormat||q_,this.seriesLayoutBy=e.seriesLayoutBy||tr,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 i=t[n];i.type==null&&KS(this,n)===qe.Must&&(i.type="ordinal")}}return r}();function Ld(r){return r instanceof cf}function Jh(r,e,t){t=t||e1(r);var n=e.seriesLayoutBy,i=mA(r,t,n,e.sourceHeader,e.dimensions),a=new cf({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ie(e)});return a}function Od(r){return new cf({data:r,sourceFormat:gt(r)?Hr:At})}function gA(r){return new cf({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ie(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function e1(r){var e=q_;if(gt(r))e=Hr;else if(U(r)){r.length===0&&(e=ut);for(var t=0,n=r.length;t<n;t++){var i=r[t];if(i!=null){if(U(i)||gt(i)){e=ut;break}else if(j(i)){e=jt;break}}}}else if(j(r)){for(var a in r)if(pt(r,a)&&xt(r[a])){e=or;break}}return e}function mA(r,e,t,n,i){var a,o;if(!r)return{dimensionsDefine:nm(i),startIndex:o,dimensionsDetectedCount:a};if(e===ut){var s=r;n==="auto"||n==null?im(function(u){u!=null&&u!=="-"&&(K(u)?o==null&&(o=1):o=0)},t,s,10):o=_e(n)?n:n?1:0,!i&&o===1&&(i=[],im(function(u,f){i[f]=u!=null?u+"":""},t,s,1/0)),a=i?i.length:t===Ei?s.length:s[0]?s[0].length:null}else if(e===jt)i||(i=yA(r));else if(e===or)i||(i=[],E(r,function(u,f){i.push(f)}));else if(e===At){var l=us(r[0]);a=U(l)&&l.length||1}else e===Hr&&process.env.NODE_ENV!=="production"&&B(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:nm(i),dimensionsDetectedCount:a}}function yA(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return De(t)}function nm(r){if(r){var e=ee();return q(r,function(t,n){t=j(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function im(r,e,t,n){if(e===Ei)for(var i=0;i<t.length&&i<n;i++)r(t[i]?t[i][0]:null,i);else for(var a=t[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function t1(r){var e=r.sourceFormat;return e===jt||e===or}var Zn,qn,Kn,jn,am,om,r1=function(){function r(e,t){var n=Ld(e)?e:Od(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Hr){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=i}if(process.env.NODE_ENV!=="production"){var s=_A[lu(a,o)];s&&s(i,n.dimensionsDefine)}om(this,i,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;om=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=am[lu(u,f)];if(process.env.NODE_ENV!=="production"&&B(v,"Invalide sourceFormat: "+u),G(o,v),u===Hr)o.getItem=t,o.count=i,o.fillStorage=n;else{var d=n1(u,f);o.getItem=oe(d,null,s,c,h);var p=i1(u,f);o.count=oe(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,m=l[h],y=0;y<g;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};am=(e={},e[ut+"_"+tr]={pure:!0,appendData:a},e[ut+"_"+Ei]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[jt]={pure:!0,appendData:a},e[or]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[At]={appendData:a},e[Hr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&B(gt(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 a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Us=function(r){U(r)||Se("series.data or dataset.source must be an array.")},_A=(Zn={},Zn[ut+"_"+tr]=Us,Zn[ut+"_"+Ei]=Us,Zn[jt]=Us,Zn[or]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&Se("dimension name must not be null/undefined.")}},Zn[At]=Us,Zn),sm=function(r,e,t,n){return r[n]},SA=(qn={},qn[ut+"_"+tr]=function(r,e,t,n){return r[n+e]},qn[ut+"_"+Ei]=function(r,e,t,n,i){n+=e;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},qn[jt]=sm,qn[or]=function(r,e,t,n,i){for(var a=i||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[n]:null}return a},qn[At]=sm,qn);function n1(r,e){var t=SA[lu(r,e)];return process.env.NODE_ENV!=="production"&&B(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var lm=function(r,e,t){return r.length},bA=(Kn={},Kn[ut+"_"+tr]=function(r,e,t){return Math.max(0,r.length-e)},Kn[ut+"_"+Ei]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Kn[jt]=lm,Kn[or]=function(r,e,t){var n=t[0].name,i=n!=null?r[n]:null;return i?i.length:0},Kn[At]=lm,Kn);function i1(r,e){var t=bA[lu(r,e)];return process.env.NODE_ENV!=="production"&&B(t,'Do not support count on "'+r+'", "'+e+'".'),t}var wc=function(r,e,t){return r[e]},wA=(jn={},jn[ut]=wc,jn[jt]=function(r,e,t){return r[t]},jn[or]=wc,jn[At]=function(r,e,t){var n=us(r);return n instanceof Array?n[e]:n},jn[Hr]=wc,jn);function a1(r){var e=wA[r];return process.env.NODE_ENV!=="production"&&B(e,'Do not support get value on "'+r+'".'),e}function lu(r,e){return r===ut?r+"_"+e:r}function Da(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return a1(a)(n,o,s)}else{var l=n;return a===At&&(l=us(n)),l}}}}var xA=/\{@(.+?)\}/g,TA=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),a=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:a,data:s,dataType:t,value:i,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,i,a,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(re(a))return l.status=t,l.dimensionIndex=i,a(l);if(K(a)){var f=US(a,l);return f.replace(xA,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)&&Se("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var p=Da(s,e,d);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Da(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function um(r){var e,t;return j(r)?r.type?t=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Jl(r)):e=r,{text:e,frag:t}}function Po(r){return new CA(r)}var CA=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 i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="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"&&B(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&B(!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(U(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 m=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&B(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,i,a){fm.reset(t,n,i,a),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:fm.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),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&B(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}(),fm=function(){var r,e,t,n,i,a={reset:function(l,u,f,c){e=l,r=u,t=f,n=c,i=Math.ceil(n/t),a.next=t>1&&n>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<n?l:e;return e++,u}}();function Rl(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!_e(r)&&r!=null&&r!=="-"&&(r=+Ra(r)),r==null||r===""?NaN:Number(r))}ee({number:function(r){return parseFloat(r)},time:function(r){return+Ra(r)},trim:function(r){return K(r)?_r(r):r}});var DA=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=_e(e)?e:Ql(e),i=_e(t)?t:Ql(t),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=K(e),l=K(t);s&&(n=l?e:0),l&&(i=s?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}();function o1(r){var e="",t=-1/0,n=-1/0,i=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,i=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:n,l:i,le:a}}function s1(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var EA=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 Rl(e,t)},r}();function MA(r,e){var t=new EA,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==tr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),bt(o));var s=[],l={},u=r.dimensionsDefine;if(u)E(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";pt(l,m)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+m+'" duplicated.'),bt(_)),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=n1(i,tr);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(n,a,s,p)},t.getRawData=oe(AA,null,r)),t.cloneRawData=oe(IA,null,r);var h=i1(i,tr);t.count=oe(h,null,n,a,s);var v=a1(i);t.retrieveValue=function(p,g){var m=c(n,a,s,p);return d(m,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return t.getDimensionInfo=oe(LA,null,s,l),t.cloneAllDimensionInfo=oe(OA,null,s),t}function AA(r){var e=r.sourceFormat;if(!Pd(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),bt(t)}return r.data}function IA(r){var e=r.sourceFormat,t=r.data;if(!Pd(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),bt(n)}if(e===ut){for(var i=[],a=0,o=t.length;a<o;a++)i.push(t[a].slice());return i}else if(e===jt){for(var i=[],a=0,o=t.length;a<o;a++)i.push(G({},t[a]));return i}}function LA(r,e,t){if(t!=null){if(_e(t)||!isNaN(t)&&!pt(e,t))return r[t];if(pt(e,t))return e[t]}}function OA(r){return ie(r)}var l1=ee();function PA(r){r=ie(r);var e=r.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),bt(t));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),bt(t));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),r.__isBuiltIn=i,l1.set(e,r)}function RA(r,e,t){var n=lt(r),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),bt(a));for(var o=0,s=i;o<s;o++){var l=n[o];e=NA(l,e,t,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function NA(r,e,t,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),bt(i)),j(r)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof r+"."),bt(i));var a=r.type,o=l1.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),bt(i));var s=q(e,function(f){return MA(f,o)}),l=lt(o.transform({upstream:s[0],upstreamList:s,config:ie(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=q(l,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+t.datasetIndex+c+" ===","- transform result data:",Jl(f.data),"- transform result dimensions:",Jl(f.dimensions)].join(`
|
|
34
|
+
`)}).join(`
|
|
35
|
+
`);M_(u)}return q(l,function(f,c){var h="";j(f)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),bt(h)),f.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),bt(h));var v=e1(f.data);Pd(v)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),bt(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:tr,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:tr,sourceHeader:0,dimensions:f.dimensions};return Jh(f.data,d,null)})}function Pd(r){return r===ut||r===jt}var kA=typeof Uint32Array===ka?Array:Uint32Array,VA=typeof Uint16Array===ka?Array:Uint16Array,u1=typeof Int32Array===ka?Array:Int32Array,cm=typeof Float64Array===ka?Array:Float64Array,f1={float:cm,int:u1,ordinal:Array,number:Array,time:cm},xc;function Ui(r){return r>65535?kA:VA}function BA(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function hm(r,e,t,n,i){var a=f1[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(n)}var ev=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ee()}return r.prototype.initData=function(e,t,n){process.env.NODE_ENV!=="production"&&B(re(e.getItem)&&re(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=xc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=t1(i);this._dimensions=q(t,function(s){return process.env.NODE_ENV!=="production"&&o&&B(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,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===t)return a}else a=i.length;return i[a]={type:t},n.set(e,a),this._chunks[a]=new f1[t||"float"](this._rawCount),this._rawExtent[a]=Bt(),a},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Bt());for(var l=a[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]))}i.ordinalMeta=t,i.ordinalOffset=s,i.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"&&B(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=i[u];hm(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],p=xc.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 i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=q(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Bt()),hm(a,f,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,a,l);else for(var h=[],v=e;v<t;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.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=[],i=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],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 i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)}),Pa(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=t[a]}else e=new n(t.buffer,0,i)}else{var n=Ui(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ui(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;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<i&&(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 i=De(e),a=i.length;if(!a)return this;var o=t.count(),s=Ui(t._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(a===1){for(var g=v[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=h||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var x=t.getRawIndex(m),y=v[i[0]][x];(y>=c&&y<=h||isNaN(y))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=t.getRawIndex(m),M=0;M<a;M++){var T=i[M],y=v[T][x];(y<e[T][0]||y>e[T][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(m))}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 i=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Bt();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=i[t[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],m=u[p],y=i[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(Ui(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),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-p;var w=d,x=Math.min(d+l,o),C=d-1,M=a[u];f=-1,h=w;for(var T=-1,D=0,_=w;_<x;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,T<0&&(T=S);continue}c=Math.abs((C-m)*(b-M)-(C-_)*(y-M)),c>f&&(f=c,h=S)}D>0&&D<x-w&&(v[s++]=Math.min(T,h),h=Math.max(T,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.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/t),o=i[e],s=this.count(),l=new(Ui(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<h&&(h=y,c=f+g),y>d&&(d=y,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=a._rawExtent[e]=Bt(),h=new(Ui(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 m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:t(a);break;case 1:t(i[e[0]][s],a);break;case 2:t(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],i=Bt();if(!n)return i;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=o1(t),f=u.key,c=l[f];if(c)return c.slice();for(var h=i[0],v=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),g=n[p];(!t||s1(u,g))&&(g<h&&(h=g),g>v&&(v=g))}return l[f]=[h,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][t]);return n},r.prototype.clone=function(e,t){var n=new r,i=this._chunks,a=e&&xn(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?BA(i[o]):i[o];else n._chunks=i;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=ie(this._extent),e._rawExtent=ie(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 i=0;i<n;i++)t[i]=this._indices[i]}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,i,a){return Rl(t[a],this._dimensions[a])}xc={arrayRows:e,objectRows:function(t,n,i,a){return Rl(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return Rl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}(),c1=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,i,a;if(qa(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,a=[f._getVersionSign()]}else s=o.get("data",!0),l=gt(s)?Hr:At,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Q(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Q(c.sourceHeader,h.sourceHeader),p=Q(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[Jh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(t);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Jh(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&B(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&B(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),dm(a))}var o,s=[],l=[];return E(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+i),dm(c)),s.push(f),l.push(u._getVersionSign())}),n?o=RA(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[gA(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"&&B(qa(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 i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];qa(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new ev,s.initData(new r1(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(qa(e)){var t=Md(e);return t?[t.getSourceManager()]:[]}else return q(UM(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,i;if(qa(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:i}},r}();function vm(r){var e=r.option.transform;e&&Hl(r.option.transform)}function qa(r){return r.mainType==="series"}function dm(r){throw new Error(r)}var zA="line-height:1";function h1(r){var e=r.lineHeight;return e==null?zA:"line-height:"+_t(e+"")+"px"}function v1(r,e){var t=r.color||Y.color.tertiary,n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||Y.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+_t(n+"")+"px;color:"+_t(t)+";font-weight:"+_t(i+""),valueStyle:"font-size:"+_t(o+"")+"px;color:"+_t(a)+";font-weight:"+_t(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var FA=[0,10,20,30],HA=["",`
|
|
36
|
+
`,`
|
|
37
|
+
|
|
38
|
+
`,`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
`];function jr(r,e){return e.type=r,e}function tv(r){return r.type==="section"}function d1(r){return tv(r)?GA:UA}function p1(r){if(tv(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return E(r.blocks,function(i){var a=p1(i);a>=e&&(e=a+ +(n&&(!a||tv(i)&&!i.noHeader)))}),e}return 0}function GA(r,e,t,n){var i=e.noHeader,a=WA(p1(e)),o=[],s=e.blocks||[];B(!s||U(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(pt(u,l)){var f=new DA(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(p,g){var m=e.valueFormatter,y=d1(p)(m?G(G({},r),{valueFormatter:m}):r,p,g>0?a.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(a.richText):rv(n,o.join(""),i?t:a.html);if(i)return c;var h=jh(e.header,"ordinal",r.useUTC),v=v1(n,r.renderMode).nameStyle,d=h1(n);return r.renderMode==="richText"?g1(r,h,v)+a.richText+c:rv(n,'<div style="'+v+";"+d+';">'+_t(h)+"</div>"+c,t)}function UA(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],q(S,function(b,w){return jh(b,U(v)?v[w]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Y.color.secondary,i),h=a?"":jh(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,g=!s&&a,m=v1(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":g1(r,h,y))+(o?"":$A(r,d,p,g,_)):rv(n,(s?"":c)+(a?"":YA(h,!s,y))+(o?"":XA(d,p,g,_)),t)}}function pm(r,e,t,n,i,a){if(r){var o=d1(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function WA(r){return{html:FA[r],richText:HA[r]}}function rv(r,e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",a=h1(r);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function YA(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+_t(r)+"</span>"}function XA(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=U(r)?r:[r],'<span style="'+a+";"+n+'">'+q(r,function(o){return _t(o)}).join(" ")+"</span>"}function g1(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function $A(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(e)?e.join(" "):e,a)}function m1(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return wi(n)}function y1(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Tc=function(){function r(){this.richTextStyles={},this._nextStyleNameId=$v()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=TM({color:t,type:e,renderMode:n,markerId:i});return K(a)?a:(process.env.NODE_ENV!=="production"&&B(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?E(t,function(a){return G(n,a)}):G(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function ZA(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=U(s),u=m1(e,t),f,c,h,v;if(o>1||l&&!o){var d=qA(s,e,t,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Da(i,t,a[0]),c=p.type}else v=f=l?s[0]:s;var g=Zv(e),m=g&&e.name||"",y=i.getName(t),_=n?m:y;return jr("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[jr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!_r(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(t)})].concat(h||[])})}function qA(r,e,t,n,i){var a=e.getData(),o=xn(r,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?E(n,function(c){f(Da(a,t,c),c)}):E(r,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(jr("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var an=we();function Ws(r,e){return r.getName(e)||r.getId(e)}var KA="__universalTransitionEnabled",ft=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Po({count:QA,reset:JA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=an(this).sourceManager=new c1(this);a.prepareSource();var o=this.getInitialData(t,i);mm(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&B(o,"getInitialData returned invalid data."),an(this).dataBeforeProcessed=o,gm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=qo(this),a=i?ys(t):{},o=this.subType;ge.hasClass(o)&&(o+="Series"),me(t,n.getTheme().get(this.subType)),me(t,this.getDefaultOption()),Oh(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Cn(t,a,i)},e.prototype.mergeOption=function(t,n){t=me(this.option,t,!0),this.fillDataTextStyle(t.data);var i=qo(this);i&&Cn(this.option,t,i);var a=an(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);mm(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,an(this).dataBeforeProcessed=o,gm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!gt(t))for(var n=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Oh(t[i],"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=nv(this);if(n){var i=n.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return an(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=nv(this);if(n){var i=n.context;i.outputData=t,n!==this.dataTask&&(i.data=t)}an(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ee(t)},e.prototype.getSourceManager=function(){return an(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return an(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,h=-1,v=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&h<0)&&(c=b,h=S,v=0),S===h&&(f[v++]=g))}return f.length=v,f},e.prototype.formatTooltip=function(t,n,i){return ZA({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ue.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,i){var a=this.ecModel,o=Ad.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),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 i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Ws(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var i=[],a=0;a<t.length;a++)i[0]=t[a],this.isSelected(t[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=De(t),i=[],a=0;a<n.length;a++){var o=t[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ws(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[KA])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Ws(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=Ws(t,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=t.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(i){var a=t.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ge.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}(ge);Mt(ft,TA);Mt(ft,Ad);z_(ft,ge);function gm(r){var e=r.name;Zv(r)||(r.name=jA(r)||e)}function jA(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return E(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function QA(r){return r.model.getRawData().count()}function JA(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),eI}function eI(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function mm(r,e){E(Rx(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Oe(tI,e))})}function tI(r,e){var t=nv(r);return t&&t.setOutputEnd((e||this).count()),e}function nv(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var Tt=function(){function r(){this.group=new Ee,this.uid=ds("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Jv(Tt);qu(Tt);function Rd(){var r=we();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var _1=we(),rI=Rd(),tt=function(){function r(){this.group=new Ee,this.uid=ds("viewChart"),this.renderTask=Po({plan:nI,reset:iI}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Se("Unknown dataType "+i.dataType);return}_m(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Se("Unknown dataType "+i.dataType);return}_m(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){hs(this.group,e)},r.markUpdateMethod=function(e,t){_1(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function ym(r,e,t){r&&Ca(r)&&(e==="emphasis"?Uo:Wo)(r,t)}function _m(r,e,t){var n=_i(r,e),i=e&&e.highlightKey!=null?tE(e.highlightKey):null;n!=null?E(lt(n),function(a){ym(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){ym(a,t,i)})}Jv(tt,["dispose"]);qu(tt);function nI(r){return rI(r.model)}function iI(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&_1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),aI[l]}var aI={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)}}},uu="\0__throttleOriginMethod",Sm="\0__throttleRate",bm="\0__throttleType";function hf(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=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?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function S1(r,e,t,n){var i=r[e];if(i){var a=i[uu]||i,o=i[bm],s=i[Sm];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=hf(a,t,n==="debounce"),i[uu]=a,i[bm]=n,i[Sm]=t}return i}}function iv(r,e){var t=r[e];t&&t[uu]&&(t.clear&&t.clear(),r[e]=t[uu])}var wm=we(),xm={itemStyle:Ho(IS,!0),lineStyle:Ho(AS,!0)},oI={lineStyle:"stroke",itemStyle:"fill"};function b1(r,e){var t=r.visualStyleMapper||xm[e];return t||(console.warn("Unknown style type '"+e+"'."),xm.itemStyle)}function w1(r,e){var t=r.visualDrawType||oI[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var sI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=b1(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=w1(r,n),u=o[l],f=re(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"||re(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||re(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=G({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Ka=new Ie,lI={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=b1(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ka.option=l[n];var u=i(Ka),f=o.ensureUniqueItemVisual(s,"style");G(f,u),Ka.option.decal&&(o.setItemVisual(s,"decal",Ka.option.decal),Ka.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uI={performRawSeries:!0,overallReset:function(r){var e=ee();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();wm(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),i={},a=t.getData(),o=wm(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=w1(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},Ys=Math.PI;function fI(r,e){e=e||{},ce(e,{text:"loading",textColor:Y.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Y.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ee,n=new Ce({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new Ae({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ce({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new rf({shape:{startAngle:-Ys/2,endAngle:-Ys/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:Ys*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ys*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.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}),a.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 x1=function(){function r(e,t,n,i){this._stageTaskMap=ee(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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),i=e.__preparePipelineContext?e.__preparePipelineContext(t,n):V_(e,t,n);e.pipelineContext=n.context=i},r.prototype.restorePipelines=function(e,t){var n=this,i=n._pipelineMap=ee();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;E(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),B(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},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,i){i=i||{};var a=!1,o=this;E(e,function(l,u){if(!(i.visualType&&i.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(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(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,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ee(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Po({plan:pI,reset:gI,count:yI}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||Po({reset:cI});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ee(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),B(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):E(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Po({reset:hI,onDirty:dI})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return re(e)&&(e={overallReset:e,seriesType:_I(e)}),e.uid=ds("stageHandler"),t&&(e.visualType=t),e},r}();function cI(r){r.overallReset(r.ecModel,r.api,r.payload)}function hI(r){return r.dirtyOnOverallProgress&&vI}function vI(){this.agent.dirty(),this.getDownstream().dirty()}function dI(){this.agent&&this.agent.dirty()}function pI(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function gI(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=lt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?q(e,function(t,n){return T1(n)}):mI}var mI=T1(0);function T1(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function yI(r){return r.data.count()}function _I(r){fu=null;try{r(jo,C1)}catch{}return fu}var jo={},C1={},fu;D1(jo,Id);D1(C1,j_);jo.eachSeriesByType=jo.eachRawSeriesByType=function(r){fu=r};jo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fu=r.subType)};function D1(r,e){for(var t in e.prototype)r[t]=$e}var $=Y.darkColor,Tm=$.background,ja=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Cm={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},E1={darkMode:!0,color:$.theme,backgroundColor:Tm,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:Tm,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:Cm,y:Cm,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:ja(),logAxis:ja(),valueAxis:ja(),categoryAxis:ja(),line:{symbol:"circle"},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var r=ja();return r.axisName={color:$.axisLabel},r.axisLine.lineStyle.color=$.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};E1.categoryAxis.splitLine.show=!1;var SI=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},i={};if(K(e)){var a=Sr(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(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||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var 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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),av=["symbol","symbolSize","symbolRotate","symbolOffset"],Dm=av.concat(["symbolKeepAspect"]),bI={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={},i={},a=!1,o=0;o<av.length;o++){var s=av[o],l=r.get(s);re(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=De(i);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,i[g](v,d))}}return{dataEach:a?f:null}}},wI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Dm.length;s++){var l=Dm[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function M1(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 A1(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 xI(r,e,t,n){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[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 TI(r,e){function t(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}E([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=G({},i),process.env.NODE_ENV!=="production"&&He(i.type,n[1]),o.dispatchAction(G(i,{type:n[1],seriesIndex:t(a,i)}))})})}function Wi(r,e,t,n,i){var a=r+e;t.isSilent(a)||(process.env.NODE_ENV!=="production"&&Zr("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=_i(c,i.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:U(h)?c.getName(h[0]):c.getName(h),selected:K(l)?l:G({},l)})}}))}function CI(r,e,t){r.on("selectchanged",function(n){var i=t.getModel();n.isFromClick?(Wi("map","selectchanged",e,i,n),Wi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Wi("map","selected",e,i,n),Wi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Wi("map","unselected",e,i,n),Wi("pie","unselected",e,i,n))})}function la(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Pt=new ar,cu={};function DI(r,e){process.env.NODE_ENV!=="production"&&cu[r]&&Se("Already has an implementation of "+r+"."),cu[r]=e}function EI(r){return process.env.NODE_ENV!=="production"&&(cu[r]||Se("Implementation of "+r+" doesn't exists.")),cu[r]}var vf=we();function MI(r){vf(r).prepare={}}function AI(r){vf(r).fullUpdate={}}function II(r){return vf(r).prepare}function Ba(r){return vf(r).fullUpdate}var LI=Math.round(Math.random()*9),OI=typeof Object.defineProperty=="function",PI=function(){function r(){this._id="__ec_inner_"+LI++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return OI?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}(),RI=be.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n+a),r.lineTo(t-i,n+a),r.closePath()}}),NI=be.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n),r.lineTo(t,n+a),r.lineTo(t-i,n),r.closePath()}}),kI=be.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+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()}}),VI=be.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+t),r.lineTo(i,a+t/4*3),r.lineTo(i-o,a+t),r.lineTo(i,a),r.closePath()}}),BI={line:Er,rect:Ce,roundRect:Ce,square:Ce,circle:cs,diamond:NI,pin:kI,arrow:VI,triangle:RI},zI={line:function(r,e,t,n,i){i.x1=r,i.y1=e+n/2,i.x2=r+t,i.y2=e+n/2},rect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n},roundRect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n,i.r=Math.min(t,n)/4},square:function(r,e,t,n,i){var a=Math.min(t,n);i.x=r,i.y=e,i.width=a,i.height=a},circle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.r=Math.min(t,n)/2},diamond:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n},pin:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},arrow:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},triangle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n}},ov={};E(BI,function(r,e){ov[e]=new r});var FI=be.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Kl(r,e,t),i=this.shape;return i&&i.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 i=ov[n];i||(n="rect",i=ov[n]),zI[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function HI(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||Y.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Et(r,e,t,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=yS(r.slice(8),new ne(e,t,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=cd(r.slice(7),{},new ne(e,t,n,i),o?"center":"cover"):l=new FI({shape:{symbolType:r,x:e,y:t,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=HI,a&&l.setColor(a),l}function I1(r){return U(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function L1(r,e){if(r!=null)return U(r)||(r=[r,r]),[ae(r[0],e[0])||0,ae(Q(r[1],r[0]),e[1])||0]}function si(r){return isFinite(r)}function GI(r,e,t){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,i=i*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),n=si(n)?n:0,i=si(i)?i:1,a=si(a)?a:0,o=si(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function UI(r,e,t){var n=t.width,i=t.height,a=Math.min(n,i),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*i+t.y,l=l*a),o=si(o)?o:.5,s=si(s)?s:.5,l=l>=0&&si(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function sv(r,e,t){for(var n=e.type==="radial"?UI(r,e,t):GI(r,e,t),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function WI(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 Xs(r){return parseInt(r,10)}function $s(r,e,t){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["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[i]||Xs(s[n])||Xs(r.style[n]))-(Xs(s[a])||0)-(Xs(s[o])||0)||0}function YI(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:_e(r)?[r]:U(r)?r:null}function O1(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&YI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=q(t,function(a){return a/i}),n/=i)}return[t,n]}var XI=new Si(!0);function hu(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Em(r){return typeof r=="string"&&r!=="none"}function vu(r){var e=r.fill;return e!=null&&e!=="none"}function Mm(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 Am(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 lv(r,e,t){var n=F_(e.image,e.__image,t);if(Ku(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Nx),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function $I(r,e,t,n,i){var a,o=hu(t),s=vu(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||XI,h=e.__dirty;if(!n){var v=t.fill,d=t.stroke,p=s&&!!v.colorStops,g=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0;(p||g)&&(x=e.getBoundingRect()),p&&(_=h?sv(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=h?sv(r,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=h||!e.__canvasFillPattern?lv(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=h||!e.__canvasStrokePattern?lv(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?r.fillStyle=_:m&&(b?r.fillStyle=b:s=!1),g?r.strokeStyle=S:y&&(w?r.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var M,T;r.setLineDash&&t.lineDash&&(a=O1(e),M=a[0],T=a[1]);var D=!0;(f||h&ea)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,u?l:1),M&&(r.setLineDash(M),r.lineDashOffset=T),n?(i.batchFill=s,i.batchStroke=o):t.strokeFirst?(o&&Am(r,t),s&&Mm(r,t)):(s&&Mm(r,t),o&&Am(r,t)),M&&r.setLineDash([])}function ZI(r,e,t){var n=e.__image=F_(t.image,e.__image,e,e.onload);if(!(!n||!Ku(n))){var i=t.x||0,a=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,i,a,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,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function qI(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||wn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=O1(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(hu(t)&&r.strokeText(i,t.x,t.y),vu(t)&&r.fillText(i,t.x,t.y)):(vu(t)&&r.fillText(i,t.x,t.y),hu(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var Im=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P1(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){vt(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?vi.opacity:o}(n||e.blend!==t.blend)&&(a||(vt(r,i),a=!0),r.globalCompositeOperation=e.blend||vi.blend);for(var s=0;s<Im.length;s++){var l=Im[s];(n||e[l]!==t[l])&&(a||(vt(r,i),a=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(a||(vt(r,i),a=!0),r.shadowColor=e.shadowColor||vi.shadowColor),a}function Om(r,e,t,n,i){var a=e.style,o=n?null:t&&t.style||{};if(a===o)return!1;var s=P1(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(vt(r,i),s=!0),Em(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(vt(r,i),s=!0),Em(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(vt(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(vt(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<Lm.length;f++){var c=Lm[f],h=c[0];(n||a[h]!==o[h])&&(s||(vt(r,i),s=!0),r[h]=a[h]||c[1])}return s}function KI(r,e,t,n,i){return P1(r,e.style,t&&t.style,n,i)}function R1(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 jI(r,e,t){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),R1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=n}function QI(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 Pm=1,Rm=2,Nm=3,km=4;function JI(r){var e=vu(r),t=hu(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 vt(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function N1(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};li(r,e,t),ma(r,t)}function li(r,e,t){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~wt,e.__isRendered=!1;return}var i=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||WI(i,a))&&(a&&(vt(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(vt(r,t),r.save(),jI(i,r,t),s=!0,t.prevElClipPaths=i)),t.allClipped){e.__dirty&=~wt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof be&&e.autoBatch&&JI(o);s||QI(n,u.transform)?(vt(r,t),R1(r,e)):f||vt(r,t),e instanceof be?(t.lastDrawType!==Pm&&(l=!0,t.lastDrawType=Pm),Om(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),$I(r,e,o,f,t)):e instanceof eu?(t.lastDrawType!==Nm&&(l=!0,t.lastDrawType=Nm),Om(r,e,u,l,t),qI(r,e,o)):e instanceof Kt?(t.lastDrawType!==Rm&&(l=!0,t.lastDrawType=Rm),KI(r,e,u,l,t),ZI(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==km&&(l=!0,t.lastDrawType=km),eL(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&vt(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ma(r,e){vt(r,e),e.prevElClipPaths&&r.restore()}function eL(r,e,t){var n=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),li(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ma(r,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),li(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}ma(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Cc=new PI,Vm=new ba(100),Bm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function uv(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";r.dirty&&Cc.delete(r);var a=Cc.get(r);if(a)return a;var o=ce(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=i?1:1/t,Cc.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<Bm.length;++h){var v=o[Bm[h]];if(v!=null&&!U(v)&&!K(v)&&!_e(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=Vm.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=V1(o.dashArrayX),m=tL(o.dashArrayY),y=k1(o.symbol),_=rL(g),S=B1(m),b=!i&&dt.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),C;b&&(b.width=x.width*t,b.height=x.height*t,C=b.getContext("2d")),T(),c&&Vm.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var D=1,I=0,A=_.length;I<A;++I)D=$p(D,_[I]);for(var L=1,I=0,A=y.length;I<A;++I)L=$p(L,y[I].length);D*=L;var O=S*_.length*y.length;if(process.env.NODE_ENV!=="production"){var P=function(N){console.warn("Calculated decal size is greater than "+N+" due to decal option settings so "+N+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+N+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&P("maxTileWidth"),O>o.maxTileHeight&&P("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function T(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<m.length;++I)D+=m[I];if(D<=0)return;for(var A=-S,L=0,O=0,P=0;A<x.height;){if(L%2===0){for(var N=O/2%y.length,R=0,k=0,F=0;R<x.width*2;){for(var V=0,I=0;I<g[P].length;++I)V+=g[P][I];if(V<=0)break;if(k%2===0){var X=(1-o.symbolSize)*.5,Z=R+g[P][k]*X,W=A+m[L]*X,J=g[P][k]*o.symbolSize,fe=m[L]*o.symbolSize,Pe=F/2%y[N].length;ze(Z,W,J,fe,y[N][Pe])}R+=g[P][k],++F,++k,k===g[P].length&&(k=0)}++P,P===g.length&&(P=0)}A+=m[L],++O,++L,L===m.length&&(L=0)}function ze(xe,Le,se,he,fr){var Ge=i?1:t,en=Et(fr,xe*Ge,Le*Ge,se*Ge,he*Ge,o.color,o.symbolKeepAspect);if(i){var Ar=n.painter.renderOneToVNode(en);Ar&&w.children.push(Ar)}else N1(C,en)}}}}function k1(r){if(!r||r.length===0)return[["rect"]];if(K(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!K(r[t])){e=!1;break}if(e)return k1([r]);for(var n=[],t=0;t<r.length;++t)K(r[t])?n.push([r[t]]):n.push(r[t]);return n}function V1(r){if(!r||r.length===0)return[[0,0]];if(_e(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!_e(r[n])){t=!1;break}if(t)return V1([r]);for(var i=[],n=0;n<r.length;++n)if(_e(r[n])){var e=Math.ceil(r[n]);i.push([e,e])}else{var e=q(r[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function tL(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(_e(r)){var e=Math.ceil(r);return[e,e]}var t=q(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function rL(r){return q(r,function(e){return B1(e)})}function B1(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var nL=Qv(iL);function iL(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=uv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=uv(i,e)}}})}var aL=1,oL=800,sL=900,lL=920,uL=1e3,fL=2e3,zm=5e3,z1=1e3,cL=1100,Nd=2e3,F1=3e3,hL=4e3,df=4500,vL=4600,dL=5e3,pL=6e3,H1=7e3,gL={PROCESSOR:{SERIES_FILTER:oL,AXIS_STATISTICS:lL,FILTER:uL,STATISTIC:zm,STATISTICS:zm},VISUAL:{LAYOUT:z1,PROGRESSIVE_LAYOUT:cL,GLOBAL:Nd,CHART:F1,POST_CHART_LAYOUT:vL,COMPONENT:hL,BRUSH:dL,CHART_ITEM:df,ARIA:pL,DECAL:H1}},Fe="__flagInMainProcess",Zs="__mainProcessVersion",Ue="__pendingUpdate",Dc="__needsUpdateStatus",Fm=/^[a-zA-Z0-9_]+$/,Ec="__connectUpdateStatus",Hm=0,mL=1,yL=2;function G1(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){yt(this.id);return}return W1(this,r,e)}}function U1(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return W1(this,r,e)}}function W1(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),ar.prototype[e].apply(r,t)}var Y1=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(ar),X1=Y1.prototype;X1.on=U1("on");X1.off=U1("off");var Qn,Mc,qs,Or,Ks,Ac,Ic,Yi,Xi,Gm,Um,Lc,Wm,js,Ym,$1,Lt,Xm,$i,Z1=function(r){H(e,r);function e(t,n,i){var a=r.call(this,new SI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[Zs]=1,process.env.NODE_ENV!=="production"){var u=ue.hasGlobalWindow?window:global;u&&(o=Q(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Q(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Q(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr;var f=a._zr=Up(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,l),useCoarsePointer:Q(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=hf(oe(f.flush,f),17),a._updateTheme(n),a._locale=cM(i.locale||LS),a._coordSysMgr=new ms;var c=a._api=Ym(a);function h(v,d){return v.__prio-d.__prio}return _l(gu,h),_l(cv,h),a._scheduler=new x1(a,c,cv,gu),a._messageCenter=new Y1,a._initEvents(),a.resize=oe(a.resize,a),f.animation.on("frame",a._onframe,a),Gm(f,a),Um(f,a),Hl(a),a}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,i=this._api;if(Xm(this),this[Ue]){var a=this[Ue].silent;this[Fe]=!0,$i(this);try{Qn(this),Or.update.call(this,null,this[Ue].updateParams)}catch(l){throw this[Fe]=!1,this[Ue]=null,l}this._zr.flush(),this[Fe]=!1,this[Ue]=null,Yi.call(this,a),Xi.call(this,a)}else if(t.unfinished){var o=aL;do{t.unfinished=!1;var s=dt.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),Ac(this,n),t.performVisualTasks(n),js(this,this._model,i,"remain",{}),o-=dt.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(this[Fe]){process.env.NODE_ENV!=="production"&&Se("`setOption` should not be called during main process.");return}if(this._disposed){yt(this.id);return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fe]=!0,$i(this),!this._model||n){var l=new tA(this._api),u=this._theme,f=this._model=new Id;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},hv);var c={seriesTransition:s,optionChanged:!0};if(i)this[Ue]={silent:a,updateParams:c},this[Fe]=!1,this.getZr().wakeUp();else{try{Qn(this),Or.update.call(this,null,c)}catch(h){throw this[Ue]=null,this[Fe]=!1,h}this._ssr||this._zr.flush(),this[Ue]=null,this[Fe]=!1,Yi.call(this,a),Xi.call(this,a)}},e.prototype.setTheme=function(t,n){if(this[Fe]){process.env.NODE_ENV!=="production"&&Se("`setTheme` should not be called during main process.");return}if(this._disposed){yt(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ue]&&(a==null&&(a=this[Ue].silent),o=this[Ue].updateParams,this[Ue]=null),this[Fe]=!0,$i(this);try{this._updateTheme(t),i.setTheme(this._theme),Qn(this),Or.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Fe]=!1,s}this[Fe]=!1,Yi.call(this,a),Xi.call(this,a)}},e.prototype._updateTheme=function(t){K(t)&&(t=q1[t]),t&&(t=ie(t),t&&JS(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ue.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&He("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(){var t=this._zr,n=t.storage.getDisplayList();return E(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){yt(this.id);return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;E(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return E(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){yt(this.id);return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if($m[i]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();E(Ro,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ie(t)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=dt.createCanvas(),m=Up(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return E(h,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Ce({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),E(h,function(_){var S=new Kt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,i){return Ks(this,"convertToPixel",t,n,i)},e.prototype.convertToLayout=function(t,n,i){return Ks(this,"convertToLayout",t,n,i)},e.prototype.convertFromPixel=function(t,n,i){return Ks(this,"convertFromPixel",t,n,i)},e.prototype.containPixel=function(t,n){if(this._disposed){yt(this.id);return}var i=this._model,a,o=jf(i,t);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?a=a||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&Ye(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Ye(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=jf(i,t,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||Ye("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?M1(s,l,n):A1(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;E(_L,function(i){var a=function(o){var s=t.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&la(l,function(p){var g=ve(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=G({},g.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&Ye("model or view can not be found by params"),u.event=o,u.type=i,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(i,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)});var n=this._messageCenter;E(fv,function(i,a){n.on(a,function(o){t.trigger(a,o)})}),CI(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){yt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){yt(this.id);return}this._disposed=!0;var t=this.getDom();t&&O_(this.getDom(),Vd,"");var n=this,i=n._api,a=n._model;E(n._componentsViews,function(o){o.dispose(a,i)}),E(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ro[n.id]},e.prototype.resize=function(t){if(this[Fe]){process.env.NODE_ENV!=="production"&&Se("`resize` should not be called during main process.");return}if(this._disposed){yt(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[Ue]&&(a==null&&(a=this[Ue].silent),i=!0,this[Ue]=null),this[Fe]=!0,$i(this);try{i&&Qn(this),Or.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[Fe]=!1,o}this[Fe]=!1,Yi.call(this,a),Xi.call(this,a)}},e.prototype.showLoading=function(t,n){if(this._disposed){yt(this.id);return}if(j(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!vv[t]){process.env.NODE_ENV!=="production"&&Ye("Loading effects "+t+" not exists.");return}var i=vv[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){yt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=G({},t);return n.type=pu[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){yt(this.id);return}if(j(n)||(n={silent:!!n}),!!du[t.type]&&this._model){if(this[Fe]){this._pendingActions.push(t);return}var i=n.silent;Ic.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&ue.browser.weChat&&this._throttledZrFlush(),Yi.call(this,i),Xi.call(this,i)}},e.prototype.updateLabelLayout=function(){Pt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){yt(this.id);return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&B(t.data&&a),a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Qn=function(c){MI(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),Mc(c,!0),Mc(c,!1),h.plan()},Mc=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,M=!x&&g[C];if(!M){var T=Sr(w.type),D=h?Tt.getClass(T.main,T.sub):tt.getClass(T.sub);process.env.NODE_ENV!=="production"&&B(D,T.sub+" does not exist."),M=new D,M.init(v,y),g[C]=M,p.push(M),m.add(M.group)}w.__viewId=M.__id=C,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(M,w,v,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},qs=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){E([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=L_(v,d,p),y=v.excludeSeriesId,_;y!=null&&(_=ee(),E(lt(y),function(b){var w=Yt(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(Dg(v))if(b instanceof ft)v.type===di&&!v.notBlur&&!b.get(["emphasis","disabled"])&&$D(b,v,c._api);else{var x=od(b.mainType,b.componentIndex,v.name,c._api),C=x.focusSelf,M=x.dispatchers;v.type===di&&C&&!v.notBlur&&Gh(b.mainType,b.componentIndex,c._api),M&&E(M,function(T){v.type===di?Uo(T):Wo(T)})}else Wh(v)&&b instanceof ft&&(KD(b,v,c._api),Tg(b),Lt(c))},c),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,c._api,v)}},Or={prepareAndUpdate:function(c){Qn(this),Or.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){AI(v),v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),g.create(v,d),Pt.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,c),Ac(this,v),g.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Lc(this,v,d,c,h),Pt.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(m,y){if(m!==Go){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=ee();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,v,d,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),h._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),js(h,v,d,c,{},g),Pt.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),tt.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Lc(this,h,this._api,c,{}),Pt.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()}),tt.markUpdateMethod(c,"updateVisual"),n(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)}),Pt.trigger("afterupdate",v,this._api))},updateLayout:function(c){Or.update.call(this,c)}};function t(c,h,v,d,p){if(c._disposed){yt(c.id);return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=jf(g,v),S=0;S<m.length;S++){var b=m[S];if(b[h]&&(y=b[h](g,_,d,p))!=null)return y}process.env.NODE_ENV!=="production"&&Ye("No coordinate system that supports "+h+" found by the given finder.")}Ks=t,Ac=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Ic=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=du[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&Sr(y[0]);this[Fe]=!0,$i(this);var b=[c],w=!1;c.batch&&(w=!0,b=q(c.batch,function(P){return P=ce(G({},P),c),P.batch=null,P}));var x=[],C,M=[],T=m.nonRefinedEventType,D=Wh(c),I=Dg(c);if(I&&sS(this._api),E(b,function(P){var N=m.action(P,d,v._api);if(m.refineEvent?M.push(N):C=N,C=C||G({},P),C.type=T,x.push(C),I){var R=qv(c),k=R.queryOptionMap,F=R.mainTypeSpecified,V=F?k.keys()[0]:"series";qs(v,_,P,V),Lt(v)}else D?(qs(v,_,P,"series"),Lt(v)):S&&qs(v,_,P,S.main,S.sub)}),_!=="none"&&!I&&!D&&!S)try{this[Ue]?(Qn(this),Or.update.call(this,c),this[Ue]=null):Or[_].call(this,c)}catch(P){throw this[Fe]=!1,P}if(w?C={type:T,escapeConnect:g,batch:x}:C=x[0],this[Fe]=!1,!h){var A=void 0;if(m.refineEvent){var L=m.refineEvent(M,c,d,this._api).eventContent;B(j(L)),A=ce({type:m.refinedEventType},L),A.fromAction=c.type,A.fromActionPayload=c,A.escapeConnect=!0}var O=this._messageCenter;O.trigger(C.type,C),A&&O.trigger(A.type,A)}},Yi=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Ic.call(this,v,c)}},Xi=function(c){!c&&this.trigger("updated")},Gm=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Ue]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},Um=function(c,h){c.on("mouseover",function(v){var d=v.target,p=la(d,Ca);p&&(ZD(p,v,h._api),Lt(h))}).on("mouseout",function(v){var d=v.target,p=la(d,Ca);p&&(qD(p,v,h._api),Lt(h))}).on("click",function(v){var d=v.target,p=la(d,function(y){return ve(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ve(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function i(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=h.concat(v),g,m;_l(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),E(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}Lc=function(c,h,v,d,p){i(h),Wm(c,h,v,d,p),E(c._chartsViews,function(g){g.__alive=!1}),js(c,h,v,d,p),E(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},Wm=function(c,h,v,d,p,g){E(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),l(y,m),f(y,m)})},js=function(c,h,v,d,p,g){var m=c._scheduler;p=G(p||{},{updatedSeries:h.getSeries()}),Pt.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),Tg(_)}),m.unfinished=y||m.unfinished,Pt.trigger("series:layoutlabels",h,v,p),Pt.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),Pt.trigger("series:afterupdate",h,v,p)},Lt=function(c){c[Dc]=!0,c.getZr().wakeUp()},$i=function(c){c[Zs]=(c[Zs]+1)%1e6},Xm=function(c){c[Dc]&&(c.getZr().storage.traverse(function(h){Ao(h)||a(h)}),c[Dc]=!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===Ju&&c.states.emphasis?h.push("emphasis"):c.hoverState===Qu&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr;if(v.painter.type==="canvas"){var d=v.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>Q(h.get("hoverLayerThreshold"),ZS.hoverLayerThreshold)&&!ue.node&&!ue.worker;(c._usingTHL||g)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==af&&(S.hoverLayer=g?mS:gS)})}}),c._usingTHL=g)}}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Zo(c);h.eachRendered(function(d){return TS(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!Ao(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(m){if(m.states&&m.states.emphasis){if(Ao(m))return;if(m instanceof be&&rE(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Ym=function(c){return new(function(h){H(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){Uo(d,p),Lt(c)},v.prototype.leaveEmphasis=function(d,p){Wo(d,p),Lt(c)},v.prototype.enterBlur=function(d){XD(d),Lt(c)},v.prototype.leaveBlur=function(d){nS(d),Lt(c)},v.prototype.enterSelect=function(d){iS(d),Lt(c)},v.prototype.leaveSelect=function(d){aS(d),Lt(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.prototype.getECUpdateCycleVersion=function(){return c[Zs]},v.prototype.usingTHL=function(){return c._usingTHL},v}(j_))(c)},$1=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Ec]=d}}E(pu,function(v,d){c._messageCenter.on(d,function(p){if($m[c.group]&&c[Ec]!==Hm){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];E(Ro,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Hm),E(m,function(y){y[Ec]!==mL&&y.dispatchAction(g)}),h(m,yL)}})})}}(),e}(ar),kd=Z1.prototype;kd.on=G1("on");kd.off=G1("off");kd.one=function(r,e,t){var n=this;Zr("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(r,i)}this.on.call(this,r,i,t)};var _L=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function yt(r){process.env.NODE_ENV!=="production"&&Ye("Instance "+r+" has been disposed")}var du={},pu={},fv={},cv=[],hv=[],gu=[],q1={},vv={},Ro={},$m={},SL=+new Date-0,Vd="_echarts_instance_";function bL(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 i=wL(r);if(i)return process.env.NODE_ENV!=="production"&&Ye("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&_a(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&Ye("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new Z1(r,e,t);return a.id="ec_"+SL++,Ro[a.id]=a,n&&O_(r,Vd,a.id),$1(a),Pt.trigger("afterinit",a),a}function wL(r){return Ro[MC(r,Vd)]}function mu(r,e){q1[r]=e}function K1(r){de(hv,r)<0&&hv.push(r)}function j1(r,e){zd(cv,r,e,fL)}function xL(r){Bd("afterinit",r)}function TL(r){Bd("afterupdate",r)}function Bd(r,e){Pt.on(r,e)}function Ii(r,e,t){var n,i,a,o,s;re(e)&&(t=e,e=""),j(r)?(n=r.type,i=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),a=r.refineEvent):(n=r,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;du[n]||(B(Fm.test(n)&&Fm.test(i)),a&&B(i!==n),du[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:t,refineEvent:a},fv[i]=1,a&&s&&(fv[u]=1),process.env.NODE_ENV!=="production"&&pu[u]&&Se(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),pu[u]=n)}function CL(r,e){ms.register(r,e)}function DL(r,e){zd(gu,r,e,z1,"layout",!0)}function Li(r,e){zd(gu,r,e,F1,"visual",!0)}var Zm=[];function zd(r,e,t,n,i,a){if((re(e)||j(e))&&(t=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");E(r,function(s){B(s.__raw!==t)})}if(!(de(Zm,t)>=0)){Zm.push(t);var o=x1.wrapStageHandler(t,i);o.__prio=e,o.__raw=t,r.push(o),process.env.NODE_ENV!=="production"&&a&&B(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+i+" stage; otherwise progressive rendering is disabled on all series.")}}function Q1(r,e){vv[r]=e}function EL(r,e,t){var n=EI("registerMap");n&&n(r,e,t)}var ML=PA;Li(Nd,sI);Li(df,lI);Li(df,uI);Li(Nd,bI);Li(df,wI);Li(H1,nL);K1(JS);j1(sL,vA);Q1("default",fI);Ii({type:di,event:di,update:di},$e);Ii({type:Cl,event:Cl,update:Cl},$e);Ii({type:ru,event:id,update:ru,action:$e,refineEvent:Fd,publishNonRefinedEvent:!0});Ii({type:Fh,event:id,update:Fh,action:$e,refineEvent:Fd,publishNonRefinedEvent:!0});Ii({type:nu,event:id,update:nu,action:$e,refineEvent:Fd,publishNonRefinedEvent:!0});function Fd(r,e,t,n){return{eventContent:{selected:jD(t),isFromClick:e.isFromClick||!1}}}mu("default",{});mu("dark",E1);function Qa(r){return r==null?0:r.length||1}function qm(r){return r}var AL=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||qm,this._newKeyGetter=i||qm,this.context=a,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={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Qa(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(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Qa(u),h=Qa(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[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,i)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=Qa(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[i]=null}},r.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!t){var l=t[s],u=Qa(l);u===0?(t[s]=o,a&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),IL=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 LL(r,e){var t={},n=t.encode={},i=ee(),a=[],o=[],s={};E(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&B(zh.get(d)==null);var p=v.coordDimIndex;Oc(n,d)[p]=h,v.isExtraCoord||(i.set(d,1),PL(v.type)&&(a[0]=h),Oc(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}zh.each(function(g,m){var y=Oc(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=q(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,t.userOutput=new IL(s,e),t}function Oc(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function OL(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function PL(r){return!(r==="ordinal"||r==="time")}var Nl=function(){function r(e){this.otherDims={},e!=null&&G(this,e)}return r}(),RL=we(),NL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},J1=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=tb(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=t1(this.source),n=!rb(e),i="",a=[],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)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=NL[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function eb(r){return r instanceof J1}function Hd(r){for(var e=ee(),t=0;t<(r||[]).length;t++){var n=r[t],i=j(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function tb(r){var e=RL(r);return e.dimNameMap||(e.dimNameMap=Hd(r.dimensionsDefine))}function rb(r){return r>30}var Ja=j,on=q,kL=typeof Int32Array>"u"?Array:Int32Array,VL="e\0\0",Km=-1,BL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],zL=["_approximateExtent"],jm,Qs,eo,Zi,Pc,to,Rc,yu=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;eb(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=K(c)?new Nl({name:c}):c instanceof Nl?c:new Nl(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),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),process.env.NODE_ENV!=="production"&&B(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ee();E(o,function(g){p.set(a[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 i=this._schema.getSourceDimension(t);if(i)return i.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(_e(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("Unknown dimension "+e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[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 i=this,a;if(e instanceof ev&&(a=e),!a){var o=this.dimensions,s=Ld(e)||xt(e)?new r1(e,o.length):e;a=new ev;var l=on(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=LL(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=t[l],o&&Rc(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Hr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===At;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&gC(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Yt(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=Yt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Rc(this,f);jm(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Ja(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=eo(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},r.prototype.getId=function(e){return Qs(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,i=this._store;return U(e)?i.getValues(on(e,function(a){return n._getStoreDimIndex(a)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;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 i=n&&n[t];return i==null||isNaN(i)?Km:i},r.prototype.each=function(e,t,n){re(e)&&(n=t,t=e,e=[]);var i=n||this,a=on(Zi(e),this._getStoreDimIndex,this);this._store.each(a,i?oe(t,i):t)},r.prototype.filterSelf=function(e,t,n){re(e)&&(n=t,t=e,e=[]);var i=n||this,a=on(Zi(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?oe(t,i):t),this},r.prototype.selectRange=function(e){var t=this,n={},i=De(e);return E(i,function(a){var o=t._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){re(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},r.prototype.map=function(e,t,n,i){var a=n||i||this,o=on(Zi(e),this._getStoreDimIndex,this),s=to(this);return s._store=this._store.map(o,a?oe(t,a):t),s},r.prototype.modify=function(e,t,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&E(Zi(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=on(Zi(e),this._getStoreDimIndex,this);this._store.modify(s,o?oe(t,o):t)},r.prototype.downSample=function(e,t,n,i){var a=to(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),a},r.prototype.minmaxDownSample=function(e,t){var n=to(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=to(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 Ie(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new AL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qs(e,n)},function(n){return Qs(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||{},Ja(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return i??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),U(a)?a=a.slice():Ja(a)&&(a=G({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Ja(t)?G(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ja(e)?G(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Bh(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){E(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:on(this.dimensions,this._getDimInfo,this),this.hostModel)),Pc(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];re(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(Fv(arguments)))})},r.internalField=function(){jm=function(e){var t=e._invertedIndicesMap;E(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new kL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Km;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},eo=function(e,t,n){return Yt(e._getCategory(t,n),null)},Qs=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=eo(e,e._idDimIdx,t)),n==null&&(n=VL+t),n},Zi=function(e){return U(e)||(e=e!=null?[e]:[]),e},to=function(e){var t=new r(e._schema?e._schema:on(e.dimensions,e._getDimInfo,e),e.hostModel);return Pc(t,e),t},Pc=function(e,t){E(BL.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,E(zL,function(n){e[n]=ie(t[n])}),e._calculationInfo=G({},t._calculationInfo)},Rc=function(e,t){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=i[t];if(s==null&&a!=null&&(n[t]=s=eo(e,a,t)),l==null&&o!=null&&(i[t]=l=eo(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),i[t]=l}}}(),r}();function Gd(r,e){Ld(r)||(r=Od(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=ee(),a=[],o=FL(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&rb(o),l=n===r.dimensionsDefine,u=l?tb(r):Hd(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=ee(f),h=new u1(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var T=h[M];if(T<0){var D=n[M],I=j(D)?D:{name:D},A=new Nl,L=I.name;L!=null&&u.get(L)!=null&&(A.name=A.displayName=L),I.type!=null&&(A.type=I.type),I.displayName!=null&&(A.displayName=I.displayName);var O=a.length;return h[M]=O,A.storeDimIndex=M,a.push(A),A}return a[T]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,T){var D=lt(M).slice();if(D.length===1&&!K(D[0])&&D[0]<0){c.set(T,!1);return}var I=c.set(T,[]);E(D,function(A,L){var O=K(A)?u.get(A):A;O!=null&&O<o&&(I[L]=O,g(d(O),T,L))})});var p=0;E(t,function(M){var T,D,I,A;if(K(M))T=M,A={};else{A=M,T=A.name;var L=A.ordinalMeta;A.ordinalMeta=null,A=G({},A),A.ordinalMeta=L,D=A.dimsDef,I=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var O=c.get(T);if(O!==!1){if(O=lt(O),!O.length)for(var P=0;P<(D&&D.length||1);P++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&O.push(p++)}E(O,function(N,R){var k=d(N);if(l&&A.type!=null&&(k.type=A.type),g(ce(k,A),T,R),k.name==null&&D){var F=D[R];!j(F)&&(F={name:F}),k.name=k.displayName=F.name,k.defaultTooltip=F.defaultTooltip}I&&ce(k.otherDims,I)})}});function g(M,T,D){zh.get(T)!=null?M.otherDims[T]=D:(M.coordDim=T,M.coordDimIndex=D,i.set(T,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)E(a,function(M){b(M)}),a.sort(function(M,T){return M.storeDimIndex-T.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),C=x.coordDim;C==null&&(x.coordDim=HL(S,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),b(x),x.type==null&&(KS(r,w)===qe.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return Kv(a,function(M){return M.name},function(M,T){T>0&&(M.name=M.name+(T-1))}),new J1({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function FL(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return E(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function HL(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var GL=function(){function r(e){this.coordSysDims=[],this.axisMap=ee(),this.categoryAxisMap=ee(),this.coordSysName=e}return r}();function UL(r){var e=r.get("coordinateSystem"),t=new GL(e),n=WL[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var WL={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",Ht).models[0],a=r.getReferringComponents("yAxis",Ht).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Wr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Wr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),qi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),qi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",Ht).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",i),qi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",Ht).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),qi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),qi(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 i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();E(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),qi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var i=r.getReferringComponents("matrix",Ht).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");t.set("x",a),t.set("y",o),n.set("x",a),n.set("y",o)}};function qi(r){return r.get("type")==="category"}function YL(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;XL(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(E(a,function(S,b){K(S)&&(a[b]=S={name:S}),d(S)||(v=!1)}),E(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;E(a,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function XL(r){return!eb(r.schema)}function Ea(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function $L(r,e){return Ea(r,e)?r.getCalculationInfo("stackResultDimension"):e}function ZL(r,e){var t=r.get("coordinateSystem"),n=ms.get(t),i;return e&&e.coordSysDims&&(i=q(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=OL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function qL(r,e,t){var n,i;return t&&E(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function za(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=Od(r)):(i=n.getSource(),a=i.sourceFormat===At);var o=UL(e),s=ZL(e,o),l=t.useEncodeDefaulter,u=re(l)?l:l?Oe(HM,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Gd(i,f),h=qL(c.dimensions,t.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=YL(e,{schema:c,store:v}),p=new yu(c,e);p.setCalculationInfo(d);var g=h!=null&&KL(i)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function KL(r){if(r.sourceFormat===At){var e=jL(r.data||[]);return!U(us(e))}}function jL(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var lr=function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();qu(lr);var QL=0,dv=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QL,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&q(n,JL);return new r({categories:i,needCollect:!i,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(!K(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ee(this.categories))},r}();function JL(r){return j(r)&&r.value!=null?r.value:r+""}var Ut=0,Qo=1,e2={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},t2=De(e2),_u=2,nb=3;function Ud(r,e,t){var n;return r=r||{},n2(r,t),{brk:n,mapper:r}}function ib(r,e){E(t2,function(t){r[t]=e[t]})}function ab(r,e){r.freeze=$e,process.env.NODE_ENV!=="production"&&(r.freeze=function(){e.freeze()})}function Jo(r){return r.getExtentUnsafe(Ut,_u)}function Su(r,e){return r.getExtentUnsafe(Qo,e)||r.getExtentUnsafe(Ut,e)}function r2(r){var e=Su(r,nb);return e[1]-e[0]}function pf(r){var e=r.getExtentUnsafe(Ut,nb);return e[1]-e[0]}function n2(r,e){var t=r||{},n=[];return t._extents=n,n[Ut]=e?e.slice():Bt(),G(t,i2),t}var i2={needTransform:function(){return!1},normalize:function(r){var e=this._extents[Qo]||this._extents[Ut];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[Qo]||this._extents[Ut];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Su(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Ut].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){process.env.NODE_ENV!=="production"&&B(!this._frozen),Qm(this._extents,Ut,r,e)},setExtent2:function(r,e,t){process.env.NODE_ENV!=="production"&&B(!this._frozen);var n=this._extents;n[r]||(n[r]=n[Ut].slice()),Qm(n,r,e,t)},freeze:function(){process.env.NODE_ENV!=="production"&&(this._frozen=!0)}};function Qm(r,e,t,n){Ta(t,n)?(r[e][0]=t,r[e][1]=n):process.env.NODE_ENV!=="production"&&t!=null&&n!=null&&t<=n&&Se("Invalid setExtent call - start: "+t+", end: "+n)}function ob(r){return bu(r)||Ma(r)}function bu(r){return r.type==="interval"}function Wd(r){return r.type==="time"}function Ma(r){return r.type==="log"}function ur(r){return r.type==="ordinal"}function a2(r){var e=Yv(r),t=Di(10,e),n=$r(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,pe(n*t,-e)}function xi(r){return kr(r)+2}function Js(r,e){return Fo(r)/Fo(e)}function Nc(r,e,t){var n=t&&t.lookup;if(n){for(var i=0;i<n.from.length;i++)if(r===n.from[i])return n.to[i]}return Di(e,r)}function sb(r,e,t){var n=r.slice();if(n[0]===n[1]){var i=t&&t.ctnShp;if(n[0]!==0){var a=ke(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!qr(n[0])||!qr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function o2(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function gf(r,e){return r=r||e,$r(ye(r,1))}function lb(r,e,t){var n=Jo(r),i=n[0],a=r.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var ub=function(r){H(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,ib(n,e.decoratedMethods);var i=t.ordinalMeta;i||(i=new dv({})),U(i)&&(i=new dv({categories:q(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=Ud(null,null,t.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,ab(n,a.mapper),n}return e.parse=function(t){return t==null?t=NaN:K(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=$r(t),t},e.prototype.getTicks=function(){var t=[];return lb(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=st(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[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),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var t=Jo(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber($r(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,i){return this._mapper.setExtent2(t,n,i)}},e}(lr);lr.registerClass(ub);function Yd(r,e,t,n){for(var i=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],h=l.value-u.value,v=h/e,d=xi(v);f<e-1;){var p=pe(u.value+(f+1)*v,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=ps();g&&g.pruneTicksByBreak("auto",c,t,function(m){return m},n,o),a.push(c)}}return a}var Tr=function(r){H(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var i=PS(n,t),a=Ud(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ie(this._cfg)},e.prototype.setConfig=function(t){var n=Jo(this);process.env.NODE_ENV!=="production"&&(B(t.interval!=null),t.intervalCount!=null&&B(t.intervalCount>=-1&&t.intervalPrecision!=null&&!bi(this)),t.niceExtent!=null&&(B(isFinite(t.niceExtent[0])&&isFinite(t.niceExtent[1])),B(n[0]<=t.niceExtent[0]&&t.niceExtent[1]<=n[1]),B(pe(t.niceExtent[0]-t.niceExtent[1],kr(t.interval))<=t.interval))),this._cfg=t=ie(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=xi(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,i=n.interval,a=Jo(this),o=n.niceExtent,s=n.intervalPrecision,l=ps(),u=this.brk,f=l,c=[];if(!i)return c;t.breakTicks,process.env.NODE_ENV!=="production"&&B(o!=null);var h=3e3;a[0]<o[0]&&c.push({value:t.expandToNicedExtent?pe(o[0]-i,s):a[0]});for(var v=function(_,S){return $r((S-_)/i)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=st(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=pe(p+i,s),u){var m=u.calcNiceTickMultiple(p,v);m>=0&&(p=pe(p+m*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>h)return process.env.NODE_ENV!=="production"&&Ye('Exceed safe limit in IntervalScale["getTicks"].'),[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?pe(y+i,s):a[1]}),c},e.prototype.getMinorTicks=function(t){return Yd(this,t,yd(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=kr(t.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=pe(t.value,i,!0);return HS(a)},e.type="interval",e}(lr);lr.registerClass(Tr);var s2=function(r,e,t,n){for(;t<n;){var i=t+n>>>1;r[i][1]<e?t=i+1:n=i}return t},fb=function(r){H(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var i=PS(n,t),a=Ud(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(t){return ff(t.value,Gg[bM(Oo(this._minLevelUnit))]||Gg.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,i){return wM(t,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(t){var n=this._interval,i=Jo(this),a=this.brk,o=[];if(!n)return o;var s=this._useUTC;o=p2(this._minLevelUnit,this._approxInterval,s,i,pf(this),a);var l=pi.length-1,u=0;return E(o,function(f){f.time&&(l=Math.min(l,de(pi,f.time.upperTimeUnit)),u=Math.max(u,f.time.level))}),o},e.prototype.getMinorTicks=function(t){return Yd(this,t,yd(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return _e(t)?Math.round(t):+Ra(t)},e.type="time",e}(lr),el=[["second",_d],["minute",Sd],["hour",Lo],["quarter-day",Lo*6],["half-day",Lo*12],["day",Gt*1.2],["half-week",Gt*3.5],["week",Gt*7],["month",Gt*31],["quarter",Gt*95],["half-year",Hg/2],["year",Hg]];function l2(r,e,t,n){return Kh(new Date(e),r,n).getTime()===Kh(new Date(t),r,n).getTime()}function u2(r,e){return r/=Gt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function f2(r){var e=30*Gt;return r/=e,r>6?6:r>3?3:r>2?2:1}function c2(r){return r/=Lo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Jm(r,e){return r/=e?Sd:_d,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function h2(r){return ye(Xv(r,!0),1)}function v2(r,e,t){var n=Math.max(0,de(pi,e)-1);return Kh(new Date(r),pi[n],t).getTime()}function d2(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var i=t.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function p2(r,e,t,n,i,a){var o=3e3,s=mM,l=0;function u(P,N,R,k,F,V,X){for(var Z=d2(F,P),W=N,J=new Date(W);W<R&&W<=n[1];){if(X.push({value:W}),l++>o){process.env.NODE_ENV!=="production"&&Ye('Exceed safe limit in TimeScale["getTicks"].');break}if(J[F](J[k]()+P),W=J.getTime(),a){var fe=a.calcNiceTickMultiple(W,Z);fe>0&&(J[F](J[k]()+fe*P),W=J.getTime())}}X.push({value:W,notAdd:W>n[1]})}function f(P,N,R){var k=[],F=!N.length;if(!l2(Oo(P),n[0],n[1],t)){F&&(N=[{value:v2(n[0],P,t)},{value:n[1]}]);for(var V=0;V<N.length-1;V++){var X=N[V].value,Z=N[V+1].value;if(X!==Z){var W=void 0,J=void 0,fe=void 0,Pe=!1;switch(P){case"year":W=Math.max(1,Math.round(e/Gt/365)),J=RS(t),fe=xM(t);break;case"half-year":case"quarter":case"month":W=f2(e),J=bd(t),fe=NS(t);break;case"week":case"half-week":case"day":W=u2(e),J=wd(t),fe=kS(t),Pe=!0;break;case"half-day":case"quarter-day":case"hour":W=c2(e),J=xd(t),fe=VS(t);break;case"minute":W=Jm(e,!0),J=Td(t),fe=BS(t);break;case"second":W=Jm(e,!1),J=Cd(t),fe=zS(t);break;case"millisecond":W=h2(e),J=Dd(t),fe=FS(t);break}Z>=n[0]&&X<=n[1]&&u(W,X,Z,J,fe,Pe,k),P==="year"&&R.length>1&&V===0&&R.unshift({value:R[0].value-W})}}for(var V=0;V<k.length;V++)R.push(k[V])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var g=Oo(s[p]);if(SM(s[p])){f(s[p],c[c.length-1]||[],h);var m=s[p+1]?Oo(s[p+1]):null;if(g!==m){if(h.length){d=v,h.sort(function(P,N){return P.value-N.value});for(var y=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(y.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var b=i/e;if(v>b*1.5&&d>b/1.5||(c.push(y),v>b||r===s[p]))break}h=[]}}}for(var w=Qe(q(c,function(P){return Qe(P,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(P){return P.length>0}),x=w.length-1,C=[],p=0;p<w.length;++p)for(var M=w[p],T=0;T<M.length;++T){var D=Il(M[T].value,t);C.push({value:M[T].value,time:{level:x-p,upperTimeUnit:D,lowerTimeUnit:D}})}Kv(C,NC,null),C.sort(function(P,N){return P.value-N.value});var I=C[0],A=C[C.length-1],L=Il(n[0],t),O=Il(n[1],t);return(!I||I.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!A||A.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),C}var g2=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Gt,t[1]+=Gt),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Gt}r.setExtent(t[0],t[1]);var i=gf(e.splitNumber,10),a=pf(r)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=el.length,u=Math.min(s2(el,a,0,l),l-1),f=el[u][1],c=el[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};lr.registerClass(fb);var tl=0,rl=1,wu=function(r){H(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=Tr.parse,n.base=t.logBase||10;var i=[],a=[];n._lookup={from:i,to:a},i[tl]=i[rl]=a[tl]=a[rl]=NaN,ib(n,e.mapperMethods),t.breakOption;var o={};return n.powStub=new Tr({breakParsed:o.original}),n.intervalStub=new Tr({breakParsed:o.transformed}),ab(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,i=this.powStub,a=this.intervalStub,o=a.getExtent(),s=i.getExtent(),l={lookup:{from:o,to:s}};return q(a.getTicks(t||{}),function(u){var f=u.value,c=Nc(f,n,l),h;return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return Yd(this,t,yd(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Js(t,this.base))},scale:function(t){return Nc(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=Js(t,this.base),n&&n.depth===_u?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var i=n?n.depth:null;return ey.depth=i,ty.lookup=this._lookup,Nc(i===_u?t:this.intervalStub.transformOut(t,ey),this.base,ty)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(Ut,t,n)},setExtent2:function(t,n,i){if(!(!Ta(n,i)||n<=0||i<=0)){var a=ry,o=ry;if(t===Ut){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[tl]=n,a[rl]=i);var l=this.base;this.intervalStub.setExtent2(t,o[tl]=Js(n,l),o[rl]=Js(i,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return Ta(n[0],n[1])&&Dt(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e}(lr);lr.registerClass(wu);var ey={},ty={},ry=[],cb={value:1,category:1,time:1,log:1},hb=we();function m2(r){var e=r.get("type");return(e==null||!pt(cb,e)&&!lr.getClass(e))&&(e="value"),e}function y2(r,e,t){var n;switch(e){case"category":return new ub({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Bt()});case"time":return new fb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new wu({logBase:r.get("logBase"),breakOption:n});case"value":return new Tr({breakOption:n});default:return new(lr.getClass(e)||Tr)({})}}function _2(r,e,t){var n=r.getExtentUnsafe(Ut,null),i=n[0],a=n[1];return Ta(i,a)?i===e||a===e?b2:i<e&&a>e?S2:pv:pv}var S2=1,b2=2,pv=3;function w2(r){hb(r).noOnMyZero=!0}function x2(r){return hb(r).noOnMyZero}function mf(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=yM(e);return function(i,a){return r.scale.getFormattedLabel(i,a,t)}}else{if(K(e))return function(i){var a=r.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(re(e)){if(r.type==="category")return function(i,a){return e(xu(r,i),i.value-r.scale.getExtent()[0],null)};var n=ps();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(xu(r,i),a,o)}}else return function(i){return r.scale.getLabel(i)}}}function xu(r,e){var t=r.scale;return ur(t)?t.getLabel(e):e.value}function Xd(r){var e=r.get("interval");return e??"auto"}function T2(r){return r.type==="category"&&Xd(r.getLabelModel())===0}function C2(r,e){var t={};return E(r.mapDimensionsAll(e),function(n){t[$L(r,n)]=!0}),De(t)}function Aa(r){return r==="middle"||r==="center"}function es(r){return r.getShallow("show")}function D2(r,e,t){var n=r.get("breaks",!0);if(n!=null){process.env.NODE_ENV!=="production"&&Se('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}function vb(r,e,t,n,i,a){var o=Ma(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:_u},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),h=o2(t,n);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function _s(r,e){return ur(r)?r.getRawOrdinalNumber(e.value):e.value}function db(r,e){return ur(r)&&!!e.get("boundaryGap")}var pb=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}(),E2=k_(),Tu="|&",Fa=we(),gb=-2,M2=-1,A2=we(),Oi;process.env.NODE_ENV!=="production"&&(Oi=function(r){B(r&&r.model&&r.model.uid&&r.model.ecModel)});function $d(r,e){var t=r.model,n=Fa(Ba(t.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(t.uid)}function I2(r,e){return process.env.NODE_ENV!=="production"&&(B(e!=null),Oi(r)),yb($d(r,e))}function L2(r,e){process.env.NODE_ENV!=="production"&&Oi(r);var t=[];return mb(r.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&t.push(yb(n))}),t}function mb(r,e){var t=Fa(Ba(r)).keyed;t&&t.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function yb(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function O2(r,e){process.env.NODE_ENV!=="production"&&Oi(r);var t=r.model.ecModel,n=Fa(Ba(t)).axSer;n&&Zd(t,n.get(r.model.uid),e)}function _b(r,e,t){process.env.NODE_ENV!=="production"&&(B(e!=null),Oi(r));var n=$d(r,e);n&&Zd(r.model.ecModel,n.sers,t)}function Zd(r,e,t){if(e)for(var n=0;n<e.length;n++){var i=e[n];r.isSeriesFiltered(i)||t(i)}}function P2(r,e,t){process.env.NODE_ENV!=="production"&&B(e!=null);var n=Fa(Ba(r)).keyed,i=n&&n.get(e);i&&i.each(function(a){process.env.NODE_ENV!=="production"&&B(a.sers.length>0),t(a.axis)})}function Sb(r,e){process.env.NODE_ENV!=="production"&&Oi(r);var t=r.model,n=Fa(Ba(t.ecModel)).keys;n&&E(n.get(t.uid),function(i){if(process.env.NODE_ENV!=="production"){var a=$d(r,i);B(a&&a.sers.length>0)}e(i)})}function R2(r){var e=A2(II(r)),t=e.keyed||(e.keyed=ee());mb(r,function(n,i,a){var o=t.get(i)||t.set(i,ee()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&bb.liPosMinGap(r,n,s)})}function N2(r,e){bb[r]=e}var bb={};function gv(r,e,t){if(r){var n=e.ecModel,i=Fa(Ba(n)),a=r.model.uid;if(process.env.NODE_ENV!=="production"){Oi(r);var o=i.axSerPairCheck||(i.axSerPairCheck=ee()),s=""+a+Tu+e.uid;B(!o.get(s)),o.set(s,1)}var l=i.axSer||(i.axSer=ee()),u=l.get(a)||l.set(a,[]);if(process.env.NODE_ENV!=="production"){var f=u[u.length-1];f&&B(f.seriesIndex<e.seriesIndex)}u.push(e);var c=e.subType,h=e.getBaseAxis()===r,v=Cu.get(mv(c,h,t))||Cu.get(mv(c,h,null));if(v){var d=i.keyed||(i.keyed=ee()),p=i.keys||(i.keys=ee()),g=v.key,m=d.get(g)||d.set(g,ee()),y=m.get(a);y||(y=m.set(a,{axis:r,sers:[],serByIdx:[]}),y.metrics=v.getMetrics(r),(p.get(a)||p.set(a,[])).push(g)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function mv(r,e,t){return r+Tu+Q(e,!0)+Tu+(t||"")}function k2(r,e){var t=mv(e.seriesType,e.baseAxis,e.coordSysType);process.env.NODE_ENV!=="production"&&(B(e.seriesType&&e.key&&!yv.get(e.key)&&!Cu.get(t)),yv.set(e.key,1)),Cu.set(t,e),E2(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:R2})})}var yv;process.env.NODE_ENV!=="production"&&(yv=ee());var Cu=ee(),V2=we(),wb=1,B2=2,z2=3,xb=function(){function r(e,t,n,i,a){var o=ur(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(bu(e)||Ma(e)||Wd(e))&&(R_(f,ro(e,t.get("dataMin",!0))),N_(f,ro(e,t.get("dataMax",!0)))),OC(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],v=t.get("min",!0);v==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=ro(e,re(v)?v({min:f[0],max:f[1]}):v),h[0]=c[0]!=null);var d=t.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=ro(e,re(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var p=F2(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!qr(c[0])&&(c[0]=NaN),!qr(c[1])&&(c[1]=NaN);var m=l||zr(c[0])||zr(c[1])||o&&!s,y=bu(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=ro(e,t.get("startValue",!0)),w=b!=null;!Dt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Dt(b)&&(w||!y||_)&&(b<c[0]&&!h[0]?(c[0]=b,h[0]=!0):b>c[1]&&!h[1]&&(c[1]=b,h[1]=!0));var x=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};ny(x,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=i[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=i[1]=!0),ny(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r}();function ny(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),PC(e))}function ro(r,e){return e==null?null:zr(e)?NaN:r.parse(e)}function F2(r,e){var t;if(ur(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(process.env.NODE_ENV!=="production"&&n===!0&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.'),n=null),t=U(n)?n:[n,n]}return[iy(t[0]),iy(t[1])]}function iy(r){return Xr(typeof r=="boolean"?0:r,1)||0}function Tb(r){var e=V2(r.scale);return e.extent||(e.extent=Bt()),e}function H2(r,e){Tb(r).dimIdxInCoord=e.get(r.dim)}function Cb(r,e){var t=r.scale,n=r.model,i=r.dim;if(process.env.NODE_ENV!=="production"&&B(t&&n&&i),t.rawExtentInfo){process.env.NODE_ENV!=="production"&&B(t.rawExtentInfo.from!==e||e===B2);return}G2(t,r,i,n,e)}function G2(r,e,t,n,i){var a=Tb(e),o=a.extent,s=!1;O2(e,function(f){if(f.boxCoordinateSystem){var c=YS(f).coord,h=a.dimIdxInCoord;if(!(h>=0))process.env.NODE_ENV!=="production"&&Se('Property "series.coord" is not supported on axis '+f.boxCoordinateSystem.type+".");else if(U(c)){var v=c[h];v!=null&&!U(v)&&Ph(o,r.parse(v))}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;E(C2(d,t),function(g){LC(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=Y2(r,e,n),u=new xb(r,n,o,s,l);Db(r,u,i),a.extent=null}function U2(r,e){var t=r.scale;process.env.NODE_ENV!=="production"&&B(!t.rawExtentInfo),Db(t,new xb(t,r.model,e,!1,!1),z2)}function Db(r,e,t){r.rawExtentInfo=e,e.from=t}function W2(r,e){process.env.NODE_ENV!=="production"&&B(!Du.get(r)),Du.set(r,e)}var Du=ee();function Eb(r,e,t,n,i){process.env.NODE_ENV!=="production"&&B(!0),r.rawExtentInfo||U2({scale:r,model:e},Bt());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),n&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function Y2(r,e,t){var n=db(r,t),i=t.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return Sb(e,function(o){a=!!Du.get(o)||a}),a}function X2(r,e,t,n){if(t.ctnShp){var i;if(Sb(r,function(s){var l=Du.get(s);if(l){var u=l(r,n);u&&(i=i||[0,0],R_(i,u[0]),N_(i,u[1]),w2(r))}}),!!i){var a=e.getExtent();if(ur(e))r.onBand||e.setExtent2(Qo,st(a[0],a[0]+i[0]),ye(a[1],a[1]+i[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=st(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),t.zoomFixMM[1]||(o[1]=ye(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Qo,o[0],o[1])}}}}function ay(r,e){var t=Ma(r),n=t?r.intervalStub:r,i=e.fixMinMax||[],a=t?r.getExtent():null,o=n.getExtent(),s=sb(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?Z2(n,e):$2(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=xi(c)),i[0]||(s[0]=pe(yi(s[0]/f)*f,u)),i[1]||(s[1]=pe(ls(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),vb(r,i,o,s,a,l)}function $2(r,e){var t=gf(e.splitNumber,5),n=pf(r);process.env.NODE_ENV!=="production"&&B(isFinite(n)&&n>0);var i=e.minInterval,a=e.maxInterval,o=Xv(n/t,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=xi(o),l=r.getExtent(),u=[pe(ls(l[0]/o)*o,s),pe(yi(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function Z2(r,e){var t=gf(e.splitNumber,10),n=r.getExtent(),i=pf(r);process.env.NODE_ENV!=="production"&&B(isFinite(i)&&i>0);var a=ye(T_(i),1),o=t/i*a;o<=.5&&(a*=10);var s=xi(a),l=[pe(ls(n[0]/a)*a,s),pe(yi(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function oy(r){var e=r.scale,t=r.model,n=t.axis,i=t.ecModel;process.env.NODE_ENV!=="production"&&B(n&&i),q2(e,t,n,i)}function q2(r,e,t,n,i){var a=Eb(r,e,n,t),o=bu(r)||Wd(r);K2(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&n&&X2(t,r,a,n),process.env.NODE_ENV!=="production"&&r.freeze()}function K2(r,e){j2[r.type](r,e)}var j2={interval:ay,log:ay,time:g2,ordinal:$e},sy=[],Q2={registerPreprocessor:K1,registerProcessor:j1,registerPostInit:xL,registerPostUpdate:TL,registerUpdateLifecycle:Bd,registerAction:Ii,registerCoordinateSystem:CL,registerLayout:DL,registerVisual:Li,registerTransform:ML,registerLoading:Q1,registerMap:EL,registerImpl:DI,PRIORITY:gL,ComponentModel:ge,ComponentView:Tt,SeriesModel:ft,ChartView:tt,registerComponentModel:function(r){ge.registerClass(r)},registerComponentView:function(r){Tt.registerClass(r)},registerSeriesModel:function(r){ft.registerClass(r)},registerChartView:function(r){tt.registerClass(r)},registerCustomSeries:function(r,e){},registerSubTypeDefaulter:function(r,e){ge.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){rC(r,e)}};function qt(r){if(U(r)){E(r,function(e){qt(e)});return}de(sy,r)>=0||(sy.push(r),re(r)&&(r={install:r}),r.install(Q2))}var J2=we(),No=we(),ir={estimate:1,determine:2};function Eu(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function eO(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:q(Mb(t,n),function(i,a){return{formattedLabel:mf(r)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return r.type==="category"?rO(r,e):iO(r)}function tO(r,e,t){var n=r.scale,i=r.getTickModel().get("customValues");return i?{ticks:Mb(i,n)}:r.type==="category"?nO(r,e):{ticks:n.getTicks(t)}}function Mb(r,e){var t=e.getExtent(),n=[];return E(r,function(i){i=e.parse(i),i>=t[0]&&i<=t[1]&&n.push(i)}),Kv(n,kC,null),Pa(n),q(n,function(i){return{value:i}})}function rO(r,e){var t=r.getLabelModel(),n=Ab(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function Ab(r,e,t){var n=oO(r),i=Xd(e),a=t.kind===ir.estimate;if(!a){var o=Lb(n,i);if(o)return o}var s,l;re(i)?s=Mu(r,i,!1):(l=i==="auto"?sO(r,t):i,s=Mu(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return _v(n,i,u),!0}):_v(n,i,u),u}function nO(r,e){var t=aO(r),n=Xd(e),i=Lb(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),re(n))a=Mu(r,n,!0);else if(n==="auto"){var s=Ab(r,r.getLabelModel(),Eu(ir.determine));o=s.labelCategoryInterval,a=q(s.labels,function(l){return l.tick})}else o=n,a=Mu(r,o,!0);return _v(t,n,{ticks:a,tickCategoryInterval:o})}function iO(r){var e=r.scale.getTicks(),t=mf(r);return{labels:q(e,function(n,i){return{formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tick:n}})}}var aO=Ib("axisTick"),oO=Ib("axisLabel");function Ib(r){return function(t){return No(t)[r]||(No(t)[r]={list:[]})}}function Lb(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function _v(r,e,t){return r.list.push({key:e,value:t}),t}function sO(r,e){if(e.kind===ir.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return No(r).autoInterval=t,!0}),t}var n=No(r).autoInterval;return n??(No(r).autoInterval=r.calculateCategoryInterval(e))}function lO(r,e){var t=e.kind,n=fO(r),i=mf(r),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=y_(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/v,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(t===ir.estimate)return e.out.noPxChangeTryDetermine.push(oe(uO,null,r,w,l)),w;var x=Ob(r,w,l);return x??w}function uO(r,e,t){return Ob(r,e,t)==null}function Ob(r,e,t){var n=J2(r.model),i=r.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function fO(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 Mu(r,e,t){var n=mf(r),i=r.scale,a=[],o=re(e);return lb(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var cO=.8;function Dn(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,i=e.fromStat,a=e.min,o=r2(n);Dt(o)||(o=NaN);var s=r.getExtent(),l=ke(s[1]-s[0]);return ur(n)?hO(t,r,o,l):i?vO(t,r,o,l,i):a==null&&process.env.NODE_ENV!=="production"&&B(!1),a!=null&&(t.w=Dt(t.w)?ye(a,t.w):a),t}function hO(r,e,t,n){var i=e.onBand,a=t+(i?1:0);a===0&&(a=1),r.w=n/a,!i&&t&&n&&(r.w2=r.w*t/n)}function vO(r,e,t,n,i){process.env.NODE_ENV!=="production"&&B(i);var a=!1,o=-1/0;E(i.key?[I2(e,i.key)]:L2(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===gb&&(a=!0))}),Dt(t)&&t>0&&Dt(o)?(r.w=n/t*o,r.w2=o):a&&(r.w=n*cO,r.w2=r.w*t/n)}var ly=[0,1],Pb=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]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),je(e,ly,uy(this),t)},r.prototype.coordToData=function(e,t){var n=je(e,uy(this),ly,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=tO(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=q(n.ticks,function(s){return{coord:this.dataToCoord(_s(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=dO(this,i,a);return q(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(ur(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=q(n,function(a){return q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(e){return e=e||Eu(ir.determine),eO(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Dn(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||Eu(ir.determine),lO(this,e)},r}();function uy(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function dO(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var i=Dn(r).w;if(!i)return!1;E(e,function(s){s.coord-=i/2});var a=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function Rb(r,e,t,n,i,a,o,s){var l=i-r,u=a-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;d*=h;var p=o[0]=r+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var gn=new le,Ne=new le,Ke=new le,mn=new le,yr=new le,Au=[],ht=new le;function pO(r,e){if(e<=180&&e>0){e=e/180*Math.PI,gn.fromArray(r[0]),Ne.fromArray(r[1]),Ke.fromArray(r[2]),le.sub(mn,gn,Ne),le.sub(yr,Ke,Ne);var t=mn.len(),n=yr.len();if(!(t<.001||n<.001)){mn.scale(1/t),yr.scale(1/n);var i=mn.dot(yr),a=Math.cos(e);if(a<i){var o=Rb(Ne.x,Ne.y,Ke.x,Ke.y,gn.x,gn.y,Au);ht.fromArray(Au),ht.scaleAndAdd(yr,o/Math.tan(Math.PI-e));var s=Ke.x!==Ne.x?(ht.x-Ne.x)/(Ke.x-Ne.x):(ht.y-Ne.y)/(Ke.y-Ne.y);if(isNaN(s))return;s<0?le.copy(ht,Ne):s>1&&le.copy(ht,Ke),ht.toArray(r[1])}}}}function gO(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,gn.fromArray(r[0]),Ne.fromArray(r[1]),Ke.fromArray(r[2]),le.sub(mn,Ne,gn),le.sub(yr,Ke,Ne);var n=mn.len(),i=yr.len();if(!(n<.001||i<.001)){mn.scale(1/n),yr.scale(1/i);var a=mn.dot(e),o=Math.cos(t);if(a<o){var s=Rb(Ne.x,Ne.y,Ke.x,Ke.y,gn.x,gn.y,Au);ht.fromArray(Au);var l=Math.PI/2,u=Math.acos(yr.dot(e)),f=l+u-t;if(f>=l)le.copy(ht,Ke);else{ht.scaleAndAdd(yr,s/Math.tan(Math.PI/2-f));var c=Ke.x!==Ne.x?(ht.x-Ne.x)/(Ke.x-Ne.x):(ht.y-Ne.y)/(Ke.y-Ne.y);if(isNaN(c))return;c<0?le.copy(ht,Ne):c>1&&le.copy(ht,Ke)}ht.toArray(r[1])}}}}function kc(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function mO(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 i=vh(n[0],n[1]),a=vh(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=Df([],n[1],n[0],o/i),l=Df([],n[1],n[2],o/a),u=Df([],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 yO(r,e,t){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<tu.length;l++){var u=tu[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:Q(i.states[u]&&i.states[u].ignore,s);if(v||!Q(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&kc(n,!0,u,f);continue}n||(n=new Mi,r.setTextGuideLine(n),!c&&(s||!o)&&kc(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),kc(n,!1,u,f)}}if(n){ce(n.style,t),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=mO}}function _O(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Zt.length;n++){var i=Zt[n];t[i]=r.getModel([i,e])}return t}var fy=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],SO=1,Iu=2,Nb=SO|Iu;function Lu(r,e,t){t=t||Nb,e?r.dirty|=t:r.dirty&=~t}function kb(r,e){return e=e||Nb,r.dirty==null||!!(r.dirty&e)}function En(r){if(r)return kb(r)&&Vb(r,r.label,r),r}function Vb(r,e,t){var n=e.getComputedTransform();r.transform=dd(r.transform,n);var i=r.localRect=$o(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=sa.textMargin);for(var c=0;c<4;c++)Vc[c]=f===sa.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===sa.textMargin&&au(i,Vc,!1,!1);var h=r.rect=$o(r.rect,i);return n&&h.applyTransform(n),f===sa.minMargin&&au(h,Vc,!1,!1),r.axisAligned=vd(n),(r.label=r.label||{}).ignore=e.ignore,Lu(r,!1),Lu(r,!0,Iu),r}var Vc=[0,0,0,0];function bO(r,e,t){return r.transform=dd(r.transform,t),r.localRect=$o(r.localRect,e),r.rect=$o(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=vd(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function wO(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,t)}}function cy(r,e){for(var t=0;t<fy.length;t++){var n=fy[t];r[n]==null&&(r[n]=e[n])}return En(r)}function hy(r){var e=r.obb;return(!e||kb(r,Iu))&&(r.obb=e=e||new dS,e.fromBoundingRect(r.localRect,r.transform),Lu(r,!1,Iu)),e}function xO(r,e,t,n,i){var a=r.length,o=Nr[e],s=Tn[e];if(a<2)return!1;r.sort(function(x,C){return x.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[a-1],g,m;y(),g<0&&b(-g,.8),m<0&&b(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[o]-t,m=n-p.rect[o]-p.rect[s]}function _(x,C,M){if(x<0){var T=Math.min(C,-x);if(T>0){S(T*M,0,a);var D=T+x;D<0&&b(-D*M,1)}else b(-x*M,1)}}function S(x,C,M){x!==0&&(f=!0);for(var T=C;T<M;T++){var D=r[T],I=D.rect;I[o]+=x,D.label[o]+=x}}function b(x,C){for(var M=[],T=0,D=1;D<a;D++){var I=r[D-1].rect,A=Math.max(r[D].rect[o]-I[o]-I[s],0);M.push(A),T+=A}if(T){var L=Math.min(Math.abs(x)/T,C);if(x>0)for(var D=0;D<a-1;D++){var O=M[D]*L;S(O,0,D+1)}else for(var D=a-1;D>0;D--){var O=M[D-1]*L;S(-O,D,a)}}}function w(x){var C=x<0?-1:1;x=Math.abs(x);for(var M=Math.ceil(x/(a-1)),T=0;T<a-1;T++)if(C>0?S(M,0,T+1):S(-M,a-T-1,a),x-=M,x<=0)return}return f}function TO(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var i=En(r[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(qd(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(a),o&&t(o)):e.push(i)}}}function qd(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:hy(r).intersect(hy(e),t,n)}const CO=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function DO(r){function e(t){return function(...i){if(!r.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(r.value[t],r.value,i)}}return CO.reduce((t,n)=>(t[n]=e(n),t),{})}function EO(r,e,t){z.watch([t,r,e],([n,i,a],o,s)=>{let l=null;if(n&&i&&a){const{offsetWidth:u,offsetHeight:f}=n,{throttle:c=100,onResize:h}=a===!0?{}:a;let v=!1;const d=()=>{i.resize(),h==null||h()},p=c?hf(d,c):d;l=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===u&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||p()}),l.observe(n)}s(()=>{l&&(l.disconnect(),l=null)})})}const MO={autoresize:[Boolean,Object]},AO=Symbol();function IO(r,e,t){const n=z.inject(AO,{}),i=z.computed(()=>({...z.toValue(n),...t==null?void 0:t.value}));z.watchEffect(()=>{const a=r.value;a&&(e.value?a.showLoading(i.value):a.hideLoading())})}const LO={loading:Boolean,loadingOptions:Object};function Bb(){return typeof window<"u"&&typeof document<"u"}const OO=/^on[^a-z]/,zb=r=>OO.test(r);function PO(r){const e={};for(const t in r)zb(t)||(e[t]=r[t]);return e}function RO(r){const e=Number(r);return Number.isInteger(e)&&e>=0&&e<Math.pow(2,32)-1&&String(e)===r}function NO(r,e){const t=new Set(r),n=new Set(e);if(t.size!==n.size)return!1;for(const i of t)if(!n.has(i))return!1;return!0}function Fb(r){return r!=null&&typeof r=="object"&&!Array.isArray(r)}const kO="[vue-echarts]";function Sv(r){z.warn(`${kO} ${r}`)}const Hb={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},VO=Object.keys(Hb);function Bc(r){return VO.some(e=>r===e||r.startsWith(e+"-"))}function BO(r,e){const t=Bb()?document.createElement("div"):void 0,n=z.shallowReactive({}),i=z.shallowReactive({}),a=z.shallowReactive({}),o=z.shallowRef(!1),s=()=>o.value&&t?z.h(z.Teleport,{to:t},Object.entries(r).filter(([c])=>Bc(c)).map(([c,h])=>{const v=c;return z.h("div",{ref:d=>{d instanceof HTMLElement&&(n[v]=d)},style:{display:"contents"}},i[v]?h==null?void 0:h(a[v]):void 0)})):void 0;function l(c){return c!==null&&typeof c=="object"&&!Array.isArray(c)}function u(c){const h={...c},v=(d,p)=>{const g=d[p];if(Array.isArray(g))return d[p]=[...g],d[p];if(l(g))return d[p]={...g},d[p];if(g===void 0)return d[p]=RO(p)?[]:{},d[p]};return Object.keys(r).filter(d=>{const p=Bc(d);return p||Sv(`Invalid slot name: ${d}`),p}).forEach(d=>{const[p,...g]=d.split("-"),m=Hb[p];if(!m)return;const y=[...g,...m];if(y.length===0)return;let _=h;for(let S=0;S<y.length-1;S++)if(_=v(_,y[S]),!_)return;_[y[y.length-1]]=S=>(i[d]=!0,a[d]=S,n[d])}),h}let f=[];return z.onUpdated(()=>{const c=Object.keys(r).filter(Bc);NO(c,f)||(f.forEach(h=>{c.includes(h)||(delete a[h],delete i[h],delete n[h])}),f=c,e())}),z.onMounted(()=>{o.value=!0}),z.onUnmounted(()=>{t==null||t.remove()}),{teleportedSlots:s,patchOption:u}}let sn=null;const bv="x-vue-echarts";function zO(){if(sn!=null)return sn;const r=globalThis.customElements;if(!Bb()||!(r!=null&&r.get))return sn=!1,sn;if(!r.get(bv))try{class e extends HTMLElement{constructor(){super(...arguments);sp(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}r.define(bv,e)}catch{return sn=!1,sn}return sn=!0,sn}function FO(r){if(!Fb(r))return;const e=r.id;if(typeof e=="string")return e;if(typeof e=="number"&&Number.isFinite(e))return String(e)}function vy(r){const e=r,t=Array.isArray(e.options)?e.options.length:0,n=Array.isArray(e.media)?e.media.length:0,i=Object.create(null),a=[],o=[];for(const s of Object.keys(e)){if(s==="options"||s==="media")continue;const l=e[s];if(Array.isArray(l)){const u=l,f=new Set;let c=0;for(let h=0;h<u.length;h++){const v=FO(u[h]);v!==void 0?f.add(v):c++}i[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:c}}else Fb(l)?a.push(s):l!==void 0&&o.push(s)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:t,mediaLength:n,arrays:i,objects:a,scalars:o}}function dy(r,e){if(r.length===0)return[];if(e.length===0)return r.slice();const t=new Set(e),n=[];for(let i=0;i<r.length;i++){const a=r[i];t.has(a)||n.push(a)}return n}function HO(r,e){if(r.length===0)return!1;if(e.length===0)return!0;const t=new Set(e);for(let n=0;n<r.length;n++)if(!t.has(r[n]))return!0;return!1}function GO(r,e){const t=vy(e);if(!r)return{option:e,signature:t,plan:{notMerge:!1}};if(t.optionsLength<r.optionsLength)return{option:e,signature:t,plan:{notMerge:!0}};if(t.mediaLength<r.mediaLength)return{option:e,signature:t,plan:{notMerge:!0}};if(dy(r.scalars,t.scalars).length>0)return{option:e,signature:t,plan:{notMerge:!0}};const n=new Set,i=new Map,a=dy(r.objects,t.objects);for(let u=0;u<a.length;u++)i.set(a[u],null);for(const u of Object.keys(r.arrays)){const f=r.arrays[u];if(!f)continue;const c=t.arrays[u];if(!c){(f.idsSorted.length>0||f.noIdCount>0)&&(i.set(u,[]),n.add(u));continue}if(HO(f.idsSorted,c.idsSorted)){n.add(u);continue}c.noIdCount<f.noIdCount&&n.add(u)}let o=e,s=t;if(i.size>0){const u={...e};i.forEach((f,c)=>{u[c]=f}),o=u,s=vy(o)}const l=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:l?{notMerge:!1,replaceMerge:l}:{notMerge:!1}}}var py=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
|
42
|
+
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
|
43
|
+
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const r=new CSSStyleSheet;r.replaceSync(py),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r=document.createElement("style");r.textContent=py,document.head.appendChild(r)}const UO=zO(),WO=Symbol(),YO=Symbol(),XO=Symbol();var $O=z.defineComponent({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...MO,...LO},emits:{},slots:Object,setup(r,{attrs:e,expose:t,slots:n}){const i=z.shallowRef(),a=z.shallowRef(),o=z.inject(WO,null),s=z.inject(YO,null),l=z.inject(XO,null),{autoresize:u,manualUpdate:f,loading:c,loadingOptions:h}=z.toRefs(r),v=z.computed(()=>r.theme||z.toValue(o)),d=z.computed(()=>r.initOptions||z.toValue(s)||void 0),p=z.computed(()=>r.updateOptions||z.toValue(l)),g=z.computed(()=>PO(e)),m={},y=new Map,{teleportedSlots:_,patchOption:S}=BO(n,()=>{!f.value&&r.option&&a.value&&x(a.value,r.option)});let b;function w(I){const A={},L=((I==null?void 0:I.replaceMerge)??[]).filter(O=>O!=null);return L.length>0&&(A.replaceMerge=[...new Set(L)]),(I==null?void 0:I.notMerge)!==void 0&&(A.notMerge=I.notMerge),A}function x(I,A,L,O=!1){const P=S(A);if(O){I.setOption(P,L??{}),b=void 0;return}if(p.value){const k=L??p.value;I.setOption(P,k),b=void 0;return}const N=GO(b,P),R=w(N.plan);I.setOption(N.option,R),b=N.signature}Object.keys(e).filter(I=>zb(I)).forEach(I=>{if(I.indexOf("Native:")===2){const P=`on${I.charAt(9).toUpperCase()}${I.slice(10)}`;m[P]=e[I];return}let A=I.charAt(2).toLowerCase()+I.slice(3),L;A.indexOf("zr:")===0&&(L=!0,A=A.substring(3));let O;A.substring(A.length-4)==="Once"&&(O=!0,A=A.substring(0,A.length-4)),y.set({event:A,zr:L,once:O},e[I])});function C(){if(!i.value)return;const I=a.value=bL(i.value,v.value,d.value);r.group&&(I.group=r.group),y.forEach((O,{zr:P,once:N,event:R})=>{if(!O)return;const k=P?I.getZr():I;if(N){const F=O;let V=!1;O=(...X)=>{V||(V=!0,F(...X),k.off(R,O))}}k.on(R,O)});function A(){I&&!I.isDisposed()&&I.resize()}function L(){const{option:O}=r;if(f.value){O&&x(I,O,void 0,!0);return}O&&x(I,O)}u.value?z.nextTick(()=>{A(),L()}):L()}const M=(I,A,L)=>{if(!r.manualUpdate){Sv("`setOption` is only available when `manual-update` is `true`.");return}const O=typeof A=="boolean"?{notMerge:A,lazyUpdate:L}:A;a.value&&x(a.value,I,O??void 0,!0)};function T(){a.value&&(a.value.dispose(),a.value=void 0),b=void 0}z.watch(()=>r.option,I=>{if(!I){b=void 0;return}if(f.value){Sv("`option` prop changes are ignored when `manual-update` is `true`.");return}a.value&&x(a.value,I)},{deep:!0}),z.watch([f,d],()=>{T(),C()},{deep:!0}),z.watch(v,I=>{var A;(A=a.value)==null||A.setTheme(I||{})},{deep:!0}),z.watchEffect(()=>{r.group&&a.value&&(a.value.group=r.group)});const D=DO(a);return IO(a,c,h),EO(a,u,i),z.onMounted(()=>{C()}),z.onBeforeUnmount(()=>{UO&&i.value?i.value.__dispose=T:T()}),t({setOption:M,root:i,chart:a,...D}),()=>z.h(bv,{...g.value,...m,ref:i,class:["echarts",g.value.class]},_())}}),ZO=$O;const qO={class:"chart-error",role:"alert"},KO={class:"chart-error__text"},jO=z.defineComponent({name:"ChartErrorFallback",__name:"ChartErrorFallback",props:{message:{}},setup(r){return(e,t)=>(z.openBlock(),z.createElementBlock("div",qO,[t[0]||(t[0]=z.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[z.createElementVNode("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"})],-1)),z.createElementVNode("span",KO,z.toDisplayString(r.message||"图表渲染失败"),1)]))}}),QO=os._export_sfc(jO,[["__scopeId","data-v-4cf79f82"]]),JO={class:"chart-skeleton",role:"status","aria-label":"图表加载中"},eP={class:"chart-skeleton__svg",viewBox:"0 0 240 140","aria-hidden":"true"},tP=["x","y","height"],rP={key:1,points:"20,100 60,60 100,85 140,40 180,70 220,30",fill:"none","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"},nP={key:2,cx:"120",cy:"70",r:"52",fill:"none","stroke-width":"22"},iP={key:3,points:"120,18 176,54 156,116 84,116 64,54",fill:"none","stroke-width":"3"},aP=["cx","cy"],oP=["x","y"],sP={key:6,d:"M 30 110 A 90 90 0 0 1 210 110",fill:"none","stroke-width":"14","stroke-linecap":"round"},lP={key:8,x:"20",y:"20",width:"200",height:"100",rx:"8"},uP=z.defineComponent({name:"ChartSkeleton",__name:"ChartSkeleton",props:{type:{}},setup(r){return(e,t)=>(z.openBlock(),z.createElementBlock("div",JO,[(z.openBlock(),z.createElementBlock("svg",eP,[r.type==="bar"?(z.openBlock(),z.createElementBlock(z.Fragment,{key:0},z.renderList([40,70,55,90,65],(n,i)=>z.createElementVNode("rect",{key:i,x:20+i*40,y:130-n,width:"24",height:n,rx:"4"},null,8,tP)),64)):r.type==="line"?(z.openBlock(),z.createElementBlock("polyline",rP)):r.type==="pie"?(z.openBlock(),z.createElementBlock("circle",nP)):r.type==="radar"?(z.openBlock(),z.createElementBlock("polygon",iP)):r.type==="scatter"?(z.openBlock(),z.createElementBlock(z.Fragment,{key:4},z.renderList([[30,100],[60,60],[95,110],[130,50],[160,90],[195,40],[210,100]],(n,i)=>z.createElementVNode("circle",{key:i,cx:n[0],cy:n[1],r:"6"},null,8,aP)),64)):r.type==="heatmap"?(z.openBlock(),z.createElementBlock(z.Fragment,{key:5},z.renderList(24,n=>z.createElementVNode("rect",{key:n,x:20+n%6*34,y:16+Math.floor(n/6)*30,width:"28",height:"24",rx:"2"},null,8,oP)),64)):r.type==="gauge"?(z.openBlock(),z.createElementBlock("path",sP)):r.type==="sankey"?(z.openBlock(),z.createElementBlock(z.Fragment,{key:7},[t[0]||(t[0]=z.createStaticVNode('<rect x="10" y="30" width="16" height="30" rx="2" data-v-85469303></rect><rect x="10" y="80" width="16" height="30" rx="2" data-v-85469303></rect><rect x="212" y="50" width="16" height="60" rx="2" data-v-85469303></rect><path d="M26,40 C120,40 120,60 212,60" fill="none" stroke-width="10" opacity="0.5" data-v-85469303></path><path d="M26,95 C120,95 120,80 212,80" fill="none" stroke-width="10" opacity="0.5" data-v-85469303></path>',5))],64)):(z.openBlock(),z.createElementBlock("rect",lP))])),t[1]||(t[1]=z.createElementVNode("div",{class:"chart-skeleton__shimmer","aria-hidden":"true"},null,-1))]))}}),fP=os._export_sfc(uP,[["__scopeId","data-v-85469303"]]);var cP=function(r){H(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 za(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Ee,i=Et("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=Et(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=Y.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(ft);function Kd(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=Da(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<t.length;o++)a.push(Da(r,e,t[o]));return a.join(" ")}}function Gb(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],i=0;i<t.length;i++){var a=r.getDimensionIndex(t[i]);a>=0&&n.push(e[a])}return n.join(" ")}var jd=function(r){H(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o,s){this.removeAll();var l=Et(t,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=hP,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Uo(this.childAt(0))},e.prototype.downplay=function(){Wo(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Be(v,d,s,n),Yo(v)}if(this._updateCommon(t,n,l,i,a),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ze(v,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Mr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=L1(t.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=t.getItemVisual(n,"style"),x=w.fill;if(s instanceof Kt){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=t.getItemVisual(n,"liftZ"),T=this._z2;M!=null?T==null&&(this._z2=s.z2,s.z2+=M):T!=null&&(s.z2=T,this._z2=null);var D=o&&o.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:x,defaultOpacity:w.opacity});function I(O){return D?t.getName(O):Kd(t,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var A=s.ensureState("emphasis");A.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;A.scaleX=this._sizeX*L,A.scaleY=this._sizeY*L,this.setSymbolScale(1),rr(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=ve(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&iu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();iu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return I1(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Ee);function hP(r,e){this.parent.drift(r,e)}function nl(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function gy(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function my(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:Mr(e),cursorStyle:e.get("cursor")}}function yy(r,e,t,n,i,a,o){var s=new r(e,t,n,i);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var Ub=function(){function r(e){this.group=new Ee,this._SymbolCtor=e||jd}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=gy(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=my(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);nl(e,h,c,t)&&yy(o,e,c,l,u,h,n)}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!nl(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 m={x:d[0],y:d[1]};s?v.attr(m):Be(v,m,i)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,i=t.getStore(),a=0,o=i.count();a<o;a++){var s=t.getItemGraphicEl(a),l=n._getSymbolPoint(a);nl(t,l,a,e)?(s=s||yy(n._SymbolCtor,t,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),t.setItemGraphicEl(a,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=my(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n,i){this._progressiveEls=[],i=gy(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=af)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(nl(t,s,o,i)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){hs(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},n.hostModel)}):t.removeAll()},r}();function Wb(r,e,t){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=vP(i,t),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=q(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Ea(e,c[0])&&(h=!0,c[0]=v),Ea(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function vP(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:_e(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function Yb(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Xt(r,e){return!isFinite(r)||!isFinite(e)}var dP=typeof Float32Array!==ka?Float32Array:void 0,pP=typeof Float64Array!==ka?Float64Array:void 0;function Vr(r){return Qd({ctor:dP},r).arr}function Qd(r,e){process.env.NODE_ENV!=="production"&&B(e!=null&&isFinite(e)&&e>=0&&r.hasOwnProperty("ctor"));var t=r.arr,n=r.ctor;if(e>Yp&&(e=Yp),!t||r.typed&&t.length<e){var i=void 0;if(n)try{i=new n(e),r.typed=!0,t&&i.set(t)}catch(s){process.env.NODE_ENV!=="production"&&Se(s)}if(!i&&(i=[],r.typed=!1,t))for(var a=0,o=t.length;a<o;a++)i[a]=t[a];r.arr=i}return r}function gP(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function mP(r,e,t,n,i,a,o,s){for(var l=gP(r,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=Wb(i,e,o),m=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,x=void 0;switch(S.cmd){case"=":w=S.idx*2,x=S.idx1*2;var C=m[w],M=m[w+1],T=y[x],D=y[x+1];(isNaN(C)||isNaN(M))&&(C=T,M=D),u.push(C,M),f.push(T,D),c.push(t[w],t[w+1]),h.push(n[x],n[x+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,A=g.dataDimsForPoint,L=i.dataToPoint([e.get(A[0],I),e.get(A[1],I)]);x=I*2,u.push(L[0],L[1]),f.push(y[x],y[x+1]);var O=Yb(g,i,e,I);c.push(O[0],O[1]),h.push(n[x],n[x+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(J,fe){return p[J]-p[fe]});for(var P=u.length,N=Vr(P),R=Vr(P),k=Vr(P),F=Vr(P),V=[],_=0;_<d.length;_++){var X=d[_],Z=_*2,W=X*2;N[Z]=u[W],N[Z+1]=u[W+1],R[Z]=f[W],R[Z+1]=f[W+1],k[Z]=c[W],k[Z+1]=c[W+1],F[Z]=h[W],F[Z+1]=h[W+1],V[_]=v[X]}return{current:N,next:R,stackedOnCurrent:k,stackedOnNext:F,status:V}}var ln=Math.min,un=Math.max;function wv(r,e,t,n,i,a,o,s,l){for(var u,f,c,h,v,d,p=t,g=0;g<n;g++){var m=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if(Xt(m,y)){if(l){p+=a;continue}break}if(p===t)r[a>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],x=e[b*2+1];w===m&&x===y&&g<n;)g++,b+=a,p+=a,w=e[b*2],x=e[b*2+1],m=e[p*2],y=e[p*2+1],_=m-u,S=y-f;var C=g+1;if(l)for(;Xt(w,x)&&C<n;)C++,b+=a,w=e[b*2],x=e[b*2+1];var M=.5,T=0,D=0,I=void 0,A=void 0;if(C>=n||Xt(w,x))v=m,d=y;else{T=w-u,D=x-f;var L=m-u,O=w-m,P=y-f,N=x-y,R=void 0,k=void 0;if(s==="x"){R=Math.abs(L),k=Math.abs(O);var F=T>0?1:-1;v=m-F*R*o,d=y,I=m+F*k*o,A=y}else if(s==="y"){R=Math.abs(P),k=Math.abs(N);var V=D>0?1:-1;v=m,d=y-V*R*o,I=m,A=y+V*k*o}else R=Math.sqrt(L*L+P*P),k=Math.sqrt(O*O+N*N),M=k/(k+R),v=m-T*o*(1-M),d=y-D*o*(1-M),I=m+T*o*M,A=y+D*o*M,I=ln(I,un(w,m)),A=ln(A,un(x,y)),I=un(I,ln(w,m)),A=un(A,ln(x,y)),T=I-m,D=A-y,v=m-T*R/k,d=y-D*R/k,v=ln(v,un(u,m)),d=ln(d,un(f,y)),v=un(v,ln(u,m)),d=un(d,ln(f,y)),T=m-v,D=y-d,I=m+T*k/R,A=y+D*k/R}r.bezierCurveTo(c,h,v,d,m,y),c=I,h=A}else r.lineTo(m,y)}u=m,f=y,p+=a}return g}var Xb=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),yP=function(r){H(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:Y.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Xb},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Xt(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Xt(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=wv(t,i,a,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 i=this.path,a=i.data,o=Si.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[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=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var b=u?Yl(s,v,p,m,t,f):Yl(l,d,g,y,t,f);if(b>0)for(var w=0;w<b;w++){var x=f[w];if(x<=1&&x>=0){var S=u?Je(l,d,g,y,x):Je(s,v,p,m,x);return u?[t,S]:[S,t]}}s=m,l=y;break}}},e}(be),_P=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Xb),SP=function(r){H(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 _P},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Xt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Xt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=wv(t,i,o,s,s,1,n.smooth,l,n.connectNulls);wv(t,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(be);function $b(r,e,t,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ce({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=re(i)?function(g){i(g,c)}:null;Ze(c,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return c}function Zb(r,e,t){var n=r.getArea(),i=pe(n.r0,1),a=pe(n.r,1),o=new Dr({shape:{cx:pe(r.cx,1),cy:pe(r.cy,1),r0:i,r:a,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=i,Ze(o,{shape:{endAngle:n.endAngle,r:a}},t)}return o}function bP(r,e,t,n,i){if(r){if(r.type==="polar")return Zb(r,e,t);if(r.type==="cartesian2d")return $b(r,e,t,n,i)}else return null;return null}function wP(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Ou(r,e){return r.type===e}function _y(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}var Sy={};function xP(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;Sy[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),Sy[t]=!0)}}function by(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function wy(r){for(var e=Bt(),t=Bt(),n=0;n<r.length;){var i=r[n++],a=r[n++];Xt(i,a)||(Ph(e,i),Ph(t,a))}return[e,t]}function xy(r,e){var t=wy(r),n=t[0],i=t[1],a=wy(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function Ty(r){return _e(r)?r:r?.5:0}function TP(r,e,t){if(t.valueDim==null)return[];for(var n=e.count(),i=Vr(n*2),a=0;a<n;a++){var o=Yb(t,r,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function fn(r,e,t,n,i){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(i){for(l=0;l<r.length;l+=2){var v=e||r;Xt(v[l],v[l+1])||h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function CP(r,e){var t=[],n=r.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=MT(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)i=l;else if(u>e){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function DP(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 i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=q(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=CP(u,i==="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,m=g-p;if(m<.001)return"transparent";E(h,function(_){_.offset=(_.coord-p)/m}),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 y=new nf(0,0,0,0,h,!0);return y[i]=p,y[i+"2"]=g,y}}function EP(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&MP(a,e))){var o=e.mapDimension(a.dim),s={};return E(a.getViewLabels(),function(l){l.tick.offInterval||(s[_s(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function MP(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(jd.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function AP(r){for(var e=r.length/2;e>0&&Xt(r[e*2-2],r[e*2-1]);e--);return e-1}function Cy(r,e){return[r[e*2],r[e*2+1]]}function IP(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!Xt(o,r[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function qb(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Zt.length;e++)if(r.get([Zt[e],"endLabel","show"]))return!0;return!1}function zc(r,e,t,n){if(Ou(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=qb(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=$b(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."),Zb(e,t,n)}function LP(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var OP=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ee,n=new Ub;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=oe(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=Wb(a,s,_),b=y&&TP(a,s,S),w=t.get("showSymbol"),x=t.get("connectNulls"),C=w&&!c&&EP(t,s,a),M=this._data;M&&M.eachItemGraphicEl(function(xe,Le){xe.__temp&&(o.remove(xe),M.setItemGraphicEl(Le,null))}),w||v.remove(),o.add(g);var T=c?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=DP(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&T===this._step))w&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(xe){return[f[xe*2],f[xe*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,D),T&&(b&&(b=fn(b,f,a,T,x)),f=fn(f,null,a,T,x)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,wi(I)),g.setClipPath(zc(this,a,!0,t));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,wi(I));var A=g.getClipPath();if(A){var L=zc(this,a,!1,t);Ze(A,{shape:L.shape},t)}else g.setClipPath(zc(this,a,!0,t));w&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(xe){return[f[xe*2],f[xe*2+1]]}}),(!by(this._stackedOnPoints,b)||!by(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,T,_,x):(T&&(b&&(b=fn(b,f,a,T,x)),f=fn(f,null,a,T,x)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var O=t.getModel("emphasis"),P=O.get("focus"),N=O.get("blurScope"),R=O.get("disabled");if(d.useStyle(ce(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Cr(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var k=d.getState("emphasis").style;k.lineWidth=+d.style.lineWidth+1}ve(d).seriesIndex=t.seriesIndex,rr(d,P,N,R);var F=Ty(t.get("smooth")),V=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:V,connectNulls:x}),p){var X=s.getCalculationInfo("stackedOnSeries"),Z=0;p.useStyle(ce(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(Z=Ty(X.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:Z,smoothMonotone:V,connectNulls:x}),Cr(p,t,"areaStyle"),ve(p).seriesIndex=t.seriesIndex,rr(p,P,N,R)}var W=this._changePolyState;s.eachItemGraphicEl(function(xe){xe&&(xe.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=T,this._valueOrigin=_;var J=t.get("triggerEvent"),fe=t.get("triggerLineEvent");process.env.NODE_ENV!=="production"&&fe&&xP("triggerLineEvent","Use the `triggerEvent` option instead.");var Pe=fe===!0||J===!0||J==="line",ze=fe===!0||J===!0||J==="area";this.packEventData(t,d,Pe),p&&this.packEventData(t,p,ze)},e.prototype.packEventData=function(t,n,i){ve(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=_i(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Xt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new jd(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 tt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=_i(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else tt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;bg(this._polyline,t),n&&bg(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new yP({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new SP({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");re(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=re(c)?c(null):c;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var C=re(c)?c(d):f*x+h,M=p.getSymbolPath(),T=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(qb(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 Ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=AP(l);f>=0&&(Kr(s,Mr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?Gb(o,v):Kd(o,c)},enableTextSetter:!0},LP(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),x=m?"x":"y",C=IP(c,S,x),M=C.range,T=M[1]-M[0],D=void 0;if(T>=1){if(T>1&&!v){var I=Cy(c,M[0]);u.attr({x:I[0]+b,y:I[1]+w}),o&&(D=h.getRawValue(M[0]))}else{var I=f.getPointOn(S,x);I&&u.attr({x:I[0]+b,y:I[1]+w});var A=h.getRawValue(M[0]),L=h.getRawValue(M[1]);o&&(D=P_(i,d,A,L,C.t))}a.lastFrameIndex=M[0]}else{var O=t===1||a.lastFrameIndex>0?M[0]:0,I=Cy(c,O);o&&(D=h.getRawValue(O)),u.attr({x:I[0]+b,y:I[1]+w})}if(o){var P=vs(u);typeof P.setLabelText=="function"&&P.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=mP(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=fn(h.stackedOnCurrent,h.current,i,o,l),v=fn(h.current,null,i,o,l),g=fn(h.stackedOnNext,h.next,i,o,l),p=fn(h.next,null,i,o,l)),xy(v,p)>3e3||f&&xy(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 m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),Be(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Be(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;C<y.length;C++){var M=y[C].el,T=y[C].ptIdx*2;M.x=x[T],M.y=x[T+1],M.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(tt);function Jd(r,e){return{seriesType:r,plan:Rd(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(i){var s=q(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ea(n,s[0])&&(s[0]=u),Ea(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&&Vr(p*l),m=[],y=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var w=f.get(c,_);b=i.dataToPoint(w,null,y)}else m[0]=f.get(c,_),m[1]=f.get(h,_),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:v.start,end:v.end}))}}}}}}var PP={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]}},RP=function(r){return Math.round(r.length/2)};function Kb(r){return{seriesType:r,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){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){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;K(a)?d=PP[a]:re(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,RP))}}}}}function NP(r){r.registerChartView(OP),r.registerSeriesModel(cP),r.registerLayout(Jd("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,Kb("line"))}var jb=function(r){H(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"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}(Pb),kP=null;function VP(){return kP}var BP="expandAxisBreak",yn=Math.PI,zP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],FP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ia=we(),Qb=we(),Jb=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[t]||(i[t]=[]);return a[n]||(a[n]={ready:{}})},r}();function HP(r,e,t,n){var i=t.axis,a=e.ensureRecord(t),o=[],s,l=ep(r.axisName)&&Aa(r.nameLocation);E(n,function(d){var p=En(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?Ti(no,g.transform):ss(no),p.transform&&fi(no,no,p.transform),ne.copy(il,p.localRect),il.applyTransform(no),s?s.union(il):ne.copy(s=new ne(0,0,0,0),il))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new ne(h,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var no=Xe(),il=new ne(0,0,0,0),ew=function(r,e,t,n,i,a){if(Aa(r.nameLocation)){var o=a.stOccupiedRect;o&&tw(bO({},o,a.transGroup.transform),n,i)}else rw(a.labelInfoList,a.dirVec,n,i)};function tw(r,e,t){var n=new le;qd(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&wO(e,n)}function rw(r,e,t,n){for(var i=le.dot(n,e)>=0,a=0,o=r.length;a<o;a++){var s=r[i?a:o-1-a];s.label.ignore||tw(s,t,n)}}var Gr=function(){function r(e,t,n,i){this.group=new Ee,this._axisModel=e,this._api=t,this._local={},this._shared=i||new Jb(ew),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var t=this._shared.ensureRecord(this._axisModel).ready;B(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},i=Q(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:i,nameLocation:br(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:ep(i)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(B(o.position!=null),B(o.rotation!=null)),this._cfg=o;var s=new Ee({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),E(GP,function(i){e[i]&&UP[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var i=x_(t-e),a,o;return jl(i)?(o=n>0?"top":"bottom",a="center"):jl(i-yn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<yn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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}(),GP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],UP={axisLine:function(r,e,t,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=t.ensureRecord(n).ready;B(!s.axisLine),s.axisLine=!0}var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,c=[u[0],0],h=[u[1],0],v=c[0]>h[0];f&&(ot(c,c,f),ot(h,h,f));var d=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&bi(n.axis.scale))VP().buildAxisBreakLine(n,i,a,p);else{var g=new Er(G({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},p));Xo(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=n.get(["axisLine","symbol"]);if(m!=null){var y=n.get(["axisLine","symbolSize"]);K(m)&&(m=[m,m]),(K(y)||_e(y))&&(y=[y,y]);var _=L1(n.get(["axisLine","symbolOffset"])||0,y),S=y[0],b=y[1];E([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(w,x){if(m[x]!=="none"&&m[x]!=null){var C=Et(m[x],-S/2,-b/2,S,b,d.stroke,!0),M=w.r+w.offset,T=v?h:c;C.attr({rotation:w.rotate,x:T[0]+M*Math.cos(r.rotation),y:T[1]-M*Math.sin(r.rotation),silent:!0,z2:11}),i.add(C)}})}}},axisTickLabelEstimate:function(r,e,t,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=t.ensureRecord(n).ready;B(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=Ey(e,i,s);u&&Dy(r,e,t,n,i,a,o,ir.estimate)},axisTickLabelDetermine:function(r,e,t,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=t.ensureRecord(n).ready;l.axisTickLabelDetermine=!0}var u=Ey(e,i,s);u&&Dy(r,e,t,n,i,a,o,ir.determine);var f=$P(r,i,a,n);XP(r,e.labelLayoutList,f),ZP(r,i,a,n,r.tickDirection)},axisName:function(r,e,t,n,i,a,o,s){var l=t.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var u=l.ready;B(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(ep(f)){var c=r.nameLocation,h=r.nameDirection,v=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,p=n.axis.getExtent(),g=n.axis.inverse?-1:1,m=new le(0,0),y=new le(0,0);c==="start"?(m.x=p[0]-g*d,y.x=-g):c==="end"?(m.x=p[1]+g*d,y.x=g):(m.x=(p[0]+p[1])/2,m.y=r.labelOffset+h*d,y.y=h);var _=Xe();y.transform(Uv(_,_,r.rotation));var S=n.get("nameRotate");S!=null&&(S=S*yn/180);var b,w;Aa(c)?b=Gr.innerTextLayout(r.rotation,S??r.rotation,h):(b=WP(r.rotation,c,S||0,p),w=r.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(b.rotation)),!isFinite(w)&&(w=null)));var x=v.getFont(),C=n.get("nameTruncate",!0)||{},M=C.ellipsis,T=Wr(r.raw.nameTruncateMaxWidth,C.maxWidth,w),D=s.nameMarginLevel||0,I=new Ae({x:m.x,y:m.y,rotation:b.rotation,silent:Gr.isLabelSilent(n),style:et(v,{text:f,font:x,overflow:"truncate",width:T,ellipsis:M,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(of({el:I,componentModel:n,itemName:f}),I.__fullText=f,I.anid="name",n.get("triggerEvent")){var A=Gr.makeAxisEventDataBase(n);A.targetType="axisName",A.name=f,ve(I).eventData=A}a.add(I),I.updateTransform(),e.nameEl=I;var L=l.nameLayout=En({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Aa(c)?zP[D]:FP[D]});if(l.nameLocation=c,i.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&L){var O=t.ensureRecord(n);process.env.NODE_ENV!=="production"&&B(O.labelInfoList),t.resolveAxisNameOverlap(r,t,n,L,y,O)}}}};function Dy(r,e,t,n,i,a,o,s){iw(e)||qP(r,e,i,s,n,o);var l=e.labelLayoutList;KP(r,n,l,a),r.rotation;var u=r.optionHideOverlap;YP(n,l,u),u&&TO(Qe(l,function(f){return f&&!f.label.ignore})),HP(r,t,n,l)}function WP(r,e,t,n){var i=x_(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return jl(i-yn/2)?(o=l?"bottom":"top",a="center"):jl(i-yn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<yn*1.5&&i>yn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function YP(r,e,t){var n=r.axis,i=r.get(["axisLabel","customValues"]);if(T2(n))return;function a(u,f,c){var h=En(e[f]),v=En(e[c]),d=n.scale;if(!(!h||!v)){if(u==null){if(!t&&i)return;var p=Ia(h.label).labelInfo.tick;if(Wd(d)&&p.notNice||ur(d)&&p.offInterval){ta(h.label);return}}if(u===!1||h.suggestIgnore){ta(h.label);return}if(v.suggestIgnore){ta(v.label);return}var g=.1;if(!t){var m=[0,0,0,0];h=cy({marginForce:m},h),v=cy({marginForce:m},v)}qd(h,v,null,{touchThreshold:g})&&ta(u?v.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function XP(r,e,t){r.showMinorTicks||E(e,function(n){if(n&&n.label.ignore)for(var i=0;i<t.length;i++){var a=t[i],o=Qb(a),s=Ia(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){ta(a);return}}})}function ta(r){r&&(r.ignore=!0)}function nw(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ot(o,o,e),ot(s,s,e));var f=new Er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Xo(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f);var c=Qb(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return a}function $P(r,e,t,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=i.getTicksCoords(),f=nw(u,t.transform,l,ce(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function ZP(r,e,t,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=ce(l.getLineStyle(),ce(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=nw(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function Ey(r,e,t){if(iw(r)){var n=r.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&B(r.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(r.labelGroup),xv(r,null,null,null))}return!0}function qP(r,e,t,n,i,a){var o=i.axis,s=Wr(r.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ee;t.add(l);var u=Eu(n);if(!s||o.scale.isBlank()){xv(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),h=(Wr(r.raw.labelRotate,f.get("rotate"))||0)*yn/180,v=Gr.innerTextLayout(r.rotation,h,r.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;E(c,function(S,b){var w,x=S.tick,C=S.formattedLabel,M=S.rawLabel,T=f,D=_s(o.scale,x);if(d&&d[D]){var I=d[D];j(I)&&I.textStyle&&(T=new Ie(I.textStyle,f,i.ecModel))}var A=T.getTextColor()||i.get(["axisLine","lineStyle","color"]),L=T.getShallow("align",!0)||v.textAlign,O=Q(T.getShallow("alignMinLabel",!0),L),P=Q(T.getShallow("alignMaxLabel",!0),L),N=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||v.textVerticalAlign,R=Q(T.getShallow("verticalAlignMinLabel",!0),N),k=Q(T.getShallow("verticalAlignMaxLabel",!0),N),F=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),y=Math.max(y,F);var V=new Ae({x:0,y:0,rotation:0,silent:Gr.isLabelSilent(i),z2:F,style:et(T,{text:C,align:b===0?O:b===c.length-1?P:L,verticalAlign:b===0?R:b===c.length-1?k:N,fill:re(A)?A(o.type==="category"?M:o.type==="value"?D+"":D,b):A})});V.anid="label_"+D;var X=Ia(V);if(X.labelInfo=S,X.layoutRotation=v.rotation,of({el:V,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:M,tickIndex:b}}),g){var Z=Gr.makeAxisEventDataBase(i);Z.targetType="axisLabel",Z.value=M,Z.tickIndex=b;var W=S.tick.break;if(W){var J=W.parsedBreak;Z.break={start:J.vmin,end:J.vmax}}o.type==="category"&&(Z.dataIndex=D),ve(V).eventData=Z,W&&QP(i,a,V,W)}p.push(V),l.add(V)});var _=q(p,function(S){return{label:S,priority:Ia(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});xv(e,_,l,u)}function iw(r){return!!r.labelLayoutList}function xv(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function KP(r,e,t,n){var i=e.get(["axisLabel","margin"]);E(t,function(a,o){var s=En(a);if(s){var l=s.label,u=Ia(l);s.suggestIgnore=l.ignore,l.ignore=!1,Yr(Pr,jP);var f=e.axis;Pr.x=f.dataToCoord(_s(f.scale,u.labelInfo.tick)),Pr.y=r.labelOffset+r.labelDirection*i,Pr.rotation=u.layoutRotation,n.add(Pr),Pr.updateTransform(),n.remove(Pr),Pr.decomposeTransform(),Yr(l,Pr),l.markRedraw(),Lu(s,!0),En(s)}})}var Pr=new Ce,jP=new Ce;function ep(r){return!!r}function QP(r,e,t,n){t.on("click",function(i){var a={type:BP,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function Pu(r,e,t){t=t||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}i.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function JP(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function eR(r){var e={xAxisModel:null,yAxisModel:null};return E(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ht).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+br(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');e[n]=a}),e}function tR(r,e,t,n,i,a){for(var o=Pu(r,t),s=!1,l=!1,u=0;u<e.length;u++)ob(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Gr(t,n,o,i)}function rR(r,e,t){var n=Pu(e,t);if(process.env.NODE_ENV!=="production"){var i=r.__getRawCfg();E(De(n),function(a){a!=="position"&&a!=="labelOffset"&&B(n[a]===i[a])})}r.updateCfg(n)}function nR(){N2("liPosMinGap",iR)}function iR(r,e,t){var n=ee(),i=t.serUids,a=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=o1(f);function h(_){Zd(r,e.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var v=0;if(h(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),v+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Qd(Jn,v);var d=0;h(function(_,S,b){for(var w=0,x=b.count();w<x;++w){var C=b.get(_,w);isFinite(C)&&(!f||s1(c,C))&&(u&&(C=l.transformIn(C,null)),Jn.arr[d++]=C)}});var p=Jn.typed?Jn.arr.subarray(0,d):(Jn.arr.length=d,Jn.arr);Jn.typed?p.sort():Pa(p);for(var g=1/0,m=1;m<d;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}t.liPosMinGap=e.liPosMinGap=Dt(g)?g:d>0?gb:M2,t.serUids=n}var Jn=Qd({ctor:pP},50);function aR(r){return function(e,t){var n=Dn(e,{fromStat:{key:r}});if(Dt(n.w2))return[-n.w2/2,n.w2/2]}}function yf(r,e){return r+Tu+e}function oR(r){return nR(),{liPosMinGap:!ur(r.scale)}}var ya="bar";function sR(r,e,t,n){k2(r,{key:e,seriesType:t,coordSysType:n,getMetrics:oR})}function lR(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!=="production"&&B(Dt(e)),e}var aw={left:0,right:0,top:0,bottom:0},Ru=["25%","25%"],Ur="cartesian2d",uR=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var i=ys(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&Cn(t.outerBounds,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Cn(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:aw,outerBoundsContain:"all",outerBoundsClampWidth:Ru[0],outerBoundsClampHeight:Ru[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},e}(ge),fR=k_(),cR="__ec_stack_";function ow(r){return r.get("stack")||cR+r.seriesIndex}function hR(r,e){var t=vR(r,e);return t.columnMap=dR(t),t}function vR(r,e){var t=yf(e,Ur),n=[],i=Dn(r,{fromStat:{key:t},min:1});return _b(r,t,function(a){n.push({barWidth:ae(a.get("barWidth"),i.w),barMaxWidth:ae(a.get("barMaxWidth"),i.w),barMinWidth:ae(a.get("barMinWidth")||(sw(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:ow(a)})}),{bandWidthResult:i,seriesInfo:n}}function dR(r){var e=r.bandWidthResult.w,t=e,n=0,i,a,o=[],s={};E(r.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;pt(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=st(t,_),t-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var x=p.barCategoryGap;x!=null&&(i=x)}),i==null&&(i=ye(35-o.length*4,15)+"%");var l=ae(i,e),u=ae(a,1),f=(t-l)/(n+(n-1)*u);f=ye(f,0),E(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=st(_,m)),y&&(_=ye(_,y)),g.width=_,t-=_+u*_,n--}else{var _=f;m&&m<_&&(_=st(m,t)),y&&y>_&&(_=y),_!==f&&(g.width=_,t-=_+u*_,n--)}}),f=(t-l)/(n+(n-1)*u),f=ye(f,0);var c=0,h;E(o,function(p){var g=s[p];g.width||(g.width=f),h=g,c+=g.width*(1+u)}),h&&(c-=h.width*u);var v={},d=-c/2;return E(o,function(p){var g=s[p];v[p]=v[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),v}function pR(r){return{seriesType:r,overallReset:function(e){var t=yf(r,Ur);P2(e,t,function(n){process.env.NODE_ENV!=="production"&&B(n instanceof jb);var i=hR(n,r);_b(n,t,function(a){var o=i.columnMap[ow(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function gR(r){return{seriesType:r,plan:Rd(),reset:function(e){if(JP(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=Ea(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord(lR(a))),d=sw(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Vr(b*3),x=d&&l&&Vr(b*3),C=d&&Vr(b),M=n.master.getRect(),T=h?M.width:M.height,D,I=S.getStore(),A=0;(D=_.next())!=null;){var L=I.get(c?g:o,D),O=I.get(s,D),P=v,N=void 0;c&&(N=+L-I.get(o,D));var R=void 0,k=void 0,F=void 0,V=void 0;if(h){var X=n.dataToPoint([L,O]);c&&(P=n.dataToPoint([N,O])[0]),R=P,k=X[1]+y,F=X[0]-P,V=m,ke(F)<p&&(F=(F<0?-1:1)*p)}else{var X=n.dataToPoint([O,L]);c&&(P=n.dataToPoint([O,N])[1]),R=X[0]+y,k=P,F=m,V=X[1]-P,ke(V)<p&&(V=(V<=0?-1:1)*p)}d?(w[A]=R,w[A+1]=k,w[A+2]=h?F:V,x&&(x[A]=h?M.x:R,x[A+1]=h?k:M.y,x[A+2]=T),C[D]=D):S.setItemLayout(D,{x:R,y:k,width:F,height:V}),A+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:h})}}}}}}function sw(r){return r.pipelineContext&&r.pipelineContext.large}function mR(r){return aR(yf(r,Ur))}function yR(r){fR(r,function(){function e(t){var n=yf(t,Ur);sR(r,n,t,Ur),W2(n,mR(t))}e("bar"),e("pictorialBar")})}var Tv=function(r){H(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 za(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)E(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,x=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(x===g){_=w;break}else if(x<g)y=w;else if(y!=null&&x>g){_=(w+y)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(ft);ft.registerClass(Tv);var _R=function(r){H(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 za(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,n){var i=V_(this,t,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series."+ya,e.dependencies=["grid","polar"],e.defaultOption=uf(Tv.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:Y.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Tv),SR=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}(),Nu=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new SR},e.prototype.buildPath=function(t,n){var i=n.cx,a=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),m=Math.cos(c),y=Math.sin(c);d?(t.moveTo(p*o+i,g*o+a),t.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!h)):t.moveTo(p*s+i,g*s+a),t.arc(i,a,s,f,c,!h),t.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(i,a,o,c,f,h)},e}(be);function bR(r,e){e=e||{};var t=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Kl(n,i,a);var s=r(o),l=i.distance!=null?i.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,m=(p+g)/2,y=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),w=c+h*S(p),x="left",C="top";switch(s){case"startArc":b=f+(v-l)*_(m),w=c+(v-l)*S(m),x="center",C="top";break;case"insideStartArc":b=f+(v+l)*_(m),w=c+(v+l)*S(m),x="center",C="bottom";break;case"startAngle":b=f+d*_(p)+al(p,l+y,!1),w=c+d*S(p)+ol(p,l+y,!1),x="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+al(p,-l+y,!1),w=c+d*S(p)+ol(p,-l+y,!1),x="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*S(m),x="center",C="middle";break;case"endArc":b=f+(h+l)*_(m),w=c+(h+l)*S(m),x="center",C="bottom";break;case"insideEndArc":b=f+(h-l)*_(m),w=c+(h-l)*S(m),x="center",C="top";break;case"endAngle":b=f+d*_(g)+al(g,l+y,!0),w=c+d*S(g)+ol(g,l+y,!0),x="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+al(g,-l+y,!0),w=c+d*S(g)+ol(g,-l+y,!0),x="right",C="middle";break;default:return Kl(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=x,n.verticalAlign=C,n}}function wR(r,e,t,n){if(_e(n)){r.setTextConfig({rotation:n});return}else if(U(e)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+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=a;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 al(r,e,t){return e*Math.sin(r)*(t?-1:1)}function ol(r,e,t){return e*Math.cos(r)*(t?1:-1)}function bo(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:q(n,function(a){return Xr(a,i)})}}var Fc=Math.max,Hc=Math.min,xR=function(r){H(e,r);function e(){var t=r.call(this)||this;return t.type=ya,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,i,a){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,i):this._renderNormal(t,n,i,a)):process.env.NODE_ENV!=="production"&&Ye("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){hs(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,i,a){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=TR(t,u);v&&this._enableRealtimeSort(v,s,i);var d=t.get("clip",!0)||v,p=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(D){var I=sl[u.type](s,D);if(!I)return null;var A=LR(u,c,I);return A.useStyle(y.getItemStyle()),u.type==="cartesian2d"?A.setShape("r",_):A.setShape("cornerRadius",_),S[D]=A,A}s.diff(l).add(function(D){var I=s.getItemModel(D),A=sl[u.type](s,D,I);if(A&&(m&&C(D),!(!s.hasValue(D)||!Oy[u.type](A)))){var L=!1;d&&(L=My[u.type](p,A));var O=Ay[u.type](t,s,D,A,c,h,f.model,!1,g);v&&(O.forceLabelAnimation=!0),Py(O,s,D,I,A,t,c,u.type==="polar"),w?O.attr({shape:A}):v?Iy(v,h,O,A,D,c,!1,!1):Ze(O,{shape:A},t,D),s.setItemGraphicEl(D,O),o.add(O),O.ignore=L}}).update(function(D,I){var A=s.getItemModel(D),L=sl[u.type](s,D,A);if(L){if(m){var O=void 0;b.length===0?O=C(I):(O=b[I],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),S[D]=O);var P=sl[u.type](s,D),N=uw(c,P,u);Be(O,{shape:N},h,D)}var R=l.getItemGraphicEl(I);if(!s.hasValue(D)||!Oy[u.type](L)){o.remove(R);return}var k=!1;d&&(k=My[u.type](p,L),k&&o.remove(R));var F=R&&(R.type==="sector"&&g||R.type==="sausage"&&!g);if(F&&(R&&Io(R,t,I),R=null),R?Yo(R):R=Ay[u.type](t,s,D,L,c,h,f.model,!0,g),v&&(R.forceLabelAnimation=!0),x){var V=R.getTextContent();if(V){var X=vs(V);X.prevValue!=null&&(X.prevValue=X.value)}}else Py(R,s,D,A,L,t,c,u.type==="polar");w?R.attr({shape:L}):v?Iy(v,h,R,L,D,c,!0,x):Be(R,{shape:L},t,D,null),s.setItemGraphicEl(D,R),R.ignore=k,o.add(R)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Io(I,t,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ee);M.removeAll();for(var T=0;T<S.length;++T)M.add(S[T]);o.add(M),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,i){this._clear(),Ny(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),Ny(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&bP(t.coordinateSystem,!1,t),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,i){var a=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,i),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(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,i){var a=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,i){for(var a=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.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 i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.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,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Io(a,t,ve(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ya,e}(tt),My={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 i=r.x+r.width,a=r.y+r.height,o=Fc(e.x,r.x),s=Hc(e.x+e.width,i),l=Fc(e.y,r.y),u=Hc(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?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 i=Hc(e.r,r.r),a=Fc(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Ay={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new Ce({shape:G({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?Nu:Dr,f=new u({shape:n,z2:1});f.name="item";var c=lw(i);if(f.calculateTextPosition=bR(c,{isRoundCap:u===Nu}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Be:Ze)(f,{shape:d},a)}return f}};function TR(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&Ye("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Ye("`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 Iy(r,e,t,n,i,a,o,s){var l,u;a?(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?Be:Ze)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?Be:Ze)(t,{shape:u},f,i)}function Ly(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var CR=["x","y","width","height"],DR=["cx","cy","r","startAngle","endAngle"],Oy={cartesian2d:function(r){return!Ly(r,CR)},polar:function(r){return!Ly(r,DR)}},sl={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var i=t?MR(t,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},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 ER(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function lw(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 Py(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=bo(n.getModel("itemStyle"),f,!0);G(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?OR(i,a.coordinateSystem):PR(i,a.coordinateSystem),d=Mr(n);Kr(r,d,{labelFetcher:a,labelDataIndex:t,defaultText:Kd(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,wR(r,g==="outside"?v:g,lw(o),n.get(["label","rotate"]))}MS(p,d,a.getRawValue(t),function(y){return Gb(e,y)});var m=n.getModel(["emphasis"]);rr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Cr(r,n),ER(i)&&(r.style.fill="none",r.style.stroke="none",E(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function MR(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var AR=function(){function r(){}return r}(),Ry=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new AR},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(be);function Ny(r,e,t,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?jv(r):0;if(u){var c=new Ry({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new Ry({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,ve(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",ky),h.on("mousemove",ky)),t&&t.push(h)}var ky=hf(function(r){var e=this,t=IR(e,r.offsetX,r.offsetY);ve(e).dataIndex=t>=0?t:null},30,!1);function IR(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function uw(r,e,t){if(Ou(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function LR(r,e,t){var n=r.type==="polar"?Dr:Ce;return new n({shape:uw(e,t,r),silent:!0,z2:0})}function OR(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function PR(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function RR(r){r.registerChartView(xR),r.registerSeriesModel(_R),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,pR(ya)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gR(ya)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Kb(ya)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),yR(r)}function fw(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function tp(r,e,t){e=U(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=Gd(n,e).dimensions,a=new yu(i,r);return a.initData(n,t),a}var cw=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}(),Sn="pie",NR=we(),hw=function(r){H(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 cw(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return tp(this,{coordDimensions:["value"],encodeDefaulter:Oe(GM,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=NR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=cC(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Oh(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series."+Sn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ft);EM({fullType:hw.type,getCoord2:function(r){return r.getShallow("center")}});var kR=Math.PI/180;function Vy(r,e,t,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-t),b=n+_.len,w=b*b,x=Math.sqrt(Math.abs((1-S*S/m)*w)),C=e+(x+_.len2)*i,M=C-_.label.x,T=_.targetTextWidth-M*i;vw(_,T,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>t?m:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,x=n+_.len,C=Math.abs(w)<x?Math.sqrt(b*b/(1-w*w/x/x)):x;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(m)}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}xO(r,1,l,l+o)&&c(r)}function VR(r,e,t,n,i,a,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;Gc(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(!Gc(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+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,vw(d,g,!1)}}Vy(u,e,t,n,1,i,a,o,s,c),Vy(l,e,t,n,-1,i,a,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!Gc(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];m?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-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]+w),p[1][1]=p[2][1]=v.y}}}function vw(r,e,t){if(r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}dw(a,n)}}}function dw(r,e){By.rect=r,Vb(By,e,BR)}var BR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},By={};function Gc(r){return r.position==="center"}function zR(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*kR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}e.each(function(w){var x=e.getItemGraphicEl(w),C=x.shape,M=x.getTextContent(),T=x.getTextGuideLine(),D=e.getItemModel(w),I=D.getModel("label"),A=I.get("position")||D.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),O=I.get("alignTo"),P=ae(I.get("edgeDistance"),u),N=I.get("bleedMargin");N==null&&(N=Math.min(u,h)>200?10:2);var R=D.getModel("labelLine"),k=R.get("length");k=ae(k,u);var F=R.get("length2");if(F=ae(F,u),Math.abs(C.endAngle-C.startAngle)<o){E(M.states,v),M.ignore=!0,T&&(E(T.states,v),T.ignore=!0);return}if(d(M)){var V=(C.startAngle+C.endAngle)/2,X=Math.cos(V),Z=Math.sin(V),W,J,fe,Pe;n=C.cx,i=C.cy;var ze=A==="inside"||A==="inner";if(A==="center")W=C.cx,J=C.cy,Pe="center";else{var xe=(ze?(C.r+C.r0)/2*X:C.r*X)+n,Le=(ze?(C.r+C.r0)/2*Z:C.r*Z)+i;if(W=xe+X*3,J=Le+Z*3,!ze){var se=xe+X*(k+l-C.r),he=Le+Z*(k+l-C.r),fr=se+(X<0?-1:1)*F,Ge=he;O==="edge"?W=X<0?f+P:f+u-P:W=fr+(X<0?-L:L),J=Ge,fe=[[xe,Le],[se,he],[fr,Ge]]}Pe=ze?"center":O==="edge"?X>0?"right":"left":X>0?"left":"right"}var en=Math.PI,Ar=0,An=I.get("rotate");if(_e(An))Ar=An*(en/180);else if(A==="center")Ar=0;else if(An==="radial"||An===!0){var lx=X<0?-V+en:-V;Ar=lx}else if(An==="tangential"||An==="tangential-noflip"&&A!=="outside"&&A!=="outer"){var Pi=Math.atan2(X,Z);Pi<0&&(Pi=en*2+Pi);var ux=Z>0;ux&&An!=="tangential-noflip"&&(Pi=en+Pi),Ar=Pi-en}if(a=!!Ar,M.x=W,M.y=J,M.rotation=Ar,M.setStyle({verticalAlign:"middle"}),ze){M.setStyle({align:Pe});var xf=M.states.select;xf&&(xf.x+=M.x,xf.y+=M.y)}else{var wf=new ne(0,0,0,0);dw(wf,M),t.push({label:M,labelLine:T,position:A,len:k,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new le(X,Z),linePoints:fe,textAlign:Pe,labelDistance:L,labelAlignTo:O,edgeDistance:P,bleedMargin:N,rect:wf,unconstrainedWidth:wf.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:ze})}}),!a&&r.get("avoidLabelOverlap")&&VR(t,n,i,l,u,h,f,c);for(var p=0;p<t.length;p++){var g=t[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(E(m.states,v),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;_||!b?(E(y.states,v),y.ignore=!0):(pO(b,g.minTurnAngle),gO(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new le(b[0][0],b[0][1])})}}}var zy=Math.PI*2,ll=Math.PI/180,FR=Zu(Sn,HR);function HR(r,e){r.eachSeriesByType(Sn,function(t){var n=t.getData(),i=n.mapDimension("value"),a=RM(t,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-t.get("startAngle")*ll,h=t.get("endAngle"),v=t.get("padAngle")*ll;h=h==="auto"?c-zy:-h*ll;var d=t.get("minAngle")*ll,p=d+v,g=0;n.each(i,function(P){!isNaN(P)&&g++});var m=n.getSum(i),y=Math.PI/(m||g)*2,_=t.get("clockwise"),S=t.get("roseType"),b=t.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var x=_?1:-1,C=[c,h],M=x*v/2;td(C,!_),c=C[0],h=C[1];var T=pw(t);T.startAngle=c,T.endAngle=h,T.clockwise=_,T.cx=o,T.cy=s,T.r=l,T.r0=u;var D=Math.abs(h-c),I=D,A=0,L=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(P,N){var R;if(isNaN(P)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?R=m===0&&b?y:P*y:R=D/g,R<p?(R=p,I-=p):A+=P;var k=L+x*R,F=0,V=0;v>R?(F=L+x*R/2,V=F):(F=L+M,V=k-M),n.setItemLayout(N,{angle:R,startAngle:F,endAngle:V,clockwise:_,cx:o,cy:s,r0:u,r:S?je(P,w,[u,l]):l}),L=k}),I<zy&&g)if(I<=.001){var O=D/g;n.each(i,function(P,N){if(!isNaN(P)){var R=n.getItemLayout(N);R.angle=O;var k=0,F=0;O<v?(k=c+x*(N+1/2)*O,F=k):(k=c+x*N*O+M,F=c+x*(N+1)*O-M),R.startAngle=k,R.endAngle=F}})}else y=I/A,L=c,n.each(i,function(P,N){if(!isNaN(P)){var R=n.getItemLayout(N),k=R.angle===p?p:P*y,F=0,V=0;k<v?(F=L+x*k/2,V=F):(F=L+M,V=L+x*k-M),R.startAngle=F,R.endAngle=V,L+=x*k}})})}var pw=we(),GR=function(r){H(e,r);function e(t,n,i){var a=r.call(this)||this;a.z2=2;var o=new Ae;return a.setTextContent(o),a.updateData(t,n,i,!0),a}return e.prototype.updateData=function(t,n,i,a){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),c=G(bo(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ze(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,Ze(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ze(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Be(o,{shape:{endAngle:f.endAngle}},s,n))}else Yo(o),Be(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),Cr(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},bo(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:g,shape:bo(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:bo(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&G(y.ensureState("select"),{x:p,y:g}),G(_.ensureState("select"),{x:p,y:g}),rr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kr(a,Mr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Mi,this.setTextGuideLine(v)),yO(this,_O(o),{stroke:u,opacity:br(s.get(["lineStyle","opacity"]),f,1)})}},e}(Dr),UR=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Sn,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i,a){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=pw(t),v=new Dr({shape:ie(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new GR(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Io(p,t,d)}).execute(),zR(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Sn,e}(tt);function WR(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(_e(o)&&!isNaN(o)&&o<0)})}}}function YR(r){r.registerChartView(UR),r.registerSeriesModel(hw),TI(Sn,r.registerAction),r.registerLayout(FR),r.registerProcessor(fw(Sn)),r.registerProcessor(WR(Sn))}var XR=function(r){H(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 za(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,i){return i.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Y.color.primary}},universalTransition:{divideShape:"clone"}},e}(ft),gw=4,$R=function(){function r(){}return r}(),ZR=function(r){H(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 $R},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<gw,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],v=i[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[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,i=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,h=a[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 i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(t=i[0],n=i[1],a.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,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<i.length;){var v=i[h++],d=i[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 ne(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e}(be),qR=function(){function r(){this.group=new Ee}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n,i){var a=this._newAdded[0],o=t.getLayout("points"),s=a&&a.shape.points;if(process.env.NODE_ENV!=="production"&&VC(t.getLayout("pointsRange"),e),s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,t,i)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new ZR({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Et(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<gw;e.useStyle(i.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=i.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}(),KR=function(r){H(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,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,Uc(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,i){this._symbolDraw.incrementalUpdate(t,n.getData(),jv(n),Uc(n)),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,i){var a=t.getData();if(this.group.dirty(),this._finished){var o=Jd("").reset(t,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(Uc(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new qR:new Ub,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(tt);function Uc(r){return{clipShape:wP(r)}}var Cv=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ht).models[0]},e.type="cartesian2dAxis",e}(ge);Mt(Cv,pb);var mw={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:Y.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Y.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Y.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Y.color.backgroundTint,Y.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Y.color.neutral00,borderColor:Y.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},jR=me({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},mw),rp=me({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Y.color.axisMinorSplitLine,width:1}}},mw),QR=me({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rp),JR=ce({logBase:10},rp);const yw={category:jR,value:rp,time:QR,log:JR};function Fy(r,e,t,n){E(cb,function(i,a){var o=me(me({},yw[a],!0),n,!0),s=function(l){H(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=qo(this),v=h?ys(f):{},d=c.getTheme();me(f,d.get(a+"Axis")),me(f,this.getDefaultOption()),f.type=Hy(f),h&&Cn(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dv.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.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",Hy)}function Hy(r){return r.type||(r.data?"category":"value")}var eN=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 q(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Qe(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}(),kl=["x","y"];function Gy(r){return(r.type==="interval"||r.type==="time")&&!bi(r)}var tN=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ur,t.dimensions=kl,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Gy(t)||!Gy(n))){var i=Su(t,null),a=Su(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Ti([],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"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.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 i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ot(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.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,i){if(i=i||[],this._invTransform)return ot(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new ne(a,o,s,l)},e}(eN);function _w(r,e){var t=r.scale,n=r.model;process.env.NODE_ENV!=="production"&&B(t&&n&&(t instanceof Tr||t instanceof wu)&&(e instanceof Tr||e instanceof wu));var i=Eb(t,n,n.ecModel,r),a=Ma(t),o=Ma(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1;process.env.NODE_ENV!=="production"&&(B(!bi(e)&&!bi(t)),B(c>0),B(f.length===u.length),B(u[0].value<=u[c].value),B(f[0].value<=u[0].value&&u[c].value<=f[c].value),c>=2&&(B(f[1].value===u[1].value),B(f[c-1].value===u[c-1].value)));var h,v,d;if(c===1)h=v=0,d=1;else if(c===2){var p=ke(u[0].value-u[1].value),g=ke(u[1].value-u[2].value);h=v=0,p===g?d=2:(d=1,p<g?h=p/g:v=g/p)}else{var m=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/m)%1,v=(1-(f[c].value-u[c].value)/m)%1,d=c-(h?1:0)-(v?1:0)}process.env.NODE_ENV!=="production"&&B(d>=1);var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=t.getExtent(),w=s.getExtent(),x=sb(w,S),C,M,T,D,I,A;function L(X){for(var Z=50,W=0;W<Z&&!X();W++)T=a?T*ye(l,2):a2(T),D=xi(T);process.env.NODE_ENV!=="production"&&W>=Z&&Ye("incorrect impl in `scaleCalcAlign`.")}function O(){C=pe(A-T*h,D)}function P(){M=pe(I+T*v,D)}function N(){A=h?pe(C+T*h,D):C}function R(){I=v?pe(M-T*v,D):M}if(S[0]&&S[1]){C=x[0],M=x[1],T=(M-C)/(d+h+v);var k=r.getExtent(),F=ke(k[1]-k[0]);D=fC([M,C],F,.5/d),N(),R(),Dt(D)&&(T=pe(T,D))}else{var V=x[1]-x[0];T=a?ye(T_(V),1):Xv(V/d,C_),D=xi(T),S[0]?(C=x[0],L(function(){if(N(),I=pe(A+T*d,D),P(),M>=x[1])return!0})):S[1]?(M=x[1],L(function(){if(R(),A=pe(I-T*d,D),O(),C<=x[0])return!0})):L(function(){A=pe(ls(x[0]/T)*T,D),I=pe(yi(x[1]/T)*T,D);var X=$r((I-A)/T);if(X<=d){var Z=d-X,W=void 0,J=i.incl0||a;if(J&&x[0]===0)W=[0,Z];else if(J&&x[1]===0)W=[Z,0];else{var fe=yi(Z/2);W=Z%2===0?[fe,fe]:C+M<x[0]+x[1]?[fe,fe+1]:[fe+1,fe]}if(A=pe(A-T*W[0],D),I=pe(I+T*W[1],D),O(),P(),C<=x[0]&&M>=x[1])return!0}})}vb(t,S,w,[C,M],b,{interval:T,intervalCount:d,intervalPrecision:D,niceExtent:[A,I]}),process.env.NODE_ENV!=="production"&&t.freeze()}var Uy=[[3,1],[0,2]],rN=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kl,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;E(this._axesList,function(o){Cb(o,wb);var s=o.scale;ur(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=De(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):oy(f)}E(l,function(c){iN(c,c.__alignTo)?oy(c):_w(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};E(n.x,function(o){Wy(n,"y",o,a)}),E(n.y,function(o){Wy(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=Ai(e,t),a=this._rect=nr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Sw(o,a),!n){var u=oN(a,s,o,l,t),f=void 0;if(l)process.env.NODE_ENV!=="production"&&M_("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=Zy(a.clone(),"axisLabel",null,a,o,u,i);else{var c=sN(e,a,i),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Zy(h,v,d,a,o,u,i))}bw(a,o,ir.determine,null,f,i),E(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ht).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ht).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,de(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.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 i=this,a=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,E(s.x,function(f,c){E(s.y,function(h,v){var d="x"+c+"y"+v,p=new tN(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})}),Xy(s.x),Xy(s.y);function u(f){return function(c,h){if(nN(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=m2(c),p=new jb(f,y2(c,d),[0,0],d,v);p.onBand=db(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=a,p.index=h,a._axesList.push(p),s[f][h]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return E(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);de(t,a)<0&&t.push(a),de(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,a){var o=new r(i,e,t);o.name="grid_"+a,o.resize(i,t,!0),i.coordinateSystem=o,n.push(o),E(o._axesList,function(s){H2(s,r.dimIdxMap)})}),e.eachSeries(function(i){var a,o;IM({targetModel:i,coordSysType:Ur,coordSysProvider:s});function s(){var l=eR(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!c)throw new Error('Grid "'+br(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var h=c.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(gv(a,i,Ur),gv(o,i,Ur))},this),n},r.dimensions=kl,r.dimIdxMap=Hd(kl),r}();function nN(r,e){return r.getCoordSysModel()===e}function Wy(r,e,t,n){t.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Yy(s,i[l])&&(a=i[l]);else for(var u in i)if(pt(i,u)&&Yy(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function Yy(r,e){if(!e)return!1;var t=e.scale,n=_2(t,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==pv;return i&&r==="auto"&&x2(e)&&(i=!1),i}function Xy(r){for(var e=De(r),t,n=[],i=e.length-1;i>=0;i--){var a=r[+e[i]];ob(a.scale)&&D2(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):t=a)}t||(t=n.pop()),t&&E(n,function(o){o.__alignTo=t})}function iN(r,e){return bi(r.scale)||bi(e.scale)||e.scale.getTicks().length<2}function aN(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function Sw(r,e){E(r.x,function(t){return $y(t,e.x,e.width)}),E(r.y,function(t){return $y(t,e.y,e.height)})}function $y(r,e,t){var n=[0,t],i=r.inverse?1:0;r.setExtent(n[i],n[1-i]),aN(r,e)}function Zy(r,e,t,n,i,a,o){process.env.NODE_ENV!=="production"&&B(e==="all"||e==="axisLabel"),bw(n,i,ir.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=zv(s,function(h){return h>0})==null;return au(n,s,!0,!0,t),Sw(i,n),l;function u(h){E(i[Nr[h]],function(v){if(es(v.model)){var d=a.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=v.scale.normalize(_s(v.scale,Ia(m.label).labelInfo.tick));y=h===1?1-y:y,f(m.rect,h,y),f(m.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=Aa(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[Nr[v]]-h[Nr[v]],g=h[Tn[v]]+h[Nr[v]]-(r[Tn[v]]+r[Nr[v]]);p=c(p,1-d),g=c(g,d);var m=Uy[v][0],y=Uy[v][1];s[m]=ye(s[m],p),s[y]=ye(s[y],g)}function c(h,v){return h>0&&!zr(v)&&v>1e-4&&(h/=v),h}}function oN(r,e,t,n,i){var a=new Jb(lN);return E(t,function(o){return E(o,function(s){if(es(s.model)){var l=!n;s.axisBuilder=tR(r,e,s.model,i,a,l)}})}),a}function bw(r,e,t,n,i,a){var o=t===ir.determine;E(e,function(u){return E(u,function(f){es(f.model)&&(rR(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Nr[1-u]]=r[Tn[u]]<=a.refContainer[Tn[u]]*.5?0:1-u===1?2:1}E(e,function(u,f){return E(u,function(c){es(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function sN(r,e,t){var n,i=r.get("outerBoundsMode",!0);i==="same"?n=e.clone():i==null||i==="auto"?n=nr(r.get("outerBounds",!0)||aw,t.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&Se("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":de(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&Se("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[Lh(Q(r.get("outerBoundsClampWidth",!0),Ru[0]),e.width),Lh(Q(r.get("outerBoundsClampHeight",!0),Ru[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var lN=function(r,e,t,n,i,a){var o=t.axis.dim==="x"?"y":"x";ew(r,e,t,n,i,a),Aa(r.nameLocation)||E(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&rw(s.labelInfoList,s.dirVec,n,i)})};function uN(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fN(t,r,e),t.seriesInvolved&&hN(t,r),t}function fN(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];E(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ts(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(E(s.getAxes(),Oe(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)&&E(d.baseAxes,Oe(p,v?"cross":!0,h)),v&&E(d.otherAxes,Oe(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Dv(_))){m==null&&(m=_.get("triggerTooltip")),_=g?cN(y,c,i,e,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=ts(y.model),C=m||b||y.type==="category",M=r.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Dv(_),seriesModels:[],linkGroup:null};u[x]=M,r.seriesInvolved=r.seriesInvolved||C;var T=vN(a,y);if(T!=null){var D=o[T]||(o[T]={axesInfo:{}});D.axesInfo[x]=M,D.mapper=a[T].mapper,M.linkGroup=D}}}})}function cN(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(h){l[h]=ie(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ce(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,t,n))}function hN(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||E(r.coordSysAxesInfo[ts(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 vN(r,e){for(var t=e.model,n=e.dim,i=0;i<r.length;i++){var a=r[i]||{};if(Wc(a[n+"AxisId"],t.id)||Wc(a[n+"AxisIndex"],t.componentIndex)||Wc(a[n+"AxisName"],t.name))return i}}function Wc(r,e){return r==="all"||U(r)&&de(r,e)>=0||r===e}function dN(r){var e=np(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=Dv(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function np(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ts(r)]}function pN(r){var e=np(r);return e&&e.axisPointerModel}function Dv(r){return!!r.get(["handle","show"])}function ts(r){return r.type+"||"+r.id}var Yc={},ww=function(r){H(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,i,a){this.axisPointerClass&&dN(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,n,i,a){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=pN(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):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"&&Yc[t])throw new Error("axisPointer "+t+" exists");Yc[t]=n},e.getAxisPointerClass=function(t){return t&&Yc[t]},e.type="axis",e}(Tt),Ev=we();function gN(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Ev(r).splitAreaColors,h=ee(),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=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,b=y-_,w=l.height,g=_+b):(_=l.x,S=g,b=l.width,w=y-S,g=S+w);var x=u[d-1].tickValue;x!=null&&h.set(x,v),e.add(new Ce({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:b,height:w},style:ce({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}Ev(r).splitAreaColors=h}}}function mN(r){Ev(r).splitAreaColors=null}var yN=["splitArea","splitLine","minorSplitLine","breakArea"],xw=function(r){H(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,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ee,this.group.add(this._axisGroup),!!es(t)){this._axisGroup.add(t.axis.axisBuilder.group),E(yN,function(l){t.get([l,"show"])&&_N[l](this,this._axisGroup,t,t.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||wS(o,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)}},e.prototype.remove=function(){mN(this)},e.type="cartesianAxis",e}(ww),_N={splitLine:function(r,e,t,n,i){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var c=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;h?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=v++%l.length,w=new Er({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:ce({stroke:l[b]},m),silent:!0});Xo(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,n,i){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,h[0]=g,h[1]=l.y+l.height):(c[0]=l.x,c[1]=g,h[0]=l.x+l.width,h[1]=g);var m=new Er({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});Xo(m.shape,v.lineWidth),e.add(m)}},splitArea:function(r,e,t,n,i){gN(r,e,t,n)},breakArea:function(r,e,t,n,i){t.axis.scale}},Tw=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(xw),SN=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Tw.type,t}return e.type="yAxis",e}(xw),bN=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Ce({shape:t.coordinateSystem.getRect(),style:ce({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Tt),qy={offset:0};function Cw(r){r.registerComponentView(bN),r.registerComponentModel(uR),r.registerCoordinateSystem("cartesian2d",rN),Fy(r,"x",Cv,qy),Fy(r,"y",Cv,qy),r.registerComponentView(Tw),r.registerComponentView(SN),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function wN(r){qt(Cw),r.registerSeriesModel(XR),r.registerChartView(KR),r.registerLayout(Jd("scatter"))}function xN(r){var e=r.polar;if(e){U(e)||(e=[e]);var t=[];E(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],U(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}E(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var rs="radar",TN=function(r){H(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 cw(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return tp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=m1(this,t);return jr("section",{header:u,sortBlocks:!0,blocks:q(s,function(c){var h=a.get(a.mapDimension(c.dim),t);return jr("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(),i=this.coordinateSystem,a=n.getValues(q(i.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+rs,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}(ft),CN=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=rs,t}return e.prototype.render=function(t,n,i){var a=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=I1(h.getItemVisual(v,"symbolSize")),g=Et(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function f(h,v,d,p,g,m){d.removeAll();for(var y=0;y<v.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,h[y]?(_.setPosition(h[y]),DS[m?"initProps":"updateProps"](_,{x:v[y][0],y:v[y][1]},t,g)):_.setPosition(v[y]),d.add(_))}}function c(h){return q(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Va,p=new Mi,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Ze(d,g,t,h),Ze(p,g,t,h);var m=new Ee,y=new Ee;m.add(p),m.add(d),m.add(y),f(p.shape.points,v,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(f(p.shape.points,y.shape.points,m,s,h,!1),Yo(g),Yo(p),Be(p,y,t),Be(g,y,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),m=h.childAt(2),y=s.getItemVisual(v,"style"),_=y.fill;o.add(h),p.useStyle(ce(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Cr(p,d,"lineStyle"),Cr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,E(["emphasis","select","blur"],function(x){var C=d.getModel([x,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(x).ignore=M&&b;var T=d.getModel([x,"lineStyle"]).getLineStyle();p.ensureState(x).style=T;var D=C.getAreaStyle();g.ensureState(x).style=D;var I=d.getModel([x,"itemStyle"]).getItemStyle();m.eachChild(function(A){A.ensureState(x).style=ie(I)})}),g.useStyle(ce(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");m.eachChild(function(x){if(x instanceof Kt){var C=x.style;x.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else x.useStyle(y),x.setColor(_),x.style.strokeNoScale=!0;var M=s.getStore().get(s.getDimensionIndex(x.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Kr(x,Mr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:x.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:y.opacity})}),rr(h,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=rs,e}(tt),io=yw.value,ko="radar",Dw=ko,DN=ko,Ew=5;function ul(r,e){return ce({show:e},r)}var EN=function(r){H(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"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),d=q(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=ce({color:p.color},u));var m=me(ie(p),{boundaryGap:t,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:v},!1);if(K(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else re(c)&&(m.name=c(m.name,m));var _=new Ie(m,null,this.ecModel);return Mt(_,pb.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=ds("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Dw,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Y.color.axisLabel},boundaryGap:[0,0],splitNumber:Ew,axisNameGap:15,scale:!1,shape:"polygon",axisLine:me({lineStyle:{color:Y.color.neutral20}},io.axisLine),axisLabel:ul(io.axisLabel,!1),axisTick:ul(io.axisTick,!1),splitLine:ul(io.splitLine,!0),splitArea:ul(io.splitArea,!0),indicator:[]},e}(ge),MN=function(r){H(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,i){var a=this.group;a.removeAll(),this._buildAxes(t,i),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var i=t.coordinateSystem,a=i.getIndicatorAxes(),o=q(a,function(s){var l=s.model.get("showName")?s.name:"",u=new Gr(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});E(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=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=U(h)?h:[h],p=U(v)?v:[v],g=[],m=[];function y(O,P,N){var R=N%P.length;return O[R]=O[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,w=0;w<_.length;w++){if(f){var x=y(g,d,w);g[x].push(new cs({shape:{cx:S,cy:b,r:_[w].coord}}))}if(c&&w<_.length-1){var x=y(m,p,w);m[x].push(new tf({shape:{cx:S,cy:b,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var C,M=q(i,function(O,P){var N=O.getTicksCoords();return C=C==null?N.length-1:Math.min(N.length-1,C),q(N,function(R){return n.coordToPoint(R.coord,P)})}),T=[],w=0;w<=C;w++){for(var D=[],I=0;I<i.length;I++)D.push(M[I][w]);if(D[0]?D.push(D[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+w),f){var x=y(g,d,w);g[x].push(new Mi({shape:{points:D}}))}if(c&&T){var x=y(m,p,w-1);m[x].push(new Va({shape:{points:D.concat(T)}}))}T=D.slice().reverse()}var A=l.getLineStyle(),L=u.getAreaStyle();E(m,function(O,P){this.group.add($h(O,{style:ce({stroke:"none",fill:p[P%p.length]},L),silent:!0}))},this),E(g,function(O,P){this.group.add($h(O,{style:ce({fill:"none",stroke:d[P%d.length]},A),silent:!0}))},this)},e.type="radar",e}(Tt),AN=function(r){H(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(Pb),IN=function(){function r(e,t,n){this.type=ko,this.dimensions=[],this._model=e,this._indicatorAxes=q(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new AN(o,new Tr);return s.name=i.get("name"),s.model=i,i.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],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a=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(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var n=Ai(e,t).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=ae(i[0],n.width)+n.x,this.cy=ae(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(K(s)||_e(s))&&(s=[0,s]),this.r0=ae(s[0],o),this.r=ae(s[1],o);var l=a?-1:1;E(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model,a=gf(i.get("splitNumber"),Ew),o=new Tr;o.setExtent(0,a),o.setConfig({interval:1}),E(n,function(s){Cb(s,wb),_w(s,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent(Dw,function(i){var a=new r(i,e,t);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(DN,function(i){if(i.get("coordinateSystem")===ko){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&E(a.getIndicatorAxes(),function(o){gv(o,i,ko)})}}),n},r.dimensions=[],r}();function Mw(r){r.registerCoordinateSystem("radar",IN),r.registerComponentModel(EN),r.registerComponentView(MN),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var LN=Zu(rs,ON);function ON(r){r.eachSeriesByType(rs,function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();E(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=Ky(f)?f:jy(i)})}),t.each(function(o){var s=zv(n[o],function(l){return Ky(l)})||jy(i);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function Ky(r){return!isNaN(r[0])&&!isNaN(r[1])}function jy(r){return[r.cx,r.cy]}function PN(r){qt(Mw),r.registerChartView(CN),r.registerSeriesModel(TN),r.registerLayout(LN),r.registerProcessor(fw("radar")),r.registerPreprocessor(xN)}var RN=we();function Qy(r,e){return!!RN(r)[e]}Ii({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},$e);var NN={axisPointer:1,tooltip:1,brush:1};function kN(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||NN.hasOwnProperty(n.mainType))return!1;var i=n.coordinateSystem;if(!i||i.model===t)return!1;var a=Zo(n),o=Zo(t);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var VN=function(r){H(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var i=oe(n._mousedownHandler,n),a=oe(n._mousemoveHandler,n),o=oe(n._mouseupHandler,n),s=oe(n._mousewheelHandler,n),l=oe(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,h=Zo(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:Q(c.z2,-1/0)},g=G({},f.triggerInfo);this._opt=ce(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(oo(t,"mousedown",i,p),oo(t,"mousemove",a,p),oo(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(oo(t,"mousewheel",s,p),oo(t,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,so(t,"mousedown",i),so(t,"mousemove",a),so(t,"mouseup",o),so(t,"mousewheel",s),so(t,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,i){var a=this._opt,o=a.zInfoParsed;if(kN(t,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,i)),u&&s.isInClip&&!s.isInClip(t,n,i)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,i,a){var o=t.target;if(!o&&this._checkPointer(t,n,i))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(dp(t)||ao(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=t.offsetX,a=t.offsetY;this._checkPointer(t,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||Qy(n,"globalPan")||ao(t))){var i=t.offsetX,a=t.offsetY;if(!this._dragging||!Vl("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,i,a,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=i-s,f=a-l;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&gi(t.event),t.__ecRoamConsumed=!0,Jy(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:i,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!ao(t)){var n=this._zr;if(!dp(t)){this._dragging=!1;var i=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);i&&n.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(t){if(!ao(t)){var n=Vl("zoomOnMouseWheel",t,this._opt),i=Vl("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Qy(this._zr,"globalPan")||ao(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,i,a,o){t._checkPointer(a,o.originX,o.originY)&&(gi(a.event),a.__ecRoamConsumed=!0,Jy(t,n,i,a,o))},e}(ar);function ao(r){return r.__ecRoamConsumed}var BN=we();function _f(r){var e=BN(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function oo(r,e,t,n){for(var i=_f(r),a=i.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),zN(r,e)}function so(r,e,t){for(var n=_f(r),i=n.roam[e]||[],a=0;a<i.length;a++)if(i[a].listener===t){i.splice(a,1),i.length||FN(r,e);return}}function zN(r,e){var t=_f(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var i=t.roam[e];if(i)for(var a=0;a<i.length;a++)i[a].listener(n)})}function FN(r,e){var t=_f(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function Jy(r,e,t,n,i){i.isAvailableBehavior=oe(Vl,null,t,n),r.trigger(e,i)}function Vl(r,e,t){var n=t[r];return!r||n&&(!K(n)||e.event[n+"Key"])}var Sf=0,ns=1,is=2;var HN="view",GN=function(r){H(e,r);function e(t,n,i){var a=r.call(this)||this;a.type=HN,a.dimensions=["x","y"];var o=a;o.invertY=t,o.lgCt=n,o.lgGeo=i;var s=o.trans=[];return s[Sf]=ha(),s[ns]=ha(),s[is]=ha(),o.mtRaw=Xe(),o.mtRawInv=Xe(),o.mtOverall=Xe(),o.mtOverallInv=Xe(),o.zoom=1,a}return e.prototype.getBoundingRect=function(){return UN(null,this)},e.prototype.getViewRect=function(){return WN(null,this)},e.prototype.getRoamTransform=function(){return mi(this.trans[ns])},e.prototype.dataToPoint=function(t,n,i){var a=n?this.mtRaw:this.mtOverall;return i=i||[],a?ot(i,t,a):fp(i,t)},e.prototype.pointToData=function(t,n,i){i=i||[];var a=this.mtOverallInv;return a?ot(i,t,a):fp(i,t)},e.prototype.convertToPixel=function(t,n,i){var a=a0(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=a0(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(t){var n=this;return Sa(fl,n.dataRect),aT(fl,fl,n.mtOverall),oT(fl,t[0],t[1])},e.dimensions=["x","y"],e}(Ci),fl=Gu();function UN(r,e){return Sa(Gu(),e.dataRect)}function WN(r,e){return Sa(Gu(),e.viewRect)}function e0(r,e,t){return Yr(r||ha(),e.trans[t])}function bf(r){return!!(r.dataRect&&r.viewRect)}function YN(r,e,t,n){n===ns?Iw(r,e.trans[Sf],t):Yr(r,t)}function t0(r,e,t){mi(t,cl),fi(cl,cl,e.mtRawInv),sf(r,cl)}var cl=Xe();function Aw(r,e){var t=r;t.centerOption=e.getShallow("center");var n=t.zoomLimit=e.getShallow("scaleLimit"),i=e.getShallow("zoom");t.zoom=Rw(i||1,n)||1,bf(t)&&ip(t)}function XN(r,e,t,n,i){var a=r;a.dataRect=new ne(e,t,n,i),bf(a)&&ip(a)}function $N(r,e,t,n,i){var a=r;a.viewRect=new ne(e,t,n,i),bf(a)&&ip(a)}function ip(r){ZN(r),KN(r),jN(r)}function ZN(r){var e=r.dataRect,t=r.viewRect,n=r.trans[Sf],i=r.invertY;i&&(e=Sa(qN,e),e.y=-e.y-e.height),t_(r0,e,t),sf(n,r0),i&&(n.scaleY=-n.scaleY);var a=mi(n,r.mtRaw);Ti(r.mtRawInv,a)}var r0=Xe(),qN=Gu();function KN(r){var e=Lw(r),t=rk(Xc,r,r.centerOption)?ot(Xc,Xc,r.mtRaw):e,n=r.zoom,i=r.trans[ns];i.x=e[0]-n*t[0],i.y=e[1]-n*t[1],i.scaleX=i.scaleY=n}var Xc=[];function jN(r){var e=r.trans,t=e[ns],n=e[Sf],i=e[is];Iw(i,n,t);var a=mi(i,r.mtOverall),o=Ti(r.mtOverallInv,a);n0(r,i,a,o),n0(r.lgGeo,i,a,o)}function n0(r,e,t,n){r&&(Yr(r,e),Bo(r.transform||(r.transform=[]),t),Bo(r.invTransform||(r.invTransform=[]),n))}function Iw(r,e,t){mi(e,i0),mi(t,hl),fi(hl,hl,i0),sf(r,hl)}var i0=Xe(),hl=Xe();function a0(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function Lw(r){var e=r.viewRect;return $c[0]=e.x+e.width/2,$c[1]=e.y+e.height/2,$c}var $c=[];function o0(r,e,t,n){var i=t;i.syncBackEl=r,i.syncBackType=e,n?Be(r,e0(null,t,e),n):(e0(r,t,e),r.dirty())}function QN(r,e,t,n){var i=r,a=i.syncBackEl;a?(process.env.NODE_ENV!=="production"&&B(i.syncBackType!=null),a.stopAnimation(),YN(cn,i,a,i.syncBackType)):Yr(cn,i.trans[is]),t0(Zc,i,cn),n?tk(cn,Zc,i,n):Yr(cn,Zc),t0(cn,i,cn),ak(i,e,t,cn)}var cn=ha(),Zc=ha();function JN(r,e,t){var n=Ow(e);n&&(QN(n,e,t,r),Aw(n,e))}function Ow(r){return r.__ownRoamView?r.__ownRoamView():null}function ek(r,e,t,n){t.setUpdatePayload(pd(r));var i=Q_(n,e);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(r,e,n)}function tk(r,e,t,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var i=n.zoom;if(i!=null){var a=Pw(e),o=Rw(a*i,t.zoomLimit),s=o/a;r.x-=(n.originX-r.x)*(s-1),r.y-=(n.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function Pw(r){return process.env.NODE_ENV!=="production"&&B(ke(r.scaleX-r.scaleY)<1e-5),r.scaleX}function rk(r,e,t){process.env.NODE_ENV!=="production"&&B(bf(e));var n=e.dataRect;if(!t)return!1;var i=e.lgCt;return i?To(r,ae(t[0],i.w),ae(t[1],i.h)):n&&To(r,ae(t[0],n.width,n.x),ae(t[1],n.height,n.y)),!0}function nk(r,e){var t=r.centerOption,n=r.dataRect;return process.env.NODE_ENV!=="production"&&B(e&&n),!t||r.lgCt?e.slice():[s0(0,e,t,n),s0(1,e,t,n)]}function s0(r,e,t,n){return t&&n&&n[Tn[r]]&&lC(t[r])?(e[r]-n[Nr[r]])/n[Tn[r]]*100+"%":e[r]}function ik(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function ak(r,e,t,n){var i=Lw(r),a=Pw(n),o=ke(a)>1e-6;lo[0]=o?(i[0]-n.x)/a:i[0],lo[1]=o?(i[1]-n.y)/a:i[1],ot(lo,lo,r.mtRawInv);var s=nk(r,lo);l0(e,s,a),E(t,function(l){l!==e&&l0(l,s.slice(),a)})}var lo=[];function l0(r,e,t){var n=r.option;n.center=e,n.zoom=t}function Rw(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function ok(r,e,t,n,i,a,o,s){var l=Ow(r);if(!l){t.disable();return}t.enable(Q(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,c,h){return!0}}});function u(f){var c=r.mainType,h=pd(ce({type:Nw(c,r.subType,K_)},f));h[c+"Id"]=r.id,e.dispatchAction(h)}t.off("pan").off("zoom").on("pan",function(f){u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function sk(r){return function(e,t,n){return qc.copy(r.getBoundingRect()),qc.applyTransform(r.getComputedTransform()),qc.contain(t,n)}}var qc=new ne(0,0,0,0);function lk(r,e,t){var n=Nw(e,t,K_);r.registerAction({type:n,event:n,update:"none"},function(i,a,o){a.eachComponent(L_(i,e,t),function(s){JN(i,s),ek(i,s,a,o)})})}function Nw(r,e,t){return(r!==Go?r:e==="map"?"geo":e)+t}function uk(r,e,t,n,i,a,o){var s=new GN(null,ik(r.ecModel,e));return XN(s,t,n,i,a),$N(s,t,n,i,a),Aw(s,r),s}var $t=we();function fk(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,kw(e,t,r),E(t,function(n){E(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Oe(ck,r))})}),e.wrapMethod("cloneShallow",Oe(vk,r)),E(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Oe(hk,r))}),B(t[e.dataType]===e)}function ck(r,e){if(gk(this)){var t=G({},$t(this).datas);t[this.dataType]=e,kw(e,t,r)}else ap(e,this.dataType,$t(this).mainData,r);return e}function hk(r,e){return r.struct&&r.struct.update(),e}function vk(r,e){return E($t(e).datas,function(t,n){t!==e&&ap(t.cloneShallow(),n,e,r)}),e}function dk(r){var e=$t(this).mainData;return r==null||e==null?e:$t(e).datas[r]}function pk(){var r=$t(this).mainData;return r==null?[{data:r}]:q(De($t(r).datas),function(e){return{type:e,data:$t(r).datas[e]}})}function gk(r){return $t(r).mainData===r}function kw(r,e,t){$t(r).datas={},E(e,function(n,i){ap(n,i,r,t)})}function ap(r,e,t,n){$t(t).datas[e]=r,$t(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=dk,r.getLinkedDataAll=pk}var as=E,mk=j,ku=-1,rt=function(){function r(e){var t=e.mappingMethod,n=e.type,i=this.option=ie(e);this.type=n,this.mappingMethod=t,this._normalizeData=Sk[t];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(Kc(i),yk(i)):t==="category"?i.categories?_k(i):Kc(i,!0):(B(t!=="linear"||i.dataExtent),Kc(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return oe(this._normalizeData,this)},r.listVisualTypes=function(){return De(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){j(e)?E(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var i,a=U(e)?[]:j(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},n;return e&&as(r.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(t[a]=e[a],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(mk(e)){var t=[];as(e,function(n,i){t.push(i)}),e=t}else return[];return e.sort(function(n,i){return i==="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 i,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||K(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(dl(c[1],e,f[1]))return o}else if(f[1]===1/0){if(dl(c[0],f[0],e))return o}else if(dl(c[0],f[0],e)&&dl(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:i;function h(v,d){var p=Math.abs(v-e);p<a&&(a=p,i=d)}},r.visualHandlers={color:{applyVisual:uo("color"),getColorMapper:function(){var e=this.option;return oe(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),wo.call(this,t)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=Bf(t,e.parsedVisual,i),a?i:Fr(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Fr(Bf(e,this.option.parsedVisual),"rgba")},category:wo,piecewise:function(e,t){var n=Av.call(this,t);return n==null&&(n=Fr(Bf(e,this.option.parsedVisual),"rgba")),n},fixed:ri}},colorHue:vl(function(e,t){return ca(e,t)}),colorSaturation:vl(function(e,t){return ca(e,null,t)}),colorLightness:vl(function(e,t){return ca(e,null,null,t)}),colorAlpha:vl(function(e,t){return AT(e,t)}),decal:{applyVisual:uo("decal"),_normalizedToVisual:{linear:null,category:wo,piecewise:null,fixed:null}},opacity:{applyVisual:uo("opacity"),_normalizedToVisual:Mv([0,1])},liftZ:{applyVisual:uo("liftZ"),_normalizedToVisual:{linear:ri,category:ri,piecewise:ri,fixed:ri}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:u0,category:wo,piecewise:function(e,t){var n=Av.call(this,t);return n==null&&(n=u0.call(this,e)),n},fixed:ri}},symbolSize:{applyVisual:uo("symbolSize"),_normalizedToVisual:Mv([0,1])}},r}();function yk(r){var e=r.pieceList;r.hasSpecialVisual=!1,E(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function _k(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(as(e,function(o,s){t[o]=s}),!U(n)){var i=[];j(n)?as(n,function(o,s){var l=t[s];i[l??ku]=o}):i[ku]=n,n=Vw(r,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete t[e[a]],e.pop())}function Kc(r,e){var t=r.visual,n=[];j(t)?as(t,function(a){n.push(a)}):t!=null&&n.push(t);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),Vw(r,n)}function vl(r){return{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("color",r(t("color"),i))},_normalizedToVisual:Mv([0,1])}}function u0(r){var e=this.option.visual;return e[Math.round(je(r,[0,1],[0,e.length-1],!0))]||{}}function uo(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function wo(r){var e=this.option.visual;return e[this.option.loop&&r!==ku?r%e.length:r]}function ri(){return this.option.visual[0]}function Mv(r){return{linear:function(e){return je(e,r,this.option.visual,!0)},category:wo,piecewise:function(e,t){var n=Av.call(this,t);return n==null&&(n=je(e,r,this.option.visual,!0)),n},fixed:ri}}function Av(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=rt.findPieceIndex(r,t),i=t[n];if(i&&i.visual)return i.visual[this.type]}}function Vw(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=q(e,function(t){var n=Wt(t);return!n&&process.env.NODE_ENV!=="production"&&Ye("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var Sk={linear:function(r){return je(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=rt.findPieceIndex(r,e,!0);if(t!=null)return je(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??ku},fixed:$e};function dl(r,e,t){return r?e<=t:e<t}function Ki(r){return"_EC_"+r}var bk=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[Ki(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new ni(e,t);return i.hostGraph=this,this.nodes.push(i),n[Ki(e)]=i,i},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Ki(e)]},r.prototype.addEdge=function(e,t,n){var i=this._nodesMap,a=this._edgesMap;if(_e(e)&&(e=this.nodes[e]),_e(t)&&(t=this.nodes[t]),e instanceof ni||(e=i[Ki(e)]),t instanceof ni||(t=i[Ki(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Bw(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),a[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 ni&&(e=e.id),t instanceof ni&&(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,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(t,n[a],a)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},r.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ni||(t=this._nodesMap[Ki(t)]),!!t){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(i,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;t.filterSelf(function(s){var l=i[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)i[t.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},r}(),ni=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=ee(),t=ee(),n=0,i=this.edges.length;n<i;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var o=[a.node1],s=[a.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,h=f.length,v=void 0,d=void 0;c<h;c++)v=f[c],d=v.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,m=g.length,y=void 0,_=void 0;c<m;c++)y=g[c],_=y.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(y.node2))}}}return{edge:e.keys(),node:t.keys()}},r}(),Bw=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=ee(),t=ee();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!e.hasKey(c)&&(e.set(c,!0),n.push(f.node1))}for(a=0;a<i.length;){var h=i[a];a++,t.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),i.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r}();function zw(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)}}}Mt(ni,zw("hostGraph","data"));Mt(Bw,zw("hostGraph","edgeData"));function wk(r,e,t,n,i){for(var a=new bk(n),o=0;o<r.length;o++)a.addNode(Wr(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;a.addEdge(c,h,u)&&(l.push(f),s.push(Wr(Yt(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=za(r,t);else{var p=ms.get(v),g=p?p.dimensions||[]:[];de(g,"value")<0&&g.concat(["value"]);var m=Gd(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new yu(m,t),d.initData(r)}var y=new yu(["value"],t);return y.initData(l,s),i&&i(d,y),fk({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var xk=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),Tk=function(r){H(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new xk},e.prototype.buildPath=function(t,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+i(l)*s,n.y+a(l)*s),t.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),t.lineTo(n.x-i(l)*s,n.y-a(l)*s),t.lineTo(u,f)},e}(be);function Ck(r,e){var t=r.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=ae(t[0],e.getWidth()),s=ae(t[1],e.getHeight()),l=ae(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function pl(r,e){var t=r==null?"":r+"";return e&&(K(e)?t=e.replace("{value}",t):re(e)&&(t=e(r))),t}var Dk=function(r){H(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,i){this.group.removeAll();var a=t.get(["axisLine","lineStyle","color"]),o=Ck(t,i);this._renderMain(t,n,i,a,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,i,a,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?Nu:Dr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),m=[u,f];td(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,S=[],b=0;d&&b<a.length;b++){var w=Math.min(Math.max(a[b][0],0),1);f=u+y*w;var x=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:a[b][1]}),x.setStyle(p.getLineStyle(["color","width"])),S.push(x),_=f}S.reverse(),E(S,function(M){return s.add(M)});var C=function(M){if(M<=0)return a[0][1];var T;for(T=0;T<a.length;T++)if(a[T][0]>=M&&(T===0?0:a[T-1][0])<M)return a[T][1];return a[T-1][1]};this._renderTicks(t,n,i,C,o,u,f,l,g),this._renderTitleAndDetail(t,n,i,C,o),this._renderAnchor(t,o),this._renderPointer(t,n,i,C,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,i,a,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"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=y.get("splitNumber"),w=ae(m.get("length"),d),x=ae(y.get("length"),d),C=s,M=(l-s)/S,T=M/b,D=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),A=m.get("distance"),L,O,P=0;P<=S;P++){if(L=Math.cos(C),O=Math.sin(C),m.get("show")){var N=A?A+f:f,R=new Er({shape:{x1:L*(d-N)+h,y1:O*(d-N)+v,x2:L*(d-w-N)+h,y2:O*(d-w-N)+v},style:D,silent:!0});D.stroke==="auto"&&R.setStyle({stroke:a(P/S)}),c.add(R)}if(_.get("show")){var N=_.get("distance")+A,k=pl(pe(P*(g-p)/S+p,nC),_.get("formatter")),F=a(P/S),V=L*(d-w-N)+h,X=O*(d-w-N)+v,Z=_.get("rotate"),W=0;Z==="radial"?(W=-C+2*Math.PI,W>Math.PI/2&&(W+=Math.PI)):Z==="tangential"?W=-C-Math.PI/2:_e(Z)&&(W=Z*Math.PI/180),W===0?c.add(new Ae({style:et(_,{text:k,x:V,y:X,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Ae({style:et(_,{text:k,x:V,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:V,originY:X,rotation:W}))}if(y.get("show")&&P!==S){var N=y.get("distance");N=N?N+f:f;for(var J=0;J<=b;J++){L=Math.cos(C),O=Math.sin(C);var fe=new Er({shape:{x1:L*(d-N)+h,y1:O*(d-N)+v,x2:L*(d-x-N)+h,y2:O*(d-x-N)+v},silent:!0,style:I});I.stroke==="auto"&&fe.setStyle({stroke:a((P+J/b)/S)}),c.add(fe),C+=T}C-=T}else C+=M}},e.prototype._renderPointer=function(t,n,i,a,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"),m=g.get("show"),y=t.getData(),_=y.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),w=[S,b],x=[s,l];function C(T,D){var I=y.getItemModel(T),A=I.getModel("pointer"),L=ae(A.get("width"),o.r),O=ae(A.get("length"),o.r),P=t.get(["pointer","icon"]),N=A.get("offsetCenter"),R=ae(N[0],o.r),k=ae(N[1],o.r),F=A.get("keepAspect"),V;return P?V=Et(P,R-L/2,k-O,L,O,null,F):V=new Tk({shape:{angle:-Math.PI/2,width:L,r:O,x:R,y:k}}),V.rotation=-(D+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function M(T,D){var I=g.get("roundCap"),A=I?Nu:Dr,L=g.get("overlap"),O=L?g.get("width"):f/y.count(),P=L?o.r-O:o.r-(T+1)*O,N=L?o.r:o.r-T*O,R=new A({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:N}});return L&&(R.z2=je(y.get(_,T),[S,b],[100,0],!0)),R}(m||p)&&(y.diff(h).add(function(T){var D=y.get(_,T);if(p){var I=C(T,s);Ze(I,{rotation:-((isNaN(+D)?x[0]:je(D,w,x,!0))+Math.PI/2)},t),c.add(I),y.setItemGraphicEl(T,I)}if(m){var A=M(T,s),L=g.get("clip");Ze(A,{shape:{endAngle:je(D,w,x,L)}},t),c.add(A),Bh(t.seriesIndex,y.dataType,T,A),d[T]=A}}).update(function(T,D){var I=y.get(_,T);if(p){var A=h.getItemGraphicEl(D),L=A?A.rotation:s,O=C(T,L);O.rotation=L,Be(O,{rotation:-((isNaN(+I)?x[0]:je(I,w,x,!0))+Math.PI/2)},t),c.add(O),y.setItemGraphicEl(T,O)}if(m){var P=v[D],N=P?P.shape.endAngle:s,R=M(T,N),k=g.get("clip");Be(R,{shape:{endAngle:je(I,w,x,k)}},t),c.add(R),Bh(t.seriesIndex,y.dataType,T,R),d[T]=R}}).execute(),y.each(function(T){var D=y.getItemModel(T),I=D.getModel("emphasis"),A=I.get("focus"),L=I.get("blurScope"),O=I.get("disabled"),P=a(je(y.get(_,T),w,[0,1],!0));if(p){var N=y.getItemGraphicEl(T),R=y.getItemVisual(T,"style"),k=R.fill;if(N instanceof Kt){var F=N.style;N.useStyle(G({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},R))}else N.useStyle(R),N.type!=="pointer"&&N.setColor(k);N.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",P),N.z2EmphasisLift=0,Cr(N,D),rr(N,A,L,O)}if(m){var V=d[T];V.useStyle(y.getItemVisual(T,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",P),V.z2EmphasisLift=0,Cr(V,D),rr(V,A,L,O)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var i=t.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=Et(s,n.cx-o/2+ae(l[0],n.r),n.cy-o/2+ae(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,i,a,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),c=+t.get("max"),h=new Ee,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new Ae({silent:!0}),d[m]=new Ae({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),S=new Ee,b=a(je(_,[f,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var x=w.get("offsetCenter"),C=o.cx+ae(x[0],o.r),M=o.cy+ae(x[1],o.r),T=v[m];T.attr({z2:g?0:2,style:et(w,{x:C,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(T)}var D=y.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),A=o.cx+ae(I[0],o.r),L=o.cy+ae(I[1],o.r),O=ae(D.get("width"),o.r),P=ae(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,T=d[m],R=D.get("formatter");T.attr({z2:g?0:2,style:et(D,{x:A,y:L,text:pl(_,R),width:isNaN(O)?null:O,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:N})}),MS(T,{normal:D},_,function(F){return pl(F,R)}),p&&JE(T,m,l,t,{getFormattedLabel:function(F,V,X,Z,W,J){return pl(J?J.interpolatedValue:_,R)}}),S.add(T)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(tt),Ek=function(r){H(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 tp(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,Y.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Y.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Y.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Y.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Y.color.neutral00,borderWidth:0,borderColor:Y.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Y.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Y.color.transparent,borderWidth:0,borderColor:Y.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Y.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(ft);function Mk(r){r.registerChartView(Dk),r.registerSeriesModel(Ek)}function Ak(r,e,t,n,i,a){r=r||0;var o=ti(t[1],-t[0]);if(i!=null&&(i=ji(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(ti(e[1],-e[0]));s=ji(s,[0,o]),i=a=ji(s,[i,a]),n=0}e[0]=ji(e[0],t),e[1]=ji(e[1],t);var l=jc(e,n);e[n]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]=ti(f[0],u):f[1]=ti(f[1],-u),e[n]=ji(e[n],f);var c;return c=jc(e,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(e[1-n]=ti(e[n],l.sign*i)),c=jc(e,n),a!=null&&c.span>a&&(e[1-n]=ti(e[n],c.sign*a)),e}function jc(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 ji(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Qr="sankey",Ik=function(r){H(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 i=t.edges||t.links||[],a=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 Ie(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=wk(a,i,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 m=g.depth,y=p.levelModels[m];y&&(v.parentModel=y)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,n){var i=this.option.data||this.option.nodes,a=i[t];a.localX=n[0],a.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,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return jr("nameValue",{name:u,value:l,noValue:a(l)})}else{var f=this.getGraph().getNodeByIndex(t),c=f.getLayout().value,h=this.getDataParams(t,i).data.name;return jr("nameValue",{name:h!=null?h+"":null,value:c,noValue:a(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var i=r.prototype.getDataParams.call(this,t,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;i.value=o}return i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Qr,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Y.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Y.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(ft),Lk=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}(),Ok=function(r){H(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Lk},e.prototype.buildPath=function(t,n){var i=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+i,n.y2),t.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(t.lineTo(n.x2,n.y2+i),t.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),t.closePath()},e.prototype.highlight=function(){Uo(this)},e.prototype.downplay=function(){Wo(this)},e}(be),Pk=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Qr,t._mainGroup=new Ee,t}return e.prototype.init=function(t,n){this._controller=new VN(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,i){var a=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),c=t.getData("edge"),h=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,i),ok(t,i,this._controller,sk(o)),a.eachEdge(function(v){var d=new Ok,p=ve(d);p.dataIndex=v.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=v.getModel(),m=g.getModel("lineStyle"),y=m.get("curveness"),_=v.node1.getLayout(),S=v.node1.getModel(),b=S.get("localX"),w=S.get("localY"),x=v.node2.getLayout(),C=v.node2.getModel(),M=C.get("localX"),T=C.get("localY"),D=v.getLayout(),I,A,L,O,P,N,R,k;d.shape.extent=Math.max(1,D.dy),d.shape.orient=h,h==="vertical"?(I=(b!=null?b*l:_.x)+D.sy,A=(w!=null?w*u:_.y)+_.dy,L=(M!=null?M*l:x.x)+D.ty,O=T!=null?T*u:x.y,P=I,N=A*(1-y)+O*y,R=L,k=A*y+O*(1-y)):(I=(b!=null?b*l:_.x)+_.dx,A=(w!=null?w*u:_.y)+D.sy,L=M!=null?M*l:x.x,O=(T!=null?T*u:x.y)+D.ty,P=I*(1-y)+L*y,N=A,R=I*y+L*(1-y),k=O),d.setShape({x1:I,y1:A,x2:L,y2:O,cpx1:P,cpy1:N,cpx2:R,cpy2:k}),d.useStyle(m.getItemStyle()),f0(d.style,h,v);var F=""+g.get("value"),V=Mr(g,"edgeLabel");Kr(d,V,{labelFetcher:{getFormattedLabel:function(W,J,fe,Pe,ze,xe){return t.getFormattedLabel(W,J,"edge",Pe,br(ze,V.normal&&V.normal.get("formatter"),F),xe)}},labelDataIndex:v.dataIndex,defaultText:F}),d.setTextConfig({position:"inside"});var X=g.getModel("emphasis");Cr(d,g,"lineStyle",function(W){var J=W.getItemStyle();return f0(J,h,v),J}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var Z=X.get("focus");rr(d,Z==="adjacency"?v.getAdjacentDataIndices():Z==="trajectory"?v.getTrajectoryDataIndices():Z,X.get("blurScope"),X.get("disabled"))}),a.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),m=p.get("localY"),y=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new Ce({shape:{x:g!=null?g*l:d.x,y:m!=null?m*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});Kr(S,Mr(p),{labelFetcher:{getFormattedLabel:function(w,x){return t.getFormattedLabel(w,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),S.disableLabelAnimation=!0,S.setStyle("fill",v.getVisual("color")),S.setStyle("decal",v.getVisual("style").decal),Cr(S,p),o.add(S),f.setItemGraphicEl(v.dataIndex,S),ve(S).dataType="node";var b=y.get("focus");rr(S,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,y.get("blurScope"),y.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,m){this.shape.x+=g,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Rk(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,i){o0(this.group,is,n.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,n){var i=t.layoutInfo,a=t.coordinateSystem=uk(t,n,i.x,i.y,i.width,i.height);o0(this.group,is,a,this._firstRender?null:t)},e.type=Qr,e}(tt);function f0(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),i=t.node2.getVisual("color");K(n)&&K(i)&&(r.fill=new nf(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function Rk(r,e,t){var n=new Ce({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(n,{shape:{width:r.width+20}},e,t),n}var Nk=Zu(Qr,kk);function kk(r,e){r.eachSeriesByType(Qr,function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),a=Ai(t,e).refContainer,o=nr(t.getBoxLayoutParams(),a);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,c=u.edges;Bk(f);var h=Qe(f,function(g){return g.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");Vk(f,c,n,i,s,l,v,d,p)})}function Vk(r,e,t,n,i,a,o,s,l){zk(r,e,t,i,a,s,l),Uk(r,e,a,i,n,o,s),Qk(r,s)}function Bk(r){E(r,function(e){var t=bn(e.outEdges,Vu),n=bn(e.inEdges,Vu),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)})}function zk(r,e,t,n,i,a,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),m=g.depth!=null&&g.depth>=0;m&&g.depth>v&&(v=g.depth),p.setLayout({depth:m?g.depth:c},!0),a==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var y=0;y<p.outEdges.length;y++){var _=p.outEdges[y],S=de(e,_);s[S]=0;var b=_.node2,w=de(r,b);--l[w]===0&&de(f,b)<0&&f.push(b)}}++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 x=v>c-1?v:c-1;o&&o!=="left"&&Fk(r,o,a,x);var C=a==="vertical"?(i-t)/x:(n-t)/x;Gk(r,C,a)}function Fw(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function Fk(r,e,t,n){if(e==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];de(i,f.node1)<0&&i.push(f.node1)}}a=i,i=[],++o}E(r,function(c){Fw(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Hk(r,n)}function Hk(r,e){E(r,function(t){!Fw(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Gk(r,e,t){E(r,function(n){var i=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function Uk(r,e,t,n,i,a,o){var s=Wk(r,o);Yk(s,e,t,n,i,o),Qc(s,i,t,n,o);for(var l=1;a>0;a--)l*=.99,Xk(s,l,o),Qc(s,i,t,n,o),jk(s,l,o),Qc(s,i,t,n,o)}function Wk(r,e){var t=[],n=e==="vertical"?"y":"x",i=IC(r,function(a){return a.getLayout()[n]});return Pa(i.keys),E(i.keys,function(a){t.push(i.buckets.get(a))}),t}function Yk(r,e,t,n,i,a){var o=1/0;E(r,function(s){var l=s.length,u=0;E(s,function(c){u+=c.getLayout().value});var f=a==="vertical"?(n-(l-1)*i)/u:(t-(l-1)*i)/u;f<o&&(o=f)}),E(r,function(s){E(s,function(l,u){var f=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),E(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Qc(r,e,t,n,i){var a=i==="vertical"?"x":"y";E(r,function(o){o.sort(function(p,g){return p.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,f=0,c=o.length,h=i==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]+l.getLayout()[h]+e;var d=i==="vertical"?n:t;if(u=f-e-d,u>0){s=l.getLayout()[a]-u,i==="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()[a]+l.getLayout()[h]+e-f,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]}})}function Xk(r,e,t){E(r.slice().reverse(),function(n){E(n,function(i){if(i.outEdges.length){var a=bn(i.outEdges,$k,t)/bn(i.outEdges,Vu);if(isNaN(a)){var o=i.outEdges.length;a=o?bn(i.outEdges,Zk,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(a-Mn(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Mn(i,t))*e;i.setLayout({y:l},!0)}}})})}function $k(r,e){return Mn(r.node2,e)*r.getValue()}function Zk(r,e){return Mn(r.node2,e)}function qk(r,e){return Mn(r.node1,e)*r.getValue()}function Kk(r,e){return Mn(r.node1,e)}function Mn(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Vu(r){return r.getValue()}function bn(r,e,t){for(var n=0,i=r.length,a=-1;++a<i;){var o=+e(r[a],t);isNaN(o)||(n+=o)}return n}function jk(r,e,t){E(r,function(n){E(n,function(i){if(i.inEdges.length){var a=bn(i.inEdges,qk,t)/bn(i.inEdges,Vu);if(isNaN(a)){var o=i.inEdges.length;a=o?bn(i.inEdges,Kk,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(a-Mn(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Mn(i,t))*e;i.setLayout({y:l},!0)}}})})}function Qk(r,e){var t=e==="vertical"?"x":"y";E(r,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[t]-a.node2.getLayout()[t]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[t]-a.node1.getLayout()[t]})}),E(r,function(n){var i=0,a=0;E(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),E(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}var Jk=Zu(Qr,eV);function eV(r){r.eachSeriesByType(Qr,function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var a=1/0,o=-1/0;E(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),E(n,function(s){var l=new rt({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&E(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function tV(r){r.registerChartView(Pk),r.registerSeriesModel(Ik),r.registerLayout(Nk),r.registerVisual(Jk),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:Go,subType:Qr,query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),lk(r,Go,Qr)}var rV=256,nV=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=dt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"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],m=p[1],y=p[2],_=i(y);h.globalAlpha=_,h.drawImage(s,g-f,m-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,w=0,x=b.length,C=this.minOpacity,M=this.maxOpacity,T=M-C;w<x;){var _=b[w+3]/256,D=Math.floor(_*(rV-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*T+C),b[w++]=I[D],b[w++]=I[D+1],b[w++]=I[D+2],b[w++]=I[D+3]*_*256}else w+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=dt.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=Y.color.neutral99,i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();function iV(r,e,t){var n=r[1]-r[0];e=q(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&t[s]}}function aV(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}var oV=function(r){H(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,i){var a;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(a=s)})}),process.env.NODE_ENV!=="production"&&!a)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,i,0,t.getData().count()):_y(o)&&this._renderOnGeo(o,t,a,i)},e.prototype.incrementalPrepareRender=function(t,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,i,a){var o=n.coordinateSystem;o&&(_y(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnGridLike(n,a,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){hs(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,i,a,o){var s=t.coordinateSystem,l=Ou(s,"cartesian2d"),u=Ou(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(d.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}f=Dn(d).w+.5,c=Dn(p).w+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),w=Mr(t),x=t.getModel("emphasis"),C=x.get("focus"),M=x.get("blurScope"),T=x.get("disabled"),D=l||u?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],I=i;I<a;I++){var A=void 0,L=m.getItemVisual(I,"style");if(l){var O=m.get(D[0],I),P=m.get(D[1],I);if(isNaN(m.get(D[2],I))||isNaN(O)||isNaN(P)||O<h[0]||O>h[1]||P<v[0]||P>v[1])continue;var N=s.dataToPoint([O,P]);A=new Ce({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:L})}else if(u){var R=s.dataToLayout([m.get(D[0],I),m.get(D[1],I)]).rect;if(zr(R.x))continue;A=new Ce({z2:1,shape:R,style:L})}else{if(isNaN(m.get(D[1],I)))continue;var k=s.dataToLayout([m.get(D[0],I)]),R=k.contentRect||k.rect;if(zr(R.x)||zr(R.y))continue;A=new Ce({z2:1,shape:R,style:L})}if(m.hasItemOption){var F=m.getItemModel(I),V=F.getModel("emphasis");y=V.getModel("itemStyle").getItemStyle(),_=F.getModel(["blur","itemStyle"]).getItemStyle(),S=F.getModel(["select","itemStyle"]).getItemStyle(),b=F.get(["itemStyle","borderRadius"]),C=V.get("focus"),M=V.get("blurScope"),T=V.get("disabled"),w=Mr(F)}A.shape.r=b;var X=t.getRawValue(I),Z="-";X&&X[2]!=null&&(Z=X[2]+""),Kr(A,w,{labelFetcher:t,labelDataIndex:I,defaultOpacity:L.opacity,defaultText:Z}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=_,A.ensureState("select").style=S,rr(A,C,M,T),A.incremental=jv(t,o),o&&(A.states.emphasis.hoverLayer=af),g.add(A),m.setItemGraphicEl(I,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new nV;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,a.getWidth()),p=Math.min(f.height+f.y,a.getHeight()),g=d-h,m=p-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(x,C,M){var T=t.dataToPoint([x,C]);return T[0]-=h,T[1]-=v,T.push(M),T}),S=i.getExtent(),b=i.type==="visualMap.continuous"?aV(S,i.option.range):iV(S,i.getPieceList(),i.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var w=new Kt({style:{width:g,height:m,x:h,y:v,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(tt),sV=function(r){H(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 za(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ms.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Y.color.primary}}},e}(ft);function lV(r){r.registerChartView(oV),r.registerSeriesModel(sV)}var ii=we(),c0=ie,Jc=oe,uV=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,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 Ee,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=Oe(h0,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}d0(s,t,!0),this._renderHandle(a)}},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"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&Dn(i).w>s)return!0;if(o){var l=np(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=ii(e).pointerEl=new DS[a.type](c0(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=ii(e).labelEl=new Ae(c0(t.label));e.add(a),v0(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=ii(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=ii(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),v0(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=hd(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gi(u.event)},onmousedown:Jc(this._onHandleDragMove,this,0,0),drift:Jc(this._onHandleDragMove,this),ondragend:Jc(this._onHandleDragEnd,this)}),n.add(i)),d0(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,S1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){h0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,eh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(eh(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(eh(i)),ii(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,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),iv(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 h0(r,e,t,n){Hw(ii(t).lastProp,n)||(ii(t).lastProp=n,e?Be(t,n,r):(t.stopAnimation(),t.attr(n)))}function Hw(r,e){if(j(r)&&j(e)){var t=!0;return E(e,function(n,i){t=t&&Hw(r[i],n)}),!!t}else return r===e}function v0(r,e){r[e.get(["label","show"])?"show":"hide"]()}function eh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function d0(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}function fV(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 cV(r,e,t,n,i){var a=t.get("value"),o=Gw(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=gs(s.get("padding")||0),u=s.getFont(),f=y_(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),hV(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:et(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function hV(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Gw(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:xu(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};E(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),K(o)?a=o.replace("{value}",a):re(o)&&(a=o(s))}return a}function Uw(r,e,t){var n=Xe();return Uv(n,n,t.rotation),mh(n,n,t.position),va([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function vV(r,e,t,n,i,a){var o=Gr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),cV(e,n,i,a,{position:Uw(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function dV(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function pV(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function gV(r,e,t){return Dn(r,{fromStat:{sers:q(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function mV(r,e,t){return[ye(st(e[0],e[1]),r-t/2),st(r+t/2,ye(e[0],e[1]))]}var yV=function(r){H(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=p0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=fV(a),d=_V[u](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=Pu(l.getRect(),i);vV(n,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=Pu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Uw(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=p0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=st(l[1],c[f]),c[f]=ye(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}(uV);function p0(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var _V={line:function(r,e,t,n){var i=dV([e,n[0]],[e,n[1]],g0(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t,n,i,a){var o=gV(r,i,a),s=n[1]-n[0],l=mV(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:pV([u,n[0]],[f-u,s],g0(r))}}};function g0(r){return r.dim==="x"?0:1}var SV=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Y.color.border,width:1,type:"dashed"},shadowStyle:{color:Y.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Y.color.neutral00,padding:[5,7,5,7],backgroundColor:Y.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Y.color.accent40,throttle:40}},e}(ge),Br=we(),bV=E;function Ww(r,e,t){if(!ue.node){var n=e.getZr();Br(n).records||(Br(n).records={}),wV(n,e);var i=Br(n).records[r]||(Br(n).records[r]={});i.handler=t}}function wV(r,e){if(Br(r).initialized)return;Br(r).initialized=!0,t("click",Oe(th,"click")),t("mousemove",Oe(th,"mousemove")),t("mousewheel",Oe(th,"mousewheel")),t("globalout",TV);function t(n,i){r.on(n,function(a){var o=CV(e);bV(Br(r).records,function(s){s&&i(s,a,o.dispatchAction)}),xV(o.pendings,e)})}}function xV(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function TV(r,e,t){r.handler("leave",null,t)}function th(r,e,t,n){e.handler(r,t,n)}function CV(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Iv(r,e){if(!ue.node){var t=e.getZr(),n=(Br(t).records||{})[r];n&&(Br(t).records[r]=null)}}var DV=function(r){H(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,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Ww("axisPointer",i,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){Iv("axisPointer",n)},e.prototype.dispose=function(t,n){Iv("axisPointer",n)},e.type="axisPointer",e}(Tt);function Yw(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=_i(a,r);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.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=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(a.getValues(q(l.dimensions,function(m){return a.mapDimension(m)}),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 m0=we();function EV(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||oe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Bl(i)&&(i=Yw({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Bl(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Bl(i),h={},v={},d={list:[],map:{}},p={showPointer:Oe(AV,v),showTooltip:Oe(IV,d)};E(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);E(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,x=RV(u,S);if(!c&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&y0(S,C,p,!1,h)}})});var g={};return E(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&E(_.axesInfo,function(S,b){var w=v[b];if(S!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,_0(S),_0(m)))),g[m.key]=x}})}),E(g,function(m,y){y0(f[y],m,p,!0,h)}),LV(v,f,h),OV(d,i,r,o),PV(f,o,t),h}}function y0(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=MV(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&G(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function MV(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return E(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.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(Dt(c)){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),E(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function AV(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function IV(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ts(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function LV(r,e,t){var n=t.axesInfo=[];E(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function OV(r,e,t,n){if(Bl(e)||!r.list.length){n({type:"hideTip"});return}var i=((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:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function PV(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=m0(n)[i]||{},o=m0(n)[i]={};E(r,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&E(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}E(a,function(f,c){!o[c]&&l.push(u(f))}),E(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function RV(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 _0(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 Bl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xw(r){ww.registerAxisPointerClass("CartesianAxisPointer",yV),r.registerComponentModel(SV),r.registerComponentView(DV),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=uN(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},EV)}function NV(r){qt(Cw),qt(Xw)}function kV(r,e){var t=gs(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ce({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var VV=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Y.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Y.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Y.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Y.color.tertiary,fontSize:14}},e}(ge);function $w(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Zw(r){if(ue.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var qw=Zw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),BV=Zw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Kw(r,e){if(!r)return e;e=GS(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function zV(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var FV=Kw(BV,"transition"),op=Kw(qw,"transform"),HV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ue.transform3dSupported?"will-change:transform;":"");function GV(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function UV(r,e,t){if(!K(t)||t==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");e=wi(e);var a=GV(t),o=Math.max(Math.round(i)*1.5,6),s="",l=op+":",u;de(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function WV(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return t&&(i=" "+r/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+r+"s "+n,a+=(a.length?",":"")+(ue.transformSupported?""+op+i:",left"+i+",top"+i)),FV+":"+a}function S0(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ue.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ue.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+op+":"+o+";":[["top",0],["left",0],[qw,o]]}function YV(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=Q(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),E(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function XV(r,e,t,n){var i=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=y1(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),e&&a>0&&i.push(WV(a,t,n)),o&&i.push("background-color:"+o),E(["width","color","radius"],function(d){var p="border-"+d,g=GS(p),m=r.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(YV(c)),h!=null&&i.push("padding:"+gs(h).join("px ")+"px"),i.join(";")+";"}function b0(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&Wx(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var $V=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ue.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(K(a)?document.querySelector(a):_a(a)?a:re(a)&&a(e.getDom()));b0(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Rt(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=zV(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=HV+XV(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+S0(a[0],a[1],!0)+("border-color:"+wi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(K(a)&&n.get("trigger")==="item"&&!$w(n)&&(s=UV(n,i,a)),K(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)_a(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(b0(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var i=this.el.style,a=S0(n[0],n[1]);E(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",ue.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Yx(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r}(),ZV=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),x0(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,i,a){var o=this;j(e)&&bt(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 Ae({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:y1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),E(["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=w0(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 i=this._styleCoord;x0(i,this._zr,e,t),e=i[0],t=i[1];var a=n.style,o=vn(a.borderWidth||0),s=w0(a);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function vn(r){return Math.max(0,r)}function w0(r){var e=vn(r.shadowBlur||0),t=vn(r.shadowOffsetX||0),n=vn(r.shadowOffsetY||0);return{left:vn(e-t),right:vn(e+t),top:vn(e-n),bottom:vn(e+n)}}function x0(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var qV=new Ce({shape:{x:-1,y:-1,width:2,height:2}}),KV=function(r){H(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(!(ue.node||!n.getDom())){var i=t.getComponent("tooltip"),a=this._renderMode=AC(i.get("renderMode"));this._tooltipContent=a==="richText"?new ZV(n):new $V(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,n,i){if(!(ue.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?S1(this,"_updatePosition",50,"fixRate"):iv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");Ww("itemTooltip",this._api,oe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||ue.node||!i.getDom())){var o=T0(a,i);this._ticket="";var s=a.dataByCoordSys,l=eB(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=qV;f.x=a.x,f.y=a.y,f.update(),ve(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,i,a))return;var c=Yw(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(T0(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.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=fo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=ve(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;la(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ve(f).dataIndex!=null?l=f:ve(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=fo([n.tooltipOption],a),l=this._renderMode,u=[],f=jr("section",{blocks:[],noHeader:!0}),c=[],h=new Tc;E(t,function(y){E(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,x=w.scale.parse(b);if(!(!S||b==null)){var C=Gw(b,w,i,_.seriesDataIndices,_.valueLabelOpt),M=jr("section",{header:C,noHeader:!_r(C),sortBlocks:!0,blocks:[]});f.blocks.push(M),E(_.seriesDataIndices,function(T){var D=i.getSeriesByIndex(T.seriesIndex),I=T.dataIndexInside,A=D.getDataParams(I);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=xu(S.axis,{value:x}),A.axisValueLabel=C,A.marker=h.makeTooltipMarker("item",wi(A.color),l);var L=um(D.formatTooltip(I,!0,null)),O=L.frag;if(O){var P=fo([D],a).get("valueFormatter");M.blocks.push(P?G({valueFormatter:P},O):O)}L.text&&c.push(L.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=pm(f,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
|
|
44
|
+
|
|
45
|
+
`:"<br/>",m=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,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=ve(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=t.positionDefault,p=fo([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Tc;m.marker=y.makeTooltipMarker("item",wi(m.color),v);var _=um(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,x=w?pm(b?G({valueFormatter:b},w):w,y,v,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,C,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(K(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ie(l),l.content=_t(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=fo(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new Tc;this._showOrMove(d,function(){var y=ie(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,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],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(K(h)){var g=t.ecModel.get("useUTC"),m=U(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ff(m.axisValue,v,g)),v=US(v,i,!0)}else if(re(h)){var _=oe(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a,o){if(i==="axis"||U(n))return{color:a||o};if(!U(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,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),re(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(n))i=ae(n[0],u),a=ae(n[1],f);else if(j(n)){var p=n;p.width=c[0],p.height=c[1];var g=nr(p,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if(K(n)&&l){var m=JV(n,d,c,t.get("borderWidth"));i=m[0],a=m[1]}else{var m=jV(i,a,o,u,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=C0(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=C0(v)?c[1]/2:v==="bottom"?c[1]:0),$w(t)){var m=QV(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&E(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&E(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&&E(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&E(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){ue.node||!n.getDom()||(iv(this,"_updatePosition"),this._tooltipContent.dispose(),Iv("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(Tt);function fo(r,e,t){var n=e.ecModel,i;t?(i=new Ie(t,n,n),i=new Ie(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(i=new Ie(o,i,n)))}return i}function T0(r,e){return r.dispatchAction||oe(e.dispatchAction,e)}function jV(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function QV(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function JV(r,e,t,n){var i=t[0],a=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-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function C0(r){return r==="center"||r==="middle"}function eB(r,e,t){var n=qv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Na(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.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:i,componentIndex:o.componentIndex,el:l}}}}function tB(r){qt(Xw),r.registerComponentModel(VV),r.registerComponentView(KV),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$e),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$e)}var D0=E;function E0(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function M0(r,e,t){var n={};return D0(e,function(a){var o=n[a]=i();D0(r[a],function(s,l){if(rt.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new rt(u),l==="opacity"&&(u=ie(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new rt(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function rB(r,e,t){var n;E(t,function(i){e.hasOwnProperty(i)&&E0(e[i])&&(n=!0)}),n&&E(t,function(i){e.hasOwnProperty(i)&&E0(e[i])?r[i]=ie(e[i]):delete r[i]})}function nB(r,e,t,n){var i={};return E(r,function(a){var o=rt.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return M1(s,c,b)}function f(b,w){xI(s,c,b,w)}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],m=i[p],y=0,_=m.length;y<_;y++){var S=m[y];g[S]&&g[S].applyVisual(d,u,f)}}}}}var iB=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Y.size.m,backgroundColor:Y.color.transparent,borderColor:Y.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Y.color.primary},subtextStyle:{fontSize:12,color:Y.color.quaternary}},e}(ge),aB=function(r){H(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,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ae({style:et(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new Ae({style:et(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(){Wg(d,"_"+t.get("target"))}),p&&v.on("click",function(){Wg(p,"_"+t.get("subtarget"))}),ve(f).eventData=ve(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ai(t,i),S=nr(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),m=a.getBoundingRect();var w=S.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var C=new Ce({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e}(Tt);function oB(r){r.registerComponentModel(iB),r.registerComponentView(aB)}var sB=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"])}},Lv=function(r){H(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,i){this.mergeDefaultAndTheme(t,i),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,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),U(n)&&E(n,function(a,o){K(a)&&(a={type:a}),n[o]=me(a,sB(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<t.length;i++){var a=t[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Zv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ee(),s=q(a,function(l){return(K(l)||_e(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ie(l,this,this.ecModel))},this);this._data=Qe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;E(a,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;E(t,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;E(t,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&de(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Y.size.m,align:"auto",backgroundColor:Y.color.transparent,borderColor:Y.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Y.color.disabled,inactiveBorderColor:Y.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Y.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Y.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Y.color.tertiary,borderWidth:1,borderColor:Y.color.border},emphasis:{selectorLabel:{show:!0,color:Y.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(ge),Qi=Oe,Ov=E,gl=Ee,jw=function(r){H(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 gl),this.group.add(this._selectorGroup=new gl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=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,i,l,s,u);var f=Ai(t,i).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),v=nr(c,f,h),d=this.layoutInner(t,o,v,a,l,u),p=nr(ce({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=kV(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,i,a,o,s,l){var u=this.getContentGroup(),f=ee(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ov(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
46
|
+
`)){var y=new gl;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m)){if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),x=S.getVisual("style"),C=this._createItem(_,m,p,d,n,t,b,x,w,c,a);C.on("click",Qi(A0,m,null,a,v)).on("mouseover",Qi(Pv,_.name,null,a,v)).on("mouseout",Qi(Rv,_.name,null,a,v)),i.ssr&&C.eachChild(function(M){var T=ve(M);T.seriesIndex=_.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),h&&C.eachChild(function(M){g.packEventData(M,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(M){var T=this;if(!f.get(m)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(m))return;var I=D.indexOfName(m),A=D.getItemVisual(I,"style"),L=D.getItemVisual(I,"legendIcon"),O=Wt(A.fill);O&&O[3]===0&&(O[3]=.2,A=G(G({},A),{fill:Fr(O,"rgba")}));var P=this._createItem(M,m,p,d,n,t,{},A,L,c,a);P.on("click",Qi(A0,null,m,a,v)).on("mouseover",Qi(Pv,null,m,a,v)).on("mouseout",Qi(Rv,null,m,a,v)),i.ssr&&P.eachChild(function(N){var R=ve(N);R.seriesIndex=M.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&P.eachChild(function(N){T.packEventData(N,n,M,p,m)}),f.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(t,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ve(t).eventData=s},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();Ov(t,function(u){var f=u.type,c=new Ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Kr(c,{normal:h,emphasis:v},{defaultText:u.title}),Uh(c)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,c,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=lB(f,a,l,u,v,g,h),b=new gl,w=a.getModel("textStyle");if(re(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;b.add(uB({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,M=s,T=o.get("formatter"),D=n;K(T)&&T?D=T.replace("{name}",n??""):re(T)&&(D=T(n));var I=g?w.getTextColor():a.get("inactiveColor");b.add(new Ae({style:et(w,{text:D,x:C,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var A=new Ce({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&of({el:A,componentModel:o,itemName:n,itemTooltipOption:L.option}),b.add(A),b.eachChild(function(O){O.silent=!0}),A.silent=!c,this.getContentGroup().add(b),Uh(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ga(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ga("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",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/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],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+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}(Tt);function lB(r,e,t,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Ov(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}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:uv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="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),!a){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 uB(r){var e=r.icon||"roundRect",t=Et(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=Y.color.neutral00,t.style.lineWidth=2),t}function A0(r,e,t,n){Rv(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Pv(r,e,t,n)}function Pv(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function Rv(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function co(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),I0(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){E(i,function(l,u){s[l?"select":"unSelect"](u)}),I0(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function I0(r,e){var t=e||{};return E(r.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
47
|
+
`||i==="")){var a=r.isSelected(i);pt(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function fB(r){r.registerAction("legendToggleSelect","legendselectchanged",Oe(co,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Oe(co,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Oe(co,"inverseSelect")),r.registerAction("legendSelect","legendselected",Oe(co,"select")),r.registerAction("legendUnSelect","legendunselected",Oe(co,"unSelect"))}var cB=Qv(hB);function hB(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 Qw(r){r.registerComponentModel(Lv),r.registerComponentView(jw),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,cB),r.registerSubTypeDefaulter("legend",function(){return"plain"}),fB(r)}var vB=function(r){H(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,i){var a=ys(t);r.prototype.init.call(this,t,n,i),L0(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),L0(this,this.option,t)},e.type="legend.scroll",e.defaultOption=uf(Lv.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:Y.color.accent50,pageIconInactiveColor:Y.color.accent10,pageIconSize:15,pageTextStyle:{color:Y.color.tertiary},animationDurationUpdate:800}),e}(Lv);function L0(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,Cn(e,t,{type:"box",ignoreSize:!!i})}var O0=Ee,rh=["width","height"],nh=["x","y"],dB=function(r){H(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 O0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new O0)},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,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=U(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ae({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 m=p+"DataIndex",y=hd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:oe(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=rh[u],c=nh[u],h=rh[1-u],v=nh[1-u];o&&ga("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=ie(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(t,a,m,u,f,h,v,c);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[c]-=_}y[f]+=p[f]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ga(t.get("orient"),f,t.get("itemGap"),a?i.width:null,a?null:i.height),ga("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Q(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new Ce({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return x.pageIndex!=null&&Be(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;E(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",K(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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=rh[o],l=nh[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.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,m=p,y=p,_=null;g<=h;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var x=w.getBoundingRect(),C=x[l]+w[l];return{s:C,e:C+x[s],i:w.__legendDataIndex}}}function b(w,x){return w.e>=x&&w.s<=x+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n??a},e.type="legend.scroll",e}(jw);function pB(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function gB(r){qt(Qw),r.registerComponentModel(vB),r.registerComponentView(dB),pB(r)}function mB(r){qt(Qw),qt(gB)}var Jw={get:function(r,e,t){var n=ie((yB[r]||{})[e]);return t&&U(n)?n[n.length-1]:n}},yB={color:{active:["#006edd","#e0ffff"],inactive:[Y.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},P0=rt.mapVisual,_B=rt.eachVisual,SB=U,ih=E,bB=Pa,wB=je,Bu=function(r){H(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,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&rB(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=oe(t,this),this.controllerVisuals=M0(this.option.controller,n,t),this.targetVisuals=M0(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,n=this.option.seriesTargets;if(n){var i=[];return ih(n,function(l){if(l.seriesIndex!=null)i.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&i.push(u.componentIndex)}}),i}var a=this.option.seriesId,o=this.option.seriesIndex;o==null&&a==null&&(o="all");var s=Na(this.ecModel,"series",{index:o,id:a},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return q(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,n){E(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(n,a)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(i){i===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],U(t)&&(t=t.slice(),u=!0);var f=n?t:u?[c(t[0]),c(t[1])]:c(t);if(K(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(re(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[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=bB([t.min,t.max]);this._dataExtent=n},e.prototype.getDimension=function(t){var n=this,i=this.option.seriesTargets;if(i){var a=zv(i,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(t).id});if(a)return a.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=t.hostModel.seriesIndex,i=this.getDimension(n);if(i!=null)return t.getDimensionIndex(i);for(var a=t.dimensions,o=a.length-1;o>=0;o--){var s=a[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});me(a,i),me(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){SB(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]={},ih(d,function(g,m){if(rt.isValidType(m)){var y=Jw.get(m,"inactive",s);y!=null&&(p[m]=y,m==="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";ih(this.stateList,function(m){var y=this.itemSize,_=c[m];_||(_=c[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&ie(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&ie(v)||(s?y[0]:[y[0],y[0]])),_.symbol=P0(_.symbol,function(w){return w==="none"?g:w});var S=_.symbolSize;if(S!=null){var b=-1/0;_B(S,function(w){w>b&&(b=w)}),_.symbolSize=P0(S,function(w){return wB(w,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Y.color.transparent,borderColor:Y.color.borderTint,contentColor:Y.color.theme[0],inactiveColor:Y.color.disabled,borderWidth:0,padding:Y.size.m,textGap:10,precision:0,textStyle:{color:Y.color.secondary}},e}(ge),R0=[20,140],xB=function(r){H(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(i){i.mappingMethod="linear",i.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]=R0[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=R0[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):U(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),E(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=Pa((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,i=this.getExtent(),a=Q(this.option.unboundedRange,!0);return(a&&n[0]<=i[0]||n[0]<=t)&&(a&&n[1]>=i[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(t){var n=N0(this,"outOfRange",this.getExtent()),i=N0(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var c=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(c&&(a.length&&o(a[a.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=uf(Bu.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:Y.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Y.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Y.color.shadow}}),e}(Bu);function N0(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,i=(t[1]-t[0])/n,a=t[0],o=[],s=0;s<=n&&a<t[1];s++)o.push(a),a+=i;return o.push(t[1]),o}var ex=function(r){H(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,i,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,i,a)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,i=gs(n.get("padding")||0),a=t.getBoundingRect();t.add(new Ce({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,i){i=i||{};var a=i.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[a||o.getValueState(t)],h=rt.prepareVisualTypes(c);return E(h,function(v){var d=c[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),rt.dependsOn(v,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,i=this.api,a=Ai(n,i).refContainer;NM(t,n.getBoxLayoutParams(),a)},e.prototype.doRender=function(t,n,i,a){},e.type="visualMap",e}(Tt),k0=[["left","right","width"],["top","bottom","height"]];function tx(r,e,t){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=k0[o],l=[0,null,10],u={},f=0;f<3;f++)u[k0[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=nr(u,a,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<a[c[1]]*.5?0:1]}function zl(r,e){return E(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var gr=je,TB=E,V0=Math.min,ah=Math.max,CB=12,DB=6,EB=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=oe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=oe(this._hideIndicator,this)},e.prototype.doRender=function(t,n,i,a){(!a||a.type!=="selectDataRange"||a.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 i=t.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),c=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Ae({style:et(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:a})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=tx(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new Ee;u.add(f),f.add(i.outOfRange=B0()),f.add(i.inRange=B0(null,s?F0(this._orient):null,oe(this._dragHandle,this,"all",!1),oe(this._dragHandle,this,"all",!0))),f.setClipPath(new Ce({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=ah(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),t.add(u)},e.prototype._createHandle=function(t,n,i,a,o,s){var l=oe(this._dragHandle,this,i,!1),u=oe(this._dragHandle,this,i,!0),f=Xr(t.get("handleSize"),a[0]),c=Et(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=F0(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){gi(m.event)}}),c.x=a[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(),sd(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new Ae({cursor:h,draggable:!0,drift:l,onmousemove:function(m){gi(m.event)},ondragend:u,style:et(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[i]=c,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},e.prototype._createIndicator=function(t,n,i,a,o){var s=Xr(t.get("indicatorSize"),i[0]),l=Et(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Kt){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new Ae({silent:!0,invisible:!0,style:et(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?a/2:DB)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],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():z0(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),i=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[gr(n[0],i,a,!0),gr(n[1],i,a,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Ak(n,a,o,t,0);var s=i.getExtent();this._dataInterval=[gr(a[0],o,s,!0),gr(a[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new nf(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var i=100,a=[],o=(t[1]-t[0])/i;a.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(t,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,i=this.visualMapModel.get("inverse");return new Ee(n==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);TB([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=t[c];var v=gr(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=va(i.handleLabelPoints[c],El(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,i,a){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=gr(t,s,u,!0),g=l[0]-d/2,m={x:c.x,y:c.y};c.y=p,c.x=g;var y=va(f.indicatorLabelPoint,El(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,w=b==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:w?S:"middle",align:w?"center":S});var x={x:g,y:p,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(x,M),_.animateTo(C,M)}else c.attr(x),_.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var D=0;D<T.length;D++)this.api.enterBlur(T[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,a=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);a[1]=V0(ah(0,a[1]),i[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[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 i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();t=V0(ah(o[0],t),o[1]);var l=MB(i,s,o),u=[t-l,t+l],f=gr(t,o,s,!0),c=[gr(u[0],o,s,!0),gr(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||z0(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=DC(h,v);this._dispatchHighDown("downplay",zl(d[0],i)),this._dispatchHighDown("highlight",zl(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(la(t.target,function(l){var u=ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.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 i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",zl(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,i,a){var o=El(n,a?null:this.group);return U(t)?va(t,o,i):bS(t,o,i)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(ex);function B0(r,e,t,n){return new Va({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){gi(i.event)},ondragend:n})}function MB(r,e,t){var n=CB/2,i=r.get("hoverLinkDataSize");return i&&(n=gr(i,e,t,!0)/2),n}function z0(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function F0(r){return r==="vertical"?"ns-resize":"ew-resize"}var AB={type:"selectDataRange",event:"dataRangeSelected",update:"update"},IB=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},LB=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||t.push(nB(n.stateList,n.targetVisuals,oe(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(oe(OB,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function OB(r,e,t,n){for(var i=e.targetVisuals[n],a=rt.prepareVisualTypes(i),o={color:A1(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[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 oh=E;function PB(r){var e=r&&r.visualMap;U(e)||(e=e?[e]:[]),oh(e,function(t){if(t){Ji(t,"splitList")&&!Ji(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;if(n&&U(n)&&oh(n,function(a){j(a)&&(Ji(a,"start")&&!Ji(a,"min")&&(a.min=a.start),Ji(a,"end")&&!Ji(a,"max")&&(a.max=a.end))}),process.env.NODE_ENV!=="production"){var i=t.seriesTargets;i&&U(i)&&oh(i,function(a){(!j(a)||a.dimension==null)&&console.warn("Each seriesTarget should have a dimension property"),a.seriesIndex==null&&a.seriesId==null&&console.warn("Each seriesTarget should have either seriesIndex or seriesId")})}}})}function Ji(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var H0=!1;function rx(r){H0||(H0=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(AB,IB),E(LB,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(PB))}function RB(r){r.registerComponentModel(xB),r.registerComponentView(EB),rx(r)}var NB=function(r){H(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 i=this._mode=this._determineMode();this._pieceList=[],kB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=ie(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=q(this._pieceList,function(l){return l=ie(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},i=rt.listVisualTypes(),a=this.isCategory();E(t.pieces,function(s){E(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),E(n,function(s,l){var u=!1;E(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&E(this.stateList,function(f){(t[f]||(t[f]={}))[l]=Jw.get(l,f==="inRange"?"active":"inactive",a)})},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 i=this.option,a=this._pieceList,o=(n?i:t).selected||{};if(i.selected=o,E(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;E(a,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=ie(t)},e.prototype.getValueState=function(t){var n=rt.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=rt.findPieceIndex(l,i);f===t&&o.push(u)},this),n.push({seriesId:a.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 i=t.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,c){var h=a.getRepresentValue({interval:f});c||(c=a.getValueState(h));var v=t(h,c);f[0]===-1/0?i[0]=v:f[1]===1/0?i[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 E(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:i}},e.type="visualMap.piecewise",e.defaultOption=uf(Bu.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}(Bu),kB={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),Xp(r),E(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;E(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),G0(e,r)},pieces:function(r){var e=this.option;E(e.pieces,function(t,n){j(t)||(t={value:t});var i={text:"",index:n};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.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]&&(i.value=o[0])}i.visual=rt.retrieveVisuals(t),r.push(i)},this),G0(e,r),Xp(r),E(r,function(t){var n=t.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function G0(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var VB=function(r){H(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,i=n.get("textGap"),a=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=Wr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),E(l.viewPieceList,function(h){var v=h.piece,d=new Ee;d.onclick=oe(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),m=a.get("align")||o;d.add(new Ae({style:et(a,{x:m==="right"?-i:s[0]+i,y:s[1]/2,text:v.text,verticalAlign:a.get("verticalAlign")||"middle",align:m,opacity:Q(a.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),ga(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:zl(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return tx(t,this.api,t.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,n,i,a,o){if(n){var s=new Ee,l=this.visualMapModel.textStyleModel;s.add(new Ae({style:et(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=q(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(t,n,i,a){var o=Et(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=ie(i.selected),s=n.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,E(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}(ex);function BB(r){r.registerComponentModel(NB),r.registerComponentView(VB),rx(r)}function zB(r){qt(RB),qt(BB)}var FB=function(r){H(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,i){r.prototype.init.call(this,t,n,i),this._sourceManager=new c1(this),vm(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),vm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:tr},e}(ge),HB=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Tt);function GB(r){r.registerComponentModel(FB),r.registerComponentView(HB)}function U0(r,e,t){var n=dt.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*t,n.height=a*t,n}function sh(r){return!r.__cursors.get(pS)}function W0(r){var e=r.__cursors.get(pS);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var nx=function(r){H(e,r);function e(t,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Dl,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||ql,typeof t=="string"?o=U0(t,n,i):j(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(J0(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=W0(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=U0("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,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ne(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new ne(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,x=1/0,C=0,M=0;M<o.length;++M){var T=o[M];if(T.intersect(S)){var D=new ne(0,0,0,0);D.copy(T),D.union(S),o[M]=D,w=!0;break}else if(l){u.copy(S),u.union(T);var I=S.width*S.height,A=T.width*T.height,L=u.width*u.height,O=L-I-A;O<x&&(x=O,C=M)}}if(l&&(o[C].union(S),w=!0),!w){var b=new ne(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var c=W0(this),h=c.startIdx;h<c.endIdx;++h){var v=t[h];if(v){var d=v.shouldBePainted(i,a,!0,!0),p=v.__isRendered&&(v.__dirty&wt||!d)?v.getPrevPaintRect():null;p&&f(p);var g=d&&(v.__dirty&wt||!v.__isRendered)?v.getPaintRect():null;g&&f(g)}}for(var m=this.__prevIdx,h=m.startIdx;h<m.endIdx;++h){var v=n[h],d=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var p=v.getPrevPaintRect();p&&f(p)}}var y;do{y=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(y=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),a.width=t*i,a.height=n*i,s&&(s.width=t*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.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(a,0,0,s/c,l/c));var v=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(Fu(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||sv(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else Ax(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=lv(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&E(i,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},e}(ar),Y0=1e5,ei=314159,lh=void 0,UB=1,uh=2;function WB(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function YB(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function X0(r,e,t,n){var i=new nx(r,e,e.dpr);return i.zlevel=t,i.zlevel2=n,i.__builtin__=!0,ix(i),i}function ix(r){r.__cursorStack=[],r.__cursors=ee()}function XB(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function $B(r,e){var t=r.__cursors,n=+e;return t.get(n)||(r.__cursorStack.push(n),t.set(n,XB({key:n})))}function ml(r,e){for(var t=r.__cursorStack,n=0;n<t.length;n++)e(r.__cursors.get(t[n]))}function fh(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function it(r,e,t){for(var n=r.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=r.layers[a][o];(!t||(!(t&Vo)||s.__builtin__)&&(!(t&Nv)||!s.__builtin__)&&(!(t&ax)||s!==r.hoverlayer))&&e(s,a,o,i)}}var Vo=1,Nv=2,ax=4,yl=Vo|ax,ZB=function(){function r(e,t,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||ql,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(J0(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=X0(l,this,ei,Dl);c.initContext(),this._insertLayer(c,ei,Dl,!0),this._domRoot=e}else{this._width=$s(e,0,n),this._height=$s(e,1,n);var s=this._domRoot=YB(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!j(e)?t={paintAll:!!e}:t=e||{};var n=Q(t.refresh,!0),i=Q(t.refreshHover,!1);if(i&&(this._hoverLayerDirty=uh),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return it(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},Nv),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=lh,n!==lh&&(!t&&n===uh&&(t=this._i.hoverlayer=this._ensureLayer(Y0)),!!t)){t.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=t.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),li(a,l,i),u&&(l.style=f)}}a&&(ma(a,i),a.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(Y0)},r.prototype.paintOne=function(e,t){N1(e,t)},r.prototype._paintList=function(e,t,n){if(this._redrawId===n){var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),i)it(this._i,function(o){o.afterBrush&&o.afterBrush()},yl),this._paintHoverList(e);else{var a=this;Ul(function(){a._paintList(e,t,n)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(ei).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),it(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)},Vo)},r.prototype._doPaintList=function(e,t){var n=this,i=!0;return it(this._i,function(a){var o=!1;if(ml(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!sh(a)?a.createRepaintRects(e,t,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}ml(a,function(c){var h=n._paintPerCursor(a,c,e,s,u);i=i&&h})}},yl),ue.wxa&&it(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},r.prototype._paintPerCursor=function(e,t,n,i,a){var o=e.ctx;if(i)if(!i.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,n,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,n,null,a),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=sh(e),u=l&&dt.getTime(),f=t.drawIdx,c=t.notClearIdx,h=c>=0?Math.min(c,f):f;h<t.endIdx;h++){var v=n[h];if(!(h<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=uh),i!=null){var d=v.getPaintRect();d&&d.intersect(i)&&(li(s,v,o),v.setPrevPaintRect(d))}else li(s,v,o);if(l){var p=dt.getTime()-u;if(p>15){h++;break}}}}ma(s,o),t.drawIdx=Math.max(h,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,n){t=t||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=ei,t=0);var a=fh(this._i,e)[t];return a||(a=X0("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&me(a,this._layerConfig[e],!0),(n||i&&e!==ei)&&(a.virtual=!0),this._insertLayer(a,e,t,!1),a.initContext()),a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(o[t]&&o[t][n]){process.env.NODE_ENV!=="production"&&ui("ZLevel "+t+"."+n+" has been used already");return}if(!WB(e)){process.env.NODE_ENV!=="production"&&ui("Layer of zlevel "+t+" is not valid");return}for(var f=s.length,c=0;c<f&&(s[c].zl<t||s[c].zl===t&&s[c].zl2<n);)c++;if(c>0&&(u=fh(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:t,zl2:n}),fh(a,t)[n]=e,!i&&!e.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)},r.prototype.eachLayer=function(e,t){return it(this._i,function(n,i){e.call(t,n,i)})},r.prototype.eachBuiltinLayer=function(e,t){return it(this._i,function(n,i){e.call(t,n,i)},Vo)},r.prototype.eachOtherLayer=function(e,t){return it(this._i,function(n,i){e.call(t,n,i)},Nv)},r.prototype.getLayers=function(){var e={};return it(this._i,function(t,n,i){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}it(n._i,function(g){g.__dirty=!1,ml(g,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},yl);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],h=a.zlevel,v=a.incremental,d=void 0;if(o!==h&&(o=h,u=!1),v?(u=!0,d=OE):d=u?LE:Dl,(!s||h!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(h,d),l=null,!s.__builtin__)){ui("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!l||v!==l.key)&&(l=$B(s,v),!l.used))if(l.used=!0,!t&&l.first===a.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&wt&&!a.__inHover&&((!v||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),v&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}it(n._i,function(g){for(var m=g.__cursorStack,y=g.__cursors,_=m.length-1;_>=0;_--){var S=y.get(m[_]);if(!S.used)g.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var b=S.endIdxNew;(sh(g)?b<S.drawIdx:b!==S.endIdx||!b||e[b-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?e[b-1].id:NaN}}g.__dirty&&(ml(g,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===lh&&(n._hoverLayerDirty=UB))},yl)},r.prototype.clear=function(){return it(this._i,function(e){e.clear(),ix(e)},Vo),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,it(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?me(n[e],t,!0):n[e]=t,it(this._i,function(i,a){me(i,n[a],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,i=t.length-1;i>=0;i--){var a=t[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(t.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),t!=null&&(i.height=t),e=$s(a,0,i),t=$s(a,1,i),n.style.display="",(this._width!==e||t!==this._height)&&(n.style.width=e+"px",n.style.height=t+"px",it(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(ei).resize(e,t)}return this},r.prototype.clearLayer=function(e){E(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[ei][0].dom;var t=new nx("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 i=t.dom.width,a=t.dom.height;it(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];li(n,f,o)}ma(n,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function qB(r){r.registerPainter("canvas",ZB)}const te={palette:{light:["#5B8FF9","#61DDAA","#F6BD16","#7262FD","#78D3F8","#9661BC","#F6903D","#008685"],dark:["#7CA9FF","#7EE8BC","#FFD666","#9C8CFF","#8FE0FF","#B285D6","#FFAA5C","#33A69C"]},radius:{bar:4},animationDuration:400,animationEasing:"cubicOut",fontFamily:"inherit",axisLabelSize:12,titleSize:14,text:{light:"#1f1e1d",dark:"#e5e5e2"},mutedText:{light:"#8a8a86",dark:"#9a9a96"},axisLine:{light:"#d8d8d4",dark:"#4a4a47"},splitLine:{light:"#f0f0ee",dark:"#2a2a28"},tooltip:{borderRadius:8,backgroundColor:{light:"rgba(255,255,255,0.95)",dark:"rgba(30,30,30,0.95)"}}},KB={color:te.palette.dark,backgroundColor:"transparent",textStyle:{fontFamily:te.fontFamily},title:{textStyle:{color:te.text.dark,fontSize:te.titleSize,fontWeight:600},subtextStyle:{color:te.mutedText.dark}},legend:{textStyle:{color:te.text.dark,fontSize:te.axisLabelSize}},tooltip:{borderWidth:0,borderRadius:te.tooltip.borderRadius,backgroundColor:te.tooltip.backgroundColor.dark,textStyle:{color:te.text.dark}},categoryAxis:{axisLine:{lineStyle:{color:te.axisLine.dark}},axisTick:{lineStyle:{color:te.axisLine.dark}},axisLabel:{color:te.mutedText.dark,fontSize:te.axisLabelSize},splitLine:{lineStyle:{color:te.splitLine.dark}}},valueAxis:{axisLine:{lineStyle:{color:te.axisLine.dark}},axisTick:{lineStyle:{color:te.axisLine.dark}},axisLabel:{color:te.mutedText.dark,fontSize:te.axisLabelSize},splitLine:{lineStyle:{color:te.splitLine.dark}}},radar:{axisLine:{lineStyle:{color:te.axisLine.dark}},splitLine:{lineStyle:{color:te.splitLine.dark}},axisName:{color:te.mutedText.dark}},bar:{itemStyle:{borderRadius:[te.radius.bar,te.radius.bar,0,0]}},line:{smooth:!1,lineStyle:{width:2},symbolSize:6},animationDuration:te.animationDuration,animationEasing:te.animationEasing},jB={color:te.palette.light,backgroundColor:"transparent",textStyle:{fontFamily:te.fontFamily},title:{textStyle:{color:te.text.light,fontSize:te.titleSize,fontWeight:600},subtextStyle:{color:te.mutedText.light}},legend:{textStyle:{color:te.text.light,fontSize:te.axisLabelSize}},tooltip:{borderWidth:0,borderRadius:te.tooltip.borderRadius,backgroundColor:te.tooltip.backgroundColor.light,textStyle:{color:te.text.light}},categoryAxis:{axisLine:{lineStyle:{color:te.axisLine.light}},axisTick:{lineStyle:{color:te.axisLine.light}},axisLabel:{color:te.mutedText.light,fontSize:te.axisLabelSize},splitLine:{lineStyle:{color:te.splitLine.light}}},valueAxis:{axisLine:{lineStyle:{color:te.axisLine.light}},axisTick:{lineStyle:{color:te.axisLine.light}},axisLabel:{color:te.mutedText.light,fontSize:te.axisLabelSize},splitLine:{lineStyle:{color:te.splitLine.light}}},radar:{axisLine:{lineStyle:{color:te.axisLine.light}},splitLine:{lineStyle:{color:te.splitLine.light}},axisName:{color:te.mutedText.light}},bar:{itemStyle:{borderRadius:[te.radius.bar,te.radius.bar,0,0]}},line:{smooth:!1,lineStyle:{width:2},symbolSize:6},animationDuration:te.animationDuration,animationEasing:te.animationEasing},ox="deepeye-chart-light",sx="deepeye-chart-dark";let $0=!1;function QB(){$0||($0=!0,qt([RR,NP,YR,PN,wN,lV,Mk,tV,NV,tB,oB,mB,zB,Mw,GB,qB]),mu(ox,jB),mu(sx,KB))}const JB=/^```[a-zA-Z0-9_-]*\r?\n([\s\S]*?)\r?\n?```$/;function ez(r){const e=r.trim(),t=e.match(JB);return(t?t[1]:e).trim()}function tz(r){const e=ez(r);if(!e)return{ok:!1,error:"图表数据为空"};try{return{ok:!0,value:JSON.parse(e)}}catch{return{ok:!1,error:"JSON 解析失败"}}}function rz(r){if(!r.isClosed)return r.isStreaming?{state:"skeleton"}:{state:"error",message:"图表数据不完整"};const e=tz(r.rawJson);if(!e.ok)return{state:"error",message:e.error};const t=os.validateByType(r.type,e.value);return t.ok?{state:"success",option:t.data}:{state:"error",message:t.error??"图表数据校验失败"}}function nz(r){const e=z.computed(()=>rz(r)),t=z.computed(()=>e.value.state),n=z.computed(()=>e.value.state==="success"?e.value.option:void 0),i=z.computed(()=>e.value.state==="error"?e.value.message:void 0);return{state:t,option:n,errorMessage:i}}function iz(r){const e=os.useAncestorColorMode(r);return z.computed(()=>e.value==="dark")}const az=z.defineComponent({name:"ChartRenderer",__name:"ChartRenderer",props:{type:{},rawJson:{},isClosed:{type:Boolean},isStreaming:{type:Boolean}},setup(r){const e=r;QB();const t=z.ref(null),{state:n,option:i,errorMessage:a}=nz(e),o=iz(t),s=z.computed(()=>o.value?sx:ox);return(l,u)=>(z.openBlock(),z.createElementBlock("div",{ref_key:"rootRef",ref:t,class:"chart-renderer"},[z.createVNode(z.Transition,{name:"chart-renderer-fade",mode:"out-in"},{default:z.withCtx(()=>[z.unref(n)==="skeleton"?(z.openBlock(),z.createBlock(fP,{key:"skeleton",type:r.type},null,8,["type"])):z.unref(n)==="error"?(z.openBlock(),z.createBlock(QO,{key:"error",message:z.unref(a)},null,8,["message"])):(z.openBlock(),z.createBlock(z.unref(ZO),{key:"chart",class:"chart-renderer__canvas",option:z.unref(i),theme:s.value,autoresize:""},null,8,["option","theme"]))]),_:1})],512))}}),oz=os._export_sfc(az,[["__scopeId","data-v-c166b97d"]]);exports.default=oz;
|