mulmoclaude 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/Graph-ChAxkn9o.js +1 -0
- package/client/assets/{JsonEditor-FKfzzMkt.js → JsonEditor-COQcmjLQ.js} +1 -1
- package/client/assets/dist-Bij44LdC.js +2 -0
- package/client/assets/echarts-GV3U9sVf.js +1 -0
- package/client/assets/echarts-gl-BXx4On0Y.js +4282 -0
- package/client/assets/echarts-wordcloud-_9uQUAfp.js +1 -0
- package/client/assets/emscripten-module-Q67P5WYC-BU3Hlttz.js +2160 -0
- package/client/assets/ffi-4V2b7xu3.js +1 -0
- package/client/assets/{html2canvas-D0m9Y8pD-y1tDAhR3.js → html2canvas-NBfz6Rb9-CIdEBoH2.js} +1 -1
- package/client/assets/{index-gnbD2OHU.js → index-D6xzCZhP.js} +605 -604
- package/client/assets/index-DzMsXDnj.css +2 -0
- package/client/assets/{index.es-HSMDtZ_a-CYtNwG_G.js → index.es-STZX6pYP-BGvt3MI2.js} +3 -3
- package/client/assets/install-C1moNcrn.js +15 -0
- package/client/assets/japan-CyDc-cz7-BgORDJsl.js +1 -0
- package/client/assets/{marp-BVojbGre.js → marp-Du5Sym5b.js} +57 -57
- package/client/assets/module-ES6BEMUI-CDTIpMiA.js +6 -0
- package/client/assets/purify.es-DkTnAgLw-BZxk_wWO.js +3 -0
- package/client/assets/style-BZwVK1dO-BFtilmZh.js +1 -0
- package/client/assets/vue-i18n-YREco4q1.js +3 -0
- package/client/assets/world-R-tMZ4nZ-B1c4T9X2.js +1 -0
- package/client/index.html +6 -4
- package/package.json +13 -12
- package/server/api/routes/plugins.ts +9 -59
- package/server/build/mcp-server.mjs +806 -714
- package/server/index.ts +1 -0
- package/server/plugins/confined-file-ops.ts +56 -0
- package/server/plugins/spreadsheet-builtin.ts +26 -0
- package/server/plugins/spreadsheet-save-outcome.ts +7 -0
- package/server/utils/files/store-resolvers.ts +1 -1
- package/src/lang/de.ts +0 -20
- package/src/lang/en.ts +0 -20
- package/src/lang/es.ts +0 -20
- package/src/lang/fr.ts +0 -20
- package/src/lang/ja.ts +0 -20
- package/src/lang/ko.ts +0 -20
- package/src/lang/pt-BR.ts +0 -20
- package/src/lang/zh.ts +0 -20
- package/src/plugins/spreadsheet/definition.ts +9 -127
- package/src/plugins/spreadsheet/index.ts +7 -4
- package/src/plugins/spreadsheet/meta.ts +2 -4
- package/client/assets/index-BA0fpWIZ.css +0 -2
- package/client/assets/purify.es-BaSjDiWD-Dbm5oOcm.js +0 -3
- package/client/assets/style-CCV5GAnU-D55tgtzm.js +0 -1
- package/client/assets/vue-i18n-2bgWpywp.js +0 -3
- package/server/utils/files/spreadsheet-store.ts +0 -26
- package/src/plugins/spreadsheet/Preview.vue +0 -31
- package/src/plugins/spreadsheet/View.vue +0 -1007
- package/src/plugins/spreadsheet/cellHighlights.ts +0 -78
- package/src/plugins/spreadsheet/engine/calculator.ts +0 -427
- package/src/plugins/spreadsheet/engine/cellBuilder.ts +0 -89
- package/src/plugins/spreadsheet/engine/cellEmpty.ts +0 -26
- package/src/plugins/spreadsheet/engine/cellFormatting.ts +0 -59
- package/src/plugins/spreadsheet/engine/coerce-boolean.ts +0 -26
- package/src/plugins/spreadsheet/engine/condition.ts +0 -182
- package/src/plugins/spreadsheet/engine/date-locale.ts +0 -47
- package/src/plugins/spreadsheet/engine/date-parser.ts +0 -234
- package/src/plugins/spreadsheet/engine/date-utils.ts +0 -73
- package/src/plugins/spreadsheet/engine/datedif.ts +0 -93
- package/src/plugins/spreadsheet/engine/engine.ts +0 -177
- package/src/plugins/spreadsheet/engine/evaluator.ts +0 -494
- package/src/plugins/spreadsheet/engine/financial-math.ts +0 -114
- package/src/plugins/spreadsheet/engine/formatter.ts +0 -158
- package/src/plugins/spreadsheet/engine/formulaError.ts +0 -67
- package/src/plugins/spreadsheet/engine/formulaRefs.ts +0 -202
- package/src/plugins/spreadsheet/engine/functions/date.ts +0 -212
- package/src/plugins/spreadsheet/engine/functions/financial.ts +0 -244
- package/src/plugins/spreadsheet/engine/functions/index.ts +0 -16
- package/src/plugins/spreadsheet/engine/functions/logical.ts +0 -221
- package/src/plugins/spreadsheet/engine/functions/lookup-math.ts +0 -28
- package/src/plugins/spreadsheet/engine/functions/lookup.ts +0 -257
- package/src/plugins/spreadsheet/engine/functions/mathematical.ts +0 -283
- package/src/plugins/spreadsheet/engine/functions/statistical-math.ts +0 -91
- package/src/plugins/spreadsheet/engine/functions/statistical.ts +0 -290
- package/src/plugins/spreadsheet/engine/functions/text.ts +0 -398
- package/src/plugins/spreadsheet/engine/index.ts +0 -34
- package/src/plugins/spreadsheet/engine/jsonCellLocator.ts +0 -111
- package/src/plugins/spreadsheet/engine/math-ops.ts +0 -98
- package/src/plugins/spreadsheet/engine/numericCoercion.ts +0 -61
- package/src/plugins/spreadsheet/engine/parser.ts +0 -40
- package/src/plugins/spreadsheet/engine/registry.ts +0 -201
- package/src/plugins/spreadsheet/engine/responseDecoder.ts +0 -68
- package/src/plugins/spreadsheet/engine/spreadsheet-errors.ts +0 -82
- package/src/plugins/spreadsheet/engine/textFormat.ts +0 -108
- package/src/plugins/spreadsheet/engine/translateFormula.ts +0 -69
- package/src/plugins/spreadsheet/engine/types.ts +0 -81
- package/src/plugins/spreadsheet/keyboardNav.ts +0 -38
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Ir as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)};function n(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),i=new(function(){function e(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(i.wxa=!0,i.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?i.worker=!0:!i.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(i.node=!0,i.svgSupported=!0):a(navigator.userAgent,i);function a(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var o=`sans-serif`,s=`12px `+o,c=20,l=100,u=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function d(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-c)/l}return t}var f=d(u),p={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=p.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=f[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function m(e){for(var t in p)p.hasOwnProperty(t)&&e[t]&&(p[t]=e[t])}var h=e({EPSILON:()=>Re,HashMap:()=>je,RADIAN_TO_DEGREE:()=>Le,assert:()=>Ce,assignProps:()=>ne,bind:()=>B,clone:()=>A,concatArray:()=>Me,createCanvas:()=>re,createHashMap:()=>K,createObject:()=>Ne,curry:()=>le,defaults:()=>N,disableUserSelect:()=>Pe,each:()=>F,eqNaN:()=>ve,extend:()=>M,filter:()=>L,find:()=>R,guid:()=>O,hasOwn:()=>Fe,indexOf:()=>P,inherits:()=>ie,isArray:()=>V,isArrayLike:()=>oe,isBuiltInObject:()=>fe,isDom:()=>me,isFunction:()=>H,isGradientObject:()=>he,isImagePatternObject:()=>ge,isNumber:()=>de,isObject:()=>W,isPrimitive:()=>De,isRegExp:()=>_e,isString:()=>U,isStringSafe:()=>ue,isTypedArray:()=>pe,keys:()=>z,logError:()=>k,map:()=>I,merge:()=>j,mergeAll:()=>te,mixin:()=>ae,noop:()=>Ie,normalizeCssArray:()=>Se,reduce:()=>se,retrieve:()=>ye,retrieve2:()=>G,retrieve3:()=>be,setAsPrimitive:()=>Ee,slice:()=>xe,trim:()=>we}),g=se([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),_=se([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),v=Object.prototype.toString,y=Array.prototype,b=y.forEach,x=y.filter,S=y.slice,C=y.map,w=function(){}.constructor,T=w?w.prototype:null,E=`__proto__`,D=2311,ee=2**53-1;function O(){return D>=ee&&(D=0),D++}function k(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function A(e){if(typeof e!=`object`||!e)return e;var t=e,n=v.call(e);if(n===`[object Array]`){if(!De(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=A(e[r])}}else if(_[n]){if(!De(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!g[n]&&!De(e)&&!me(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==E&&(t[o]=A(e[o]));return t}function j(e,t,n){if(!W(t)||!W(e))return n?A(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==E){var i=e[r],a=t[r];W(a)&&W(i)&&!V(a)&&!V(i)&&!me(a)&&!me(i)&&!fe(a)&&!fe(i)&&!De(a)&&!De(i)?j(i,a,n):(n||!(r in e))&&(e[r]=A(t[r]))}return e}function te(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=j(n,e[r],t);return n}function M(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==E&&(e[n]=t[n]);return e}function ne(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function N(e,t,n){for(var r=z(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var re=p.createCanvas;function P(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ie(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function ae(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else N(e,t,n)}function oe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function F(e,t,n){if(e&&t){if(e.forEach&&e.forEach===b)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function I(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.map&&e.map===C)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function se(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function L(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.filter&&e.filter===x)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function R(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function z(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function ce(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(S.call(arguments)))}}var B=T&&H(T.bind)?T.call.bind(T.bind):ce;function le(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(S.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):v.call(e)===`[object Array]`}function H(e){return typeof e==`function`}function U(e){return typeof e==`string`}function ue(e){return v.call(e)===`[object String]`}function de(e){return typeof e==`number`}function W(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function fe(e){return!!g[v.call(e)]}function pe(e){return!!_[v.call(e)]}function me(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function he(e){return e.colorStops!=null}function ge(e){return e.image!=null}function _e(e){return v.call(e)===`[object RegExp]`}function ve(e){return e!==e}function ye(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e??t}function be(e,t,n){return e??t??n}function xe(e){var t=[...arguments].slice(1);return S.apply(e,t)}function Se(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ce(e,t){if(!e)throw Error(t)}function we(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Te=`__ec_primitive__`;function Ee(e){e[Te]=!0}function De(e){return e[Te]}var Oe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return z(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ke=typeof Map==`function`;function Ae(){return ke?new Map:new Oe}var je=function(){function e(t){var n=V(t);this.data=Ae();var r=this;t instanceof e?t.each(i):t&&F(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return ke?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new je(e)}function Me(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Ne(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&M(n,t),n}function Pe(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function Fe(e,t){return e.hasOwnProperty(t)}function Ie(){}var Le=180/Math.PI,Re=2**-52||2**-52,ze=function(e,t){return ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ze(e,t)};function q(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);ze(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Be=e({add:()=>Ge,applyTransform:()=>lt,clone:()=>Ue,copy:()=>He,create:()=>Ve,dist:()=>it,distSquare:()=>ot,distance:()=>rt,distanceSquare:()=>at,div:()=>$e,dot:()=>et,len:()=>Je,lenSquare:()=>Xe,length:()=>Ye,lengthSquare:()=>Ze,lerp:()=>ct,max:()=>dt,min:()=>ut,mul:()=>Qe,negate:()=>st,normalize:()=>nt,scale:()=>tt,scaleAndAdd:()=>Ke,set:()=>We,sub:()=>qe});function Ve(e,t){return e??=0,t??=0,[e,t]}function He(e,t){return e[0]=t[0],e[1]=t[1],e}function Ue(e){return[e[0],e[1]]}function We(e,t,n){return e[0]=t,e[1]=n,e}function Ge(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ke(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function qe(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Je(e){return Math.sqrt(Xe(e))}var Ye=Je;function Xe(e){return e[0]*e[0]+e[1]*e[1]}var Ze=Xe;function Qe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function $e(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function et(e,t){return e[0]*t[0]+e[1]*t[1]}function tt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function nt(e,t){var n=Je(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function rt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var it=rt;function at(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ot=at;function st(e,t){return e[0]=-t[0],e[1]=-t[1],e}function ct(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function lt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function ut(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function dt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ft=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),pt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.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 ft(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new ft(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new ft(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new ft(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ft(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new ft(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),mt=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.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 r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),ht=Math.log(2);function gt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/ht);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*gt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function _t(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=gt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*gt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var vt=`___zrEVENTSAVED`,yt=[];function bt(e,t,n,r,i){return St(yt,t,r,i,!0)&&St(e,n,yt[0],yt[1])}function xt(e,t){e&&n(e),t&&n(t);function n(e){var t=e[vt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[vt])}}function St(e,t,n,r,a){if(t.getBoundingClientRect&&i.domSupported&&!Tt(t)){var o=t[vt]||(t[vt]={}),s=wt(Ct(t,o),o,a);if(s)return s(e,n,r),!0}return!1}function Ct(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){F(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function wt(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?_t(s,o):_t(o,s))}function Tt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Et=/([&<>"'])/g,Dt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ot(e){return e==null?``:(e+``).replace(Et,function(e,t){return Dt[t]})}var kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=[],jt=i.browser.firefox&&+i.browser.version.split(`.`)[0]<39;function Mt(e,t,n,r){return n||={},r?Nt(e,t,n):jt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Nt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Nt(e,t,n){if(i.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(Tt(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=a-o.top;return}if(St(At,e,r,a)){n.zrX=At[0],n.zrY=At[1];return}}n.zrX=n.zrY=0}function Pt(e){return e||window.event}function Ft(e,t,n){if(t=Pt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Mt(e,i,t,n)}else{Mt(e,t,t,n);var a=It(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&kt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function It(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Lt(e,t,n,r){e.addEventListener(t,n,r)}function Rt(e,t,n,r){e.removeEventListener(t,n,r)}var zt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Bt(e){return e.which===2||e.which===3}var Vt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Mt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Wt)if(Wt.hasOwnProperty(t)){var n=Wt[t](this._track,e);if(n)return n}},e}();function Ht(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ut(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Wt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Ht(r)/Ht(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ut(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},Gt=e({clone:()=>en,copy:()=>Jt,create:()=>Kt,identity:()=>qt,invert:()=>$t,mul:()=>Yt,rotate:()=>Zt,scale:()=>Qt,translate:()=>Xt});function Kt(){return[1,0,0,1,0,0]}function qt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Jt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Yt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Xt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Zt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Qt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function $t(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function en(e){var t=Kt();return Jt(t,e),t}var J=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.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}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),tn=Math.min,nn=Math.max,rn=Math.abs,an=[`x`,`y`],on=[`width`,`height`],sn=new J,cn=new J,ln=new J,un=new J,dn=Tn(),fn=dn.minTv,pn=dn.maxTv,mn=[0,0],Y=function(){function e(e,t,n,r){gn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=tn(e.x,this.x),n=tn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?nn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?nn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return vn(Kt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&J.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=gn(xn,t.x,t.y,t.width,t.height)),n instanceof e||(n=gn(Sn,n.x,n.y,n.width,n.height));var s=!!r;dn.reset(i,s);var c=dn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(mn[0]=1/0,mn[1]=0,wn(l,u,p,m,0,s,a,o),wn(d,f,h,g,1,s,a,o),s&&J.copy(r,_?dn.useDir?dn.dirMinTv:fn:pn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){_n(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&_n(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{sn.x=ln.x=t.x,sn.y=un.y=t.y,cn.x=un.x=t.x+t.width,cn.y=ln.y=t.y+t.height,sn.transform(n),un.transform(n),cn.transform(n),ln.transform(n),e.x=tn(sn.x,cn.x,ln.x,un.x),e.y=tn(sn.y,cn.y,ln.y,un.y);var s=nn(sn.x,cn.x,ln.x,un.x),c=nn(sn.y,cn.y,ln.y,un.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=qt(e||[]),Xt(e,e,We(Cn,-t.x,-t.y)),Qt(e,e,We(Cn,r,i)),Xt(e,e,We(Cn,n.x,n.y)),e},e}(),hn=Y.create,gn=Y.set,_n=Y.copy,vn=Y.calculateTransform,yn=Y.applyTransform,bn=Y.contain,xn=new Y(0,0,0,0),Sn=new Y(0,0,0,0),Cn=[];function wn(e,t,n,r,i,a,o,s){var c=rn(t-n),l=rn(r-e),u=tn(c,l),d=an[i],f=an[1-i],p=on[i];t<n||r<e?c<l?(a&&(pn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(pn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=nn(e,n),o[p]=tn(t,r)-o[d]),a&&(u<mn[0]||dn.useDir)&&(mn[0]=tn(u,mn[0]),(c<l||!dn.bidirectional)&&(fn[d]=c,fn[f]=0,dn.useDir&&dn.calcDirMTV()),(c>=l||!dn.bidirectional)&&(fn[d]=-l,fn[f]=0,dn.useDir&&dn.calcDirMTV())))}function Tn(){var e=0,t=new J,n=new J,r={minTv:new J,maxTv:new J,useDir:!1,dirMinTv:new J,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=nn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return rn(e)<1e-10}return r}var En=`silent`;function Dn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:On}}function On(){zt(this.event)}var kn=function(e){q(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(mt),An=function(){function e(e,t){this.x=e,this.y=t}return e}(),jn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Mn=new Y(0,0,0,0),Nn=function(e){q(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new An(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new kn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new pt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(F(jn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=In(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new An(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new An(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Dn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new An(e,t);if(Fn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(Mn.copy(u.getBoundingRect()),u.transform&&Mn.applyTransform(u.transform),Mn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Fn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Vt;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new An;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(mt);F([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Nn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=In(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||it(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Pn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||En}return!1}function Fn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Pn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==En)){t.target=o;break}}}function In(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Ln=32,Rn=7;function zn(e){for(var t=0;e>=Ln;)t|=e&1,e>>=1;return e+t}function Bn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Vn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Vn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Hn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Un(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Wn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Gn(e,t){var n=Rn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Wn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Un(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0)for(c=0;c<i;c++)e[d+c]=o[l+c];else if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Wn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Un(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Rn||m>=Rn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Wn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Un(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Rn||g>=Rn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Kn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Ln)a=Bn(e,n,r,t),Hn(e,n,r,n+a,t);else{var o=Gn(e,t),s=zn(i);do{if(a=Bn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Hn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var qn=!1;function Jn(){qn||(qn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Yn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Kn(n,Yn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Jn(),p.z=0),isNaN(p.z2)&&(Jn(),p.z2=0),isNaN(p.zlevel)&&(Jn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=P(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Zn=i.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Qn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Qn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Qn.bounceIn(e*2)*.5:Qn.bounceOut(e*2-1)*.5+.5}},$n=Math.pow,er=Math.sqrt,tr=1e-8,nr=1e-4,rr=er(3),ir=1/3,ar=Ve(),or=Ve(),sr=Ve();function cr(e){return e>-tr&&e<tr}function lr(e){return e>tr||e<-tr}function ur(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function dr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function fr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(cr(u)&&cr(d)){if(cr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(cr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=er(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-$n(-y,ir):$n(y,ir),b=b<0?-$n(-b,ir):$n(b,ir);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*er(u*u*u)),S=Math.acos(x)/3,C=er(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+rr*Math.sin(S)))/(3*o),T=(-s+C*(w-rr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function pr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(cr(o)){if(lr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(cr(u))i[0]=-a/(2*o);else if(u>0){var d=er(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function mr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function hr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ar[0]=c,ar[1]=l;for(var v=0;v<1;v+=.05)or[0]=ur(e,n,i,o,v),or[1]=ur(t,r,a,s,v),g=ot(ar,or),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<nr);y++)m=d-f,h=d+f,or[0]=ur(e,n,i,o,m),or[1]=ur(t,r,a,s,m),g=ot(or,ar),m>=0&&g<p?(d=m,p=g):(sr[0]=ur(e,n,i,o,h),sr[1]=ur(t,r,a,s,h),_=ot(sr,ar),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=ur(e,n,i,o,d),u[1]=ur(t,r,a,s,d)),er(p)}function gr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=ur(e,n,i,o,m),g=ur(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function _r(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function vr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function yr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(cr(a)){if(lr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(cr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=er(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function br(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function xr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Sr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ar[0]=o,ar[1]=s;for(var f=0;f<1;f+=.05){or[0]=_r(e,n,i,f),or[1]=_r(t,r,a,f);var p=ot(ar,or);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<nr);m++){var h=l-u,g=l+u;or[0]=_r(e,n,i,h),or[1]=_r(t,r,a,h);var p=ot(or,ar);if(h>=0&&p<d)l=h,d=p;else{sr[0]=_r(e,n,i,g),sr[1]=_r(t,r,a,g);var _=ot(sr,ar);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=_r(e,n,i,l),c[1]=_r(t,r,a,l)),er(d)}function Cr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=_r(e,n,i,f),m=_r(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var wr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Tr(e){var t=e&&wr.exec(e);if(t){var n=t[1].split(`,`),r=+we(n[0]),i=+we(n[1]),a=+we(n[2]),o=+we(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:fr(0,r,a,1,e,s)&&ur(0,i,o,1,s[0])}}}var Er=function(){function e(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||Ie,this.ondestroy=e.ondestroy||Ie,this.onrestart=e.onrestart||Ie,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=H(e)?e:Qn[e]||Tr(e)},e}(),Dr=function(){function e(e){this.value=e}return e}(),Or=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Dr(e);return this.insertEntry(t),t},e.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++},e.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--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),kr=function(){function e(e){this._list=new Or,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Dr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.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},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Ar=e({fastLerp:()=>Yr,fastMapToColor:()=>Xr,lerp:()=>Zr,lift:()=>qr,liftColor:()=>ai,lum:()=>ni,mapToColor:()=>Qr,modifyAlpha:()=>ei,modifyHSL:()=>$r,parse:()=>Wr,parseCssFloat:()=>Ir,parseCssInt:()=>Fr,random:()=>ri,stringify:()=>ti,toHex:()=>Jr}),jr={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 Mr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Nr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Pr(e){return e<0?0:e>1?1:e}function Fr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Mr(parseFloat(t)/100*255):Mr(parseInt(t,10))}function Ir(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Pr(parseFloat(t)/100):Pr(parseFloat(t))}function Lr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Rr(e,t,n){return e+(t-e)*n}function zr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Br(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Vr=new kr(20),Hr=null;function Ur(e,t){Hr&&Br(Hr,t),Hr=Vr.put(e,Hr||t.slice())}function Wr(e,t){if(e){t||=[];var n=Vr.get(e);if(n)return Br(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in jr)return Br(t,jr[r]),Ur(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){zr(t,0,0,0,1);return}return zr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Ur(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){zr(t,0,0,0,1);return}return zr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Ur(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?zr(t,+l[0],+l[1],+l[2],1):zr(t,0,0,0,1);u=Ir(l.pop());case`rgb`:if(l.length>=3)return zr(t,Fr(l[0]),Fr(l[1]),Fr(l[2]),l.length===3?u:Ir(l[3])),Ur(e,t),t;zr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){zr(t,0,0,0,1);return}return l[3]=Ir(l[3]),Gr(l,t),Ur(e,t),t;case`hsl`:if(l.length!==3){zr(t,0,0,0,1);return}return Gr(l,t),Ur(e,t),t;default:return}}zr(t,0,0,0,1)}}}function Gr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ir(e[1]),i=Ir(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],zr(t,Mr(Lr(o,a,n+1/3)*255),Mr(Lr(o,a,n)*255),Mr(Lr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Kr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function qr(e,t){var n=Wr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ti(n,n.length===4?`rgba`:`rgb`)}}function Jr(e){var t=Wr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Yr(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Mr(Rr(o[0],s[0],c)),n[1]=Mr(Rr(o[1],s[1],c)),n[2]=Mr(Rr(o[2],s[2],c)),n[3]=Pr(Rr(o[3],s[3],c)),n}}var Xr=Yr;function Zr(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Wr(t[i]),s=Wr(t[a]),c=r-i,l=ti([Mr(Rr(o[0],s[0],c)),Mr(Rr(o[1],s[1],c)),Mr(Rr(o[2],s[2],c)),Pr(Rr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var Qr=Zr;function $r(e,t,n,r){var i=Wr(e);if(e)return i=Kr(i),t!=null&&(i[0]=Nr(H(t)?t(i[0]):t)),n!=null&&(i[1]=Ir(H(n)?n(i[1]):n)),r!=null&&(i[2]=Ir(H(r)?r(i[2]):r)),ti(Gr(i),`rgba`)}function ei(e,t){var n=Wr(e);if(n&&t!=null)return n[3]=Pr(t),ti(n,`rgba`)}function ti(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function ni(e,t){var n=Wr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function ri(){return ti([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var ii=new kr(100);function ai(e){if(U(e)){var t=ii.get(e);return t||(t=qr(e,-.1),ii.put(e,t)),t}if(he(e)){var n=M({},e);return n.colorStops=I(e.colorStops,function(e){return{offset:e.offset,color:qr(e.color,-.1)}}),n}return e}var oi=Math.round;function si(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Wr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ci=1e-4;function li(e){return e<ci&&e>-ci}function ui(e){return oi(e*1e3)/1e3}function di(e){return oi(e*1e4)/1e4}function fi(e){return`matrix(`+ui(e[0])+`,`+ui(e[1])+`,`+ui(e[2])+`,`+ui(e[3])+`,`+di(e[4])+`,`+di(e[5])+`)`}var pi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function mi(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function hi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function gi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function _i(e){return e&&!!e.image}function vi(e){return e&&!!e.svgElement}function yi(e){return _i(e)||vi(e)}function bi(e){return e.type===`linear`}function xi(e){return e.type===`radial`}function Si(e){return e&&(e.type===`linear`||e.type===`radial`)}function Ci(e){return`url(#`+e+`)`}function wi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ti(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Le,i=G(e.scaleX,1),a=G(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+oi(o*Le)+`deg, `+oi(s*Le)+`deg)`),c.join(` `)}var Ei=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Di=Array.prototype.slice;function Oi(e,t,n){return(t-e)*n+e}function ki(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Oi(t[a],n[a],r);return e}function Ai(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Oi(t[o][s],n[o][s],r)}return e}function ji(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Mi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Ni(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Pi(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Di.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Fi(e){if(oe(e)){var t=e.length;if(oe(e[0])){for(var n=[],r=0;r<t;r++)n.push(Di.call(e[r]));return n}return Di.call(e)}return e}function Ii(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Li(e){return oe(e&&e[0])?2:1}var Ri=0,zi=1,Bi=2,Vi=3,Hi=4,Ui=5,Wi=6;function Gi(e){return e===Hi||e===Ui}function Ki(e){return e===zi||e===Bi}var qi=[0,0,0,0],Ji=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Wi,s=t;if(oe(t)){var c=Li(t);o=c,(c===1&&!de(t[0])||c===2&&!de(t[0][0]))&&(a=!0)}else if(de(t)&&!ve(t))o=Ri;else if(U(t)){if(!isNaN(+t))o=Ri;else{var l=Wr(t);l&&(s=l,o=Vi)}}else if(he(t)){var u=M({},s);u.colorStops=I(t.colorStops,function(e){return{offset:e.offset,color:Wr(e.color)}}),bi(t)?o=Hi:xi(t)&&(o=Ui),s=u}i===0?this.valType=o:(o!==this.valType||o===Wi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=H(n)?n:Qn[n]||Tr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Ki(r),c=Gi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Pi(d,f,r):c&&Ni(d.colorStops,f.colorStops))}if(!o&&r!==Ui&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Ri?n[l].additiveValue=n[l].value-p:r===Vi?n[l].additiveValue=ji([],n[l].value,p,-1):Ki(r)&&(n[l].additiveValue=r===zi?ji([],n[l].value,p,-1):Mi([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Vi,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?qi:e[s];if((Ki(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ki(i))i===zi?ki(g,f[r],p[r],h):Ai(g,f[r],p[r],h);else if(Gi(i)){var _=f[r],v=p[r],y=i===Hi;e[s]={type:y?`linear`:`radial`,x:Oi(_.x,v.x,h),y:Oi(_.y,v.y,h),colorStops:I(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Oi(e.offset,n.offset,h),color:Ii(ki([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Oi(_.x2,v.x2,h),e[s].y2=Oi(_.y2,v.y2,h)):e[s].r=Oi(_.r,v.r,h)}else if(c)ki(g,f[r],p[r],h),n||(e[s]=Ii(g));else{var b=Oi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Ri?e[n]=e[n]+r:t===Vi?(Wr(e[n],qi),ji(qi,qi,r,1),e[n]=Ii(qi)):t===zi?ji(e[n],e[n],r,1):t===Bi&&Mi(e[n],e[n],r,1)},e}(),Yi=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?k(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,z(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Ji(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Vi&&c&&(c=Ii(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Fi(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Fi(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.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)},e.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)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Er({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return I(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Fi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=z(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Xi(){return new Date().getTime()}var Zi=function(e){q(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){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=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Xi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Zn(t),!e._paused&&e.update())}Zn(t)},t.prototype.start=function(){this._running||(this._time=Xi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Xi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Xi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Yi(e,t.loop);return this.addAnimator(n),n},t}(mt),Qi=300,$i=i.domSupported,ea=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:I(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ta={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},na=!1;function ra(e){var t=e.pointerType;return t===`pen`||t===`touch`}function ia(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function aa(e){e&&(e.zrByTouch=!0)}function oa(e,t){return Ft(e.dom,new ca(e,t),!0)}function sa(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ca=function(){function e(e,t){this.stopPropagation=Ie,this.stopImmediatePropagation=Ie,this.preventDefault=Ie,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),la={mousedown:function(e){e=Ft(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Ft(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Ft(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Ft(this.dom,e);var t=e.toElement||e.relatedTarget;sa(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){na=!0,e=Ft(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){na||(e=Ft(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Ft(this.dom,e),aa(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),la.mousemove.call(this,e),la.mousedown.call(this,e)},touchmove:function(e){e=Ft(this.dom,e),aa(e),this.handler.processGesture(e,`change`),la.mousemove.call(this,e)},touchend:function(e){e=Ft(this.dom,e),aa(e),this.handler.processGesture(e,`end`),la.mouseup.call(this,e),+new Date-this.__lastTouchMoment<Qi&&la.click.call(this,e)},pointerdown:function(e){la.mousedown.call(this,e)},pointermove:function(e){ra(e)||la.mousemove.call(this,e)},pointerup:function(e){la.mouseup.call(this,e)},pointerout:function(e){ra(e)||la.mouseout.call(this,e)}};F([`click`,`dblclick`,`contextmenu`],function(e){la[e]=function(t){t=Ft(this.dom,t),this.trigger(e,t)}});var ua={pointermove:function(e){ra(e)||ua.mousemove.call(this,e)},pointerup:function(e){ua.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function da(e,t){var n=t.domHandlers;i.pointerEventsSupported?F(ea.pointer,function(r){pa(t,r,function(t){n[r].call(e,t)})}):(i.touchEventsSupported&&F(ea.touch,function(r){pa(t,r,function(i){n[r].call(e,i),ia(t)})}),F(ea.mouse,function(r){pa(t,r,function(i){i=Pt(i),t.touching||n[r].call(e,i)})}))}function fa(e,t){i.pointerEventsSupported?F(ta.pointer,n):i.touchEventsSupported||F(ta.mouse,n);function n(n){function r(r){r=Pt(r),sa(e,r.target)||(r=oa(e,r),t.domHandlers[n].call(e,r))}pa(t,n,r,{capture:!0})}}function pa(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Lt(e.domTarget,t,n,r)}function ma(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Rt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var ha=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ga=function(e){q(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ha(t,la),$i&&(r._globalHandlerScope=new ha(document,ua)),da(r,r._localHandlerScope),r}return t.prototype.dispose=function(){ma(this._localHandlerScope),$i&&ma(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,$i&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?fa(this,t):ma(t)}},t}(mt),_a=1;i.hasGlobalWindow&&(_a=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var va=_a,ya=.4,ba=`#333`,xa=`#ccc`,Sa=`#eee`,Ca=qt,wa=5e-5;function Ta(e){return e>wa||e<-wa}var Ea=[],Da=[],Oa=Kt(),ka=Math.abs,Aa=function(){function e(){}return e.prototype.getLocalTransform=function(e){return ja(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ta(this.rotation)||Ta(this.x)||Ta(this.y)||Ta(this.scaleX-1)||Ta(this.scaleY-1)||Ta(this.skewX)||Ta(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=Kt(),t?this.getLocalTransform(n):Ca(n),e&&(t?Yt(n,e,n):Jt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Kt(),$t(this.invTransform,n)):n&&(Ca(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ea);var n=Ea[0]<0?-1:1,r=Ea[1]<0?-1:1,i=((Ea[0]-n)*t+n)/Ea[0]||0,a=((Ea[1]-r)*t+r)/Ea[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.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],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Kt(),Yt(Da,e.invTransform,t),t=Da);var n=this.originX,r=this.originY;(n||r)&&(Oa[4]=n,Oa[5]=r,Yt(Da,t,Oa),Da[4]-=n,Da[5]-=r,t=Da),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return 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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&<(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&<(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ka(e[0]-1)>1e-10&&ka(e[3]-1)>1e-10?Math.sqrt(ka(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Pa(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Zt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),ja=Aa.getLocalTransform;function Ma(){return new Aa}var Na=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Pa(e,t){return ne(e,t,Na)}function Fa(e){Ia||=new kr(100),e||=`12px sans-serif`;var t=Ia.get(e);return t||(t={font:e,strWidthCache:new kr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:p.measureText(`国`,e).width,asciiCharWidth:p.measureText(`a`,e).width},Ia.put(e,t)),t}var Ia;function La(e){if(!(Ra>=za)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=p.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Ra=za:i>2&&Ra++,t}}var Ra=0,za=5;function Ba(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=La(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Va(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=p.measureText(t,e.font).width,n.put(t,r)),r}function Ha(e,t,n,r){var i=Va(Fa(t),e),a=Ka(t);return new Y(Wa(0,i,n),Ga(0,a,r),i,a)}function Ua(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return Ha(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=Ha(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Wa(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Ga(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Ka(e){return Fa(e).stWideCharWidth}function qa(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ja(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=qa(r[0],n.width),l+=qa(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Ya=`__zr_normal__`,Xa=Na.concat([`ignore`]),Za=se(Na,function(e,t){return e[t]=!0,e},{ignore:!1}),Qa={},$a=new Y(0,0,0,0),eo=[],to=function(){function e(e){this.id=O(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=$a,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Qa,n,d):Ja(Qa,n,d),i.x=Qa.x,i.y=Qa.y,a=Qa.align,o=Qa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=qa(f[0],d.width),m=qa(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Y(0,0,0,0);i.getLocalTransform(eo),$t(eo,eo),Y.copy(_,d),_.applyTransform(eo)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xa:ba},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Wr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,ti(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},M(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(W(e))for(var n=z(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Xa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Ya,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ya;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(P(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)k(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=lo(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,fo(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=lo(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,fo(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.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},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=P(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=P(r,e),a=P(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];M(t,i),i.textConfig&&(n||={},M(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=M({},r?this.textConfig:n.textConfig),M(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Xa.length;l++){var u=Xa[l],d=i&&Za[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Aa,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},M(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.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)}},e.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)}},e.prototype.animate=function(e,t,n){var r=new Yi(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=P(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){no(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){no(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=no(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();ae(to,mt),ae(to,Aa);function no(e,t,n,r,i){n||={};var a=[];co(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ro(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function io(e){return oe(e[0])}function ao(e,t,n){if(oe(t[n])){if(oe(e[n])||(e[n]=[]),pe(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ro(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(io(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ro(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ro(a,i,o);a.length=i.length}}else e[n]=t[n]}function oo(e,t){return e===t||oe(e)&&oe(t)&&so(e,t)}function so(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function co(e,t,n,r,i,a,o,s){for(var c=z(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!W(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(W(v)&&!oe(v)&&!he(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}co(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=P(m,x);m.splice(S,1)}}if(i.force||(h=L(h,function(e){return!oo(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Fi(n[_]),ao(n,r,_)}}var x=new Yi(n,!1,!1,d?L(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function lo(e,t,n,r){return!(n&&n.hoverLayer||r)||uo(e)||t&&uo(t)?0:1}function uo(e){return e.type===`text`||e.type===`tspan`}function fo(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var po=function(e){q(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=P(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=P(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Y(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(to);po.prototype.type=`group`;var mo=e({dispose:()=>xo,disposeAll:()=>So,getElementSSRData:()=>Eo,getInstance:()=>Co,init:()=>bo,registerPainter:()=>wo,registerSSRDataGetter:()=>Do,version:()=>Oo}),ho={},go={};function _o(e){delete go[e]}function vo(e){if(!e)return!1;if(typeof e==`string`)return ni(e,1)<ya;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=ni(t[i].color,1);return n/=r,n<ya}return!1}var yo=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var a=new Xn,o=n.renderer||`canvas`;ho[o]||(o=z(ho)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var s=new ho[o](t,a,n,e),c=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!i.node&&!i.worker&&!c?new ga(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?i.touchEventsSupported:!!u,f=44,p;d&&(p=G(n.pointerSize,f)),this.handler=new Nn(a,s,l,s.root,p),this.animation=new Zi({stage:{update:c?null:function(){return r._flush(!1)}}}),c||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=vo(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.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},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=Xi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Xi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof po&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,_o(this.id))},e}();function bo(e,t){var n=new yo(O(),e,t);return go[n.id]=n,n}function xo(e){e.dispose()}function So(){for(var e in go)go.hasOwnProperty(e)&&go[e].dispose();go={}}function Co(e){return go[e]}function wo(e,t){ho[e]=t}var To;function Eo(e){if(typeof To==`function`)return To(e)}function Do(e){To=e}var Oo=`6.1.0`,ko=1e-4,Ao=20;function jo(e){return e.replace(/^\s+|\s+$/g,``)}var Mo=Math.min,No=Math.max,Po=Math.abs,Fo=Math.round,Io=Math.floor,Lo=Math.ceil,Ro=Math.pow,zo=Math.log,Bo=Math.LN10,Vo=Math.PI,Ho=Math.random;function Uo(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Wo=Go;function Go(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ko(e,t,n)}function Ko(e,t,n){return U(e)?Jo(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function qo(e){return U(e)&&Jo(e)}function Jo(e){return!!jo(e).match(/%$/)}function Yo(e,t,n){return isNaN(t)?n?``+e:+e:(t=Mo(No(0,t),Ao),e=(+e).toFixed(t),n?e:+e)}function Xo(e,t,n){return t??=10,Yo(e,t,n)}function Zo(e){return e.sort(function(e,t){return e-t}),e}function Qo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Fo(e*t)/t===e)return n}return $o(e)}function $o(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return No(0,(a<0?0:i-1-a)-r)}function es(e,t){var n=Io(zo(e[1]-e[0])/Bo),r=Fo(zo(Po(t[1]-t[0]))/Bo),i=Mo(No(-n+r,0),Ao);return isFinite(i)?i:Ao}function ts(e,t,n){var r=Po(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=zo(2*Po(n||1)*Po(r))/Bo,a=zo(Po(t))/Bo,o=No(0,Lo(-i+a));return isFinite(o)||(o=NaN),o}function ns(e,t,n){return e[t]&&rs(e,n)[t]||0}function rs(e,t){var n=se(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Ro(10,t),i=I(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=I(i,function(e){return Io(e)}),s=se(o,function(e,t){return e+t},0),c=I(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return I(o,function(e){return e/r})}function is(e,t){var n=No(Qo(e),Qo(t)),r=e+t;return n>Ao?r:Yo(r,n)}var as=Ro(2,53)-1;function os(e){var t=Vo*2;return(e%t+t)%t}function ss(e){return e>-ko&&e<ko}var cs=/^(?:(\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 ls(e){if(e instanceof Date)return e;if(U(e)){var t=cs.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Fo(e))}function us(e){return Ro(10,ds(e))}function ds(e){if(e===0)return 0;var t=Io(zo(e)/Bo);return e/Ro(10,t)>=10&&t++,t}function fs(e,t){var n=ds(e),r=Ro(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Yo(e,-n)}function ps(e,t){var n=(e.length-1)*t+1,r=Io(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function ms(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function hs(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf(`x`)<=0)?t:NaN}function gs(e){return!isNaN(hs(e))}function _s(){return Fo(Ho()*9)}function vs(e,t){return t===0?e:vs(t,e%t)}function ys(e,t){return e==null?t:t==null?e:e*t/vs(e,t)}function bs(e){return e!=null&&isFinite(e)}var xs=`[ECharts] `,Ss={},Cs=typeof console<`u`&&console.warn&&console.log;function ws(e,t,n){if(Cs){if(n){if(Ss[t])return;Ss[t]=!0}console[e](xs+t)}}function Ts(e,t){ws(`error`,e,t)}function Es(e){throw Error(e)}function Ds(e,t,n){return(t-e)*n+e}var Os=`series\0`,ks=`\0_ec_\0`;function As(e){return e instanceof Array?e:e==null?[]:[e]}function js(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Ms=`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`.split(`.`);function Ns(e){return W(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function Ps(e){return W(e)&&!(e instanceof Array)}function Fs(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();F(t,function(e,n){W(e)||(t[n]=null)});var s=Is(e,o,n);return(r||i)&&Ls(s,e,o,t),r&&Rs(s,t),r||i?zs(s,t,i):a&&Bs(s,t),Vs(s),s}function Is(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Ks(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Ls(e,t,n,r){F(r,function(i,a){if(i&&i.id!=null){var o=Us(i.id),s=n.get(o);if(s!=null){var c=e[s];Ce(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Rs(e,t){F(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Ks(n)&&!Ks(a)&&Hs(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function zs(e,t,n){F(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Ks(r.existing)||r.existing&&t.id!=null&&!Hs(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Bs(e,t){F(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Vs(e){var t=K();F(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),F(e,function(e){var n=e.newOption;Ce(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),F(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(W(i)){if(a.name=i.name==null?r?r.name:Os+n:Us(i.name),r)a.id=Us(r.id);else if(i.id!=null)a.id=Us(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Hs(e,t,n){var r=Ws(t[e],null),i=Ws(n[e],null);return r!=null&&i!=null&&r===i}function Us(e){return Ws(e,``)}function Ws(e,t){return e==null?t:U(e)?e:de(e)||ue(e)?e+``:t}function Gs(e){var t=e.name;return!!(t&&t.indexOf(Os))}function Ks(e){return e&&e.id!=null&&Us(e.id).indexOf(ks)===0}function qs(e){return ks+e}function Js(e,t,n){F(e,function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ys(t,r,e.existing,n))})}function Ys(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Xs(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Ws(e[r].seriesId,null);if(a==null)return;for(var o=As(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null){if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}}return n}}function Zs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?I(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?I(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Qs(){var e=`__ec_inner_`+$s++;return function(t){return t[e]||(t[e]={})}}var $s=_s();function ec(e,t,n){var r=tc(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ic(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function tc(e,t){var n;if(U(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return F(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`)a[n]=e;else{var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&P(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var nc={useDefault:!0,enableAll:!1,enableNone:!1},rc={useDefault:!1,enableAll:!0,enableNone:!0};function ic(e,t,n,r){r||=nc;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function ac(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function oc(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function sc(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function cc(e){return e===`auto`?i.domSupported?`html`:`richText`:e||`html`}function lc(e,t){var n=K(),r=[];return F(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function uc(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(de(r)){var o=Ds(n||0,r,i);return Yo(o,a?Math.max(Qo(n||0),Qo(r)):t)}if(U(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Ds(p,m,i);s[d]=Yo(o,a?Math.max(Qo(p),Qo(m)):t)}}return s}var dc=function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e}();function fc(e){e.option=e.parentModel=e.ecModel=null}function pc(){return[1/0,-1/0]}function mc(e,t){vc(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function hc(e,t){vc(t)&&t<e[0]&&(e[0]=t)}function gc(e,t){vc(t)&&t>e[1]&&(e[1]=t)}function _c(e,t){yc(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function vc(e){return e!=null&&isFinite(e)}function yc(e,t){return vc(e)&&vc(t)&&e<=t}function bc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function xc(e){yc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Sc(){var e=`__ec_once_`+Cc++;return function(t,n){Fe(t,e)||(t[e]=1,n())}}var Cc=_s();function wc(e,t,n){var r=K(),i=0;F(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Tc(e){return e.value+``}function Ec(e){return e+``}function Dc(e,t){return G(t,!0)?e.seriesIndex+2:0}function Oc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function kc(e,t){return{seriesType:e,overallReset:t}}function Ac(e){return{overallReset:e}}var jc=`.`,Mc=`___EC__COMPONENT__CONTAINER___`,Nc=`___EC__EXTENDED_CLASS___`;function Pc(e){var t={main:``,sub:``};if(e){var n=e.split(jc);t.main=n[0]||``,t.sub=n[1]||``}return t}function Fc(e){Ce(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Ic(e){return!!(e&&e[Nc])}function Lc(e,t){e.$constructor=e,e.extend=function(e){var t=this,r;return Rc(t)?r=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(r=function(){(e.$constructor||t).apply(this,arguments)},ie(r,this)),M(r.prototype,e),r[Nc]=!0,r.extend=this.extend,r.superCall=Hc,r.superApply=Uc,r.superClass=t,r}}function Rc(e){return H(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function zc(e,t){e.extend=t.extend}var Bc=Math.round(Math.random()*10);function Vc(e){var t=[`__\0is_clz`,Bc++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Hc(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Uc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Wc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Fc(r),e.prototype.type=r;var i=Pc(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Mc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Mc]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Pc(e),r=[],i=t[n.main];return i&&i[Mc]?F(i,function(e,t){t!==Mc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Pc(e).main]},e.getAllClassMainTypes=function(){var e=[];return F(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Pc(e).main];return n&&n[Mc]};function n(e){var n=t[e.main];return(!n||!n[Mc])&&(n=t[e.main]={},n[Mc]=!0),n}}function Gc(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&P(r,s)>=0||i&&P(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Kc=Gc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),qc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Kc(this,e,t)},e}(),Jc=new kr(50);function Yc(e){if(typeof e==`string`){var t=Jc.get(e);return t&&t.image}return e}function Xc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Jc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Qc(t)&&a.pending.push(o)):(t=p.loadImage(e,Zc,Zc),t.__zrImageSrc=e,Jc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function Zc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Qc(e){return e&&e.width&&e.height}var $c=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function el(e,t,n,r,i){var a={};return tl(a,e,t,n,r,i),a.text}function tl(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(`
|
|
3
|
+
`);a=nl(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)rl(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}}function nl(e,t,n,r){r||={};var i=M({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=Fa(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Va(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function rl(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=Va(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?il(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Va(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function il(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Ba(n,e.charCodeAt(i));return i}function al(e,t,n,r){var i=vl(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Ka(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?ml(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=nl(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)rl(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Fa(l),S=0;S<_.length;S++)w=Math.max(Va(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var ol=function(){function e(){}return e}(),sl=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),cl=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function ll(e,t,n,r,i){var a=new cl,o=vl(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=$c.lastIndex=0,h;(h=$c.exec(o))!=null;){var g=h.index;g>m&&ul(a,o.substring(m,g),t,p),ul(a,h[2],t,p,h[1]),m=$c.lastIndex}m<o.length&&ul(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,ee=0;ee<T.tokens.length;ee++){var O=T.tokens[ee],k=O.styleName&&t.rich[O.styleName]||{},A=O.textPadding=k.padding,j=A?A[1]+A[3]:0,te=O.font=k.font||t.font;O.contentHeight=Ka(te);var M=G(k.height,O.contentHeight);if(O.innerHeight=M,A&&(M+=A[0]+A[2]),O.height=M,O.lineHeight=be(k.lineHeight,t.lineHeight,M),O.align=k&&k.align||i,O.verticalAlign=k&&k.verticalAlign||`middle`,x&&d!=null&&v+O.lineHeight>d){var ne=a.lines.length;ee>0?(T.tokens=T.tokens.slice(0,ee),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break outer}var N=k.width,re=N==null||N===`auto`;if(typeof N==`string`&&N.charAt(N.length-1)===`%`)O.percentWidth=N,_.push(O),O.contentWidth=Va(Fa(te),O.text);else{if(re){var P=k.backgroundColor,ie=P&&P.image;ie&&(ie=Yc(ie),Qc(ie)&&(O.width=Math.max(O.width,ie.width*M/ie.height)))}var ae=b&&u!=null?u-D:null;ae!=null&&ae<O.width?!re||ae<j?(O.text=``,O.width=O.contentWidth=0):(tl(S,O.text,ae-j,te,t.ellipsis,{minChar:t.truncateMinChar}),O.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,O.width=O.contentWidth=Va(Fa(te),O.text)):O.contentWidth=Va(Fa(te),O.text)}O.width+=j,D+=O.width,k&&(E=Math.max(E,O.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var O=_[w],oe=O.percentWidth;O.width=parseInt(oe,10)/100*a.width}return a}function ul(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=qa(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=ml(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
7
|
+
`);for(var g=Fa(c),_=0;_<u.length;_++){var v=u[_],y=new ol;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:Va(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new sl)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new sl([y]))}}function dl(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var fl=se(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function pl(e){return!dl(e)||!!fl[e]}function ml(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Fa(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`)c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;else{var m=Ba(d,p.charCodeAt(0)),h=!r&&!pl(p);(a.length?u+m>n:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function hl(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Y.set(gl,Wa(n,o,i),Ga(r,s,a),o,s),Y.intersect(t,gl,null,_l);var c=_l.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Wa(c.x,c.width,i,!0),e.baseY=Ga(c.y,c.height,a,!0)}}var gl=new Y(0,0,0,0),_l={outIntersectRect:{},clamp:!0};function vl(e){return e==null?e=``:e+=``}function yl(e){var t=vl(e.text),n=e.font;return bl(e,Va(Fa(n),t),Ka(n),null)}function bl(e,t,n,r){var i=new Y(Wa(e.x||0,t,e.textAlign),Ga(e.y||0,n,e.textBaseline),t,n),a=r??(xl(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function xl(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Sl=`__zr_style_`+Math.round(Math.random()*10),Cl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},wl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cl[Sl]=!0;var Tl=[`z`,`z2`,`invisible`],El=[`invisible`],Dl=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=z(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Al(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Y(0,0,0,0),t?Y.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Y(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:M(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ne(Cl,e)},t.prototype.useStyle=function(e){e[Sl]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Sl]},t.prototype._innerSaveToNormal=function(t){e.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,Tl)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=z(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=z(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?El:Tl,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return M(e,t),e},t.prototype.getAnimationStyleProps=function(){return wl},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(to),Ol=new Y(0,0,0,0),kl=new Y(0,0,0,0);function Al(e,t,n){return Ol.copy(e.getBoundingRect()),e.transform&&Ol.applyTransform(e.transform),kl.width=t,kl.height=n,!Ol.intersect(kl)}var jl=Math.min,Ml=Math.max,Nl=Math.sin,Pl=Math.cos,Fl=Math.PI*2,Il=Ve(),Ll=Ve(),Rl=Ve();function zl(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=jl(i,r[0]),a=Ml(a,r[0]),o=jl(o,r[1]),s=Ml(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Bl(e,t,n,r,i,a){i[0]=jl(e,n),i[1]=jl(t,r),a[0]=Ml(e,n),a[1]=Ml(t,r)}var Vl=[],Hl=[];function Ul(e,t,n,r,i,a,o,s,c,l){var u=pr,d=ur,f=u(e,n,i,o,Vl);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Vl[p]);c[0]=jl(m,c[0]),l[0]=Ml(m,l[0])}f=u(t,r,a,s,Hl);for(var p=0;p<f;p++){var h=d(t,r,a,s,Hl[p]);c[1]=jl(h,c[1]),l[1]=Ml(h,l[1])}c[0]=jl(e,c[0]),l[0]=Ml(e,l[0]),c[0]=jl(o,c[0]),l[0]=Ml(o,l[0]),c[1]=jl(t,c[1]),l[1]=Ml(t,l[1]),c[1]=jl(s,c[1]),l[1]=Ml(s,l[1])}function Wl(e,t,n,r,i,a,o,s){var c=br,l=_r,u=Ml(jl(c(e,n,i),1),0),d=Ml(jl(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=jl(e,i,f),o[1]=jl(t,a,p),s[0]=Ml(e,i,f),s[1]=Ml(t,a,p)}function Gl(e,t,n,r,i,a,o,s,c){var l=ut,u=dt,d=Math.abs(i-a);if(d%Fl<1e-4&&d>1e-4)s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;else{if(Il[0]=Pl(i)*n+e,Il[1]=Nl(i)*r+t,Ll[0]=Pl(a)*n+e,Ll[1]=Nl(a)*r+t,l(s,Il,Ll),u(c,Il,Ll),i%=Fl,i<0&&(i+=Fl),a%=Fl,a<0&&(a+=Fl),i>a&&!o?a+=Fl:i<a&&o&&(i+=Fl),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Rl[0]=Pl(p)*n+e,Rl[1]=Nl(p)*r+t,l(s,Rl,s),u(c,Rl,c))}}var X={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Kl=[],ql=[],Jl=[],Yl=[],Xl=[],Zl=[],Ql=Math.min,$l=Math.max,eu=Math.cos,tu=Math.sin,nu=Math.abs,ru=Math.PI,iu=ru*2,au=typeof Float32Array<`u`,ou=[];function su(e){return Math.round(e/ru*1e8)/1e8%2*ru}function cu(e,t){var n=su(e[0]);n<0&&(n+=iu);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=iu?i=n+iu:t&&n-i>=iu?i=n-iu:!t&&n>i?i=n+(iu-su(n-i)):t&&n<i&&(i=n-(iu-su(i-n))),e[0]=n,e[1]=i}var lu=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=nu(n/va/e)||0,this._uy=nu(n/va/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(X.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=nu(e-this._xi),r=nu(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(X.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(X.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(X.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ou[0]=r,ou[1]=i,cu(ou,a),r=ou[0],i=ou[1];var o=i-r;return this.addData(X.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=eu(i)*n+e,this._yi=tu(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(X.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(X.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&au&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(au&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,au&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Jl[0]=Jl[1]=Xl[0]=Xl[1]=Number.MAX_VALUE,Yl[0]=Yl[1]=Zl[0]=Zl[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case X.M:t=r=e[a++],n=i=e[a++],Xl[0]=r,Xl[1]=i,Zl[0]=r,Zl[1]=i;break;case X.L:Bl(t,n,e[a],e[a+1],Xl,Zl),t=e[a++],n=e[a++];break;case X.C:Ul(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Xl,Zl),t=e[a++],n=e[a++];break;case X.Q:Wl(t,n,e[a++],e[a++],e[a],e[a+1],Xl,Zl),t=e[a++],n=e[a++];break;case X.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=eu(f)*u+c,i=tu(f)*d+l),Gl(c,l,u,d,f,p,m,Xl,Zl),t=eu(p)*u+c,n=tu(p)*d+l;break;case X.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Bl(r,i,r+h,i+g,Xl,Zl);break;case X.Z:t=r,n=i}ut(Jl,Jl,Xl),dt(Yl,Yl,Zl)}return a===0&&(Jl[0]=Jl[1]=Yl[0]=Yl[1]=0),new Y(Jl[0],Jl[1],Yl[0]-Jl[0],Yl[1]-Jl[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case X.M:i=o=e[d++],a=s=e[d++];break;case X.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(nu(_)>n||nu(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case X.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=gr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case X.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Cr(i,a,y,b,h,g,10),i=h,a=g;break;case X.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],ee=e[d++],O=ee+D;d+=1,p&&(o=eu(D)*T+C,s=tu(D)*E+w),m=$l(T,E)*Ql(iu,Math.abs(ee)),i=eu(O)*T+C,a=tu(O)*E+w;break;case X.R:o=i=e[d++],s=a=e[d++];var k=e[d++],A=e[d++];m=k*2+A*2;break;case X.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==X.L&&v>0&&(e.lineTo(y,b),v=0),S){case X.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case X.L:u=n[x++],d=n[x++];var w=nu(u-c),T=nu(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var ee=w*w+T*T;ee>v&&(y=u,b=d,v=ee)}break;case X.C:var O=n[x++],k=n[x++],A=n[x++],j=n[x++],te=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;mr(c,O,A,te,D,Kl),mr(l,k,j,M,D,ql),e.bezierCurveTo(Kl[1],ql[1],Kl[2],ql[2],Kl[3],ql[3]);break lo}h+=E}e.bezierCurveTo(O,k,A,j,te,M),c=te,l=M;break;case X.Q:var O=n[x++],k=n[x++],A=n[x++],j=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;xr(c,O,A,D,Kl),xr(l,k,j,D,ql),e.quadraticCurveTo(Kl[1],ql[1],Kl[2],ql[2]);break lo}h+=E}e.quadraticCurveTo(O,k,A,j),c=A,l=j;break;case X.A:var ne=n[x++],N=n[x++],re=n[x++],P=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],F=!n[x++],I=re>P?re:P,se=nu(re-P)>.001,L=ie+ae,R=!1;if(f){var E=p[g++];h+E>_&&(L=ie+ae*(_-h)/E,R=!0),h+=E}if(se&&e.ellipse?e.ellipse(ne,N,re,P,oe,ie,L,F):e.arc(ne,N,I,ie,L,F),R)break lo;C&&(o=eu(ie)*re+ne,s=tu(ie)*P+N),c=eu(L)*re+ne,l=tu(L)*P+N;break;case X.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var z=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var B=_-h;e.moveTo(u,d),e.lineTo(u+Ql(B,z),d),B-=z,B>0&&e.lineTo(u+z,d+Ql(B,ce)),B-=ce,B>0&&e.lineTo(u+$l(z-B,0),d+ce),B-=z,B>0&&e.lineTo(u,d+$l(ce-B,0));break lo}h+=E}e.rect(u,d,z,ce);break;case X.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=X,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function uu(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function du(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:hr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function fu(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:Sr(e,t,n,r,i,a,s,c,null)<=l/2}var pu=Math.PI*2;function mu(e){return e%=pu,e<0&&(e+=pu),e}var hu=Math.PI*2;function gu(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%hu<1e-4)return!0;if(a){var d=r;r=mu(i),i=mu(d)}else r=mu(r),i=mu(i);r>i&&(i+=hu);var f=Math.atan2(c,s);return f<0&&(f+=hu),f>=r&&f<=i||f+hu>=r&&f+hu<=i}function _u(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var vu=lu.CMD,yu=Math.PI*2,bu=1e-4;function xu(e,t){return Math.abs(e-t)<bu}var Su=[-1,-1,-1],Cu=[-1,-1];function wu(){var e=Cu[0];Cu[0]=Cu[1],Cu[1]=e}function Tu(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=fr(t,r,a,s,l,Su);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Su[h],_=g===0||g===1?.5:1;ur(e,n,i,o,g)<c||(f<0&&(f=pr(t,r,a,s,Cu),Cu[1]<Cu[0]&&f>1&&wu(),p=ur(t,r,a,s,Cu[0]),f>1&&(m=ur(t,r,a,s,Cu[1]))),f===2?g<Cu[0]?d+=p<t?_:-_:g<Cu[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Cu[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Eu(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=yr(t,r,a,s,Su);if(c===0)return 0;var l=br(t,r,a);if(l>=0&&l<=1){for(var u=0,d=_r(t,r,a,l),f=0;f<c;f++){var p=Su[f]===0||Su[f]===1?.5:1,m=_r(e,n,i,Su[f]);m<o||(Su[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Su[0]===0||Su[0]===1?.5:1,m=_r(e,n,i,Su[0]);return m<o?0:a<t?p:-p}function Du(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Su[0]=-c,Su[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=yu-1e-4){r=0,i=yu;var u=a?1:-1;return o>=Su[0]+e&&o<=Su[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=yu,i+=yu);for(var f=0,p=0;p<2;p++){var m=Su[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=yu+h),(h>=r&&h<=i||h+yu>=r&&h+yu<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ou(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===vu.M&&m>1&&(n||(s+=_u(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case vu.M:u=a[m++],d=a[m++],c=u,l=d;break;case vu.L:if(n){if(uu(c,l,a[m],a[m+1],t,r,i))return!0}else s+=_u(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.C:if(n){if(du(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Tu(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.Q:if(n){if(fu(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Eu(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=_u(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(gu(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Du(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case vu.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(uu(u,d,f,d,t,r,i)||uu(f,d,f,p,t,r,i)||uu(f,p,u,p,t,r,i)||uu(u,p,u,d,t,r,i))return!0}else s+=_u(f,d,f,p,r,i),s+=_u(u,p,u,d,r,i);break;case vu.Z:if(n){if(uu(c,l,u,d,t,r,i))return!0}else s+=_u(c,l,u,d,r,i);c=u,l=d}}return!n&&!xu(l,d)&&(s+=_u(c,l,u,d,r,i)||0),s!==0}function ku(e,t,n){return Ou(e,0,!1,t,n)}function Au(e,t,n,r){return Ou(e,t,!0,n,r)}var ju=N({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cl),Mu={style:N({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wl.style)},Nu=Na.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Z=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Nu.length;++s)i[Nu[s]]=this[Nu[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=z(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?M(this.style,o):this.useStyle(o):a===`shape`?M(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(U(e)){var t=ni(e,0);return t>.5?ba:t>.2?Sa:xa}if(e)return xa}return ba},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(U(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==ni(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new lu(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Au(a,o/s,e,t)))return!0}if(this.hasFill())return ku(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:M(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Ne(ju,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=M({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=M({},r.shape),M(c,n.shape)):(c=M({},i?this.shape:r.shape),M(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=M({},this.shape);for(var l={},u=z(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Mu},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){q(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return A(e.style)},n.prototype.getDefaultShape=function(){return A(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Dl),Pu=N({strokeFirst:!0,font:s,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},ju),Fu=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return xl(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Ne(Pu,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=yl(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Dl);Fu.prototype.type=`tspan`;var Iu=N({x:0,y:0},Cl),Lu={style:N({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},wl.style)};function Ru(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var zu=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ne(Iu,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Ru(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Lu},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Dl);zu.prototype.type=`image`;function Bu(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Vu=Math.round;function Hu(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(Vu(r*2)===Vu(i*2)&&(e.x1=e.x2=Wu(r,s,!0)),Vu(a*2)===Vu(o*2)&&(e.y1=e.y2=Wu(a,s,!0))),e}}function Uu(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=Wu(r,s,!0),e.y=Wu(i,s,!0),e.width=Math.max(Wu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wu(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wu(e,t,n){if(!t)return e;var r=Vu(e*2);return(r+Vu(t))%2==0?r/2:(r+(n?1:-1))/2}var Gu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ku={},qu=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Gu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Uu(Ku,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Bu(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Z);qu.prototype.type=`rect`;var Ju={fill:`#000`},Yu=2,Xu={},Zu={style:N({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},wl.style)},Qu=function(e){q(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Ju,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.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}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,ad(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Y(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ju},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return M(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=z(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},M(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Zu},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;hl(Xu,r.overflowRect,i,a,o,s),i=Xu.baseX,a=Xu.baseY;var c=al(ud(e),e,Xu.outerWidth,Xu.outerHeight),l=dd(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Ga(a,c.contentHeight,s);if(l||n){var _=Wa(i,f,o),v=Ga(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=ld(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=cd(`fill`in e?e.fill:(x=!0,r.fill)),C=sd(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Yu,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Fu),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,rd(D,e),g+=m,E.setBoundingRect(bl(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;hl(Xu,t.overflowRect,i,a,n,r),i=Xu.baseX,a=Xu.baseY;var o=ll(ud(e),e,Xu.outerWidth,Xu.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Wa(i,c,n),f=Ga(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;dd(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&dd(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ld(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Fu),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=cd(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=sd(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Yu,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=be(s.opacity,t.opacity,1),rd(p,s),y&&(p.lineWidth=be(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(bl(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(qu),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(zu),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=G(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=be(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return id(e)&&(t=[e.fontStyle,e.fontWeight,nd(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&we(t)||e.textFont||e.font},t}(Dl),$u={left:!0,right:1,center:1},ed={top:1,bottom:1,middle:1},td=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function nd(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function rd(e,t){for(var n=0;n<td.length;n++){var r=td[n],i=t[r];i!=null&&(e[r]=i)}}function id(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function ad(e){return od(e),F(e.rich,od),e}function od(e){if(e){e.font=Qu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||$u[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||ed[n]?n:`top`,e.padding&&=Se(e.padding)}}function sd(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function cd(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function ld(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function ud(e){var t=e.text;return t!=null&&(t+=``),t}function dd(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var fd=Qs(),pd=function(e,t,n,r){if(r){var i=fd(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=fd(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},md=`undefined`,hd=`series`,gd=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),_d=`original`,vd=`arrayRows`,yd=`objectRows`,bd=`keyedColumns`,xd=`typedArray`,Sd=`unknown`,Cd=`column`,wd=`Roam`,Td=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Ed=function(){function e(e){F(Td,function(t){this[t]=B(e[t],e)},this)}return e}();function Dd(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Od=1,kd={},Ad=Qs(),jd=Qs(),Md=[`emphasis`,`blur`,`select`],Nd=[`normal`,`emphasis`,`blur`,`select`],Pd=`highlight`,Fd=`downplay`,Id=`select`,Ld=`unselect`,Rd=`toggleSelect`,zd=`selectchanged`;function Bd(e){return e!=null&&e!==`none`}function Vd(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Hd(e){Vd(e,`emphasis`,2)}function Ud(e){e.hoverState===2&&Vd(e,`normal`,0)}function Wd(e){Vd(e,`blur`,1)}function Gd(e){e.hoverState===1&&Vd(e,`normal`,0)}function Kd(e){e.selected=!0}function qd(e){e.selected=!1}function Jd(e,t,n){t(e,n)}function Yd(e,t,n){Jd(e,t,n),e.isGroup&&e.traverse(function(e){Jd(e,t,n)})}function Xd(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Zd(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Qd(e,t,n,r){var i=n&&P(n,`select`)>=0,a=!1;if(e instanceof Z){var o=Ad(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Bd(s)||Bd(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=M({},r),l=M({},l),l.fill=s):!Bd(l.fill)&&Bd(s)?(a=!0,r=M({},r),l=M({},l),l.fill=ai(s)):!Bd(l.stroke)&&Bd(c)&&(a||(r=M({},r),l=M({},l)),l.stroke=ai(c)),r.style=l}}if(r&&r.z2==null){a||(r=M({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function $d(e,t,n){if(n&&n.z2==null){n=M({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function ef(e,t,n){var r=P(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Zd(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=M({},n),o=M({opacity:r?i:a.opacity*.1},o),n.style=o),n}function tf(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Qd(this,e,t,n);if(e===`blur`)return ef(this,e,n);if(e===`select`)return $d(this,e,n)}return n}function nf(e){e.stateProxy=tf;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=tf),n&&(n.stateProxy=tf)}function rf(e,t){!ff(e,t)&&!e.__highByOuter&&Yd(e,Hd)}function af(e,t){!ff(e,t)&&!e.__highByOuter&&Yd(e,Ud)}function of(e,t){e.__highByOuter|=1<<(t||0),Yd(e,Hd)}function sf(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Yd(e,Ud)}function cf(e){Yd(e,Wd)}function lf(e){Yd(e,Gd)}function uf(e){Yd(e,Kd)}function df(e){Yd(e,qd)}function ff(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function pf(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=jd(i),o=Dd(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Gd(e)}),s&&n.push(i)),a.isBlured=!1}),F(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function mf(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&lf(r)}}if(e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Wd(e)}),oe(t))a(e.getData(),t);else if(W(t))for(var u=z(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),jd(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function hf(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){jd(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){Wd(e)})}}}function gf(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Zs(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=fd(o);mf(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&mf(r,u,d,n)}}}function _f(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(fd(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function vf(e,t,n){var r=fd(e),i=_f(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&hf(r.componentMainType,r.componentIndex,n),F(a,function(e){return rf(e,t)})):(mf(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&hf(r.componentMainType,r.componentIndex,n),rf(e,t))}function yf(e,t,n){pf(n);var r=fd(e),i=_f(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?F(i,function(e){return af(e,t)}):af(e,t)}function bf(e,t,n){if(Pf(t)){var r=t.dataType,i=Zs(e.getData(r),t);V(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function xf(e){F(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?uf(t):df(t)})})}function Sf(e){var t=[];return e.eachSeries(function(e){F(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Cf(e,t,n){Af(e,!0),Yd(e,nf),Ef(e,t,n)}function wf(e){Af(e,!1)}function Tf(e,t,n,r){r?wf(e):Cf(e,t,n)}function Ef(e,t,n){var r=fd(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Df=[`emphasis`,`blur`,`select`],Of={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function kf(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Df.length;i++){var a=Df[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Of[n]]()}}function Af(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function jf(e){return!!(e&&e.__highDownDispatcher)}function Mf(e,t,n){var r=fd(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Nf(e){var t=kd[e];return t==null&&Od<=32&&(t=kd[e]=Od++),t}function Pf(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Ff(e){var t=e.type;return t===`highlight`||t===`downplay`}function If(e){var t=Ad(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Lf=lu.CMD,Rf=[[],[],[]],zf=Math.sqrt,Bf=Math.atan2;function Vf(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Lf.M,d=Lf.C,f=Lf.L,p=Lf.R,m=Lf.A,h=Lf.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=zf(t[0]*t[0]+t[1]*t[1]),y=zf(t[2]*t[2]+t[3]*t[3]),b=Bf(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],lt(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],lt(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Rf[c];x[0]=n[o++],x[1]=n[o++],lt(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Hf=Math.sqrt,Uf=Math.sin,Wf=Math.cos,Gf=Math.PI;function Kf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function qf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Kf(e)*Kf(t))}function Jf(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(qf(e,t))}function Yf(e,t,n,r,i,a,o,s,c,l,u){var d=Gf/180*c,f=Wf(d)*(e-n)/2+Uf(d)*(t-r)/2,p=-1*Uf(d)*(e-n)/2+Wf(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Hf(m),s*=Hf(m));var h=(i===a?-1:1)*Hf((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Wf(d)*g-Uf(d)*_,y=(t+r)/2+Uf(d)*g+Wf(d)*_,b=Jf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Jf(x,S);if(qf(x,S)<=-1&&(C=Gf),qf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Gf*1e6)/1e6;C=Gf*2+w%2*Gf}u.addData(l,v,y,o,s,b,C,d,a)}var Xf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Zf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qf(e){var t=new lu;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=lu.CMD,c=e.match(Xf);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Zf)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Yf(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Yf(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var $f=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Z);function ep(e){return e.setData!=null}function tp(e,t){var n=Qf(e),r=M({},t);return r.buildPath=function(e){var t=ep(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Vf(n,e),this.dirtyShape()},r}function np(e,t){return new $f(tp(e,t))}function rp(e,t){var n=tp(e,t);return function(e){q(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}($f)}function ip(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Z(t);return o.createPathProxy(),o.buildPath=function(e){if(ep(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function ap(e,t){t||={};var n=new Z;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Vf(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var op=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),sp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new op},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Z);sp.prototype.type=`circle`;var cp=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),lp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new cp},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Z);lp.prototype.type=`ellipse`;var up=Math.PI,dp=up*2,fp=Math.sin,pp=Math.cos,mp=Math.acos,hp=Math.atan2,gp=Math.abs,_p=Math.sqrt,vp=Math.max,yp=Math.min,bp=1e-4;function xp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<bp))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Sp(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/_p(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*_p(vp(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,ee=w-g,O=T-_,k=E-g,A=D-_;return ee*ee+O*O>k*k+A*A&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Cp(e){var t;if(V(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function wp(e,t){var n,r=vp(t.r,0),i=vp(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=gp(c-s),p=f>dp&&f%dp;if(p>bp&&(f=p),!(r>bp))e.moveTo(l,u);else if(f>dp-bp)e.moveTo(l+r*pp(s),u+r*fp(s)),e.arc(l,u,r,s,c,!d),i>bp&&(e.moveTo(l+i*pp(c),u+i*fp(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,ee=void 0,O=void 0,k=r*pp(s),A=r*fp(s),j=i*pp(c),te=i*fp(c),M=f>bp;if(M){var ne=t.cornerRadius;ne&&(n=Cp(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var N=gp(r-i)/2;if(v=yp(N,g),y=yp(N,_),b=yp(N,m),x=yp(N,h),w=S=vp(v,y),T=C=vp(b,x),(S>bp||C>bp)&&(E=r*pp(c),D=r*fp(c),ee=i*pp(s),O=i*fp(s),f<up)){var re=xp(k,A,ee,O,E,D,j,te);if(re){var P=k-re[0],ie=A-re[1],ae=E-re[0],oe=D-re[1],F=1/fp(mp((P*ae+ie*oe)/(_p(P*P+ie*ie)*_p(ae*ae+oe*oe)))/2),I=_p(re[0]*re[0]+re[1]*re[1]);w=yp(S,(r-I)/(F+1)),T=yp(C,(i-I)/(F-1))}}}if(!M)e.moveTo(l+k,u+A);else if(w>bp){var se=yp(g,w),L=yp(_,w),R=Sp(ee,O,k,A,r,se,d),z=Sp(E,D,j,te,r,L,d);e.moveTo(l+R.cx+R.x0,u+R.cy+R.y0),w<S&&se===L?e.arc(l+R.cx,u+R.cy,w,hp(R.y0,R.x0),hp(z.y0,z.x0),!d):(se>0&&e.arc(l+R.cx,u+R.cy,se,hp(R.y0,R.x0),hp(R.y1,R.x1),!d),e.arc(l,u,r,hp(R.cy+R.y1,R.cx+R.x1),hp(z.cy+z.y1,z.cx+z.x1),!d),L>0&&e.arc(l+z.cx,u+z.cy,L,hp(z.y1,z.x1),hp(z.y0,z.x0),!d))}else e.moveTo(l+k,u+A),e.arc(l,u,r,s,c,!d);if(!(i>bp)||!M)e.lineTo(l+j,u+te);else if(T>bp){var se=yp(m,T),L=yp(h,T),R=Sp(j,te,E,D,i,-L,d),z=Sp(k,A,ee,O,i,-se,d);e.lineTo(l+R.cx+R.x0,u+R.cy+R.y0),T<C&&se===L?e.arc(l+R.cx,u+R.cy,T,hp(R.y0,R.x0),hp(z.y0,z.x0),!d):(L>0&&e.arc(l+R.cx,u+R.cy,L,hp(R.y0,R.x0),hp(R.y1,R.x1),!d),e.arc(l,u,i,hp(R.cy+R.y1,R.cx+R.x1),hp(z.cy+z.y1,z.cx+z.x1),d),se>0&&e.arc(l+z.cx,u+z.cy,se,hp(z.y1,z.x1),hp(z.y0,z.x0),!d))}else e.lineTo(l+j,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Tp=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Ep=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Tp},t.prototype.buildPath=function(e,t){wp(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Z);Ep.prototype.type=`sector`;var Dp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Op=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Dp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Z);Op.prototype.type=`ring`;function kp(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)ut(u,u,e[f]),dt(d,d,e[f]);ut(u,u,r[0]),dt(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ue(e[f]));continue}else c=e[f-1],l=e[f+1];qe(a,l,c),tt(a,a,t);var h=rt(m,c),g=rt(m,l),_=h+g;_!==0&&(h/=_,g/=_),tt(o,a,-h),tt(s,a,g);var v=Ge([],m,o),y=Ge([],m,s);r&&(dt(v,v,u),ut(v,v,d),dt(y,y,u),ut(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Ap(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=kp(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var jp=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Mp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new jp},t.prototype.buildPath=function(e,t){Ap(e,t,!0)},t}(Z);Mp.prototype.type=`polygon`;var Np=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Pp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Np},t.prototype.buildPath=function(e,t){Ap(e,t,!1)},t}(Z);Pp.prototype.type=`polyline`;var Fp={},Ip=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Lp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ip},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Hu(Fp,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Z);Lp.prototype.type=`line`;var Rp=[],zp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Bp(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?dr:ur)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?dr:ur)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?vr:_r)(e.x1,e.cpx1,e.x2,t),(n?vr:_r)(e.y1,e.cpy1,e.y2,t)]}var Vp=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new zp},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(xr(n,o,i,u,Rp),o=Rp[1],i=Rp[2],xr(r,s,a,u,Rp),s=Rp[1],a=Rp[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(mr(n,o,c,i,u,Rp),o=Rp[1],c=Rp[2],i=Rp[3],mr(r,s,l,a,u,Rp),s=Rp[1],l=Rp[2],a=Rp[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Bp(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Bp(this.shape,e,!0);return nt(t,t)},t}(Z);Vp.prototype.type=`bezier-curve`;var Hp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Up=function(e){q(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Hp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Z);Up.prototype.type=`arc`;var Wp=function(e){q(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},t}(Z),Gp=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Kp=function(e){q(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Gp),qp=function(e){q(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Gp),Jp=Math.min,Yp=Math.max,Xp=Math.abs,Zp=[0,0],Qp=[0,0],$p=Tn(),em=$p.minTv,tm=$p.maxTv,nm=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new J;for(var n=0;n<2;n++)this._axes[n]=new J;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);J.sub(r[0],n[1],n[0]),J.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&J.set(t,0,0),$p.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!$p.negativeSize&&J.copy(t,r?$p.useDir?$p.dirMinTv:em:tm),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Zp),e._getProjMinMaxOnAxis(a,t._corners,Qp),$p.negativeSize||Zp[1]<Qp[0]||Zp[0]>Qp[1]){if(i=!1,$p.negativeSize||n)return i;var s=Xp(Qp[0]-Zp[1]),c=Xp(Zp[0]-Qp[1]);Jp(s,c)>tm.len()&&(s<c?J.scale(tm,o,-s*r):J.scale(tm,o,c*r))}else if(!n){var s=Xp(Qp[0]-Zp[1]),c=Xp(Zp[0]-Qp[1]);($p.useDir||Jp(s,c)<em.len())&&((s<c||!$p.bidirectional)&&(J.scale(em,o,s*r),$p.useDir&&$p.calcDirMTV()),(s>=c||!$p.bidirectional)&&(J.scale(em,o,-c*r),$p.useDir&&$p.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Jp(l,o),s=Yp(l,s)}n[0]=o+$p.touchThreshold,n[1]=s-$p.touchThreshold,$p.negativeSize=n[1]<n[0]},e}(),rm=[],im=function(e){q(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Y(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(rm)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Dl),am=Qs();function om(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=G(r.duration,200),u=G(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),H(d)&&(d=d(n,i)),H(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function sm(e,t,n,r,i,a,o){var s=!1,c;H(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=om(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function cm(e,t,n,r,i,a){sm(`update`,e,t,n,r,i,a)}function lm(e,t,n,r,i,a){sm(`enter`,e,t,n,r,i,a)}function um(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function dm(e,t,n,r,i,a){um(e)||sm(`leave`,e,t,n,r,i,a)}function fm(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),dm(e,{style:{opacity:0}},t,n,r)}function pm(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||fm(e,t,n,r)}):fm(e,t,n,r)}function mm(e){am(e).oldStyle=e.style}function hm(e){return am(e).oldStyle}var gm=e({Arc:()=>Up,BezierCurve:()=>Vp,BoundingRect:()=>Y,Circle:()=>sp,CompoundPath:()=>Wp,Ellipse:()=>lp,Group:()=>po,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>zu,IncrementalDisplayable:()=>im,Line:()=>Lp,LinearGradient:()=>Kp,OrientedBoundingRect:()=>nm,Path:()=>Z,Point:()=>J,Polygon:()=>Mp,Polyline:()=>Pp,RadialGradient:()=>qp,Rect:()=>qu,Ring:()=>Op,Sector:()=>Ep,Text:()=>Qu,WH:()=>ym,XY:()=>vm,applyTransform:()=>Pm,calcZ2Range:()=>rh,clipPointsByRect:()=>zm,clipRectByRect:()=>Bm,createIcon:()=>Vm,decomposeTransform:()=>sh,ensureCopyRect:()=>eh,ensureCopyTransform:()=>th,expandOrShrinkRect:()=>Km,extendPath:()=>Sm,extendShape:()=>bm,getCurrentCanvasPainter:()=>lh,getShapeClass:()=>wm,getTransform:()=>Nm,groupTransition:()=>Rm,initProps:()=>lm,isBoundingRectAxisAligned:()=>Qm,isElementRemoved:()=>um,lineLineIntersect:()=>Um,linePolygonIntersect:()=>Hm,makeImage:()=>Em,makePath:()=>Tm,mergePath:()=>Om,payloadDisableAnimation:()=>oh,registerShape:()=>Cm,removeElement:()=>dm,removeElementWithFadeOut:()=>pm,resizePath:()=>km,retrieveZInfo:()=>nh,setTooltipConfig:()=>Ym,subPixelOptimize:()=>Mm,subPixelOptimizeLine:()=>Am,subPixelOptimizeRect:()=>jm,transformDirection:()=>Fm,traverseElements:()=>Zm,traverseUpdateZ:()=>ih,updateProps:()=>cm}),_m={},vm=[`x`,`y`],ym=[`width`,`height`];function bm(e){return Z.extend(e)}var xm=rp;function Sm(e,t){return xm(e,t)}function Cm(e,t){_m[e]=t}function wm(e){if(_m.hasOwnProperty(e))return _m[e]}function Tm(e,t,n,r){var i=np(e,t);return n&&(r===`center`&&(n=Dm(n,i.getBoundingRect())),km(i,n)),i}function Em(e,t,n){var r=new zu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Dm(t,i))}}});return r}function Dm(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Om=ip;function km(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Am(e,t){return Hu(e,e,{lineWidth:t}),e}function jm(e,t){return Uu(e,e,t),e}var Mm=Wu;function Nm(e,t){for(var n=qt([]);e&&e!==t;)Yt(n,e.getLocalTransform(),n),e=e.parent;return n}function Pm(e,t,n){return t&&!oe(t)&&(t=Aa.getLocalTransform(t)),n&&(t=$t([],t)),lt([],e,t)}function Fm(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Po(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Po(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Pm(a,t,n),Po(a[0])>Po(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Im(e){return!e.isGroup}function Lm(e){return e.shape!=null}function Rm(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Im(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Lm(e)&&(t.shape=A(e.shape)),t}var a=r(e);t.traverse(function(e){if(Im(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),cm(e,r,n,fd(e).dataIndex)}}})}function zm(e,t){return I(e,function(e){var n=e[0];n=No(n,t.x),n=Mo(n,t.x+t.width);var r=e[1];return r=No(r,t.y),r=Mo(r,t.y+t.height),[n,r]})}function Bm(e,t){var n=No(e.x,t.x),r=Mo(e.x+e.width,t.x+t.width),i=No(e.y,t.y),a=Mo(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Vm(e,t,n){var r=M({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),N(i,n),new zu(r)):Tm(e.replace(`path://`,``),r,n,`center`)}function Hm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Um(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Um(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Wm(u,d,c,l);if(Gm(f))return!1;var p=e-i,m=t-a,h=Wm(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Wm(p,m,u,d)/f;return!(g<0||g>1)}function Wm(e,t,n,r){return e*r-n*t}function Gm(e){return e<=1e-6&&e>=-1e-6}function Km(e,t,n,r,i){return t==null||(de(t)?qm[0]=qm[1]=qm[2]=qm[3]=t:(qm[0]=t[0],qm[1]=t[1],qm[2]=t[2],qm[3]=t[3]),r&&(qm[0]=No(0,qm[0]),qm[1]=No(0,qm[1]),qm[2]=No(0,qm[2]),qm[3]=No(0,qm[3])),n&&(qm[0]=-qm[0],qm[1]=-qm[1],qm[2]=-qm[2],qm[3]=-qm[3]),Jm(e,qm,`x`,`width`,3,1,i&&i[0]||0),Jm(e,qm,`y`,`height`,0,2,i&&i[1]||0)),e}var qm=[0,0,0,0];function Jm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=No(0,Mo(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Po(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Ym(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=U(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&F(z(c),function(e){Fe(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=fd(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:N({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Xm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zm(e,t){if(e){if(V(e))for(var n=0;n<e.length;n++)Xm(e[n],t);else Xm(e,t)}}function Qm(e){return!e||Po(e[1])<$m&&Po(e[2])<$m||Po(e[0])<$m&&Po(e[3])<$m}var $m=1e-5;function eh(e,t){return e?Y.copy(e,t):t.clone()}function th(e,t){return t?Jt(e||Kt(),t):void 0}function nh(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function rh(e){var t=-1/0,n=1/0;Xm(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function ih(e,t,n){ah(e,t,n,-1/0)}function ah(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=No(ah(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=No(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function oh(e){return e.animation={duration:0},e}function sh(e,t){return t?Jt(ch.transform,t):qt(ch.transform),ch.decomposeTransform(),Pa(e,ch),e}var ch=new Aa;ch.transform=Kt();function lh(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Cm(`circle`,sp),Cm(`ellipse`,lp),Cm(`sector`,Ep),Cm(`ring`,Op),Cm(`polygon`,Mp),Cm(`polyline`,Pp),Cm(`rect`,qu),Cm(`line`,Lp),Cm(`bezierCurve`,Vp),Cm(`arc`,Up);var uh={};function dh(e,t){for(var n=0;n<Md.length;n++){var r=Md[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function fh(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=H(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Md.length;l++){var u=Md[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function ph(e,t,n,r){n||=uh;for(var i=e instanceof Qu,a=!1,o=0;o<Nd.length;o++){var s=t[Nd[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Qu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=fh(n,t),u=t.normal,d=!!u.getShallow(`show`),f=hh(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(gh(u,n,!1));for(var o=0;o<Md.length;o++){var p=Md[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=hh(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=gh(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(wh(c).setLabelText=function(e){var r=fh(n,t,e);dh(c,r)})}else c&&(c.ignore=!0);e.dirty()}function mh(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Md.length;r++){var i=Md[r];n[i]=e.getModel([i,t])}return n}function hh(e,t,n,r,i){var a={};return _h(a,e,n,r,i),t&&M(a,t),a}function gh(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function _h(e,t,n,r,i){n||=uh;var a=t.ecModel,o=a&&a.option.textStyle,s=vh(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Sh(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=de(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Dh.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Se(_),h.__marginType=Dh.textMargin)}Sh(e,t,o,null,null,n,r,i,!0,!1)}function vh(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||uh).rich;if(n){t||={};for(var r=z(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var yh=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],bh=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],xh=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Sh(e,t,n,r,i,a,o,s,c,l){n=!o&&n||uh;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<yh.length;_++){var v=yh[_],y=i!==!1&&r?be(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<bh.length;_++){var v=bh[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<xh.length;_++){var v=xh[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Ch(e,t){var n=t&&t.getModel(`textStyle`);return we([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var wh=Qs();function Th(e,t,n,r){if(e){var i=wh(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Eh(e,t,n,r,i){var a=wh(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=uc(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,dh(e,fh({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?lm:cm)(e,{percent:1},r,t,null,l)}var Dh={minMargin:1,textMargin:2},Oh=[`textStyle`,`color`],kh=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Ah=new Qu,jh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Oh):null)},e.prototype.getFont=function(){return Ch({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<kh.length;n++)t[kh[n]]=this.getShallow(kh[n]);return Ah.useStyle(t),Ah.update(),Ah.getBoundingRect()},e}(),Mh=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Nh=Gc(Mh),Ph=function(){function e(){}return e.prototype.getLineStyle=function(e){return Nh(this,e)},e}(),Fh=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Ih=Gc(Fh),Lh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Ih(this,e,t)},e}(),Rh=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){j(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(A(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!i.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Lc(Rh),Vc(Rh),ae(Rh,Ph),ae(Rh,Lh),ae(Rh,qc),ae(Rh,jh);var zh=Math.round(Math.random()*10);function Bh(e){return[e||``,zh++].join(`_`)}function Vh(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Pc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Pc(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Hh(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(F(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),F(u.successor,d?p:f)}F(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return F(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),F(c,function(e){P(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);P(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return F(e,function(e){P(t,e)>=0&&n.push(e)}),n}}function Uh(e,t){return j(j({},e,!0),t,!0)}var Wh={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:`. `}}}},Gh={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:``}}}},Kh=`ZH`,qh=`EN`,Jh=qh,Yh={},Xh={},Zh=i.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Jh).toUpperCase().indexOf(Kh)>-1?Kh:Jh}():Jh;function Qh(e,t){e=e.toUpperCase(),Xh[e]=new Rh(t),Yh[e]=t}function $h(e){if(U(e)){var t=Yh[e.toUpperCase()]||{};return e===Kh||e===qh?A(t):j(A(t),A(Yh[Jh]),!1)}return j(A(e),A(Yh[Jh]),!1)}function eg(e){return Xh[e]}function tg(){return Xh[Jh]}Qh(qh,Wh),Qh(Kh,Gh);var ng=null;function rg(e){ng||=e}function ig(){return ng}function ag(e,t){var n=ig(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function og(e){var t=e.brk;return t?t.breaks:[]}function sg(e){var t=e.brk;return t?t.hasBreaks():!1}var cg=1e3,lg=cg*60,ug=lg*60,dg=ug*24,fg=dg*365,pg={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})/},mg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},hg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,gg=`{yyyy}-{MM}-{dd}`,_g={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:gg,hour:gg+` `+mg.hour,minute:gg+` `+mg.minute,second:gg+` `+mg.second,millisecond:hg},vg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],yg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function bg(e){return!U(e)&&!H(e)?xg(e):e}function xg(e){e||={};var t={},n=!0;return F(vg,function(t){n&&=e[t]==null}),F(vg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=vg[s],l=W(a)&&!V(a)?a[c]:a,u=void 0;V(l)?(u=l.slice(),o=u[0]||``):U(l)?(o=l,u=[o]):(o==null?o=mg[r]:pg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Sg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Cg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function wg(e){return e===Cg(e)}function Tg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Eg(e,t,n,r){var i=ls(e),a=i[Ag(n)](),o=i[jg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Mg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Ng(n)](),d=(u-1)%12+1,f=i[Pg(n)](),p=i[Fg(n)](),m=i[Ig(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Rh?r:eg(r||Zh)||tg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Sg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Sg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Sg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Sg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Sg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Sg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Sg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Sg(m,3)).replace(/{S}/g,m+``)}function Dg(e,t,n,r,i){var a=null;if(U(n))a=n;else if(H(n)){var o={time:e.time,level:e.time?e.time.level:0},s=ig();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Og(e.value,i);a=n[u][u][0]}}return Eg(new Date(e.value),a,i,r)}function Og(e,t){var n=ls(e),r=n[jg(t)]()+1,i=n[Mg(t)](),a=n[Ng(t)](),o=n[Pg(t)](),s=n[Fg(t)](),c=n[Ig(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function kg(e,t,n){switch(t){case`year`:e[Rg(n)](0);case`month`:e[zg(n)](1);case`day`:e[Bg(n)](0);case`hour`:e[Vg(n)](0);case`minute`:e[Hg(n)](0);case`second`:e[Ug(n)](0)}return e}function Ag(e){return e?`getUTCFullYear`:`getFullYear`}function jg(e){return e?`getUTCMonth`:`getMonth`}function Mg(e){return e?`getUTCDate`:`getDate`}function Ng(e){return e?`getUTCHours`:`getHours`}function Pg(e){return e?`getUTCMinutes`:`getMinutes`}function Fg(e){return e?`getUTCSeconds`:`getSeconds`}function Ig(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Lg(e){return e?`setUTCFullYear`:`setFullYear`}function Rg(e){return e?`setUTCMonth`:`setMonth`}function zg(e){return e?`setUTCDate`:`setDate`}function Bg(e){return e?`setUTCHours`:`setHours`}function Vg(e){return e?`setUTCMinutes`:`setMinutes`}function Hg(e){return e?`setUTCSeconds`:`setSeconds`}function Ug(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Wg(e){if(!gs(e))return U(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Gg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Kg=Se;function qg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&we(e)?e:`-`}function a(e){return bs(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?ls(e):e;if(!isNaN(+c))return Eg(c,r,n);if(s)return`-`}if(t===`ordinal`)return ue(e)?i(e):de(e)&&a(e)?e+``:`-`;var l=hs(e);return a(l)?Wg(l):ue(e)?i(e):typeof e==`boolean`?e+``:`-`}var Jg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Yg=function(e,t){return`{`+e+(t??``)+`}`};function Xg(e,t,n){V(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Jg[a];e=e.replace(Yg(o),Yg(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Yg(Jg[c],s),n?Ot(l):l)}return e}function Zg(e,t,n){return F(t,function(t,r){e=e.replace(`{`+r+`}`,n?Ot(t):t)}),e}function Qg(e,t){var n=U(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?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:`+Ot(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Ot(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function $g(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
|
9
|
+
yyyy`);var r=ls(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,Sg(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,Sg(a%100+``,2)).replace(`dd`,Sg(s,2)).replace(`d`,s).replace(`hh`,Sg(c,2)).replace(`h`,c).replace(`mm`,Sg(l,2)).replace(`m`,l).replace(`ss`,Sg(u,2)).replace(`s`,u).replace(`SSS`,Sg(d,3)),e}function e_(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function t_(e,t){return t||=`transparent`,U(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function n_(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var r_={},i_={},a_=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(r_,!0),this._normalMasterList=n(i_,!1);function n(n,r){var i=[];return F(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){F(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e===`matrix`||e===`calendar`?r_[e]=t:i_[e]=t},e.get=function(e){return i_[e]||r_[e]},e}();function o_(e){return!!r_[e]}function s_(e){c_.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var c_=K();function l_(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=c_.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function u_(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!o_(n)&&(i=0))}return{coordSysType:n,kind:i}}function d_(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=u_(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var f_=function(e,t){var n=t.getReferringComponents(e,nc).models[0];return n&&n.coordinateSystem},p_=F,m_=[`left`,`right`,`top`,`bottom`,`width`,`height`],h_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function g_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var __=g_;le(g_,`vertical`),le(g_,`horizontal`);function v_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function y_(e,t){var n=w_(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===C_.point)a=n.refPoint,i=x_(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=V(o)?o:[o,o];i=x_(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Wo(s[0],i.width)+i.x,Wo(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function b_(e,t){var n=y_(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);V(a)||(a=[0,a]);var o=Wo(r.width,t.getWidth()),s=Wo(r.height,t.getHeight()),c=Math.min(o,s),l=Wo(a[0],c/2),u=Wo(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function x_(e,t,n){n=Kg(n||0);var r=t.width,i=t.height,a=Wo(e.left,r),o=Wo(e.top,i),s=Wo(e.right,r),c=Wo(e.bottom,i),l=Wo(e.width,r),u=Wo(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Y((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function S_(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i<n&&c?(s.width=t.height*n,a===`left`?s.left=0:a===`right`?s.right=0:s.left=`center`):(s.height=t.width/n,o===`top`?s.top=0:o===`bottom`?s.bottom=0:s.top=`middle`),x_(s,t)}var C_={rect:1,point:2};function w_(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=l_(e),l=c.coord,u=c.from;if(o.dataToLayout){a=C_.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=C_.point,s=u,i=o.dataToPoint(l))}return a??=C_.rect,a===C_.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function T_(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Y(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=x_(N({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function E_(e,t){return e[h_[t][0]]!=null||e[h_[t][1]]!=null&&e[h_[t][2]]!=null}function D_(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function O_(e,t,n){var r=n&&n.ignoreSize;!V(r)&&(r=[r,r]);var i=o(h_[0],0),a=o(h_[1],1);c(h_[0],e,i),c(h_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(p_(n,function(t){c[t]=e[t]}),p_(n,function(e){Fe(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!Fe(a,f)&&Fe(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){p_(e,function(e){t[e]=n[e]})}}function k_(e){return A_({},e)}function A_(e,t){return t&&e&&p_(m_,function(n){Fe(t,n)&&(e[n]=t[n])}),e}var j_=Qs(),M_=function(e){n(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Bh(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=D_(this),r=n?k_(e):{};j(e,t.getTheme().get(this.mainType)),j(e,this.getDefaultOption()),n&&O_(e,r,n)},t.prototype.mergeOption=function(e,t){j(this.option,e,!0);var n=D_(this);n&&O_(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ic(e))return e.defaultOption;var t=j_(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=j(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ic(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return v_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Rh);zc(M_,Rh),Wc(M_),Vh(M_),Hh(M_,N_);function N_(e){var t=[];return F(M_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=I(t,function(e){return Pc(e).main}),e!==`dataset`&&P(t,`dataset`)<=0&&t.unshift(`dataset`),t}var P_={color:{},darkColor:{},size:{}},F_=P_.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)`};for(var I_ in M(F_,{primary:F_.neutral80,secondary:F_.neutral70,tertiary:F_.neutral60,quaternary:F_.neutral50,disabled:F_.neutral20,border:F_.neutral30,borderTint:F_.neutral20,borderShade:F_.neutral40,background:F_.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:F_.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:F_.neutral70,axisLineTint:F_.neutral40,axisTick:F_.neutral70,axisTickMinor:F_.neutral60,axisLabel:F_.neutral70,axisSplitLine:F_.neutral15,axisMinorSplitLine:F_.neutral05}),F_)if(F_.hasOwnProperty(I_)){var L_=F_[I_];I_===`theme`?P_.darkColor.theme=F_.theme.slice():I_===`highlight`?P_.darkColor.highlight=`rgba(255,231,130,0.4)`:I_.indexOf(`accent`)===0?P_.darkColor[I_]=$r(L_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):P_.darkColor[I_]=$r(L_,null,function(e){return e*.9},function(e){return 1-e**1.5})}P_.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var R_=``;typeof navigator<`u`&&(R_=navigator.platform||``);var z_=`rgba(0, 0, 0, 0.2)`,B_=P_.color.theme[0],V_=$r(B_,null,null,.9),H_={darkMode:`auto`,colorBy:`series`,color:P_.color.theme,gradientColor:[V_,B_],aria:{decal:{decals:[{color:z_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:z_,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:z_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:z_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:z_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:z_,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:R_.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},U_={Must:1,Might:2,Not:3},W_=Qs();function G_(e){W_(e).datasetMap=K()}function K_(e,t,n){var r={},i=J_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=W_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),F(e,function(t,n){var i=W(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});F(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function q_(e,t,n){var r={};if(!J_(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&F(a,function(e,t){(W(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Z_(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===U_.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===U_.Not)&&(e.n=c),f(e)&&s[e.n]!==U_.Not)return e;d||(u===U_.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function J_(e){if(!e.get(`data`,!0))return ic(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},nc).models[0]}function Y_(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:ic(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},nc).models}function X_(e,t){return Z_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Z_(e,t,n,r,i,a){var o,s=5;if(pe(e))return U_.Not;var c,l;if(r){var u=r[a];W(u)?(c=u.name,l=u.type):U(u)&&(c=u)}if(l!=null)return l===`ordinal`?U_.Must:U_.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return U_.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return U_.Not;var f=_[c];if(!f||pe(f))return U_.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Ns(g);if(!V(y))return U_.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=U(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?U_.Might:U_.Not;if(t&&e!==`-`)return U_.Must}return U_.Not}var Q_=K();function $_(e,t){Ce(Q_.get(e)==null&&t),Q_.set(e,t)}function ev(e,t,n){var r=Q_.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var tv=Qs(),nv=Qs(),rv=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=As(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return ov(this,tv,r,i,e,t,n)},e.prototype.clearColorPalette=function(){sv(this,tv)},e}();function iv(e,t,n,r){return ov(e,nv,As(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function av(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function ov(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:av(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function sv(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var cv,lv,uv,dv=`\0_ec_inner`,fv=1,pv=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Rh(r),this._locale=new Rh(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=vv(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,vv(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?uv(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&F(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=K(),s=t&&t.replaceMergeMainTypeMap;G_(this),F(e,function(e,t){e!=null&&(M_.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?A(e):j(n[t],e,!0))}),s&&s.each(function(e,t){M_.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),M_.topologicalTravel(a,M_.getAllClassMainTypes(),c,this);function c(t){var a=ev(this,t,As(e[t])),o=r.get(t),c=Fs(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Js(c,t,M_),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;F(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=M_.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=M({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),M(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&cv(this)}this._seriesIndices||cv(this)},t.prototype.getOption=function(){var e=A(this.option);return F(e,function(t,n){if(M_.hasClass(n)){for(var r=As(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Ks(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[dv],e},t.prototype.setTheme=function(e){this._theme=new Rh(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?L(a,function(e){return!!e}):gv(`name`,i,a):gv(`id`,r,a):(o=[],F(As(n),function(e){a[e]&&o.push(a[e])})),_v(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(_v(r?this.queryComponents(r):L(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?L(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(H(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=U(e)?r.get(e):W(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ws(e,null);return L(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return L(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return L(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){lv(this),F(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){F(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){lv(this),F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return F(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return lv(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){lv(this);var n=[];F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){cv(this);var t=this._componentsMap,n=[];t.each(function(e,t){M_.hasClass(t)&&n.push(t)}),M_.topologicalTravel(n,M_.getAllClassMainTypes(),function(n){F(t.get(n),function(t){t&&(n!==`series`||!mv(t,e))&&t.restoreData()})})},t.internalField=function(){cv=function(e){var t=e._seriesIndices=[];F(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},lv=function(e){},uv=function(e,t){e.option={},e.option[dv]=fv,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;W(n)&&n.enabled==null&&(n.enabled=!0),hv(t,e._theme.option),j(t,H_,!1),e._mergeOption(t,null)}}(),t}(Rh);function mv(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function hv(e,t){var n=e.color&&!e.colorLayer;F(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||M_.hasClass(r)||(typeof t==`object`?e[r]=e[r]?j(e[r],t,!1):A(t):e[r]??(e[r]=t))})}function gv(e,t,n){if(V(t)){var r=K();return F(t,function(e){e!=null&&Ws(e,null)!=null&&r.set(e,!0)}),L(n,function(t){return t&&r.get(t[e])})}var i=Ws(t,null);return L(n,function(t){return t&&i!=null&&t[e]===i})}function _v(e,t){return t.hasOwnProperty(`subType`)?L(e,function(e){return e&&e.subType===t.subType}):e}function vv(e){var t=K();return e&&F(As(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ae(pv,rv);var yv=/^(min|max)?(.+)$/,bv=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(F(As(e.series),function(e){e&&e.data&&pe(e.data)&&Ee(e.data)}),F(As(e.dataset),function(e){e&&e.source&&pe(e.source)&&Ee(e.source)})),e=A(e);var r=this._optionBackup,i=xv(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],A(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=A(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)Sv(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!wv(a,this._currentMediaIndices)&&(o=I(a,function(e){return A(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function xv(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&V(l)&&F(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),F(c,function(e){return f(e)}),F(r,function(e){return f(e.option)});function f(e){F(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function Sv(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return F(e,function(e,t){var n=t.match(yv);if(n&&n[1]&&n[2]){var a=n[1];Cv(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function Cv(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function wv(e,t){return e.join(`,`)===t.join(`,`)}var Tv=F,Ev=W,Dv=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Ov(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Dv.length;n<r;n++){var i=Dv[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?j(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?j(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function kv(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,N(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Av(e){kv(e,`itemStyle`),kv(e,`lineStyle`),kv(e,`areaStyle`),kv(e,`label`),kv(e,`labelLine`),kv(e,`upperLabel`),kv(e,`edgeLabel`)}function jv(e,t){var n=Ev(e)&&e[t],r=Ev(n)&&n.textStyle;if(r)for(var i=0,a=Ms.length;i<a;i++){var o=Ms[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Mv(e){e&&(Av(e),jv(e,`label`),e.emphasis&&jv(e.emphasis,`label`))}function Nv(e){if(Ev(e)){Ov(e),Av(e),jv(e,`label`),jv(e,`upperLabel`),jv(e,`edgeLabel`),e.emphasis&&(jv(e.emphasis,`label`),jv(e.emphasis,`upperLabel`),jv(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(Ov(t),Mv(t));var n=e.markLine;n&&(Ov(n),Mv(n));var r=e.markArea;r&&Mv(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!pe(a))for(var o=0;o<a.length;o++)Mv(a[o]);F(e.categories,function(e){Av(e)})}if(i&&!pe(i))for(var o=0;o<i.length;o++)Mv(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Mv(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)V(c[o])?(Mv(c[o][0]),Mv(c[o][1])):Mv(c[o]);e.type===`gauge`?(jv(e,`axisLabel`),jv(e,`title`),jv(e,`detail`)):e.type===`treemap`?(kv(e.breadcrumb,`itemStyle`),F(e.levels,function(e){Av(e)})):e.type===`tree`&&Av(e.leaves)}}function Pv(e){return V(e)?e:e?[e]:[]}function Fv(e){return(V(e)?e[0]:e)||{}}function Iv(e,t){Tv(Pv(e.series),function(e){Ev(e)&&Nv(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Tv(n,function(t){Tv(Pv(e[t]),function(e){e&&(jv(e,`axisLabel`),jv(e.axisPointer,`label`))})}),Tv(Pv(e.parallel),function(e){var t=e&&e.parallelAxisDefault;jv(t,`axisLabel`),jv(t&&t.axisPointer,`label`)}),Tv(Pv(e.calendar),function(e){kv(e,`itemStyle`),jv(e,`dayLabel`),jv(e,`monthLabel`),jv(e,`yearLabel`)}),Tv(Pv(e.radar),function(e){jv(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Tv(Pv(e.geo),function(e){Ev(e)&&(Mv(e),Tv(Pv(e.regions),function(e){Mv(e)}))}),Tv(Pv(e.timeline),function(e){Mv(e),kv(e,`label`),kv(e,`itemStyle`),kv(e,`controlStyle`,!0);var t=e.data;V(t)&&F(t,function(e){W(e)&&(kv(e,`label`),kv(e,`itemStyle`))})}),Tv(Pv(e.toolbox),function(e){kv(e,`iconStyle`),Tv(e.feature,function(e){kv(e,`iconStyle`)})}),jv(Fv(e.axisPointer),`label`),jv(Fv(e.tooltip).axisPointer,`label`)}function Lv(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Rv(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function zv(e){e&&F(Bv,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Bv=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Vv=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Hv=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Uv(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Hv.length;n++){var r=Hv[n][1],i=Hv[n][0];t[r]!=null&&(t[i]=t[r])}}function Wv(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Gv(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Kv(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function qv(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&qv(e[n].children,t)}function Jv(e,t){Iv(e,t),e.series=As(e.series),F(e.series,function(e){if(W(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),Wv(e.label);var n=e.data;if(n&&!pe(n))for(var r=0;r<n.length;r++)Wv(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Lv(e,`pointer.color`);i!=null&&Rv(e,`itemStyle.color`,i)}else if(t===`bar`){Uv(e),Uv(e.backgroundStyle),Uv(e.emphasis);var n=e.data;if(n&&!pe(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Uv(n[r]),Uv(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Gv(e),qv(e.data,Gv)}else t===`graph`||t===`sankey`?Kv(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&N(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),zv(e)}}),e.dataRange&&(e.visualMap=e.dataRange),F(Vv,function(t){var n=e[t];n&&(V(n)||(n=[n]),F(n,function(e){zv(e)}))})}var Yv=Ac(Xv);function Xv(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),F(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),Zv(e))})}function Zv(e){F(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=is(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Qv=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,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 r=t[n];r.type==null&&X_(this,n)===U_.Must&&(r.type=`ordinal`)}}return e}();function $v(e){return e instanceof Qv}function ey(e,t,n){n||=ry(e);var r=t.seriesLayoutBy,i=iy(e,n,r,t.sourceHeader,t.dimensions);return new Qv({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:A(t)})}function ty(e){return new Qv({data:e,sourceFormat:pe(e)?xd:_d})}function ny(e){return new Qv({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:A(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function ry(e){var t=Sd;if(pe(e))t=xd;else if(V(e)){e.length===0&&(t=vd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(V(i)||pe(i)){t=vd;break}if(W(i)){t=yd;break}}}}else if(W(e)){for(var a in e)if(Fe(e,a)&&oe(e[a])){t=bd;break}}return t}function iy(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:oy(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?sy(function(e){e!=null&&e!==`-`&&(U(e)?o??=1:o=0)},n,s,10):o=de(r)?r:+!!r,!i&&o===1&&(i=[],sy(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=ay(e);else if(t===`keyedColumns`)i||(i=[],F(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Ns(e[0]);a=V(c)&&c.length||1}return{startIndex:o,dimensionsDefine:oy(i),dimensionsDetectedCount:a}}function ay(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return z(n)}function oy(e){if(e){var t=K();return I(e,function(e,n){e=W(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function sy(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function cy(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var ly,uy,dy,fy,py,my,hy=function(){function e(e,t){var n=$v(e)?e:ty(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),my(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;my=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=py[Ey(o,s)];M(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=B(yy(o,s),null,i,c,l),e.count=B(Sy(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};py=(e={},e[vd+`_`+Cd]={pure:!0,appendData:i},e[vd+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[yd]={pure:!0,appendData:i},e[bd]={pure:!0,appendData:function(e){var t=this._data;F(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[_d]={appendData:i},e[xd]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),gy=function(e){V(e)||Ts(`series.data or dataset.source must be an array.`)};ly={},ly[vd+`_`+Cd]=gy,ly[vd+`_row`]=gy,ly[yd]=gy,ly[bd]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Ts(`dimension name must not be null/undefined.`)},ly[_d]=gy;var _y=function(e,t,n,r){return e[r]},vy=(uy={},uy[vd+`_`+Cd]=function(e,t,n,r){return e[r+t]},uy[vd+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},uy[yd]=_y,uy[bd]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},uy[_d]=_y,uy);function yy(e,t){return vy[Ey(e,t)]}var by=function(e,t,n){return e.length},xy=(dy={},dy[vd+`_`+Cd]=function(e,t,n){return Math.max(0,e.length-t)},dy[vd+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},dy[yd]=by,dy[bd]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},dy[_d]=by,dy);function Sy(e,t){return xy[Ey(e,t)]}var Cy=function(e,t,n){return e[t]},wy=(fy={},fy[vd]=Cy,fy[yd]=function(e,t,n){return e[n]},fy[bd]=Cy,fy[_d]=function(e,t,n){var r=Ns(e);return r instanceof Array?r[t]:r},fy[xd]=Cy,fy);function Ty(e){return wy[e]}function Ey(e,t){return e===`arrayRows`?e+`_`+t:e}function Dy(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Ty(a)(r,o,s)}var c=r;return a===`original`&&(c=Ns(r)),c}}}var Oy=/\{@(.+?)\}/g,ky=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&V(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),H(i))return s.status=t,s.dimensionIndex=r,i(s);if(U(i))return Xg(i,s).replace(Oy,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Dy(o,e,i);if(a&&V(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Dy(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Ay(e){var t,n;return W(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function jy(e){return new My(e)}var My=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(V(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Ny.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Ny.next},this.context)},e.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),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Ny=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function Py(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!de(e)&&e!=null&&e!==`-`&&(e=+ls(e)),e==null||e===``?NaN:Number(e))}var Fy=K({number:function(e){return parseFloat(e)},time:function(e){return+ls(e)},trim:function(e){return U(e)?we(e):e}});function Iy(e){return Fy.get(e)}var Ly={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Ry=function(){function e(e,t){de(t)||Es(``),this._opFn=Ly[e],this._rvalFloat=hs(t)}return e.prototype.evaluate=function(e){return de(e)?this._opFn(e,this._rvalFloat):this._opFn(hs(e),this._rvalFloat)},e}(),zy=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=de(e)?e:hs(e),r=de(t)?t:hs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=U(e),s=U(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),By=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=hs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=hs(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Vy(e,t){return e===`eq`||e===`ne`?new By(e===`eq`,t):Fe(Ly,e)?new Ry(e,t):null}function Hy(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Uy(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Wy=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Py(e,t)},e}();function Gy(e,t){var n=new Wy,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Es(``);var o=[],s={},c=e.dimensionsDefine;if(c)F(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(Fe(s,n)&&Es(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=yy(i,Cd);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=B(Ky,null,e)),n.cloneRawData=B(qy,null,e),n.count=B(Sy(i,Cd),null,r,a,o);var d=Ty(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=B(Jy,null,o,s),n.cloneAllDimensionInfo=B(Yy,null,o),n}function Ky(e){var t=e.sourceFormat;return eb(t)||Es(``),e.data}function qy(e){var t=e.sourceFormat,n=e.data;if(eb(t)||Es(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(M({},n[i]));return r}}function Jy(e,t,n){if(n!=null){if(de(n)||!isNaN(n)&&!Fe(t,n))return e[n];if(Fe(t,n))return t[n]}}function Yy(e){return A(e)}var Xy=K();function Zy(e){e=A(e);var t=e.type,n=``;t||Es(n);var r=t.split(`:`);r.length!==2&&Es(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Xy.set(t,e)}function Qy(e,t,n){var r=As(e),i=r.length;i||Es(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=$y(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function $y(e,t,n,r){var i=``;t.length||Es(i),W(e)||Es(i);var a=e.type,o=Xy.get(a);o||Es(i);var s=I(t,function(e){return Gy(e,o)});return I(As(o.transform({upstream:s[0],upstreamList:s,config:A(e.config)})),function(e,n){var r=``;W(e)||Es(r),e.data||Es(r),eb(ry(e.data))||Es(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Cd,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Cd,sourceHeader:0,dimensions:e.dimensions};return ey(e.data,i,null)})}function eb(e){return e===`arrayRows`||e===`objectRows`}var tb=typeof Uint32Array>`u`?Array:Uint32Array,nb=typeof Uint16Array>`u`?Array:Uint16Array,rb=typeof Int32Array>`u`?Array:Int32Array,ib=typeof Float64Array>`u`?Array:Float64Array,ab={float:ib,int:rb,ordinal:Array,number:Array,time:ib},ob;function sb(e){return e>65535?tb:nb}function cb(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function lb(e,t,n,r,i){var a=ab[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var ub=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=ob[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],cy(r),this._dimensions=I(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new ab[t||`float`](this._rawCount),this._rawExtent[i]=pc(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=pc());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];lb(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=ob.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=I(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=pc()),lb(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.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},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),Zo(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.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 r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=sb(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(sb(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=z(e),i=r.length;if(!i)return this;var a=t.count(),o=new(sb(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=pc();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(sb(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)?(T++,w<0&&(w=v)):(l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v))}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(sb(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=pc(),d=new(sb(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=pc();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Hy(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||Uy(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&se(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?cb(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=A(this._extent),e._rawExtent=A(this._rawExtent)},e.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 r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Py(e[r],this._dimensions[r])}ob={arrayRows:e,objectRows:function(e,t,n,r){return Py(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Py(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),db=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(pb(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=pe(o)?xd:_d,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[ey(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[ey(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&mb(``);var i,a=[],o=[];return F(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&mb(``),a.push(t),o.push(e._getVersionSign())}),n?i=Qy(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[ny(a[0])]),{sourceList:i,upstreamSignList:o}},e.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}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];pb(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new ub,o.initData(new hy(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(pb(e)){var t=J_(e);return t?[t.getSourceManager()]:[]}return I(Y_(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(pb(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function fb(e){e.option.transform&&Ee(e.option.transform)}function pb(e){return e.mainType===`series`}function mb(e){throw Error(e)}var hb=`line-height:1`;function gb(e){var t=e.lineHeight;return t==null?hb:`line-height:`+Ot(t+``)+`px`}function _b(e,t){var n=e.color||P_.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||P_.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Ot(r+``)+`px;color:`+Ot(n)+`;font-weight:`+Ot(i+``),valueStyle:`font-size:`+Ot(o+``)+`px;color:`+Ot(a)+`;font-weight:`+Ot(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var vb=[0,10,20,30],yb=[``,`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];function bb(e,t){return t.type=e,t}function xb(e){return e.type===`section`}function Sb(e){return xb(e)?wb:Tb}function Cb(e){if(xb(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=Cb(e);n>=t&&(t=n+ +(r&&(!n||xb(e)&&!e.noHeader)))}),t}return 0}function wb(e,t,n,r){var i=t.noHeader,a=Db(Cb(t)),o=[],s=t.blocks||[];Ce(!s||V(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Fe(l,c)){var u=new zy(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}F(s,function(n,i){var s=t.valueFormatter,c=Sb(n)(s?M(M({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Ob(r,o.join(``),i?n:a.html);if(i)return d;var f=qg(t.header,`ordinal`,e.useUTC),p=_b(r,e.renderMode).nameStyle,m=gb(r);return e.renderMode===`richText`?jb(e,f,p)+a.richText+d:Ob(r,`<div style="`+p+`;`+m+`;">`+Ot(f)+`</div>`+d,n)}function Tb(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=V(e)?e:[e],I(e,function(e,t){return qg(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||P_.color.secondary,i),f=a?``:qg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=_b(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:jb(e,f,v))+(o?``:Mb(e,m,h,g,y)):Ob(r,(s?``:d)+(a?``:kb(f,!s,v))+(o?``:Ab(m,h,g,y)),n)}}function Eb(e,t,n,r,i,a){if(e)return Sb(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Db(e){return{html:vb[e],richText:yb[e]}}function Ob(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=gb(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function kb(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Ot(e)+`</span>`}function Ab(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return Ot(e)}).join(` `)+`</span>`}function jb(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Mb(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(` `):t,a)}function Nb(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return t_(n)}function Pb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Fb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_s()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Qg({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?F(t,function(e){return M(n,e)}):M(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Ib(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=V(s),l=Nb(t,n),u,d,f,p;if(o>1||c&&!o){var m=Lb(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Dy(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Gs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return bb(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[bb(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!we(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Lb(e,t,n,r,i){var a=t.getData(),o=se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?F(r,function(e){u(Dy(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(bb(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var Rb=Qs();function zb(e,t){return e.getName(t)||e.getId(t)}var Bb=`__universalTransitionEnabled`,Vb=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=jy({count:Wb,reset:Gb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Rb(this).sourceManager=new db(this)).prepareSource();var r=this.getInitialData(e,n);qb(r,this),this.dataTask.context.data=r,Rb(this).dataBeforeProcessed=r,Hb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=D_(this),r=n?k_(e):{},i=this.subType;M_.hasClass(i)&&(i+=`Series`),j(e,t.getTheme().get(this.subType)),j(e,this.getDefaultOption()),js(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&O_(e,r,n)},t.prototype.mergeOption=function(e,t){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=D_(this);n&&O_(this.option,e,n);var r=Rb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);qb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Rb(this).dataBeforeProcessed=i,Hb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!pe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&js(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Yb(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Rb(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Yb(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Rb(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Rb(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rb(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Ib({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(i.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=rv.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var a=0;a<e.length;a++){var o=e[a],s=zb(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=z(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[zb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=zb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=zb(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return M_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(M_);ae(Vb,ky),ae(Vb,rv),zc(Vb,M_);function Hb(e){var t=e.name;Gs(e)||(e.name=Ub(e)||t)}function Ub(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return F(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Wb(e){return e.model.getRawData().count()}function Gb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Kb}function Kb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qb(e,t){F(Me(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,le(Jb,t))})}function Jb(e,t){var n=Yb(e);return n&&n.setOutputEnd((t||this).count()),t}function Yb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Xb=function(){function e(){this.group=new po,this.uid=Bh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Lc(Xb),Wc(Xb);function Zb(){var e=Qs();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Qb=Qs(),$b=Zb(),ex=function(){function e(){this.group=new po,this.uid=Bh(`viewChart`),this.renderTask=jy({plan:rx,reset:ix}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Zm(this.group,e)},e.markUpdateMethod=function(e,t){Qb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function tx(e,t,n){e&&jf(e)&&(t===`emphasis`?of:sf)(e,n)}function nx(e,t,n){var r=Zs(e,t),i=t&&t.highlightKey!=null?Nf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){tx(e,n,i)}):F(As(r),function(t){tx(e.getItemGraphicEl(t),n,i)})}Lc(ex,[`dispose`]),Wc(ex);function rx(e){return $b(e.model)}function ix(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Qb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),ax[c]}var ax={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ox=`\0__throttleOriginMethod`,sx=`\0__throttleRate`,cx=`\0__throttleType`;function lx(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function ux(e,t,n,r){var i=e[t];if(i){var a=i[ox]||i,o=i[cx];if(i[sx]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=lx(a,n,r===`debounce`),i[ox]=a,i[cx]=r,i[sx]=n}return i}}function dx(e,t){var n=e[t];n&&n[ox]&&(n.clear&&n.clear(),e[t]=n[ox])}var fx=Qs(),px={itemStyle:Gc(Fh,!0),lineStyle:Gc(Mh,!0)},mx={lineStyle:`stroke`,itemStyle:`fill`};function hx(e,t){return e.visualStyleMapper||px[t]||(console.warn(`Unknown style type '`+t+`'.`),px.itemStyle)}function gx(e,t){return e.visualDrawType||mx[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var _x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=hx(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=gx(e,r),c=a[s],l=H(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=M({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},vx=new Rh,yx={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=hx(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){vx.option=n[r];var o=i(vx);M(e.ensureUniqueItemVisual(t,`style`),o),vx.option.decal&&(e.setItemVisual(t,`decal`,vx.option.decal),vx.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},bx={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();fx(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=fx(e).scope,a=gx(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},xx=Math.PI;function Sx(e,t){t||={},N(t,{text:`loading`,textColor:P_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:P_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new po,r=new qu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Qu({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new qu({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Up({shape:{startAngle:-xx/2,endAngle:-xx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:xx*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:xx*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Cx=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Oc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Ce(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;F(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.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)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=K(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||jy({plan:kx,reset:Ax,count:Nx}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||jy({reset:Tx});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Ce(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):F(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,jy({reset:Ex,onDirty:Ox})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:Px(e)}),e.uid=Bh(`stageHandler`),t&&(e.visualType=t),e},e}();function Tx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ex(e){return e.dirtyOnOverallProgress&&Dx}function Dx(){this.agent.dirty(),this.getDownstream().dirty()}function Ox(){this.agent&&this.agent.dirty()}function kx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ax(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=As(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return Mx(t)}):jx}var jx=Mx(0);function Mx(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function Nx(e){return e.data.count()}function Px(e){Lx=null;try{e(Fx,Ix)}catch{}return Lx}var Fx={},Ix={},Lx;Rx(Fx,pv),Rx(Ix,Ed),Fx.eachSeriesByType=Fx.eachRawSeriesByType=function(e){Lx=e},Fx.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Lx=e.subType)};function Rx(e,t){for(var n in t.prototype)e[n]=Ie}var Q=P_.darkColor,zx=Q.background,Bx=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},Vx={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},Hx={darkMode:!0,color:Q.theme,backgroundColor:zx,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:zx,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:Vx,y:Vx,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:Bx(),logAxis:Bx(),valueAxis:Bx(),categoryAxis:Bx(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=Bx();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};Hx.categoryAxis.splitLine.show=!1;var Ux=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=Pc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};F(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Wx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Gx=Wx.concat([`symbolKeepAspect`]),Kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Wx.length;o++){var s=Wx[o],c=e.get(s);H(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(M({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=z(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},qx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<Gx.length;r++){var i=Gx[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Jx(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function Yx(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function Xx(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r)}}function Zx(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}F([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=M({},t),i.dispatchAction(M(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Qx(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Zs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:M({},r)})}})}function $x(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Qx(`map`,`selectchanged`,t,r,e),Qx(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Qx(`map`,`selected`,t,r,e),Qx(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Qx(`map`,`unselected`,t,r,e),Qx(`pie`,`unselected`,t,r,e))})}function eS(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var tS=new mt,nS={};function rS(e,t){nS[e]=t}function iS(e){return nS[e]}var aS={};function oS(e,t){aS[e]=t}function sS(e){return aS[e]}var cS=Qs();function lS(e){cS(e).prepare={}}function uS(e){cS(e).fullUpdate={}}function dS(e){return cS(e).prepare}function fS(e){return cS(e).fullUpdate}var pS=Math.round(Math.random()*9),mS=typeof Object.defineProperty==`function`,hS=function(){function e(){this._id=`__ec_inner_`+pS++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return mS?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),gS=Z.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),_S={line:Lp,rect:qu,roundRect:qu,square:qu,circle:sp,diamond:Z.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Z.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Z.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:gS},vS={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},yS={};F(_S,function(e,t){yS[t]=new e});var bS=Z.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Ja(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=yS[r];i||=(r=`rect`,yS[r]),vS[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function xS(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||P_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function SS(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Em(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Tm(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new bS({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=xS,a&&c.setColor(a),c}function CS(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function wS(e,t){if(e!=null)return V(e)||(e=[e,e]),[Wo(e[0],t[0])||0,Wo(G(e[1],e[0]),t[1])||0]}function TS(e){return isFinite(e)}function ES(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=TS(r)?r:0,i=TS(i)?i:1,a=TS(a)?a:0,o=TS(o)?o:0,e.createLinearGradient(r,a,i,o)}function DS(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=TS(o)?o:.5,s=TS(s)?s:.5,c=c>=0&&TS(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function OS(e,t,n){for(var r=t.type===`radial`?DS(e,t,n):ES(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function kS(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function AS(e){return parseInt(e,10)}function jS(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||AS(s[r])||AS(e.style[r]))-(AS(s[a])||0)-(AS(s[o])||0)||0}function MS(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:de(e)?[e]:V(e)?e:null}function NS(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&MS(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=I(n,function(e){return e/i}),r/=i)}return[n,r]}var PS=new lu(!0);function FS(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function IS(e){return typeof e==`string`&&e!==`none`}function LS(e){var t=e.fill;return t!=null&&t!==`none`}function RS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function zS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function BS(e,t,n){var r=Xc(t.image,t.__image,n);if(Qc(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Le),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VS(e,t,n,r,i){var a,o=FS(n),s=LS(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||PS,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?OS(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?OS(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?BS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?BS(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=NS(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&zS(e,n),s&&RS(e,n)):(s&&RS(e,n),o&&zS(e,n)),T&&e.setLineDash([])}function HS(e,t,n){var r=t.__image=Xc(n.image,t.__image,t,t.onload);if(r&&Qc(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function US(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=NS(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(FS(n)&&e.strokeText(i,n.x,n.y),LS(n)&&e.fillText(i,n.x,n.y)):(LS(n)&&e.fillText(i,n.x,n.y),FS(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var WS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],GS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function KS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){rC(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Cl.opacity:o}(r||t.blend!==n.blend)&&(a||=(rC(e,i),!0),e.globalCompositeOperation=t.blend||Cl.blend);for(var s=0;s<WS.length;s++){var c=WS[s];(r||t[c]!==n[c])&&(a||=(rC(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(rC(e,i),!0),e.shadowColor=t.shadowColor||Cl.shadowColor),a}function qS(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=KS(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(rC(e,i),!0),IS(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(rC(e,i),!0),IS(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(rC(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(rC(e,i),!0),e.lineWidth=c)}for(var l=0;l<GS.length;l++){var u=GS[l],d=u[0];(r||a[d]!==o[d])&&(s||=(rC(e,i),!0),e[d]=a[d]||u[1])}return s}function JS(e,t,n,r,i){return KS(e,t.style,n&&n.style,r,i)}function YS(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function XS(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),YS(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function ZS(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var QS=1,$S=2,eC=3,tC=4;function nC(e){var t=LS(e),n=FS(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function rC(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function iC(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};aC(e,t,n),oC(e,n)}function aC(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))t.__dirty&=-2,t.__isRendered=!1;else{var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||kS(i,a))&&(a&&(rC(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(rC(e,n),e.save(),XS(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)t.__dirty&=-2,t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Z&&t.autoBatch&&nC(o);s||ZS(r,l.transform)?(rC(e,n),YS(e,t)):u||rC(e,n),t instanceof Z?(n.lastDrawType!==QS&&(c=!0,n.lastDrawType=QS),qS(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),VS(e,t,o,u,n)):t instanceof Fu?(n.lastDrawType!==eC&&(c=!0,n.lastDrawType=eC),qS(e,t,l,c,n),US(e,t,o)):t instanceof zu?(n.lastDrawType!==$S&&(c=!0,n.lastDrawType=$S),JS(e,t,l,c,n),HS(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==tC&&(c=!0,n.lastDrawType=tC),sC(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&rC(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}}function oC(e,t){rC(e,t),t.prevElClipPaths&&e.restore()}function sC(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var cC=new hS,lC=new kr(100),uC=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function dC(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&cC.delete(e);var a=cC.get(e);if(a)return a;var o=N(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,cC.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<uC.length;++s){var c=o[uC[s]];if(c!=null&&!V(c)&&!U(c)&&!de(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=lC.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=pC(o.dashArrayX),f=mC(o.dashArrayY),m=fC(o.symbol),h=hC(d),g=gC(f),_=!i&&p.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&lC.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=ys(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=ys(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,p=0,h=0,x=0;p<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=p+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,ee=x/2%m[u].length;O(w,T,E,D,m[u][ee])}p+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function O(e,t,a,s,c){var l=i?1:n,u=SS(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else iC(b,u)}}}}function fC(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return fC([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function pC(e){if(!e||e.length===0)return[[0,0]];if(de(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!de(e[r])){n=!1;break}if(n)return pC([e]);for(var i=[],r=0;r<e.length;++r)if(de(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=I(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function mC(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(de(e)){var t=Math.ceil(e);return[t,t]}var n=I(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function hC(e){return I(e,function(e){return gC(e)})}function gC(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var _C=Ac(vC);function vC(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=dC(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=dC(i,t)}}})}var yC=`6.1.0`,bC={zrender:`6.1.0`},xC=1,SC=800,CC=900,wC=920,TC=1e3,EC=2e3,DC=5e3,OC=1e3,kC=1100,AC=2e3,jC=3e3,MC=4e3,NC=4500,PC=4600,FC=5e3,IC=6e3,LC=7e3,RC={PROCESSOR:{SERIES_FILTER:SC,AXIS_STATISTICS:wC,FILTER:TC,STATISTIC:DC,STATISTICS:DC},VISUAL:{LAYOUT:OC,PROGRESSIVE_LAYOUT:kC,GLOBAL:AC,CHART:jC,POST_CHART_LAYOUT:PC,COMPONENT:MC,BRUSH:FC,CHART_ITEM:NC,ARIA:IC,DECAL:LC}},zC=`__flagInMainProcess`,BC=`__mainProcessVersion`,VC=`__pendingUpdate`,HC=`__needsUpdateStatus`,UC=/^[a-zA-Z0-9_]+$/,WC=`__connectUpdateStatus`,GC=0,KC=1,qC=2;function JC(e){return function(){var t=[...arguments];if(this.isDisposed())this.id;else return XC(this,e,t)}}function YC(e){return function(){var t=[...arguments];return XC(this,e,t)}}function XC(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),mt.prototype[t].apply(e,n)}var ZC=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mt),QC=ZC.prototype;QC.on=YC(`on`),QC.off=YC(`off`);var $C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw=function(e){n(t,e);function t(t,n,r){var i=e.call(this,new Ux)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[BC]=1,r.ssr&&Do(function(e){var t=fd(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=bo(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=lx(B(c.flush,c),17),i._updateTheme(n),i._locale=$h(r.locale||Zh),i._coordSysMgr=new a_;var l=i._api=pw(i);function u(e,t){return e.__prio-t.__prio}return Kn(Ew,u),Kn(ww,u),i._scheduler=new Cx(i,l,ww,Ew),i._messageCenter=new ZC,i._initEvents(),i.resize=B(i.resize,i),c.animation.on(`frame`,i._onframe,i),cw(c,i),lw(c,i),Ee(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(gw(this),this[VC]){var r=this[VC].silent;this[zC]=!0,_w(this);try{$C(this),nw.update.call(this,null,this[VC].updateParams)}catch(e){throw this[zC]=!1,this[VC]=null,e}this._zr.flush(),this[zC]=!1,this[VC]=null,ow.call(this,r),sw.call(this,r)}else if(e.unfinished){var i=xC;do{e.unfinished=!1;var a=p.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),iw(this,t),e.performVisualTasks(t),fw(this,this._model,n,`remain`,{}),i-=p.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[zC]){if(this._disposed)this.id;else{var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[zC]=!0,_w(this),!this._model||t){var o=new bv(this._api),s=this._theme,c=this._model=new pv;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Tw);var l={seriesTransition:a,optionChanged:!0};if(n)this[VC]={silent:r,updateParams:l},this[zC]=!1,this.getZr().wakeUp();else{try{$C(this),nw.update.call(this,null,l)}catch(e){throw this[VC]=null,this[zC]=!1,e}this._ssr||this._zr.flush(),this[VC]=null,this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[zC]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[VC]&&(r??=this[VC].silent,i=this[VC].updateParams,this[VC]=null),this[zC]=!0,_w(this);try{this._updateTheme(e),n.setTheme(this._theme),$C(this),nw.update.call(this,{type:`setTheme`},i)}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype._updateTheme=function(e){U(e)&&(e=Dw[e]),e&&(e=A(e),e&&Jv(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||i.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;F(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return F(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Aw[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();F(kw,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(A(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,m=l-s,h=p.createCanvas(),g=bo(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:m}),t){var _=``;return F(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new qu({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new zu({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return rw(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return rw(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return rw(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return F(ec(n,e),function(e,n){n.indexOf(`Models`)>=0&&F(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=ec(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Yx(i,t):Jx(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;F(bw,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&eS(i,function(e){var t=fd(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=M({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;F(Cw,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),$x(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&oc(this.getDom(),Nw,``);var e=this,t=e._api,n=e._model;F(e._componentsViews,function(e){e.dispose(n,t)}),F(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete kw[e.id]}},t.prototype.resize=function(e){if(!this[zC]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[VC]&&(r??=this[VC].silent,n=!0,this[VC]=null),this[zC]=!0,_w(this);try{n&&$C(this),nw.update.call(this,{type:`resize`,animation:M({duration:0},e&&e.animation)})}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(W(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Ow[e]){var n=Ow[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=Sw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(W(t)||(t={silent:!!t}),xw[e.type]&&this._model){if(this[zC])this._pendingActions.push(e);else{var n=t.silent;aw.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&i.browser.weChat&&this._throttledZrFlush(),ow.call(this,n),sw.call(this,n)}}},t.prototype.updateLabelLayout=function(){tS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){$C=function(e){lS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),ew(e,!0),ew(e,!1),t.plan()},ew=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Pc(e.type);u=new(t?Xb.getClass(d.main,d.sub):ex.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},tw=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){F([].concat(e._componentsViews,e._chartsViews),l);return}var o=ac(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),F(As(s),function(e){var t=Ws(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Ff(n)){if(t instanceof Vb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&gf(t,n,e._api);else{var r=_f(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&hf(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?of(e):sf(e)})}}else Pf(n)&&t instanceof Vb&&(bf(t,n,e._api),xf(t),hw(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},nw={prepareAndUpdate:function(e){$C(this),nw.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){uS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),tS.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),iw(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),uw(this,r,i,e,n),tS.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),fw(t,n,r,e,{},a),tS.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ex.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),uw(this,n,this._api,e,{}),tS.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),ex.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),tS.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){nw.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed)e.id;else for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ec(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}rw=e,iw=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},aw=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=xw[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Pc(s[0]);this[zC]=!0,_w(this);var u=[e],d=!1;e.batch&&(d=!0,u=I(e.batch,function(t){return t=N(M({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Pf(e),_=Ff(e);if(_&&pf(this._api),F(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=M({},t),p.type=h,f.push(p),_){var a=tc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;tw(n,c,t,u),hw(n)}else g?(tw(n,c,t,`series`),hw(n)):l&&tw(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[VC]?($C(this),nw.update.call(this,e),this[VC]=null):nw[c].call(this,e)}catch(e){throw this[zC]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[zC]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Ce(W(y)),v=N({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},ow=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();aw.call(this,n,e)}},sw=function(e){!e&&this.trigger(`updated`)},cw=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[VC]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},lw=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=eS(n,jf);r&&(vf(r,e,t._api),hw(t))}).on(`mouseout`,function(e){var n=e.target,r=eS(n,jf);r&&(yf(r,e,t._api),hw(t))}).on(`click`,function(e){var n=e.target,r=eS(n,function(e){return fd(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=fd(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function r(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Kn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),F(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}uw=function(e,t,n,i,a){r(t),dw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive=!1}),fw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},dw=function(e,t,n,r,i,a){F(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),c(i,e),u(i,e)})},fw=function(e,t,n,r,i,a){var d=e._scheduler;i=M(i||{},{updatedSeries:t.getSeries()}),tS.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),a&&a.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),s(t,n),xf(t)}),d.unfinished=f||d.unfinished,tS.trigger(`series:layoutlabels`,t,n,i),tS.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];c(t,n),u(t,n)}),o(e,t),tS.trigger(`series:afterupdate`,t,n,i)},hw=function(e){e[HC]=!0,e.getZr().wakeUp()},_w=function(e){e[BC]=(e[BC]+1)%1e6},gw=function(e){e[HC]&&(e.getZr().storage.traverse(function(e){um(e)||a(e)}),e[HC]=!1)};function a(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function o(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,a=0;r.traverse(function(e){e.isGroup||a++});var o=a>G(t.get(`hoverLayerThreshold`),H_.hoverLayerThreshold)&&!i.node&&!i.worker;(e._usingTHL||o)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!o)})}}),e._usingTHL=o)}}function s(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function c(e,t){if(!e.preventAutoZ){var n=nh(e);t.eachRendered(function(e){return ih(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!um(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function u(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),i=n.get(`duration`),o=i>0?{duration:i,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(um(e))return;if(e instanceof Z&&If(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),i=e.getTextGuideLine();n&&(n.stateTransition=o),i&&(i.stateTransition=o)}e.__dirty&&a(e)}})}pw=function(e){return new(function(t){n(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){of(t,n),hw(e)},r.prototype.leaveEmphasis=function(t,n){sf(t,n),hw(e)},r.prototype.enterBlur=function(t){cf(t),hw(e)},r.prototype.leaveBlur=function(t){lf(t),hw(e)},r.prototype.enterSelect=function(t){uf(t),hw(e)},r.prototype.leaveSelect=function(t){df(t),hw(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r.prototype.getECUpdateCycleVersion=function(){return e[BC]},r.prototype.usingTHL=function(){return e._usingTHL},r}(Ed))(e)},mw=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[WC]=t}}F(Sw,function(n,r){e._messageCenter.on(r,function(n){if(Aw[e.group]&&e[WC]!==GC){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];F(kw,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,GC),F(i,function(e){e[WC]!==KC&&e.dispatchAction(r)}),t(i,qC)}})})}}(),t}(mt),yw=vw.prototype;yw.on=JC(`on`),yw.off=JC(`off`),yw.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var bw=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],xw={},Sw={},Cw={},ww=[],Tw=[],Ew=[],Dw={},Ow={},kw={},Aw={},jw=new Date-0,Mw=new Date-0,Nw=`_echarts_instance_`;function Pw(e,t,n){var r=!(n&&n.ssr);if(r){var i=zw(e);if(i)return i}var a=new vw(e,t,n);return a.id=`ec_`+jw++,kw[a.id]=a,r&&oc(e,Nw,a.id),mw(a),tS.trigger(`afterinit`,a),a}function Fw(e){if(V(e)){var t=e;e=null,F(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+Mw++,F(t,function(t){t.group=e})}return Aw[e]=!0,e}function Iw(e){Aw[e]=!1}var Lw=Iw;function Rw(e){U(e)?e=kw[e]:e instanceof vw||(e=zw(e)),e instanceof vw&&!e.isDisposed()&&e.dispose()}function zw(e){return kw[sc(e,Nw)]}function Bw(e){return kw[e]}function Vw(e,t){Dw[e]=t}function Hw(e){P(Tw,e)<0&&Tw.push(e)}function Uw(e,t){eT(ww,e,t,EC)}function Ww(e){Kw(`afterinit`,e)}function Gw(e){Kw(`afterupdate`,e)}function Kw(e,t){tS.on(e,t)}function qw(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;xw[r]||(Ce(UC.test(r)&&UC.test(i)),a&&Ce(i!==r),xw[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Cw[i]=1,a&&s&&(Cw[l]=1),Sw[l]=r)}function Jw(e,t){a_.register(e,t)}function Yw(e){var t=a_.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Xw(e,t){oS(e,t)}function Zw(e,t){eT(Ew,e,t,OC,`layout`,!0)}function Qw(e,t){eT(Ew,e,t,jC,`visual`,!0)}var $w=[];function eT(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),!(P($w,n)>=0)){$w.push(n);var o=Cx.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function tT(e,t){Ow[e]=t}function nT(e){m({createCanvas:e})}function rT(e,t,n){var r=iS(`registerMap`);r&&r(e,t,n)}function iT(e){var t=iS(`getMap`);return t&&t(e)}var aT=Zy;Qw(AC,_x),Qw(NC,yx),Qw(NC,bx),Qw(AC,Kx),Qw(NC,qx),Qw(LC,_C),Hw(Jv),Uw(CC,Yv),tT(`default`,Sx),qw({type:Pd,event:Pd,update:Pd},Ie),qw({type:Fd,event:Fd,update:Fd},Ie),qw({type:Id,event:zd,update:Id,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Ld,event:zd,update:Ld,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Rd,event:zd,update:Rd,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0});function oT(e,t,n,r){return{eventContent:{selected:Sf(n),isFromClick:t.isFromClick||!1}}}Vw(`default`,{}),Vw(`dark`,Hx);var sT={},cT=[],lT={registerPreprocessor:Hw,registerProcessor:Uw,registerPostInit:Ww,registerPostUpdate:Gw,registerUpdateLifecycle:Kw,registerAction:qw,registerCoordinateSystem:Jw,registerLayout:Zw,registerVisual:Qw,registerTransform:aT,registerLoading:tT,registerMap:rT,registerImpl:rS,PRIORITY:RC,ComponentModel:M_,ComponentView:Xb,SeriesModel:Vb,ChartView:ex,registerComponentModel:function(e){M_.registerClass(e)},registerComponentView:function(e){Xb.registerClass(e)},registerSeriesModel:function(e){Vb.registerClass(e)},registerChartView:function(e){ex.registerClass(e)},registerCustomSeries:function(e,t){oS(e,t)},registerSubTypeDefaulter:function(e,t){M_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wo(e,t)}};function uT(e){V(e)?F(e,function(e){uT(e)}):P(cT,e)>=0||(cT.push(e),H(e)&&(e={install:e}),e.install(lT))}function dT(e){return e==null?0:e.length||1}function fT(e){return e}var pT=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||fT,this._newKeyGetter=r||fT,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=dT(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=dT(c),d=dT(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=dT(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=dT(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),mT=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function hT(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};F(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;gT(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),vT(n.type)&&(a[0]=t),gT(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}gd.each(function(e,t){var i=gT(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=I(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new mT(s,t),n}function gT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _T(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function vT(e){return e!==`ordinal`&&e!==`time`}var yT=function(){function e(e){this.otherDims={},e!=null&&M(this,e)}return e}(),bT=Qs(),xT={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},ST=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=TT(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=cy(this.source),n=!ET(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=xT[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function CT(e){return e instanceof ST}function wT(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function TT(e){var t=bT(e);return t.dimNameMap||=wT(e.dimensionsDefine)}function ET(e){return e>30}var DT=W,OT=I,kT=typeof Int32Array>`u`?Array:Int32Array,AT=`e\0\0`,jT=-1,MT=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],NT=[`_approximateExtent`],PT,FT,IT,LT,RT,zT,BT,VT=function(){function e(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,r=!1;CT(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=U(u)?new yT({name:u}):u instanceof yT?u:new yT(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();F(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.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 r=this._schema.getSourceDimension(t);if(r)return r.name},e.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},e.prototype._recognizeDimIndex=function(e){if(de(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof ub&&(i=e),!i){var a=this.dimensions,o=$v(e)||oe(e)?new hy(e,a.length):e;i=new ub;var s=OT(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hT(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&BT(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Ps(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Ws(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Ws(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)BT(this,o);PT(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){DT(e)?M(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=IT(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return FT(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return V(e)?r.getValues(OT(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?jT:r},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);this._store.each(i,r?B(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?B(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=z(e),i=[];return F(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){H(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=OT(LT(e),this._getStoreDimIndex,this),o=zT(this);return o._store=this._store.map(a,i?B(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=OT(LT(e),this._getStoreDimIndex,this);this._store.modify(a,i?B(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=zT(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=zT(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=zT(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Rh(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return FT(e,t)},function(e){return FT(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},DT(e)?M(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),V(i)?i=i.slice():DT(i)&&(i=M({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,DT(t)?M(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){DT(e)?M(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?M(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){pd(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){F(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:OT(this.dimensions,this._getDimInfo,this),this.hostModel),RT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xe(arguments)))})},e.internalField=function(){PT=function(e){var t=e._invertedIndicesMap;F(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new kT(a.categories.length);for(var s=0;s<n.length;s++)n[s]=jT;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},IT=function(e,t,n){return Ws(e._getCategory(t,n),null)},FT=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=IT(e,e._idDimIdx,t)),n??=AT+t,n},LT=function(e){return V(e)||(e=e==null?[]:[e]),e},zT=function(t){var n=new e(t._schema?t._schema:OT(t.dimensions,t._getDimInfo,t),t.hostModel);return RT(n,t),n},RT=function(e,t){F(MT.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(NT,function(n){e[n]=A(t[n])}),e._calculationInfo=M({},t._calculationInfo)},BT=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=IT(e,i,t)),s==null&&a!=null&&(r[t]=s=IT(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function HT(e,t){return UT(e,t).dimensions}function UT(e,t){$v(e)||(e=ty(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=WT(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ET(o),c=r===e.dimensionsDefine,l=c?TT(e):wT(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new rb(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=W(n)?n:{name:n},o=new yT,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=As(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);F(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;F(n,function(e){var t,n,r,i;if(U(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=M({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=As(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}F(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(N(o,i),t,a),o.name==null&&n){var s=n[a];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&N(o.otherDims,r)})}});function g(e,t,n){gd.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)F(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=GT(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(X_(e,S)===U_.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return wc(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new ST({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function WT(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function GT(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var KT=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function qT(e){var t=e.get(`coordinateSystem`),n=new KT(t),r=JT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var JT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,nc).models[0],a=e.getReferringComponents(`yAxis`,nc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),YT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),YT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,nc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),YT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,nc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),YT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),YT(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();F(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),YT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,nc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function YT(e){return e.get(`type`)===`category`}function XT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ZT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(F(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),F(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;F(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ZT(e){return!CT(e.schema)}function QT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function $T(e,t){return QT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function eE(e,t){var n=e.get(`coordinateSystem`),r=a_.get(n),i;return t&&t.coordSysDims&&(i=I(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_T(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function tE(e,t,n){var r,i;return n&&F(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function nE(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=ty(e)):(i=r.getSource(),a=i.sourceFormat===_d);var o=qT(t),s=eE(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?le(K_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=UT(i,u),f=tE(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=XT(t,{schema:d,store:p}),h=new VT(d,t);h.setCalculationInfo(m);var g=f!=null&&rE(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function rE(e){if(e.sourceFormat===`original`)return!V(Ns(iE(e.data||[])))}function iE(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var aE=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Wc(aE);var oE=0,sE=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++oE,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,cE);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!U(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 r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=K(this.categories)},e}();function cE(e){return W(e)&&e.value!=null?e.value:e+``}var lE=z({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});function uE(e,t,n){var r;e||={};var i=ig();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(F(lE,function(t){a[t]&&(e[t]=B(a[t],a))}),r=a)}return r??_E(e,n),{brk:r,mapper:e}}function dE(e,t){F(lE,function(n){e[n]=t[n]})}function fE(e,t){e.freeze=Ie}function pE(e){return e.getExtentUnsafe(0,2)}function mE(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function hE(e){var t=mE(e,3);return t[1]-t[0]}function gE(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function _E(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():pc(),M(n,vE),n}var vE={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=mE(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){yE(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),yE(r,e,t,n)},freeze:function(){}};function yE(e,t,n,r){yc(n,r)&&(e[t][0]=n,e[t][1]=r)}function bE(e){return xE(e)||CE(e)}function xE(e){return e.type===`interval`}function SE(e){return e.type===`time`}function CE(e){return e.type===`log`}function wE(e){return e.type===`ordinal`}function TE(e){var t=ds(e),n=Ro(10,t),r=Fo(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yo(r*n,-t)}function EE(e){return Qo(e)+2}function DE(e,t){return zo(e)/zo(t)}function OE(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Ro(t,e)}function kE(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Po(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!vc(r[0])||!vc(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function AE(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function jE(e,t){return e||=t,Fo(No(e,1))}function ME(e,t,n){var r=pE(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var NE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,dE(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new sE({}),V(i)&&(i=new sE({categories:I(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=uE(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,fE(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Fo(e),e},t.prototype.getTicks=function(){var e=[];return ME(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Mo(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=pE(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Fo(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(aE);aE.registerClass(NE);function PE(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=EE(f);u<t-1;){var m=Yo(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=ig();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var FE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=uE(r,ag(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return A(this._cfg)},t.prototype.setConfig=function(e){var t=pE(this);this._cfg=e=A(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=EE(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=pE(this),i=t.niceExtent,a=t.intervalPrecision,o=ig(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Yo(i[0]-n,a):r[0]});for(var d=function(e,t){return Fo((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Mo(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Yo(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Yo(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Yo(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Qo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Wg(Yo(e.value,n,!0))},t.type=`interval`,t}(aE);aE.registerClass(FE);var IE=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},LE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=uE(r,ag(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Eg(e.value,_g[Tg(Cg(this._minLevelUnit))]||_g.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Dg(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=pE(this),r=ig(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return ig().addBreaksToTicks(o,i.breaks,n),o;o=qE(this._minLevelUnit,this._approxInterval,s,n,gE(this),i);var c=vg.length-1,l=0;return F(o,function(e){e.time&&(c=Math.min(c,P(vg,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&ig().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&ig().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(P(vg,Og(e.vmin,s)),P(vg,Og(e.vmax,s))),n=0,r=0;r<vg.length;r++)if(!zE(vg[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:vg[Math.max(i,t)],upperTimeUnit:vg[i]}}),o},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return de(e)?Math.round(e):+ls(e)},t.type=`time`,t}(aE),RE=[[`second`,cg],[`minute`,lg],[`hour`,ug],[`quarter-day`,ug*6],[`half-day`,ug*12],[`day`,dg*1.2],[`half-week`,dg*3.5],[`week`,dg*7],[`month`,dg*31],[`quarter`,dg*95],[`half-year`,fg/2],[`year`,fg]];function zE(e,t,n,r){return kg(new Date(t),e,r).getTime()===kg(new Date(n),e,r).getTime()}function BE(e,t){return e/=dg,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function VE(e){var t=30*dg;return e/=t,e>6?6:e>3?3:e>2?2:1}function HE(e){return e/=ug,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function UE(e,t){return e/=t?lg:cg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WE(e){return No(fs(e,!0),1)}function GE(e,t,n){var r=Math.max(0,P(vg,t)-1);return kg(new Date(e),vg[r],n).getTime()}function KE(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function qE(e,t,n,r,i,a){var o=yg,s=0;function c(e,t,n,i,o,c,l){for(var u=KE(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!zE(Cg(e),r[0],r[1],n)){s&&(i=[{value:GE(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/dg/365)),p=Ag(n),m=Lg(n);break;case`half-year`:case`quarter`:case`month`:f=VE(t),p=jg(n),m=Rg(n);break;case`week`:case`half-week`:case`day`:f=BE(t,31),p=Mg(n),m=zg(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=HE(t),p=Ng(n),m=Bg(n);break;case`minute`:f=UE(t,!0),p=Pg(n),m=Vg(n);break;case`second`:f=UE(t,!1),p=Fg(n),m=Hg(n);break;case`millisecond`:f=WE(t),p=Ig(n),m=Ug(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Cg(o[m]);if(wg(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Cg(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=L(I(u,function(e){return L(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=Og(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}wc(S,Tc,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],ee=Og(r[0],n),O=Og(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:ee,lowerTimeUnit:ee},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),S}var JE=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=dg,n[1]+=dg),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-dg}e.setExtent(n[0],n[1]);var i=jE(t.splitNumber,10),a=gE(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=RE.length,l=Math.min(IE(RE,a,0,c),c-1),u=RE[l][1],d=RE[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};aE.registerClass(LE);var YE=0,XE=1,ZE=2,QE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=FE.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[YE]=i[XE]=a[YE]=a[XE]=NaN,dE(r,t.mapperMethods);var s=ig(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},ZE,l),r.powStub=new FE({breakParsed:l.original}),r.intervalStub=new FE({breakParsed:l.transformed}),fE(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=ig(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return I(i.getTicks(e||{}),function(e){var i=e.value,o=OE(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,og(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(DE(e,this.base))},scale:function(e){return OE(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=DE(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return $E.depth=n,eD.lookup=this._lookup,OE(n===2?e:this.intervalStub.transformOut(e,$E),this.base,eD)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!yc(t,n)||t<=0||n<=0)){var r=tD,i=tD;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[YE]=t,r[XE]=n);var o=this.base;this.intervalStub.setExtent2(e,i[YE]=DE(t,o),i[XE]=DE(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return yc(t[0],t[1])&&bs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(aE);aE.registerClass(QE);var $E={},eD={},tD=[],nD={value:1,category:1,time:1,log:1},rD=Qs();function iD(e){var t=e.get(`type`);return(t==null||!Fe(nD,t)&&!aE.getClass(t))&&(t=`value`),t}function aD(e,t,n){var r=ig(),i;switch(r&&(i=gD(e,t,n)),t){case`category`:return new NE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:pc()});case`time`:return new LE({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new QE({logBase:e.get(`logBase`),breakOption:i});case`value`:return new FE({breakOption:i});default:return new((aE.getClass(t))||FE)({})}}function oD(e,t,n){var r=n?mE(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return yc(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function sD(e){rD(e).noOnMyZero=!0}function cD(e){return rD(e).noOnMyZero}function lD(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(H(t)){if(e.type===`category`)return function(n,r){return t(uD(e,n),n.value-e.scale.getExtent()[0],null)};var r=ig();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(uD(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function uD(e,t){var n=e.scale;return wE(n)?n.getLabel(t):t.value}function dD(e){return e.get(`interval`)??`auto`}function fD(e){return e.type===`category`&&dD(e.getLabelModel())===0}function pD(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[$T(e,t)]=!0}),z(n)}function mD(e){return e===`middle`||e===`center`}function hD(e){return e.getShallow(`show`)}function gD(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!ig()||!n||!_D(t)?void 0:r}function _D(e){return e!==`category`}function vD(e,t,n,r,i,a){var o=CE(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=AE(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function yD(e,t){return wE(e)?e.getRawOrdinalNumber(t.value):t.value}function bD(e,t){return wE(e)&&!!t.get(`boundaryGap`)}var xD=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),SD=Sc(),CD=Qs(),wD=Qs();function TD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function ED(e,t){return kD(TD(e,t))}function DD(e,t){var n=[];return OD(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(kD(e))}),n}function OD(e,t){var n=CD(fS(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function kD(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function AD(e,t){var n=e.model.ecModel,r=CD(fS(n)).axSer;r&&MD(n,r.get(e.model.uid),t)}function jD(e,t,n){var r=TD(e,t);r&&MD(e.model.ecModel,r.sers,n)}function MD(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function ND(e,t){var n=TD(e,t);if(!n||!n.sers.length)return 0;var r=0;return MD(e.model.ecModel,n.sers,function(){r++}),r}function PD(e,t,n){var r=CD(fS(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function FD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keys;r&&F(r.get(n.uid),function(e){t(e)})}function ID(e){var t=wD(dS(e)),n=t.keyed||=K();OD(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&RD.liPosMinGap(e,t,o)})}function LD(e,t){RD[e]=t}var RD={};function zD(e,t,n){if(e){var r=t.ecModel,i=CD(fS(r)),a=e.model.uid,o=i.axSer||=K();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=HD.get(BD(s,c,n))||HD.get(BD(s,c,null));if(l){var u=i.keyed||=K(),d=i.keys||=K(),f=l.key,p=u.get(f)||u.set(f,K()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function BD(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function VD(e,t){var n=BD(t.seriesType,t.baseAxis,t.coordSysType);HD.set(n,t),SD(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:ID})})}var HD=K(),UD=Qs(),WD=3,GD=function(){function e(e,t,n,r,i){var a=wE(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(xE(e)||CE(e)||SE(e))&&(hc(l,qD(e,t.get(`dataMin`,!0))),gc(l,qD(e,t.get(`dataMax`,!0)))),bc(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=qD(e,H(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=qD(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JD(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!vc(u[0])&&(u[0]=NaN),!vc(u[1])&&(u[1]=NaN);var g=s||ve(u[0])||ve(u[1])||a&&!o,_=xE(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=qD(e,t.get(`startValue`,!0)),x=b!=null;!bs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),bs(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),KD(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),KD(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function KD(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),xc(t))}function qD(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function JD(e,t){var n;if(wE(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=V(r)?r:[r,r]}return[YD(n[0]),YD(n[1])]}function YD(e){return qa(typeof e==`boolean`?0:e,1)||0}function XD(e){var t=UD(e.scale);return t.extent||=pc(),t}function ZD(e,t){XD(e).dimIdxInCoord=t.get(e.dim)}function QD(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||$D(n,e,i,r,t)}function $D(e,t,n,r,i){var a=XD(t),o=a.extent,s=!1;AD(t,function(r){if(r.boxCoordinateSystem){var i=l_(r).coord,c=a.dimIdxInCoord;if(c>=0&&V(i)){var l=i[c];l!=null&&!V(l)&&mc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;F(pD(u,n),function(e){_c(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=aO(e,t,r);tO(e,new GD(e,r,o,s,c),i),a.extent=null}function eO(e,t){var n=e.scale;tO(n,new GD(n,e.model,t,!1,!1),WD)}function tO(e,t,n){e.rawExtentInfo=t,t.from=n}function nO(e,t){rO.set(e,t)}var rO=K();function iO(e,t,n,r,i){e.rawExtentInfo||eO({scale:e,model:t},i||pc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function aO(e,t,n){var r=bD(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return FD(t,function(e){a=!!rO.get(e)||a}),a}function oO(e,t,n,r){if(n.ctnShp){var i;if(FD(e,function(t){var n=rO.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],hc(i,a[0]),gc(i,a[1]),sD(e))}}),i){var a=t.getExtent();if(wE(t))e.onBand||t.setExtent2(1,Mo(a[0],a[0]+i[0]),No(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Mo(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=No(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function sO(e,t){var n=CE(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=kE(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?lO(r,t):cO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=EE(d)),i[0]||(s[0]=Yo(Io(s[0]/u)*u,l)),i[1]||(s[1]=Yo(Lo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),vD(e,i,o,s,a,c)}function cO(e,t){var n=jE(t.splitNumber,5),r=gE(e),i=t.minInterval,a=t.maxInterval,o=fs(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=EE(o),c=e.getExtent(),l=[Yo(Lo(c[0]/o)*o,s),Yo(Io(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function lO(e,t){var n=jE(t.splitNumber,10),r=e.getExtent(),i=gE(e),a=No(us(i),1);n/i*a<=.5&&(a*=10);var o=EE(a),s=[Yo(Lo(r[0]/a)*a,o),Yo(Io(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function uO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;dO(t,n,r,i,null)}function dO(e,t,n,r,i){var a=iO(e,t,r,n,i),o=xE(e)||SE(e);fO(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&oO(n,e,a,r)}function fO(e,t){pO[e.type](e,t)}var pO={interval:sO,log:sO,time:JE,ordinal:Ie},mO=1e-8;function hO(e,t){return Math.abs(e-t)<mO}function gO(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=_u(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!hO(i[0],s[0])||!hO(i[1],s[1]))&&(r+=_u(i[0],i[1],s[0],s[1],t,n)),r!==0}var _O=[];function vO(e,t){for(var n=0;n<e.length;n++)lt(e[n],e[n],t)}function yO(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ut(t,t,a),dt(n,n,a))}}function bO(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var xO=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),SO=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),CO=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),wO=function(e){n(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return bO(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return F(i,function(t){t.type===`polygon`?yO(t.exterior,n,r,e):F(t.points,function(t){yO(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Y(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(gO(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(gO(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new Y(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(vO(u.exterior,s),F(u.interiors,function(e){vO(e,s)})):F(u.points,function(e){vO(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(xO),TO=function(e){n(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=qt(_O),i=e;i&&!i.isGeoSVGGraphicRoot;)Yt(r,i.getLocalTransform(),r),i=i.parent;return $t(r,r),lt(n,n,r),n},t}(xO);function EO(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return F(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=OO(i,r,n);break;case`Polygon`:DO(i,r,n);break;case`MultiLineString`:DO(i,r,n);break;case`MultiPolygon`:F(i,function(e,t){return DO(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function DO(e,t,n){for(var r=0;r<e.length;r++)e[r]=OO(e[r],t[r],n)}function OO(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function kO(e,t){return e=EO(e),I(L(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new SO(a[0],a.slice(1)));break;case`MultiPolygon`:F(r.coordinates,function(e){e[0]&&i.push(new SO(e[0],e.slice(1)))});break;case`LineString`:i.push(new CO([r.coordinates]));break;case`MultiLineString`:i.push(new CO(r.coordinates))}var o=new wO(n[t||`name`],i,n.cp);return o.properties=n,o})}var AO=Qs(),jO=Qs(),MO={estimate:1,determine:2};function NO(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function PO(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:I(IO(n,r),function(t,n){return{formattedLabel:lD(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?LO(e,t):BO(e)}function FO(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:IO(i,r)}:e.type===`category`?zO(e,t):{ticks:r.getTicks(n)}}function IO(e,t){var n=t.getExtent(),r=[];return F(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),wc(r,Ec,null),Zo(r),I(r,function(e){return{value:e}})}function LO(e,t){var n=e.getLabelModel(),r=RO(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function RO(e,t,n){var r=HO(e),i=dD(t),a=n.kind===MO.estimate;if(!a){var o=WO(r,i);if(o)return o}var s,c;H(i)?s=ZO(e,i,!1):(c=i===`auto`?KO(e,n):i,s=ZO(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return GO(r,i,l),!0}):GO(r,i,l),l}function zO(e,t){var n=VO(e),r=dD(t),i=WO(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=ZO(e,r,!0);else if(r===`auto`){var s=RO(e,e.getLabelModel(),NO(MO.determine));o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tick})}else o=r,a=ZO(e,o,!0);return GO(n,r,{ticks:a,tickCategoryInterval:o})}function BO(e){var t=e.scale.getTicks(),n=lD(e);return{labels:I(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var VO=UO(`axisTick`),HO=UO(`axisLabel`);function UO(e){return function(t){return jO(t)[e]||(jO(t)[e]={list:[]})}}function WO(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function GO(e,t,n){return e.list.push({key:t,value:n}),n}function KO(e,t){if(t.kind===MO.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return jO(e).autoInterval=n,!0}),n}return jO(e).autoInterval??(jO(e).autoInterval=e.calculateCategoryInterval(t))}function qO(e,t){var n=t.kind,r=XO(e),i=lD(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Ua(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===MO.estimate?(t.out.noPxChangeTryDetermine.push(B(JO,null,e,S,c)),S):YO(e,S,c)??S}function JO(e,t,n){return YO(e,t,n)==null}function YO(e,t,n){var r=AO(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function XO(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function ZO(e,t,n){var r=lD(e),i=e.scale,a=[],o=H(t);return ME(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var QO=.8;function $O(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=hE(r);bs(o)||(o=NaN);var s=e.getExtent(),c=Po(s[1]-s[0]);return wE(r)?ek(n,e,o,c):i&&tk(n,e,o,c,i),a!=null&&(n.w=bs(n.w)?No(a,n.w):a),n}function ek(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function tk(e,t,n,r,i){var a=!1,o=-1/0;F(i.key?[ED(t,i.key)]:DD(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),bs(n)&&n>0&&bs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*QO,e.w2=e.w*n/r)}var nk=[0,1],rk=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Uo(e,nk,ik(this),t)},e.prototype.coordToData=function(e,t){var n=Uo(e,ik(this),nk,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=I(FO(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(yD(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ak(this,n,r);return I(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(wE(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),I(this.scale.getMinorTicks(e),function(e){return I(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=NO(MO.determine),PO(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return $O(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=NO(MO.determine),qO(this,e)},e}();function ik(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ak(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=$O(e).w;if(!i)return!1;F(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ok=Math.PI*2,sk=lu.CMD,ck=[`top`,`right`,`bottom`,`left`];function lk(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function uk(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%ok<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=mu(i),i=mu(f)}else r=mu(r),i=mu(i);r>i&&(i+=ok);var p=Math.atan2(s,o);if(p<0&&(p+=ok),p>=r&&p<=i||p+ok>=r&&p+ok<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function dk(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function fk(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var pk=[];function mk(e,t,n){var r=fk(t.x,t.y,t.width,t.height,e.x,e.y,pk);return n.set(pk[0],pk[1]),r}function hk(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case sk.M:a=u[p++],o=u[p++],r=a,i=o;break;case sk.L:h=dk(r,i,u[p],u[p+1],d,f,pk,!0),r=u[p++],i=u[p++];break;case sk.C:h=hr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.Q:h=Sr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=uk(g,_,y,b,b+x,S,C,f,pk),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case sk.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=fk(a,o,w,T,d,f,pk);break;case sk.Z:h=dk(r,i,a,o,d,f,pk,!0),r=a,i=o}h<l&&(l=h,n.set(pk[0],pk[1]))}return l}var gk=new J,$=new J,_k=new J,vk=new J,yk=new J;function bk(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||ck,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&$t([],u),f=t.get(`length2`)||0;l&&_k.copy(l);for(var p=0;p<o.length;p++){var m=o[p];lk(m,0,s,gk,vk),J.scaleAndAdd($,gk,vk,f),$.transform(d);var h=e.getBoundingRect(),g=l?l.distance($):e instanceof Z?hk($,e.path,_k):mk($,h,_k);g<c&&(c=g,$.transform(u),_k.transform(u),_k.toArray(a[0]),$.toArray(a[1]),gk.toArray(a[2]))}Ck(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var xk=[],Sk=new J;function Ck(e,t){if(t<=180&&t>0){t=t/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,gk,$),J.sub(yk,_k,$);var n=vk.len(),r=yk.len();if(!(n<.001||r<.001)){vk.scale(1/n),yk.scale(1/r);var i=vk.dot(yk);if(Math.cos(t)<i){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk),Sk.scaleAndAdd(yk,a/Math.tan(Math.PI-t));var o=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(o))return;o<0?J.copy(Sk,$):o>1&&J.copy(Sk,_k),Sk.toArray(e[1])}}}}function wk(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,$,gk),J.sub(yk,_k,$);var r=vk.len(),i=yk.len();if(!(r<.001||i<.001)&&(vk.scale(1/r),yk.scale(1/i),vk.dot(t)<Math.cos(n))){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk);var o=Math.PI/2,s=o+Math.acos(yk.dot(t))-n;if(s>=o)J.copy(Sk,_k);else{Sk.scaleAndAdd(yk,a/Math.tan(Math.PI/2-s));var c=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(c))return;c<0?J.copy(Sk,$):c>1&&J.copy(Sk,_k)}Sk.toArray(e[1])}}}function Tk(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function Ek(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=it(r[0],r[1]),a=it(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=ct([],r[1],r[0],o/i),c=ct([],r[1],r[2],o/a),l=ct([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function Dk(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i)r&&e.removeTextGuideLine();else{for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Nd.length;c++){var l=Nd[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Tk(r,!0,l,u);continue}r||(r=new Pp,e.setTextGuideLine(r),!d&&(s||!o)&&Tk(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Tk(r,!1,l,u)}}if(r){N(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Ek}}}function Ok(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Md.length;r++){var i=Md[r];n[i]=e.getModel([i,t])}return n}var kk=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Ak=1,jk=2,Mk=Ak|jk;function Nk(e,t,n){n||=Mk,t?e.dirty|=n:e.dirty&=~n}function Pk(e,t){return t||=Mk,e.dirty==null||!!(e.dirty&t)}function Fk(e){if(e)return Pk(e)&&Ik(e,e.label,e),e}function Ik(e,t,n){var r=t.getComputedTransform();e.transform=th(e.transform,r);var i=e.localRect=eh(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Dh.textMargin);for(var d=0;d<4;d++)Lk[d]=u===Dh.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Dh.textMargin&&Km(i,Lk,!1,!1);var f=e.rect=eh(e.rect,i);return r&&f.applyTransform(r),u===Dh.minMargin&&Km(f,Lk,!1,!1),e.axisAligned=Qm(r),(e.label=e.label||{}).ignore=t.ignore,Nk(e,!1),Nk(e,!0,jk),e}var Lk=[0,0,0,0];function Rk(e,t,n){return e.transform=th(e.transform,n),e.localRect=eh(e.localRect,t),e.rect=eh(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Qm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function zk(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function Bk(e,t){for(var n=0;n<kk.length;n++){var r=kk[n];e[r]??(e[r]=t[r])}return Fk(e)}function Vk(e){var t=e.obb;return(!t||Pk(e,jk))&&(e.obb=t||=new nm,t.fromBoundingRect(e.localRect,e.transform),Nk(e,!1,jk)),t}function Hk(e,t,n,r,i){var a=e.length,o=vm[t],s=ym[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function Uk(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function Wk(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=Fk(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Gk(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Gk(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:Vk(e).intersect(Vk(t),n,r)}function Kk(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function qk(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Kk(r&&r.shape.points)}}var Jk=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],Yk=new Aa,Xk=Qs(),Zk=Qs();function Qk(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var $k=[`x`,`y`,`rotation`],eA=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Y.applyTransform(c,c,s),s?Yk.setLocalTransform(s):(Yk.x=Yk.y=Yk.rotation=Yk.originX=Yk.originY=0,Yk.scaleX=Yk.scaleY=1),Yk.rotation=mu(Yk.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Y.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:Yk.x,y:Yk.y,scaleX:Yk.scaleX,scaleY:Yk.scaleY,rotation:Yk.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(H(r)||z(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=fd(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){bk(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=H(a.layoutOptionOrCb)?a.layoutOptionOrCb(qk(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Wo(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Wo(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=Xk(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<Jk.length;m++){var h=Jk[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];F(this._labelList,function(e){e.defaultAttr.ignore||r.push(Bk({},e))});var i=L(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=L(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});Hk(i,0,0,t),Hk(a,1,0,n);var o=L(r,function(e){return e.layoutOption.hideOverlap});Uk(o),Wk(o)},e.prototype.processLabelsOverall=function(){var e=this;F(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=Xk(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=fd(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);Dk(e,Ok(o),s),bk(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!um(e))){var i=Xk(n),a=i.oldLayout,o=fd(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(P(u,`select`)>=0&&n.attr(i.oldLayoutSelect),P(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),cm(n,c,t,s)}else if(n.attr(c),!wh(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,lm(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};Qk(f,c,$k),Qk(f,n.states.select,$k)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Qk(p,c,$k),Qk(p,n.states.emphasis,$k)}Eh(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=Zk(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),cm(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,lm(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),tA=Qs();function nA(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=tA(t).labelManager;r||=tA(t).labelManager=new eA,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=tA(t).labelManager;F(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function rA(e,t,n){var r=p.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function iA(e){return!e.__cursors.get(0)}function aA(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var oA=function(e){q(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=va,typeof t==`string`?a=rA(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Pe(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=aA(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=rA(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Y(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Y(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=aA(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;)if(i[u].isZero())i.splice(u,1);else{for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;he(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||OS(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):ge(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=BS(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&F(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(mt),sA=1e5,cA=314159,lA=void 0,uA=1,dA=2;function fA(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function pA(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function mA(e,t,n,r){var i=new oA(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,hA(i),i}function hA(e){e.__cursorStack=[],e.__cursors=K()}function gA(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function _A(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,gA({key:r})))}function vA(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function yA(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function bA(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&xA)||s.__builtin__)&&(!(n&SA)||!s.__builtin__)&&(!(n&CA)||s!==e.hoverlayer))&&t(s,a,o,i)}}var xA=1,SA=2,CA=4,wA=xA|CA,TA=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||va,this._singleCanvas=i,this.root=e,e.style&&(Pe(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=mA(a,this,cA,0);c.initContext(),this._insertLayer(c,cA,0,!0),this._domRoot=e}else{this._width=jS(e,0,n),this._height=jS(e,1,n);var l=this._domRoot=pA(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=dA),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return bA(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},SA),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=lA,n!==lA&&(!t&&n===dA&&(t=this._i.hoverlayer=this._ensureLayer(sA)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),aC(i,s,r),c&&(s.style=l)}}i&&(oC(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(sA)},e.prototype.paintOne=function(e,t){iC(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)bA(this._i,function(e){e.afterBrush&&e.afterBrush()},wA),this._paintHoverList(e);else{var i=this;Zn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(cA).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),bA(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},xA)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return bA(this._i,function(i){var a=!1;if(vA(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!iA(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}vA(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},wA),i.wxa&&bA(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=iA(e),c=s&&p.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=dA),r!=null){var m=f.getPaintRect();m&&m.intersect(r)&&(aC(o,f,a),f.setPrevPaintRect(m))}else aC(o,f,a);if(s&&p.getTime()-c>15){d++;break}}}oC(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=cA,t=0);var i=yA(this._i,e)[t];return i||(i=mA(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&j(i,this._layerConfig[e],!0),(n||r&&e!==cA)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&fA(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=yA(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),yA(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},xA)},e.prototype.eachOtherLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},SA)},e.prototype.getLayers=function(){var e={};return bA(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}bA(n._i,function(e){e.__dirty=!1,vA(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},wA);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__))k(`ZLevel `+d+` has been used by unknown layer `+o.id);else{if((!s||f!==s.key)&&(s=_A(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}}bA(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(iA(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(vA(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===lA&&(n._hoverLayerDirty=uA))},wA)},e.prototype.clear=function(){return bA(this._i,function(e){e.clear(),hA(e)},xA),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,bA(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?j(n[e],t,!0):n[e]=t,bA(this._i,function(e,t){j(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=jS(i,0,r),t=jS(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,bA(this._i,function(n){n.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(cA).resize(e,t)}return this},e.prototype.clearLayer=function(e){F(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[cA][0].dom;var t=new oA(`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 r=t.dom.width,i=t.dom.height;bA(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];aC(n,l,a)}oC(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function EA(e){e.registerPainter(`canvas`,TA)}var DA=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new db(this),fb(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),fb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Cd},t}(M_),OA=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(Xb);function kA(e){e.registerComponentModel(DA),e.registerComponentView(OA)}export{nD as $,mc as $a,h as $c,yd as $i,x_ as $n,fi as $o,Em as $r,bt as $s,yC as $t,QD as A,Ac as Aa,Fe as Ac,lp as Ai,Vy as An,ms as Ao,hh as Ar,Zn as As,Lw as At,aD as B,yc as Ba,U as Bc,of as Bi,K_ as Bn,Ka as Bo,zm as Br,Kt as Bs,Xw as Bt,TO as C,dc as Ca,le as Cc,Up as Ci,Ib as Cn,hs as Co,eg as Cr,Tr as Cs,_T as Ct,fO as D,Xs as Da,M as Dc,Mp as Di,Pb as Dn,ps as Do,Rh as Dr,_r as Ds,Fw as Dt,dO as E,fc as Ea,ve as Ec,Pp as Ei,bb as En,Ko as Eo,Uh as Er,mr as Es,RC as Et,MD as F,cc as Fa,me as Fc,Md as Fi,ky as Fn,bo as Fo,Th as Fr,_n as Fs,Bw as Ft,bD as G,Fs as Ga,ae as Gc,nf as Gi,S_ as Gn,Ma as Go,Sm as Gr,Zt as Gs,Gw as Gt,uD as H,Qs as Ha,I as Hc,lf as Hi,P_ as Hn,Na as Ho,Vm as Hr,$t as Hs,tT as Ht,jD as I,lc as Ia,H as Ic,Mf as Ii,Ay as In,mo as Io,ym as Ir,hn as Is,iT as It,lD as J,tc as Ja,se as Jc,Tf as Ji,w_ as Jn,Fi as Jo,wm as Jr,Lt as Js,Vw as Jt,mD as K,As as Ka,Ie as Kc,Xd as Ki,__ as Kn,ja as Ko,bm as Kr,Qt as Ks,Hw as Kt,LD as L,pc as La,de as Lc,Cf as Li,Dy as Ln,po as Lo,vm as Lr,J as Ls,Pw as Lt,zD as M,xc as Ma,ie as Mc,ap as Mi,Py as Mn,Yo as Mo,mh as Mr,yn as Ms,Rw as Mt,ND as N,Ns as Na,V as Nc,np as Ni,Hy as Nn,Xo as No,wh as Nr,vn as Ns,Yw as Nt,iO as O,Ws as Oa,L as Oc,Op as Oi,Nb as On,us as Oo,Eh as Or,vr as Os,sT as Ot,PD as P,Dc as Pa,oe as Pc,Nd as Pi,Uy as Pn,Eo as Po,ph as Pr,bn as Ps,zw as Pt,vD as Q,wc as Qa,we as Qc,vd as Qi,k_ as Qn,Ci as Qo,Hm as Qr,Ot as Qs,nT as Qt,VD as R,uc as Ra,W as Rc,Ef as Ri,iv as Rn,Ja as Ro,Pm as Rr,en as Rs,qw as Rt,wO as S,Gc as Sa,K as Sc,Wp as Si,Vb as Sn,fs as So,rg as Sr,kr as Ss,wT as St,uO as T,nc as Ta,F as Tc,Lp as Ti,Eb as Tn,Wo as To,Bh as Tr,fr as Ts,uT as Tt,oD as U,qs as Ua,j as Uc,sf as Ui,M_ as Un,Aa as Uo,sh as Ur,Gt as Us,rT as Ut,iD as V,Sc as Va,z as Vc,jf as Vi,q_ as Vn,qa as Vo,Bm as Vr,qt as Vs,Zw as Vt,yD as W,ac as Wa,te as Wc,Af as Wi,m_ as Wn,Pa as Wo,Km as Wr,Yt as Ws,Ww as Wt,hD as X,Zs as Xa,G as Xc,hd as Xi,v_ as Xn,mi as Xo,gm as Xr,Ft as Xs,Kw as Xt,gD as Y,Oc as Ya,ye as Yc,Dd as Yi,D_ as Yn,pi as Yo,Nm as Yr,Bt as Ys,aT as Yt,fD as Z,ic as Za,be as Zc,wd as Zi,b_ as Zn,Ei as Zo,Rm as Zr,zt as Zs,Qw as Zt,rk as _,cu as _a,Be as _c,mm as _i,lx as _n,Io as _o,n_ as _r,ei as _s,$T as _t,Rk as a,nd as aa,Ve as ac,nh as ai,n as al,wS as an,rs as ao,d_ as ar,Si as as,kE as at,NO as b,el as ba,A as bc,qp as bi,Xb as bn,Vo as bo,ig as br,Ir as bs,UT as bt,Gk as c,Hu as ca,Je as cc,Am as ci,dS as cn,Qo as co,Wg as cr,yi as cs,wE as ct,Nk as d,ju as da,ut as dc,ih as di,Zx as dn,gs as do,$g as dr,di as ds,fE as dt,md as ea,xt as ec,Tm as ei,s as el,dC as en,Es as eo,O_ as er,wi as es,FE as et,Hk as f,Z as fa,nt as fc,om as fi,Jx as fn,qo as fo,Xg as fr,Ar as fs,mE as ft,Dk as g,lu as ga,qe as gc,pm as gi,ux as gn,Lo as go,Gg as gr,ai as gs,XT as gt,Ck as h,uu as ha,We as hc,dm as hi,dx as hn,Po as ho,Kg as hr,qr as hs,nE as ht,Ik as i,id as ia,He as ic,km as ii,i as il,SS as in,ts as io,u_ as ir,li as is,TE as it,ZD as j,js as ja,P as jc,sp as ji,Iy as jn,os as jo,Ch as jr,Y as js,Iw as jt,nO as k,kc as ka,R as kc,Ep as ki,zy as kn,ds as ko,gh as kr,xr as ks,bC as kt,zk as l,zu as la,ct as lc,Fm as li,sS as ln,$o as lo,e_ as lr,xi as ls,SE as lt,wk as m,fu as ma,Ke as mc,lm as mi,Xx as mn,Uo as mo,Qg as mr,Zr as ms,sE as mt,EA as n,pd as na,lt as nc,oh as ni,p as nl,NS as nn,is as no,E_ as nr,gi as ns,jE as nt,Fk as o,qu as oa,it as oc,Ym as oi,CS as on,ns as oo,s_ as or,_i as os,bE as ot,Ok as p,mu as pa,tt as pc,hm as pi,Yx as pn,ss as po,Zg as pr,Yr as ps,_E as pt,cD as q,ec as qa,Se as qc,kf as qi,A_ as qn,Yi as qo,lh as qr,Xt as qs,Uw as qt,nA as r,Qu as ra,Ue as rc,Cm as ri,m as rl,jS as rn,Zo as ro,a_ as rr,hi as rs,EE as rt,Wk as s,Wu as sa,ot as sc,Mm as si,yS as sn,es as so,f_ as sr,bi as ss,CE as st,kA as t,fd as ta,mt as tc,Om as ti,o as tl,iC as tn,as as to,T_ as tr,Ti as ts,NE as tt,Bk as u,Fu as ua,dt as uc,Zm as ui,eS as un,bs as uo,t_ as ur,si as us,dE as ut,$O as v,zl as va,Ce as vc,cm as vi,ex as vn,No as vo,Eg as vr,$r as vs,QT as vt,gO as w,rc as wa,N as wc,Vp as wi,Fb as wn,ls as wo,Qh as wr,ur as ws,pT as wt,kO as x,Xc as xa,Me as xc,Kp as xi,Bb as xn,Fo as xo,sg as xr,ti as xs,VT as xt,MO as y,Dl as ya,B as yc,im as yi,Zb as yn,Mo as yo,kg as yr,Wr as ys,HT as yt,xD as z,Gs as za,_e as zc,cf as zi,$_ as zn,Ua as zo,rh as zr,Jt as zs,Jw as zt};
|