pluginbench 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. pluginbench/__init__.py +3 -0
  2. pluginbench/__main__.py +3 -0
  3. pluginbench/assessment-charts.html +790 -0
  4. pluginbench/assessment.py +316 -0
  5. pluginbench/assessment_charts.py +1225 -0
  6. pluginbench/assessment_metrics.py +1956 -0
  7. pluginbench/assessment_models.py +127 -0
  8. pluginbench/baselines.py +792 -0
  9. pluginbench/claude.py +374 -0
  10. pluginbench/cli.py +672 -0
  11. pluginbench/code_diff.py +207 -0
  12. pluginbench/codex.py +451 -0
  13. pluginbench/codex_events.py +585 -0
  14. pluginbench/collectors.py +591 -0
  15. pluginbench/compare.py +927 -0
  16. pluginbench/components.py +129 -0
  17. pluginbench/coverage_report.py +610 -0
  18. pluginbench/datasets.py +207 -0
  19. pluginbench/evaluation.example.yaml +45 -0
  20. pluginbench/evaluation.py +1651 -0
  21. pluginbench/evaluation_report.py +1004 -0
  22. pluginbench/fallow_parse.mjs +101 -0
  23. pluginbench/harbor_backend.py +2946 -0
  24. pluginbench/isolation.py +314 -0
  25. pluginbench/judge.py +683 -0
  26. pluginbench/language_analysis.py +915 -0
  27. pluginbench/ledger.py +217 -0
  28. pluginbench/measurement_profiles.py +616 -0
  29. pluginbench/native_treatment_runtime.js +221 -0
  30. pluginbench/native_treatments.py +155 -0
  31. pluginbench/observer_data/go-analysis-v1/go.mod +10 -0
  32. pluginbench/observer_data/go-analysis-v1/go.sum +10 -0
  33. pluginbench/observer_data/go-analysis-v1/main.go +64 -0
  34. pluginbench/observer_data/oxc-parser-0.126.0/package-lock.json +449 -0
  35. pluginbench/observer_data/oxc-parser-0.126.0/package.json +5 -0
  36. pluginbench/parallel.py +101 -0
  37. pluginbench/processes.py +100 -0
  38. pluginbench/remeasure.py +992 -0
  39. pluginbench/run_lock.py +227 -0
  40. pluginbench/run_status.py +518 -0
  41. pluginbench/study.py +1858 -0
  42. pluginbench/study_review.py +924 -0
  43. pluginbench/submissions.py +486 -0
  44. pluginbench/task_sources.py +403 -0
  45. pluginbench/treatments.py +388 -0
  46. pluginbench/trial_containers.py +94 -0
  47. pluginbench/vendor/ECHARTS-LICENSE +222 -0
  48. pluginbench/vendor/ECHARTS-NOTICE +5 -0
  49. pluginbench/vendor/ZRENDER-LICENSE +29 -0
  50. pluginbench/vendor/echarts.min.js +48 -0
  51. pluginbench-0.5.0.dist-info/METADATA +294 -0
  52. pluginbench-0.5.0.dist-info/RECORD +58 -0
  53. pluginbench-0.5.0.dist-info/WHEEL +4 -0
  54. pluginbench-0.5.0.dist-info/entry_points.txt +2 -0
  55. pluginbench-0.5.0.dist-info/licenses/LICENSE +201 -0
  56. pluginbench-0.5.0.dist-info/licenses/src/pluginbench/vendor/ECHARTS-LICENSE +222 -0
  57. pluginbench-0.5.0.dist-info/licenses/src/pluginbench/vendor/ECHARTS-NOTICE +5 -0
  58. pluginbench-0.5.0.dist-info/licenses/src/pluginbench/vendor/ZRENDER-LICENSE +29 -0
@@ -0,0 +1,48 @@
1
+ var echarts=(()=>{var Lc=Object.defineProperty;var B1=Object.getOwnPropertyDescriptor;var U1=Object.getOwnPropertyNames;var z1=Object.prototype.hasOwnProperty;var Im=(t,e)=>{for(var r in e)Lc(t,r,{get:e[r],enumerable:!0})},F1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of U1(e))!z1.call(t,n)&&n!==r&&Lc(t,n,{get:()=>e[n],enumerable:!(i=B1(e,n))||i.enumerable});return t};var V1=t=>F1(Lc({},"__esModule",{value:!0}),t);var n2={};Im(n2,{dispose:()=>AT,getInstanceByDom:()=>Bf,init:()=>ET,version:()=>vT});var Pc=function(t,e){return Pc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Pc(t,e)};function W(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var H1=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),G1=(function(){function t(){this.browser=new H1,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 t})(),ti=new G1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ti.wxa=!0,ti.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ti.worker=!0:!ti.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ti.node=!0,ti.svgSupported=!0):Y1(navigator.userAgent,ti);function Y1(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var re=ti;var js=12,Nc="sans-serif",St=js+"px "+Nc,W1=20,X1=100,q1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function K1(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-W1)/X1;e[i]=n}return e}var Z1=K1(q1),nt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=nt.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||St),t.measureText(r);r=r||"",i=i||St;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||js,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Z1[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var Nm=jt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Rm=jt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),yo=Object.prototype.toString,$s=Array.prototype,j1=$s.forEach,Q1=$s.filter,kc=$s.slice,$1=$s.map,Lm=function(){}.constructor,Qs=Lm?Lm.prototype:null,Bc="__proto__",Rc=2311,J1=Math.pow(2,53)-1;function Js(){return Rc>=J1&&(Rc=0),Rc++}function el(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function j(t){if(t==null||typeof t!="object")return t;var e=t,r=yo.call(t);if(r==="[object Array]"){if(!go(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=j(t[i])}}else if(Rm[r]){if(!go(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!Nm[r]&&!go(t)&&!Qn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Bc&&(e[o]=j(t[o]))}return e}function he(t,e,r){if(!U(e)||!U(t))return r?j(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Bc){var n=t[i],a=e[i];U(a)&&U(n)&&!P(a)&&!P(n)&&!Qn(a)&&!Qn(n)&&!Pm(a)&&!Pm(n)&&!go(a)&&!go(n)?he(n,a,r):(r||!(i in t))&&(t[i]=j(e[i]))}return t}function L(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Bc&&(t[r]=e[r]);return t}function km(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function oe(t,e,r){for(var i=Q(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var f2=nt.createCanvas;function ae(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Bm(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function ct(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else oe(t,e,r)}function Fe(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===j1)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function R(t,e,r){if(!t)return[];if(!e)return tl(t);if(t.map&&t.map===$1)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function jt(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Me(t,e,r){if(!t)return[];if(!e)return tl(t);if(t.filter&&t.filter===Q1)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function Um(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function Q(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function eE(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(kc.call(arguments)))}}var me=Qs&&G(Qs.bind)?Qs.call.bind(Qs.bind):eE;function Ve(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(kc.call(arguments)))}}function P(t){return Array.isArray?Array.isArray(t):yo.call(t)==="[object Array]"}function G(t){return typeof t=="function"}function N(t){return typeof t=="string"}function _o(t){return yo.call(t)==="[object String]"}function fe(t){return typeof t=="number"}function U(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Pm(t){return!!Nm[yo.call(t)]}function Ne(t){return!!Rm[yo.call(t)]}function Qn(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function $n(t){return t.colorStops!=null}function ri(t){return t!==t}function Jn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function F(t,e){return t??e}function Qt(t,e,r){return t??e??r}function tl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return kc.apply(t,e)}function ea(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ie(t,e){if(!t)throw new Error(e)}function tt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var zm="__ec_primitive__";function ta(t){t[zm]=!0}function go(t){return t[zm]}var tE=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Q(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Fm=typeof Map=="function";function rE(){return Fm?new Map:new tE}var iE=(function(){function t(e){var r=P(e);this.data=rE();var i=this;e instanceof t?e.each(n):e&&b(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Fm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function V(t){return new iE(t)}function Vm(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function ii(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&L(r,e),r}function Oe(t,e){return t.hasOwnProperty(e)}function Ce(){}var ra=180/Math.PI,c2=Number.EPSILON||Math.pow(2,-52);var Uc=function(t,e){return Uc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Uc(t,e)};function ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Uc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function ni(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Hm(t){return[t[0],t[1]]}function rl(t,e,r){return t[0]=e,t[1]=r,t}function zc(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Gm(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function nE(t){return Math.sqrt(aE(t))}function aE(t){return t[0]*t[0]+t[1]*t[1]}function il(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Ym(t,e){var r=nE(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function nl(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Wm=nl;function oE(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ui=oE;function rt(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function Lr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Pr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ia=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),sE=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ia(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new ia(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ia(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ia(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ia(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ia(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Xm=sE;var lE=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),pt=lE;var uE=Math.log(2);function Fc(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/uE);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Fc(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Vc(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Fc(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Fc(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var al="___zrEVENTSAVED",Hc=[];function qm(t,e,r,i,n){return ol(Hc,e,i,n,!0)&&ol(t,r,Hc[0],Hc[1])}function Km(t,e){t&&r(t),e&&r(e);function r(i){var n=i[al];n&&(n.clearMarkers&&n.clearMarkers(),delete i[al])}}function ol(t,e,r,i,n){if(e.getBoundingClientRect&&re.domSupported&&!Gc(e)){var a=e[al]||(e[al]={}),o=fE(e,a),s=cE(o,a,n);if(s)return s(t,r,i),!0}return!1}function fE(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function cE(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Vc(s,o):Vc(o,s))}function Gc(t){return t.nodeName.toUpperCase()==="CANVAS"}var pE=/([&<>"'])/g,hE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xe(t){return t==null?"":(t+"").replace(pE,function(e,r){return hE[r]})}var vE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yc=[],dE=re.browser.firefox&&+re.browser.version.split(".")[0]<39;function sl(t,e,r,i){return r=r||{},i?Zm(t,e,r):dE&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Zm(t,e,r),r}function Zm(t,e,r){if(re.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Gc(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(ol(Yc,t,i,n)){r.zrX=Yc[0],r.zrY=Yc[1];return}}r.zrX=r.zrY=0}function ll(t){return t||window.event}function Tt(t,e,r){if(e=ll(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&sl(t,o,e,r)}else{sl(t,e,e,r);var a=mE(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&vE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function mE(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function jm(t,e,r,i){t.addEventListener(e,r,i)}function Qm(t,e,r,i){t.removeEventListener(e,r,i)}var ul=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Jm=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=sl(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Xc)if(Xc.hasOwnProperty(r)){var i=Xc[r](this._track,e);if(i)return i}},t})();function $m(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function gE(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Xc={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=$m(i)/$m(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=gE(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ht(){return[1,0,0,1,0,0]}function Nr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function xo(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ai(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function So(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function na(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function eg(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function dr(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}var yE=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),_e=yE;var Yi=Math.min,aa=Math.max,Zc=Math.abs,tg=["x","y"],_E=["width","height"],Fi=new _e,Vi=new _e,Hi=new _e,Gi=new _e,Ot=Qc(),bo=Ot.minTv,jc=Ot.maxTv,wo=[0,0],Rr=(function(){function t(e,r,i,n){qc(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Yi(e.x,this.x),i=Yi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=aa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=aa(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return xE(ht(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&_e.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=qc(SE,e.x,e.y,e.width,e.height)),r instanceof t||(r=qc(TE,r.x,r.y,r.width,r.height));var s=!!i;Ot.reset(n,s);var l=Ot.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,m=r.y+l,d=r.y+r.height-l;if(u>f||c>p||h>v||m>d)return!1;var g=!(f<h||v<u||p<m||d<c);return(s||a)&&(wo[0]=1/0,wo[1]=0,ig(u,f,h,v,0,s,a,o),ig(c,p,m,d,1,s,a,o),s&&_e.copy(i,g?Ot.useDir?Ot.dirMinTv:bo:jc)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){rg(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&rg(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Fi.x=Hi.x=r.x,Fi.y=Gi.y=r.y,Vi.x=Gi.x=r.x+r.width,Vi.y=Hi.y=r.y+r.height,Fi.transform(i),Gi.transform(i),Vi.transform(i),Hi.transform(i),e.x=Yi(Fi.x,Vi.x,Hi.x,Gi.x),e.y=Yi(Fi.y,Vi.y,Hi.y,Gi.y);var l=aa(Fi.x,Vi.x,Hi.x,Gi.x),u=aa(Fi.y,Vi.y,Hi.y,Gi.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=Nr(e||[]),So(e,e,rl(Kc,-r.x,-r.y)),eg(e,e,rl(Kc,n,a)),So(e,e,rl(Kc,i.x,i.y)),e},t})(),C2=Rr.create,qc=Rr.set,rg=Rr.copy,xE=Rr.calculateTransform,E2=Rr.applyTransform,A2=Rr.contain,SE=new Rr(0,0,0,0),TE=new Rr(0,0,0,0),Kc=[];function ig(t,e,r,i,n,a,o,s){var l=Zc(e-r),u=Zc(i-t),f=Yi(l,u),c=tg[n],p=tg[1-n],h=_E[n];e<r||i<t?l<u?(a&&(jc[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(jc[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=aa(t,r),o[h]=Yi(e,i)-o[c]),a&&(f<wo[0]||Ot.useDir)&&(wo[0]=Yi(f,wo[0]),(l<u||!Ot.bidirectional)&&(bo[c]=l,bo[p]=0,Ot.useDir&&Ot.calcDirMTV()),(l>=u||!Ot.bidirectional)&&(bo[c]=-u,bo[p]=0,Ot.useDir&&Ot.calcDirMTV())))}function Qc(){var t=0,e=new _e,r=new _e,i={minTv:new _e,maxTv:new _e,useDir:!1,dirMinTv:new _e,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=aa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Zc(a)<1e-10}return i}var te=Rr;var ag="silent";function bE(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:wE}}function wE(){ul(this.event)}var CE=(function(t){ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(pt),Co=(function(){function t(e,r){this.x=e,this.y=r}return t})(),EE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$c=new te(0,0,0,0),og=(function(t){ee(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Co(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new CE,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Xm(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(EE,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=sg(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Co(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Co(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=bE(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Co(r,i);if(ng(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new te(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&($c.copy(p.getBoundingRect()),p.transform&&$c.applyTransform(p.transform),$c.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,d=0;d<u;d+=h)for(var g=0;g<m;g+=v){var y=r+d*Math.cos(g),_=i+d*Math.sin(g);if(ng(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Jm);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Co;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(pt);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){og.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=sg(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wm(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function AE(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?ag:!0}return!1}function ng(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=AE(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==ag)){e.target=o;break}}}function sg(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var lg=og;var cg=32,Eo=7;function DE(t){for(var e=0;t>=cg;)e|=t&1,t>>=1;return t+e}function ug(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;ME(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function ME(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function fg(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Jc(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function ep(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function OE(t,e){var r=Eo,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],m=n[h],d=i[h+1],g=n[h+1];n[h]=m+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=ep(t[d],t,v,m,0,e);v+=y,m-=y,m!==0&&(g=Jc(t[v+m-1],t,d,g,g-1,e),g!==0&&(m<=g?c(v,m,d,g):p(v,m,d,g)))}function c(h,v,m,d){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=m,x=h;if(t[x++]=t[_++],--d===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<d;g++)t[x+g]=t[_+g];t[x+d]=o[y];return}for(var S=r,T,w,C;;){T=0,w=0,C=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],w++,T=0,--d===0){C=!0;break}}else if(t[x++]=o[y++],T++,w=0,--v===1){C=!0;break}while((T|w)<S);if(C)break;do{if(T=ep(t[_],o,y,v,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=o[y+g];if(x+=T,y+=T,v-=T,v<=1){C=!0;break}}if(t[x++]=t[_++],--d===0){C=!0;break}if(w=Jc(o[y],t,_,d,0,e),w!==0){for(g=0;g<w;g++)t[x+g]=t[_+g];if(x+=w,_+=w,d-=w,d===0){C=!0;break}}if(t[x++]=o[y++],--v===1){C=!0;break}S--}while(T>=Eo||w>=Eo);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<d;g++)t[x+g]=t[_+g];t[x+d]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,m,d){var g=0;for(g=0;g<d;g++)o[g]=t[m+g];var y=h+v-1,_=d-1,x=m+d-1,S=0,T=0;if(t[x--]=t[y--],--v===0){for(S=x-(d-1),g=0;g<d;g++)t[S+g]=o[g];return}if(d===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_];return}for(var w=r;;){var C=0,D=0,E=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],C++,D=0,--v===0){E=!0;break}}else if(t[x--]=o[_--],D++,C=0,--d===1){E=!0;break}while((C|D)<w);if(E)break;do{if(C=v-ep(o[_],t,h,v,v-1,e),C!==0){for(x-=C,y-=C,v-=C,T=x+1,S=y+1,g=C-1;g>=0;g--)t[T+g]=t[S+g];if(v===0){E=!0;break}}if(t[x--]=o[_--],--d===1){E=!0;break}if(D=d-Jc(t[y],o,0,d,d-1,e),D!==0){for(x-=D,_-=D,d-=D,T=x+1,S=_+1,g=0;g<D;g++)t[T+g]=o[S+g];if(d<=1){E=!0;break}}if(t[x--]=t[y--],--v===0){E=!0;break}w--}while(C>=Eo||D>=Eo);if(E)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(x-=v,y-=v,T=x+1,S=y+1,g=v-1;g>=0;g--)t[T+g]=t[S+g];t[x]=o[_]}else{if(d===0)throw new Error;for(S=x-(d-1),g=0;g<d;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Wi(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<cg){a=ug(t,r,i,e),fg(t,r,i,r+a,e);return}var o=OE(t,e),s=DE(n);do{if(a=ug(t,r,i,e),a<s){var l=n;l>s&&(l=s),fg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var at=1,Xi=2,oi=4;var pg=!1;function tp(){pg||(pg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var IE=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hg}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Wi(i,hg)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=at),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(tp(),v.z=0),isNaN(v.z2)&&(tp(),v.z2=0),isNaN(v.zlevel)&&(tp(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,i);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ae(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),vg=IE;var dg;dg=re.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var rp=dg;var fl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-fl.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?fl.bounceIn(t*2)*.5:fl.bounceOut(t*2-1)*.5+.5}},cl=fl;var pl=Math.pow,li=Math.sqrt,vl=1e-8,gg=1e-4,mg=li(3),hl=1/3,mr=ni(),Ft=ni(),oa=ni();function si(t){return t>-vl&&t<vl}function yg(t){return t>vl||t<-vl}function Be(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function ip(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function dl(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(si(f)&&si(c))if(si(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var m=c*c-4*f*p;if(si(m)){var d=c/f,v=-s/o+d,g=-d/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(m>0){var y=li(m),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-pl(-_,hl):_=pl(_,hl),x<0?x=-pl(-x,hl):x=pl(x,hl);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*li(f*f*f)),T=Math.acos(S)/3,w=li(f),C=Math.cos(T),v=(-s-2*w*C)/(3*o),g=(-s+w*(C+mg*Math.sin(T)))/(3*o),D=(-s+w*(C-mg*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),D>=0&&D<=1&&(a[h++]=D)}}return h}function ml(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(si(o)){if(yg(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(si(f))n[0]=-a/(2*o);else if(f>0){var c=li(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function sa(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function _g(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,m,d,g;mr[0]=l,mr[1]=u;for(var y=0;y<1;y+=.05)Ft[0]=Be(t,r,n,o,y),Ft[1]=Be(e,i,a,s,y),d=Ui(mr,Ft),d<h&&(c=y,h=d);h=1/0;for(var _=0;_<32&&!(p<gg);_++)v=c-p,m=c+p,Ft[0]=Be(t,r,n,o,v),Ft[1]=Be(e,i,a,s,v),d=Ui(Ft,mr),v>=0&&d<h?(c=v,h=d):(oa[0]=Be(t,r,n,o,m),oa[1]=Be(e,i,a,s,m),g=Ui(oa,mr),m<=1&&g<h?(c=m,h=g):p*=.5);return f&&(f[0]=Be(t,r,n,o,c),f[1]=Be(e,i,a,s,c)),li(h)}function xg(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,m=Be(t,r,n,o,v),d=Be(e,i,a,s,v),g=m-u,y=d-f;c+=Math.sqrt(g*g+y*y),u=m,f=d}return c}function qe(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function np(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Sg(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(si(a)){if(yg(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(si(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=li(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function gl(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function la(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Tg(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;mr[0]=o,mr[1]=s;for(var p=0;p<1;p+=.05){Ft[0]=qe(t,r,n,p),Ft[1]=qe(e,i,a,p);var h=Ui(mr,Ft);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<gg);v++){var m=u-f,d=u+f;Ft[0]=qe(t,r,n,m),Ft[1]=qe(e,i,a,m);var h=Ui(Ft,mr);if(m>=0&&h<c)u=m,c=h;else{oa[0]=qe(t,r,n,d),oa[1]=qe(e,i,a,d);var g=Ui(oa,mr);d<=1&&g<c?(u=d,c=g):f*=.5}}return l&&(l[0]=qe(t,r,n,u),l[1]=qe(e,i,a,u)),li(c)}function bg(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=qe(t,r,n,p),v=qe(e,i,a,p),m=h-s,d=v-l;u+=Math.sqrt(m*m+d*d),s=h,l=v}return u}var LE=/cubic-bezier\(([0-9,\.e ]+)\)/;function ua(t){var e=t&&LE.exec(t);if(e){var r=e[1].split(","),i=+tt(r[0]),n=+tt(r[1]),a=+tt(r[2]),o=+tt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:dl(0,i,a,1,l,s)&&Be(0,n,o,1,s[0])}}}var PE=(function(){function t(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||Ce,this.ondestroy=e.ondestroy||Ce,this.onrestart=e.onrestart||Ce,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=G(e)?e:cl[e]||ua(e)},t})(),wg=PE;var Cg=(function(){function t(e){this.value=e}return t})();var NE=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Cg(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var RE=(function(){function t(e){this._list=new NE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Cg(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gr=RE;var Eg={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 Ao(t){return t=Math.round(t),t<0?0:t>255?255:t}function kE(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ag(t){return t<0?0:t>1?1:t}function op(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ao(parseFloat(e)/100*255):Ao(parseInt(e,10))}function qi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ag(parseFloat(e)/100):Ag(parseFloat(e))}function sp(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Vt(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function lp(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Og=new gr(20),yl=null;function fa(t,e){yl&&lp(yl,e),yl=Og.put(t,yl||e.slice())}function $t(t,e){if(t){e=e||[];var r=Og.get(t);if(r)return lp(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in Eg)return lp(e,Eg[i]),fa(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Vt(e,0,0,0,1);return}return Vt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),fa(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Vt(e,0,0,0,1);return}return Vt(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),fa(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vt(e,+u[0],+u[1],+u[2],1):Vt(e,0,0,0,1);f=qi(u.pop());case"rgb":if(u.length>=3)return Vt(e,op(u[0]),op(u[1]),op(u[2]),u.length===3?f:qi(u[3])),fa(t,e),e;Vt(e,0,0,0,1);return;case"hsla":if(u.length!==4){Vt(e,0,0,0,1);return}return u[3]=qi(u[3]),up(u,e),fa(t,e),e;case"hsl":if(u.length!==3){Vt(e,0,0,0,1);return}return up(u,e),fa(t,e),e;default:return}}Vt(e,0,0,0,1)}}function up(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=qi(t[1]),n=qi(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],Vt(e,Ao(sp(o,a,r+1/3)*255),Ao(sp(o,a,r)*255),Ao(sp(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function BE(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Dg(t,e){var r=$t(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return _l(r,r.length===4?"rgba":"rgb")}}function Do(t,e,r,i){var n=$t(t);if(t)return n=BE(n),e!=null&&(n[0]=kE(G(e)?e(n[0]):e)),r!=null&&(n[1]=qi(G(r)?r(n[1]):r)),i!=null&&(n[2]=qi(G(i)?i(n[2]):i)),_l(up(n),"rgba")}function _l(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function ca(t,e){var r=$t(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Mg=new gr(100);function Mo(t){if(N(t)){var e=Mg.get(t);return e||(e=Dg(t,-.1),Mg.put(t,e)),e}else if($n(t)){var r=L({},t);return r.colorStops=R(t.colorStops,function(i){return{offset:i.offset,color:Dg(i.color,-.1)}}),r}return t}var Sl=Math.round;function ui(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=$t(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Ig=1e-4;function yr(t){return t<Ig&&t>-Ig}function xl(t){return Sl(t*1e3)/1e3}function Tl(t){return Sl(t*1e4)/1e4}function Lg(t){return"matrix("+xl(t[0])+","+xl(t[1])+","+xl(t[2])+","+xl(t[3])+","+Tl(t[4])+","+Tl(t[5])+")"}var Pg={left:"start",right:"end",center:"middle",middle:"middle"};function Ng(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function Rg(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function kg(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function fp(t){return t&&!!t.image}function zE(t){return t&&!!t.svgElement}function Oo(t){return fp(t)||zE(t)}function bl(t){return t.type==="linear"}function wl(t){return t.type==="radial"}function Cl(t){return t&&(t.type==="linear"||t.type==="radial")}function Io(t){return"url(#"+t+")"}function El(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Al(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*ra,n=F(t.scaleX,1),a=F(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+Sl(o*ra)+"deg, "+Sl(s*ra)+"deg)"),l.join(" ")}var Bg=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var pp=Array.prototype.slice;function kr(t,e,r){return(e-t)*r+t}function cp(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=kr(e[a],r[a],i);return t}function FE(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=kr(e[o][s],r[o][s],i)}return t}function Dl(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function Ug(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function VE(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function HE(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:pp.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function No(t){if(Fe(t)){var e=t.length;if(Fe(t[0])){for(var r=[],i=0;i<e;i++)r.push(pp.call(t[i]));return r}return pp.call(t)}return t}function Il(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function GE(t){return Fe(t&&t[0])?2:1}var Ml=0,Ll=1,Vg=2,Po=3,hp=4,vp=5,zg=6;function Fg(t){return t===hp||t===vp}function Ol(t){return t===Ll||t===Vg}var Lo=[0,0,0,0],YE=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=zg,l=r;if(Fe(r)){var u=GE(r);s=u,(u===1&&!fe(r[0])||u===2&&!fe(r[0][0]))&&(o=!0)}else if(fe(r)&&!ri(r))s=Ml;else if(N(r))if(!isNaN(+r))s=Ml;else{var f=$t(r);f&&(l=f,s=Po)}else if($n(r)){var c=L({},l);c.colorStops=R(r.colorStops,function(h){return{offset:h.offset,color:$t(h.color)}}),bl(r)?s=hp:wl(r)&&(s=vp),l=c}a===0?this.valType=s:(s!==this.valType||s===zg)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=G(i)?i:cl[i]||ua(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(m,d){return m.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ol(n),u=Fg(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?HE(p,h,n):u&&VE(p.colorStops,h.colorStops))}if(!s&&n!==vp&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===Ml?i[f].additiveValue=i[f].value-v:n===Po?i[f].additiveValue=Dl([],i[f].value,v,-1):Ol(n)&&(i[f].additiveValue=n===Ll?Dl([],i[f].value,v,-1):Ug([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Po,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=p(c+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var d=v.percent-h.percent,g=d===0?1:p((r-h.percent)/d,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Lo:e[l];if((Ol(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Ol(a))a===Ll?cp(y,h[n],v[n],g):FE(y,h[n],v[n],g);else if(Fg(a)){var _=h[n],x=v[n],S=a===hp;e[l]={type:S?"linear":"radial",x:kr(_.x,x.x,g),y:kr(_.y,x.y,g),colorStops:R(_.colorStops,function(w,C){var D=x.colorStops[C];return{offset:kr(w.offset,D.offset,g),color:Il(cp([],w.color,D.color,g))}}),global:x.global},S?(e[l].x2=kr(_.x2,x.x2,g),e[l].y2=kr(_.y2,x.y2,g)):e[l].r=kr(_.r,x.r,g)}else if(u)cp(y,h[n],v[n],g),i||(e[l]=Il(y));else{var T=kr(h[n],v[n],g);i?this._additiveValue=T:e[l]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Ml?e[i]=e[i]+n:r===Po?($t(e[i],Lo),Dl(Lo,Lo,n,1),e[i]=Il(Lo)):r===Ll?Dl(e[i],e[i],n,1):r===Vg&&Ug(e[i],e[i],n,1)},t})(),WE=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){el("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,Q(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new YE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Po&&u&&(u=Il(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,No(u),n),this._trackKeys.push(s)}l.addKeyframe(e,No(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new wg({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var m=!1,d=0;d<v.length;d++)if(v[d]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,h);var g=r._onframeCbs;if(g)for(var d=0;d<g.length;d++)g[d](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return R(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=No(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Q(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),Ro=WE;function Ki(){return new Date().getTime()}var XE=(function(t){ee(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Ki()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(rp(i),!r._paused&&r.update())}rp(i)},e.prototype.start=function(){this._running||(this._time=Ki(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ki(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ki()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ro(r,i.loop);return this.addAnimator(n),n},e})(pt),Hg=XE;var qE=300,dp=re.domSupported,mp=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=R(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),Gg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Yg=!1;function _p(t){var e=t.pointerType;return e==="pen"||e==="touch"}function KE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function gp(t){t&&(t.zrByTouch=!0)}function ZE(t,e){return Tt(t.dom,new jE(t,e),!0)}function Xg(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var jE=(function(){function t(e,r){this.stopPropagation=Ce,this.stopImmediatePropagation=Ce,this.preventDefault=Ce,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Jt={mousedown:function(t){t=Tt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Tt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Tt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Tt(this.dom,t);var e=t.toElement||t.relatedTarget;Xg(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Yg=!0,t=Tt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Yg||(t=Tt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Tt(this.dom,t),gp(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Jt.mousemove.call(this,t),Jt.mousedown.call(this,t)},touchmove:function(t){t=Tt(this.dom,t),gp(t),this.handler.processGesture(t,"change"),Jt.mousemove.call(this,t)},touchend:function(t){t=Tt(this.dom,t),gp(t),this.handler.processGesture(t,"end"),Jt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<qE&&Jt.click.call(this,t)},pointerdown:function(t){Jt.mousedown.call(this,t)},pointermove:function(t){_p(t)||Jt.mousemove.call(this,t)},pointerup:function(t){Jt.mouseup.call(this,t)},pointerout:function(t){_p(t)||Jt.mouseout.call(this,t)}};b(["click","dblclick","contextmenu"],function(t){Jt[t]=function(e){e=Tt(this.dom,e),this.trigger(t,e)}});var xp={pointermove:function(t){_p(t)||xp.mousemove.call(this,t)},pointerup:function(t){xp.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function QE(t,e){var r=e.domHandlers;re.pointerEventsSupported?b(mp.pointer,function(i){Pl(e,i,function(n){r[i].call(t,n)})}):(re.touchEventsSupported&&b(mp.touch,function(i){Pl(e,i,function(n){r[i].call(t,n),KE(e)})}),b(mp.mouse,function(i){Pl(e,i,function(n){n=ll(n),e.touching||r[i].call(t,n)})}))}function $E(t,e){re.pointerEventsSupported?b(Gg.pointer,r):re.touchEventsSupported||b(Gg.mouse,r);function r(i){function n(a){a=ll(a),Xg(t,a.target)||(a=ZE(t,a),e.domHandlers[i].call(t,a))}Pl(e,i,n,{capture:!0})}}function Pl(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,jm(t.domTarget,e,r,i)}function yp(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Qm(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Wg=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),JE=(function(t){ee(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new Wg(r,Jt),dp&&(n._globalHandlerScope=new Wg(document,xp)),QE(n,n._localHandlerScope),n}return e.prototype.dispose=function(){yp(this._localHandlerScope),dp&&yp(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,dp&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?$E(this,i):yp(i)}},e})(pt),qg=JE;var Kg=1;re.hasGlobalWindow&&(Kg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sp=Kg,ko=.4,Bo="#333",Uo="#ccc",Zg="#eee";var jg=Nr,Qg=5e-5;function Zi(t){return t>Qg||t<-Qg}var ji=[],pa=[],Tp=ht(),bp=Math.abs,$g=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return eA(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Zi(this.rotation)||Zi(this.x)||Zi(this.y)||Zi(this.scaleX-1)||Zi(this.scaleY-1)||Zi(this.skewX)||Zi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(jg(i),this.invTransform=null);return}i=i||ht(),r?this.getLocalTransform(i):jg(i),e&&(r?ai(i,e,i):xo(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||ht(),dr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ji);var i=ji[0]<0?-1:1,n=ji[1]<0?-1:1,a=((ji[0]-i)*r+i)/ji[0]||0,o=((ji[1]-n)*r+n)/ji[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ht(),ai(pa,e.invTransform,r),r=pa);var i=this.originX,n=this.originY;(i||n)&&(Tp[4]=i,Tp[5]=n,ai(pa,r,Tp),pa[4]-=i,pa[5]-=n,r=pa),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&rt(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&rt(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&bp(e[0]-1)>1e-10&&bp(e[3]-1)>1e-10?Math.sqrt(bp(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){fi(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,m=n+l;r[4]=-v*a-p*m*o,r[5]=-m*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&na(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),eA=$g.getLocalTransform;var ha=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function fi(t,e){return km(t,e,ha)}var va=$g;function tr(t){Nl||(Nl=new gr(100)),t=t||St;var e=Nl.get(t);return e||(e={font:t,strWidthCache:new gr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:nt.measureText("\u56FD",t).width,asciiCharWidth:nt.measureText("a",t).width},Nl.put(t,e)),e}var Nl;function tA(t){if(!(wp>=Jg)){t=t||St;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=nt.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?wp=Jg:n>2&&wp++,e}}var wp=0,Jg=5;function Cp(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=tA(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function rr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=nt.measureText(e,t.font).width,r.put(e,i)),i}function ey(t,e,r,i){var n=rr(tr(e),t),a=Qi(e),o=ci(0,n,r),s=Br(0,a,i),l=new te(o,s,n,a);return l}function Rl(t,e,r,i){var n=((t||"")+"").split(`
2
+ `),a=n.length;if(a===1)return ey(n[0],e,r,i);for(var o=new te(0,0,0,0),s=0;s<n.length;s++){var l=ey(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function ci(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function Br(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Qi(t){return tr(t).stWideCharWidth}function er(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function $i(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=er(i[0],r.width),u+=er(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Ep="__zr_normal__",Ap=ha.concat(["ignore"]),rA=jt(ha,function(t,e){return t[e]=!0,t},{ignore:!1}),da={},iA=new te(0,0,0,0),kl=[],Bl=0,ma=1,Op=(function(){function t(e){this.id=Js(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=iA,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(da,i,p):$i(da,i,p),a.x=da.x,a.y=da.y,o=da.align,s=da.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,m=void 0;h==="center"?(v=p.width*.5,m=p.height*.5):(v=er(h[0],p.width),m=er(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+m+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new te(0,0,0,0);a.getLocalTransform(kl),dr(kl,kl),te.copy(y,p),y.applyTransform(kl)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,T=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),T=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||T!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=T,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=at,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Uo:Bo},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&$t(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,_l(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},L(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(U(e))for(var i=e,n=Q(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ep)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Ap)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Ep,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Ep,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ae(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){el("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=ry(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,ny(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Bl,this.__dirty&=~at),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=ry(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),m=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,ny(this,r,m),m);var d=this._textGuide;p&&p.useStates(e,r,!!h),d&&d.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Bl,this.__dirty&=~at)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ae(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ae(n,e),o=ae(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];L(r,a),a.textConfig&&(i=i||{},L(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==ma){var s=!(r&&n);r&&r.textConfig?(this.textConfig=L({},n?this.textConfig:i.textConfig),L(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Ap.length;f++){var c=Ap[f],p=a&&rA[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new va,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),L(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=at;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new Ro(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ae(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Dp(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Dp(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Dp(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Bl,e.__dirty=at;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();ct(Op,pt);ct(Op,va);function Dp(t,e,r,i,n){r=r||{};var a=[];ay(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,m){r.during(m)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Mp(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function nA(t){return Fe(t[0])}function aA(t,e,r){if(Fe(e[r]))if(Fe(t[r])||(t[r]=[]),Ne(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Mp(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(nA(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Mp(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Mp(a,n,o);a.length=n.length}else t[r]=e[r]}function oA(t,e){return t===e||Fe(t)&&Fe(e)&&sA(t,e)}function sA(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function ay(t,e,r,i,n,a,o,s){for(var l=Q(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!U(a),v=t.animators,m=[],d=0;d<l.length;d++){var g=l[d],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(U(y)&&!Fe(y)&&!$n(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}ay(t,g,r[g],y,n,a&&a[g],o,s)}else m.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),m.push(g))}var _=m.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var T=S.stopTracks(m);if(T){var w=ae(v,S);v.splice(w,1)}}}if(n.force||(m=Me(m,function(A){return!oA(i[A],r[A])}),_=m.length),_>0||n.force&&!o.length){var C=void 0,D=void 0,E=void 0;if(s){D={},p&&(C={});for(var x=0;x<_;x++){var g=m[x];D[g]=r[g],p?C[g]=i[g]:r[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=m[x];E[g]=No(r[g]),aA(r,i,g)}}var S=new Ro(r,!1,!1,c?Me(v,function(I){return I.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&C&&S.whenWithKeys(0,C,m),E&&S.whenWithKeys(0,E,m),S.whenWithKeys(u??500,s?D:i,m).delay(f||0),t.addAnimator(S,e),o.push(S)}}function ry(t,e,r,i){return!(r&&r.hoverLayer||i)||iy(t)||e&&iy(e)?Bl:ma}function iy(t){return t.type==="text"||t.type==="tspan"}function ny(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Ul=Op;var oy=(function(t){ee(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ae(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ae(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new te(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(te.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Ul);oy.prototype.type="group";var be=oy;var zl={},sy={};function lA(t){delete sy[t]}function uA(t){if(!t)return!1;if(typeof t=="string")return ca(t,1)<ko;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=ca(e[n].color,1);return r/=i,r<ko}return!1}var fA=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new vg,o=i.renderer||"canvas";zl[o]||(o=Q(zl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new zl[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!re.node&&!re.worker&&!l?new qg(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?re.touchEventsSupported:!!f,p=44,h;c&&(h=F(i.pointerSize,p)),this.handler=new lg(a,s,u,s.root,h),this.animation=new Hg({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=uA(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.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},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=Ki(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Ki();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof be&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,lA(this.id))},t})();function Lp(t,e){var r=new fA(Js(),t,e);return sy[r.id]=r,r}function ly(t,e){zl[t]=e}var Ip;function uy(t){if(typeof Ip=="function")return Ip(t)}function fy(t){Ip=t}var cy=1e-4,py=20;function pA(t){return t.replace(/^\s+|\s+$/g,"")}var Le=Math.min,le=Math.max,Ee=Math.abs,It=Math.round,Ur=Math.floor,pi=Math.ceil,en=Math.pow,ga=Math.log,Pp=Math.LN10,hA=Math.PI,vA=Math.random;function Np(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var Ke=dA;function dA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Fl(t,e,r)}function Fl(t,e,r){return N(t)?mA(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function mA(t){return!!pA(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=Le(le(0,e),py),t=(+t).toFixed(e),r?t:+t)}function ya(t){return t.sort(function(e,r){return e-r}),t}function Ji(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(It(t*e)/e===t)return r}return gA(t)}function gA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return le(0,o-i)}function hy(t,e,r){var i=Ee(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=ga(2*Ee(r||1)*Ee(i))/Pp,a=ga(Ee(e))/Pp,o=le(0,pi(-n+a));return isFinite(o)||(o=NaN),o}function vy(t,e){var r=le(Ji(t),Ji(e)),i=t+e;return r>py?i:ve(i,r)}var Rp=en(2,53)-1;function kp(t){var e=hA*2;return(t%e+e)%e}function zo(t){return t>-cy&&t<cy}var yA=/^(?:(\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 _r(t){if(t instanceof Date)return t;if(N(t)){var e=yA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(It(t))}function Vl(t){return en(10,Hl(t))}function Hl(t){if(t===0)return 0;var e=Ur(ga(t)/Pp);return t/en(10,e)>=10&&e++,e}var Bp=2;function tn(t,e){var r=Hl(t),i=en(10,r),n=t/i,a;return e===Bp?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ve(t,-r)}function xr(t){var e=parseFloat(t);return e==t&&(e!==0||!N(t)||t.indexOf("x")<=0)?e:NaN}function Up(t){return!isNaN(xr(t))}function Fo(){return It(vA()*9)}function dy(t,e){return e===0?t:dy(e,t%e)}function zp(t,e){return t==null?e:e==null?t:t*e/dy(t,e)}function He(t){return t!=null&&isFinite(t)}var _A="[ECharts] ",gy={},xA=typeof console<"u"&&console.warn&&console.log;function SA(t,e,r){if(xA){if(r){if(gy[e])return;gy[e]=!0}console[t](_A+e)}}function Fp(t,e){SA("error",t,e)}function Qe(t){throw new Error(t)}var yy="series\0",TA="\0_ec_\0";function Ae(t){return t instanceof Array?t:t==null?[]:[t]}function Vp(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Hp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function zr(t){return U(t)&&!P(t)&&!(t instanceof Date)?t.value:t}function _y(t){return U(t)&&!(t instanceof Array)}function xy(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();b(e,function(l,u){if(!U(l)){e[u]=null;return}});var s=bA(t,o,r);return(i||n)&&wA(s,t,o,e),i&&CA(s,e),i||n?EA(s,e,n):a&&AA(s,e),DA(s),s}function bA(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||_a(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function wA(t,e,r,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=Vo(n.id),s=r.get(o);if(s!=null){var l=t[s];Ie(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function CA(t,e){b(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!_a(r)&&!_a(a)&&Sy("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function EA(t,e,r){b(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||_a(n.existing)||n.existing&&i.id!=null&&!Sy("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function AA(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function DA(t){var e=V();b(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),b(t,function(r){var i=r.newOption;Ie(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(U(a)){if(o.name=a.name!=null?Vo(a.name):n?n.name:yy+i,n)o.id=Vo(n.id);else if(a.id!=null)o.id=Vo(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Sy(t,e,r){var i=Lt(e[t],null),n=Lt(r[t],null);return i!=null&&n!=null&&i===n}function Vo(t){return Lt(t,"")}function Lt(t,e){return t==null?e:N(t)?t:fe(t)||_o(t)?t+"":e}function Gl(t){var e=t.name;return!!(e&&e.indexOf(yy))}function _a(t){return t&&t.id!=null&&Vo(t.id).indexOf(TA)===0}function Ty(t,e,r){b(t,function(i){var n=i.newOption;U(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=MA(e,n,i.existing,r))})}function MA(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function Fr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return P(e.dataIndex)?R(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return P(e.name)?R(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function J(){var t="__ec_inner_"+OA++;return function(e){return e[t]||(e[t]={})}}var OA=Fo();function Yl(t,e,r){var i=Ho(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=hi(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ho(t,e){var r;if(N(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=V(),a={},o=!1;return b(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ae(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var it={useDefault:!0,enableAll:!1,enableNone:!1};function hi(t,e,r,i){i=i||it;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function by(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Gp(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function wy(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Cy(t){return t==="auto"?re.domSupported?"html":"richText":t||"html"}var eB=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.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._idx+this._step,!0):!1},t})();function bt(){return[1/0,-1/0]}function Ey(t,e){ir(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Yp(t,e){ir(e)&&e<t[0]&&(t[0]=e)}function Wp(t,e){ir(e)&&e>t[1]&&(t[1]=e)}function Ay(t,e){Vr(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function ir(t){return t!=null&&isFinite(t)}function Vr(t,e){return ir(t)&&ir(e)&&t<=e}function Dy(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function My(t){Vr(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Wl(){var t="__ec_once_"+IA++;return function(e,r){Oe(e,t)||(e[t]=1,r())}}var IA=Fo();function xa(t,e,r){var i=V(),n=0;b(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function Oy(t){return t.value+""}function Iy(t){return t+""}function Xl(t,e){return F(e,!0)?t.seriesIndex+2:0}function ql(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Sa(t){return{overallReset:t}}var LA=".",rn="___EC__COMPONENT__CONTAINER___",Ly="___EC__EXTENDED_CLASS___";function wt(t){var e={main:"",sub:""};if(t){var r=t.split(LA);e.main=r[0]||"",e.sub=r[1]||""}return e}function PA(t){Ie(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Py(t){return!!(t&&t[Ly])}function ba(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return NA(i)?n=(function(a){W(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Bm(n,this)),L(n.prototype,r),n[Ly]=!0,n.extend=this.extend,n.superCall=kA,n.superApply=BA,n.superClass=i,n}}function NA(t){return G(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Kl(t,e){t.extend=e.extend}var RA=Math.round(Math.random()*10);function Ny(t){var e=["__\0is_clz",RA++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function kA(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function BA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function vi(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){PA(n),i.prototype.type=n;var a=wt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==rn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[rn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=wt(i),a=[],o=e[n.main];return o&&o[rn]?b(o,function(s,l){l!==rn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=wt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=wt(i),a=e[n.main];return a&&a[rn]};function r(i){var n=e[i.main];return(!n||!n[rn])&&(n=e[i.main]={},n[rn]=!0),n}}function Sr(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ae(n,l)>=0||a&&ae(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var UA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],zA=Sr(UA),Ry=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return zA(this,e,r)},t})();var qp=new gr(50);function By(t){if(typeof t=="string"){var e=qp.get(t);return e&&e.image}else return t}function Go(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=qp.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!wa(e)&&a.pending.push(o)):(e=nt.loadImage(t,ky,ky),e.__zrImageSrc=t,qp.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function ky(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function wa(t){return t&&t.width&&t.height}var Kp=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function VA(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);a=Vy(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Hy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
+ `),t.isTruncated=s}function Vy(t,e,r,i){i=i||{};var n=L({},i);r=F(r,"..."),n.maxIterations=F(i.maxIterations,2);var a=n.minChar=F(i.minChar,0),o=n.fontMeasureInfo=tr(e),s=o.asciiCharWidth;n.placeholder=F(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=rr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function Hy(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=rr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?HA(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=rr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function HA(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Cp(r,t.charCodeAt(n));return n}function Gy(t,e,r,i){var n=Qp(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Qi(u),p=F(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,m=e.width;m==null&&r!=null&&(m=r-s);var d=e.height;d==null&&i!=null&&(d=i-l);var g;m!=null&&(a==="break"||a==="breakAll")?g=n?Wy(n,e.font,m,a==="breakAll",0).lines:[]:g=n?n.split(`
5
+ `):[];var y=g.length*p;if(d==null&&(d=y),y>d&&h){var _=Math.floor(d/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&m!=null)for(var x=Vy(m,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<g.length;T++)Hy(S,g[T],x),g[T]=S.textLine,v=v||S.isTruncated;for(var w=d,C=0,D=tr(u),T=0;T<g.length;T++)C=Math.max(rr(D,g[T]),C);m==null&&(m=C);var E=m;return w+=l,E+=s,{lines:g,height:d,outerWidth:E,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:m,isTruncated:v}}var GA=(function(){function t(){}return t})(),Uy=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),YA=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function Yy(t,e,r,i,n){var a=new YA,o=Qp(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=Kp.lastIndex=0,m;(m=Kp.exec(o))!=null;){var d=m.index;d>v&&Zp(a,o.substring(v,d),e,h),Zp(a,m[2],e,h,m[1]),v=Kp.lastIndex}v<o.length&&Zp(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",T={};function w(ye,ft,xt){ye.width=ft,ye.lineHeight=xt,y+=xt,_=Math.max(_,ft)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],E=0,A=0,I=0;I<D.tokens.length;I++){var M=D.tokens[I],O=M.styleName&&e.rich[M.styleName]||{},k=M.textPadding=O.padding,B=k?k[1]+k[3]:0,Y=M.font=O.font||e.font;M.contentHeight=Qi(Y);var H=F(O.height,M.contentHeight);if(M.innerHeight=H,k&&(H+=k[0]+k[2]),M.height=H,M.lineHeight=Qt(O.lineHeight,e.lineHeight,H),M.align=O&&O.align||n,M.verticalAlign=O&&O.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var Z=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),w(D,A,E),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<Z;break e}var X=O.width,q=X==null||X==="auto";if(typeof X=="string"&&X.charAt(X.length-1)==="%")M.percentWidth=X,g.push(M),M.contentWidth=rr(tr(Y),M.text);else{if(q){var $=O.backgroundColor,se=$&&$.image;se&&(se=By(se),wa(se)&&(M.width=Math.max(M.width,se.width*H/se.height)))}var K=x&&f!=null?f-A:null;K!=null&&K<M.width?!q||K<B?(M.text="",M.width=M.contentWidth=0):(VA(T,M.text,K-B,Y,e.ellipsis,{minChar:e.truncateMinChar}),M.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,M.width=M.contentWidth=rr(tr(Y),M.text)):M.contentWidth=rr(tr(Y),M.text)}M.width+=B,A+=M.width,O&&(E=Math.max(E,M.lineHeight))}w(D,A,E)}a.outerWidth=a.width=F(f,_),a.outerHeight=a.height=F(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<g.length;C++){var M=g[C],pe=M.percentWidth;M.width=parseInt(pe,10)/100*a.width}return a}function Zp(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=er(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=v}else{var m=Wy(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+h,c=m.linesWidths,f=m.lines}}f||(f=e.split(`
7
+ `));for(var d=tr(l),g=0;g<f.length;g++){var y=f[g],_=new GA;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:rr(d,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new Uy)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new Uy([_]))}}function WA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var XA=jt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function qA(t){return WA(t)?!!XA[t]:!0}function Wy(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=tr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Cp(c,h.charCodeAt(0)),m=i?!1:!qA(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(m?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):m?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,m?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function jp(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;te.set(zy,ci(r,o,n),Br(i,s,a),o,s),te.intersect(e,zy,null,Fy);var l=Fy.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=ci(l.x,l.width,n,!0),t.baseY=Br(l.y,l.height,a,!0)}}var zy=new te(0,0,0,0),Fy={outIntersectRect:{},clamp:!0};function Qp(t){return t!=null?t+="":t=""}function Xy(t){var e=Qp(t.text),r=t.font,i=rr(tr(r),e),n=Qi(r);return Zl(t,i,n,null)}function Zl(t,e,r,i){var n=new te(ci(t.x||0,e,t.textAlign),Br(t.y||0,r,t.textBaseline),e,r),a=i??($p(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function $p(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var th="__zr_style_"+Math.round(Math.random()*10),Tr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Tr[th]=!0;var qy=["z","z2","invisible"],KA=["invisible"],ZA=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=Q(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&jA(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new te(0,0,0,0)),i?te.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new te(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:L(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Xi,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Xi)},e.prototype.styleUpdated=function(){this.__dirty&=~Xi},e.prototype.createStyle=function(r){return ii(Tr,r)},e.prototype.useStyle=function(r){r[th]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[th]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,qy)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===ma,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=Q(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var m=Q(f),h=0;h<m.length;h++){var v=m[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var d=this.__inHover?KA:qy,h=0;h<d.length;h++){var v=d[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return L(r,i),r},e.prototype.getAnimationStyleProps=function(){return nn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=at|Xi})(),e})(Ul),Jp=new te(0,0,0,0),eh=new te(0,0,0,0);function jA(t,e,r){return Jp.copy(t.getBoundingRect()),t.transform&&Jp.applyTransform(t.transform),eh.width=e,eh.height=r,!Jp.intersect(eh)}var br=ZA;var Ht=Math.min,Gt=Math.max,rh=Math.sin,ih=Math.cos,an=Math.PI*2,jl=ni(),Ql=ni(),$l=ni();function nh(t,e,r,i,n,a){n[0]=Ht(t,r),n[1]=Ht(e,i),a[0]=Gt(t,r),a[1]=Gt(e,i)}var Ky=[],Zy=[];function jy(t,e,r,i,n,a,o,s,l,u){var f=ml,c=Be,p=f(t,r,n,o,Ky);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,Ky[h]);l[0]=Ht(v,l[0]),u[0]=Gt(v,u[0])}p=f(e,i,a,s,Zy);for(var h=0;h<p;h++){var m=c(e,i,a,s,Zy[h]);l[1]=Ht(m,l[1]),u[1]=Gt(m,u[1])}l[0]=Ht(t,l[0]),u[0]=Gt(t,u[0]),l[0]=Ht(o,l[0]),u[0]=Gt(o,u[0]),l[1]=Ht(e,l[1]),u[1]=Gt(e,u[1]),l[1]=Ht(s,l[1]),u[1]=Gt(s,u[1])}function Qy(t,e,r,i,n,a,o,s){var l=gl,u=qe,f=Gt(Ht(l(t,r,n),1),0),c=Gt(Ht(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Ht(t,n,p),o[1]=Ht(e,a,h),s[0]=Gt(t,n,p),s[1]=Gt(e,a,h)}function $y(t,e,r,i,n,a,o,s,l){var u=Lr,f=Pr,c=Math.abs(n-a);if(c%an<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(jl[0]=ih(n)*r+t,jl[1]=rh(n)*i+e,Ql[0]=ih(a)*r+t,Ql[1]=rh(a)*i+e,u(s,jl,Ql),f(l,jl,Ql),n=n%an,n<0&&(n=n+an),a=a%an,a<0&&(a=a+an),n>a&&!o?a+=an:n<a&&o&&(n+=an),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&($l[0]=ih(h)*r+t,$l[1]=rh(h)*i+e,u(s,$l,s),f(l,$l,l))}var xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},on=[],sn=[],wr=[],di=[],Cr=[],Er=[],ah=Math.min,oh=Math.max,ln=Math.cos,un=Math.sin,Hr=Math.abs,uh=Math.PI,mi=uh*2,sh=typeof Float32Array<"u",Yo=[];function lh(t){var e=Math.round(t/uh*1e8)/1e8;return e%2*uh}function QA(t,e){var r=lh(t[0]);r<0&&(r+=mi);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=mi?n=r+mi:e&&r-n>=mi?n=r-mi:!e&&r>n?n=r+(mi-lh(r-n)):e&&r<n&&(n=r-(mi-lh(n-r))),t[0]=r,t[1]=n}var $A=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Hr(i/Sp/e)||0,this._uy=Hr(i/Sp/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(xe.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Hr(e-this._xi),n=Hr(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(xe.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(xe.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(xe.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Yo[0]=n,Yo[1]=a,QA(Yo,o),n=Yo[0],a=Yo[1];var s=a-n;return this.addData(xe.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=ln(a)*i+e,this._yi=un(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(xe.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xe.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&sh&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(sh&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){wr[0]=wr[1]=Cr[0]=Cr[1]=Number.MAX_VALUE,di[0]=di[1]=Er[0]=Er[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case xe.M:r=n=e[o++],i=a=e[o++],Cr[0]=n,Cr[1]=a,Er[0]=n,Er[1]=a;break;case xe.L:nh(r,i,e[o],e[o+1],Cr,Er),r=e[o++],i=e[o++];break;case xe.C:jy(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Cr,Er),r=e[o++],i=e[o++];break;case xe.Q:Qy(r,i,e[o++],e[o++],e[o],e[o+1],Cr,Er),r=e[o++],i=e[o++];break;case xe.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var m=!e[o++];l&&(n=ln(h)*c+u,a=un(h)*p+f),$y(u,f,c,p,h,v,m,Cr,Er),r=ln(v)*c+u,i=un(v)*p+f;break;case xe.R:n=r=e[o++],a=i=e[o++];var d=e[o++],g=e[o++];nh(n,a,n+d,a+g,Cr,Er);break;case xe.Z:r=n,i=a;break}Lr(wr,wr,Cr),Pr(di,di,Er)}return o===0&&(wr[0]=wr[1]=di[0]=di[1]=0),new te(wr[0],wr[1],di[0]-wr[0],di[1]-wr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var m=-1;switch(h){case xe.M:a=s=e[p++],o=l=e[p++];break;case xe.L:{var d=e[p++],g=e[p++],y=d-a,_=g-o;(Hr(y)>i||Hr(_)>n||p===r-1)&&(m=Math.sqrt(y*y+_*_),a=d,o=g);break}case xe.C:{var x=e[p++],S=e[p++],d=e[p++],g=e[p++],T=e[p++],w=e[p++];m=xg(a,o,x,S,d,g,T,w,10),a=T,o=w;break}case xe.Q:{var x=e[p++],S=e[p++],d=e[p++],g=e[p++];m=bg(a,o,x,S,d,g,10),a=d,o=g;break}case xe.A:var C=e[p++],D=e[p++],E=e[p++],A=e[p++],I=e[p++],M=e[p++],O=M+I;p+=1,v&&(s=ln(I)*E+C,l=un(I)*A+D),m=oh(E,A)*ah(mi,Math.abs(M)),a=ln(O)*E+C,o=un(O)*A+D;break;case xe.R:{s=a=e[p++],l=o=e[p++];var k=e[p++],B=e[p++];m=k*2+B*2;break}case xe.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[c++]=m,f+=m)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,m,d=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,y=r*m,!y)))e:for(var T=0;T<o;){var w=i[T++],C=T===1;switch(C&&(u=i[T],f=i[T+1],s=u,l=f),w!==xe.L&&_>0&&(e.lineTo(x,S),_=0),w){case xe.M:s=u=i[T++],l=f=i[T++],e.moveTo(u,f);break;case xe.L:{c=i[T++],p=i[T++];var D=Hr(c-u),E=Hr(p-f);if(D>n||E>a){if(h){var A=v[g++];if(d+A>y){var I=(y-d)/A;e.lineTo(u*(1-I)+c*I,f*(1-I)+p*I);break e}d+=A}e.lineTo(c,p),u=c,f=p,_=0}else{var M=D*D+E*E;M>_&&(x=c,S=p,_=M)}break}case xe.C:{var O=i[T++],k=i[T++],B=i[T++],Y=i[T++],H=i[T++],Z=i[T++];if(h){var A=v[g++];if(d+A>y){var I=(y-d)/A;sa(u,O,B,H,I,on),sa(f,k,Y,Z,I,sn),e.bezierCurveTo(on[1],sn[1],on[2],sn[2],on[3],sn[3]);break e}d+=A}e.bezierCurveTo(O,k,B,Y,H,Z),u=H,f=Z;break}case xe.Q:{var O=i[T++],k=i[T++],B=i[T++],Y=i[T++];if(h){var A=v[g++];if(d+A>y){var I=(y-d)/A;la(u,O,B,I,on),la(f,k,Y,I,sn),e.quadraticCurveTo(on[1],sn[1],on[2],sn[2]);break e}d+=A}e.quadraticCurveTo(O,k,B,Y),u=B,f=Y;break}case xe.A:var X=i[T++],q=i[T++],$=i[T++],se=i[T++],K=i[T++],pe=i[T++],ye=i[T++],ft=!i[T++],xt=$>se?$:se,je=Hr($-se)>.001,ze=K+pe,ne=!1;if(h){var A=v[g++];d+A>y&&(ze=K+pe*(y-d)/A,ne=!0),d+=A}if(je&&e.ellipse?e.ellipse(X,q,$,se,ye,K,ze,ft):e.arc(X,q,xt,K,ze,ft),ne)break e;C&&(s=ln(K)*$+X,l=un(K)*se+q),u=ln(ze)*$+X,f=un(ze)*se+q;break;case xe.R:s=u=i[T],l=f=i[T+1],c=i[T++],p=i[T++];var de=i[T++],Zt=i[T++];if(h){var A=v[g++];if(d+A>y){var We=y-d;e.moveTo(c,p),e.lineTo(c+ah(We,de),p),We-=de,We>0&&e.lineTo(c+de,p+ah(We,Zt)),We-=Zt,We>0&&e.lineTo(c+oh(de-We,0),p+Zt),We-=de,We>0&&e.lineTo(c,p+oh(Zt-We,0));break e}d+=A}e.rect(c,p,de,Zt);break;case xe.Z:if(h){var A=v[g++];if(d+A>y){var I=(y-d)/A;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}d+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=xe,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Pt=$A;function fn(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function Jy(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=_g(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function e_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Tg(t,e,r,i,n,a,s,l,null);return f<=u/2}var t_=Math.PI*2;function Wo(t){return t%=t_,t<0&&(t+=t_),t}var Xo=Math.PI*2;function r_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Xo<1e-4)return!0;if(a){var c=i;i=Wo(n),n=Wo(c)}else i=Wo(i),n=Wo(n);i>n&&(n+=Xo);var p=Math.atan2(l,s);return p<0&&(p+=Xo),p>=i&&p<=n||p+Xo>=i&&p+Xo<=n}function Gr(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var gi=Pt.CMD,cn=Math.PI*2,iD=1e-4;function nD(t,e){return Math.abs(t-e)<iD}var vt=[-1,-1,-1],Yt=[-1,-1];function aD(){var t=Yt[0];Yt[0]=Yt[1],Yt[1]=t}function oD(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=dl(e,i,a,s,u,vt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,m=0;m<f;m++){var d=vt[m],g=d===0||d===1?.5:1,y=Be(t,r,n,o,d);y<l||(p<0&&(p=ml(e,i,a,s,Yt),Yt[1]<Yt[0]&&p>1&&aD(),h=Be(e,i,a,s,Yt[0]),p>1&&(v=Be(e,i,a,s,Yt[1]))),p===2?d<Yt[0]?c+=h<e?g:-g:d<Yt[1]?c+=v<h?g:-g:c+=s<v?g:-g:d<Yt[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function sD(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=Sg(e,i,a,s,vt);if(l===0)return 0;var u=gl(e,i,a);if(u>=0&&u<=1){for(var f=0,c=qe(e,i,a,u),p=0;p<l;p++){var h=vt[p]===0||vt[p]===1?.5:1,v=qe(t,r,n,vt[p]);v<o||(vt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=vt[0]===0||vt[0]===1?.5:1,v=qe(t,r,n,vt[0]);return v<o?0:a<e?h:-h}}function lD(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);vt[0]=-l,vt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=cn-1e-4){i=0,n=cn;var f=a?1:-1;return o>=vt[0]+t&&o<=vt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=cn,n+=cn);for(var p=0,h=0;h<2;h++){var v=vt[h];if(v+t>o){var m=Math.atan2(s,v),f=a?1:-1;m<0&&(m=cn+m),(m>=i&&m<=n||m+cn>=i&&m+cn<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),p+=f)}}return p}function i_(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var m=a[v++],d=v===1;switch(m===gi.M&&v>1&&(r||(s+=Gr(l,u,f,c,i,n))),d&&(l=a[v],u=a[v+1],f=l,c=u),m){case gi.M:f=a[v++],c=a[v++],l=f,u=c;break;case gi.L:if(r){if(fn(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Gr(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case gi.C:if(r){if(Jy(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=oD(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case gi.Q:if(r){if(e_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=sD(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case gi.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var w=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,d?(f=p,c=h):s+=Gr(l,u,p,h,i,n);var C=(i-g)*x/_+g;if(r){if(r_(g,y,x,S,S+T,w,e,C,n))return!0}else s+=lD(g,y,x,S,S+T,w,C,n);l=Math.cos(S+T)*_+g,u=Math.sin(S+T)*x+y;break;case gi.R:f=l=a[v++],c=u=a[v++];var D=a[v++],E=a[v++];if(p=f+D,h=c+E,r){if(fn(f,c,p,c,e,i,n)||fn(p,c,p,h,e,i,n)||fn(p,h,f,h,e,i,n)||fn(f,h,f,c,e,i,n))return!0}else s+=Gr(p,c,p,h,i,n),s+=Gr(f,h,f,c,i,n);break;case gi.Z:if(r){if(fn(l,u,f,c,e,i,n))return!0}else s+=Gr(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!nD(u,c)&&(s+=Gr(l,u,f,c,i,n)||0),s!==0}function n_(t,e,r){return i_(t,0,!1,e,r)}function a_(t,e,r,i){return i_(t,e,!0,r,i)}var Ca=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Tr),fD={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nn.style)},fh=ha.concat(["invisible","culling","z","z2","zlevel","parent"]),cD=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<fh.length;++s)n[fh[s]]=this[fh[s]];n.__dirty|=at}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=Q(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?L(this.style,s):this.useStyle(s):o==="shape"?L(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(N(r)){var i=ca(r,0);return i>.5?Bo:i>.2?Zg:Uo}else if(r)return Uo}return Bo},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(N(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ca(r,0)<ko;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~oi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Pt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&oi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),a_(s,l/u,r,i)))return!0}if(this.hasFill())return n_(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=oi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:L(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&oi)},e.prototype.createStyle=function(r){return ii(Ca,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=L({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==ma){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=L({},n.shape),L(u,i.shape)):(u=L({},a?this.shape:n.shape),L(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=L({},this.shape);for(var f={},c=Q(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return fD},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){ee(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(r.style)},o.prototype.getDefaultShape=function(){return j(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=at|Xi|oi})(),e})(br),ie=cD;var pD=oe({strokeFirst:!0,font:St,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ca),o_=(function(t){ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return $p(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return ii(pD,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Xy(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(br);o_.prototype.type="tspan";var pn=o_;var hD=oe({x:0,y:0},Tr),vD={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nn.style)};function dD(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var s_=(function(t){ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ii(hD,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=dD(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vD},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new te(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(br);s_.prototype.type="image";var ot=s_;function l_(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ea=Math.round;function Jl(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ea(i*2)===Ea(n*2)&&(t.x1=t.x2=yi(i,s,!0)),Ea(a*2)===Ea(o*2)&&(t.y1=t.y2=yi(a,s,!0))),t}}function eu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=yi(i,s,!0),t.y=yi(n,s,!0),t.width=Math.max(yi(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(yi(n+o,s,!1)-t.y,o===0?0:1)),t}}function yi(t,e,r){if(!e)return t;var i=Ea(t*2);return(i+Ea(e))%2===0?i/2:(i+(r?1:-1))/2}var yD=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var _D={},u_=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yD},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=eu(_D,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?l_(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ie);u_.prototype.type="rect";var Te=u_;var f_={fill:"#000"},c_=2,Ar={},xD={style:oe({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},nn.style)},__=(function(t){ee(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=f_,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,bD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new te(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||f_},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return L(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=Q(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},L(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return xD},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||St,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";jp(Ar,a.overflowRect,o,s,l,u),o=Ar.baseX,s=Ar.baseY;var f=y_(r),c=Gy(f,r,Ar.outerWidth,Ar.outerHeight),p=ch(r),h=!!r.backgroundColor,v=c.outerHeight,m=c.outerWidth,d=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Br(s,c.contentHeight,u);if(p||n){var x=ci(o,m,l),S=Br(s,v,u);p&&this._renderBackground(r,r,x,S,m,v)}_+=g/2,n&&(y=g_(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var T=0,w=!1,C=!1,D=m_("fill"in r?r.fill:(C=!0,a.fill)),E=d_("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(T=c_,w=!0,a.stroke):null),A=r.textShadowBlur>0,I=0;I<d.length;I++){var M=this._getOrCreateChild(pn),O=M.createStyle();M.useStyle(O),O.text=d[I],O.x=y,O.y=_,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,A&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=E,O.fill=D,E&&(O.lineWidth=r.lineWidth||T,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=i,h_(O,r),_+=g,M.setBoundingRect(Zl(O,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;jp(Ar,i.overflowRect,o,s,n,a),o=Ar.baseX,s=Ar.baseY;var l=y_(r),u=Yy(l,r,Ar.outerWidth,Ar.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=ci(o,c,n),m=Br(s,p,a),d=v,g=m;h&&(d+=h[3],g+=h[0]);var y=d+f;ch(r)&&this._renderBackground(r,r,v,m,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],T=S.tokens,w=T.length,C=S.lineHeight,D=S.width,E=0,A=d,I=y,M=w-1,O=void 0;E<w&&(O=T[E],!O.align||O.align==="left");)this._placeToken(O,r,C,g,A,"left",_),D-=O.width,A+=O.width,E++;for(;M>=0&&(O=T[M],O.align==="right");)this._placeToken(O,r,C,g,I,"right",_),D-=O.width,I-=O.width,M--;for(A+=(f-(A-d)-(y-I)-D)/2;E<=M;)O=T[E],this._placeToken(O,r,C,g,A+O.width/2,"center",_),A+=O.width,E++;g+=C}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&ch(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=g_(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var m=this._getOrCreateChild(pn),d=m.createStyle();m.useStyle(d);var g=this._defaultStyle,y=!1,_=0,x=!1,S=m_("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),T=d_("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=c_,x=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=c,w&&(d.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,d.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||St,d.opacity=Qt(u.opacity,i.opacity,1),h_(d,u),T&&(d.lineWidth=Qt(u.lineWidth,i.lineWidth,_),d.lineDash=F(u.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=T),S&&(d.fill=S),m.setBoundingRect(Zl(d,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,m,d;if(p||r.lineHeight||u&&f){m=this._getOrCreateChild(Te),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,m.dirtyShape()}if(p){var y=m.style;y.fill=l||null,y.fillOpacity=F(r.fillOpacity,1)}else if(c){d=this._getOrCreateChild(ot),d.onload=function(){v.dirtyStyle()};var _=d.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=F(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(m||d).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Qt(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return hh(r)&&(i=[r.fontStyle,r.fontWeight,ph(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&tt(i)||r.textFont||r.font},e})(br),SD={left:!0,right:1,center:1},TD={top:1,bottom:1,middle:1},p_=["fontStyle","fontWeight","fontSize","fontFamily"];function ph(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?js+"px":t+"px"}function h_(t,e){for(var r=0;r<p_.length;r++){var i=p_[r],n=e[i];n!=null&&(t[i]=n)}}function hh(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function bD(t){return v_(t),b(t.rich,v_),t}function v_(t){if(t){t.font=__.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||SD[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||TD[r]?r:"top";var i=t.padding;i&&(t.padding=ea(t.padding))}}function d_(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function m_(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function g_(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function y_(t){var e=t.text;return e!=null&&(e+=""),e}function ch(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var st=__;var ge=J(),x_=function(t,e,r,i){if(i){var n=ge(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ge(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var _i="undefined",tu="series",ru=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ge="arrayRows",dt="objectRows",Nt="keyedColumns",Rt="typedArray",vh="unknown",kt="column",Dr="row";var wD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],CD=(function(){function t(e){b(wD,function(r){this[r]=me(e[r],e)},this)}return t})();function S_(t,e){return e.mainType===tu?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var iu=CD;var T_=1,b_={},D_=J(),gh=J(),M_=0,au=1,ou=2,Yr=["emphasis","blur","select"],yh=["normal","emphasis","blur","select"],ED=10,AD=9,xi="highlight",qo="downplay",Ko="select",su="unselect",Zo="toggleSelect",lu="selectchanged";function Aa(t){return t!=null&&t!=="none"}function uu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function O_(t){uu(t,"emphasis",ou)}function I_(t){t.hoverState===ou&&uu(t,"normal",M_)}function _h(t){uu(t,"blur",au)}function L_(t){t.hoverState===au&&uu(t,"normal",M_)}function DD(t){t.selected=!0}function MD(t){t.selected=!1}function w_(t,e,r){e(t,r)}function Wr(t,e,r){w_(t,e,r),t.isGroup&&t.traverse(function(i){w_(i,e,r)})}function OD(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function ID(t,e,r,i){var n=r&&ae(r,"select")>=0,a=!1;if(t instanceof ie){var o=D_(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Aa(s)||Aa(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=L({},i),u=L({},u),u.fill=s):!Aa(u.fill)&&Aa(s)?(a=!0,i=L({},i),u=L({},u),u.fill=Mo(s)):!Aa(u.stroke)&&Aa(l)&&(a||(i=L({},i),u=L({},u)),u.stroke=Mo(l)),i.style=u}}if(i&&i.z2==null){a||(i=L({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??ED)}return i}function LD(t,e,r){if(r&&r.z2==null){r=L({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??AD)}return r}function PD(t,e,r){var i=ae(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:OD(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=L({},r),o=L({opacity:i?n:a.opacity*.1},o),r.style=o),r}function dh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return ID(this,t,e,r);if(t==="blur")return PD(this,t,r);if(t==="select")return LD(this,t,r)}return r}function ND(t){t.stateProxy=dh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=dh),r&&(r.stateProxy=dh)}function C_(t,e){!N_(t,e)&&!t.__highByOuter&&Wr(t,O_)}function E_(t,e){!N_(t,e)&&!t.__highByOuter&&Wr(t,I_)}function hn(t,e){t.__highByOuter|=1<<(e||0),Wr(t,O_)}function vn(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Wr(t,I_)}function P_(t){Wr(t,_h)}function xh(t){Wr(t,L_)}function Sh(t){Wr(t,DD)}function Th(t){Wr(t,MD)}function N_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function bh(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=gh(a),s=S_(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){L_(u)}),l&&r.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function mh(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&xh(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(d){d.__highByOuter&&f&&e==="self"||_h(d)}),Fe(e))a(u.getData(),e);else if(U(e))for(var v=Q(e),m=0;m<v.length;m++)a(u.getData(v[m]),e[v[m]]);l.push(u),gh(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function nu(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){gh(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){_h(a)})}}}function R_(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=Fr(n,e);a=(P(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ge(o);mh(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&mh(i,f,c,r)}}}function fu(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ge(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function k_(t,e,r){var i=ge(t),n=fu(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&nu(i.componentMainType,i.componentIndex,r),b(a,function(s){return C_(s,e)})):(mh(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&nu(i.componentMainType,i.componentIndex,r),C_(t,e))}function B_(t,e,r){bh(r);var i=ge(t),n=fu(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?b(n,function(a){return E_(a,e)}):E_(t,e)}function U_(t,e,r){if(pu(e)){var i=e.dataType,n=t.getData(i),a=Fr(n,e);P(a)||(a=[a]),t[e.type===Zo?"toggleSelect":e.type===Ko?"select":"unselect"](a,i)}}function wh(t){var e=t.getAllData();b(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Sh(a):Th(a)})})}function z_(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();b(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function RD(t,e,r){V_(t,!0),Wr(t,ND),BD(t,e,r)}function kD(t){V_(t,!1)}function cu(t,e,r,i){i?kD(t):RD(t,e,r)}function BD(t,e,r){var i=ge(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var A_=["emphasis","blur","select"],UD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function F_(t,e,r,i){r=r||"itemStyle";for(var n=0;n<A_.length;n++){var a=A_[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[UD[r]]()}}function V_(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function jo(t){return!!(t&&t.__highDownDispatcher)}function H_(t){var e=b_[t];return e==null&&T_<=32&&(e=b_[t]=T_++),e}function pu(t){var e=t.type;return e===Ko||e===su||e===Zo}function Ch(t){var e=t.type;return e===xi||e===qo}function G_(t){var e=D_(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Et={};Im(Et,{Arc:()=>ts,BezierCurve:()=>Rh,BoundingRect:()=>te,Circle:()=>$o,CompoundPath:()=>gu,Ellipse:()=>Mh,Group:()=>be,HOVER_LAYER_FOR_INCREMENTAL:()=>is,HOVER_LAYER_FROM_THRESHOLD:()=>Hh,HOVER_LAYER_NO:()=>Vh,Image:()=>ot,IncrementalDisplayable:()=>g0,Line:()=>ar,LinearGradient:()=>v0,OrientedBoundingRect:()=>Tu,Path:()=>ie,Point:()=>_e,Polygon:()=>Ph,Polyline:()=>Nh,RadialGradient:()=>d0,Rect:()=>Te,Ring:()=>Ih,Sector:()=>Si,Text:()=>st,WH:()=>_n,XY:()=>Xr,applyTransform:()=>Eu,calcZ2Range:()=>MM,clipPointsByRect:()=>CM,clipRectByRect:()=>EM,createIcon:()=>Wh,decomposeTransform:()=>IM,ensureCopyRect:()=>Pa,ensureCopyTransform:()=>Mu,expandOrShrinkRect:()=>La,extendPath:()=>gM,extendShape:()=>dM,getCurrentCanvasPainter:()=>LM,getShapeClass:()=>yM,getTransform:()=>TM,groupTransition:()=>Yh,initProps:()=>Wt,isBoundingRectAxisAligned:()=>Du,isElementRemoved:()=>yn,lineLineIntersect:()=>b0,linePolygonIntersect:()=>AM,makeImage:()=>Gh,makePath:()=>Cu,mergePath:()=>_M,payloadDisableAnimation:()=>OM,registerShape:()=>or,removeElement:()=>Oa,removeElementWithFadeOut:()=>Ia,resizePath:()=>T0,retrieveZInfo:()=>Xh,setTooltipConfig:()=>Au,subPixelOptimize:()=>SM,subPixelOptimizeLine:()=>xn,subPixelOptimizeRect:()=>xM,transformDirection:()=>bM,traverseElements:()=>Sn,traverseUpdateZ:()=>qh,updateProps:()=>mt});var Da=Pt.CMD,zD=[[],[],[]],Y_=Math.sqrt,FD=Math.atan2;function Eh(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Da.M,c=Da.C,p=Da.L,h=Da.R,v=Da.A,m=Da.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case m:a=2;break;case v:var d=e[4],g=e[5],y=Y_(e[0]*e[0]+e[1]*e[1]),_=Y_(e[2]*e[2]+e[3]*e[3]),x=FD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=d,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],rt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],rt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=zD[l];S[0]=r[o++],S[1]=r[o++],rt(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Ah=Math.sqrt,hu=Math.sin,vu=Math.cos,Qo=Math.PI;function W_(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Dh(t,e){return(t[0]*e[0]+t[1]*e[1])/(W_(t)*W_(e))}function X_(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Dh(t,e))}function q_(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Qo/180),p=vu(c)*(t-r)/2+hu(c)*(e-i)/2,h=-1*hu(c)*(t-r)/2+vu(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Ah(v),s*=Ah(v));var m=(n===a?-1:1)*Ah((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,d=m*o*h/s,g=m*-s*p/o,y=(t+r)/2+vu(c)*d-hu(c)*g,_=(e+i)/2+hu(c)*d+vu(c)*g,x=X_([1,0],[(p-d)/o,(h-g)/s]),S=[(p-d)/o,(h-g)/s],T=[(-1*p-d)/o,(-1*h-g)/s],w=X_(S,T);if(Dh(S,T)<=-1&&(w=Qo),Dh(S,T)>=1&&(w=0),w<0){var C=Math.round(w/Qo*1e6)/1e6;w=Qo*2+C%2*Qo}f.addData(u,y,_,o,s,x,w,c,a)}var VD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function GD(t){var e=new Pt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=Pt.CMD,l=t.match(VD);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(HD)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var d=0;d<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0,C=r,D=i,E=void 0,A=void 0;switch(c){case"l":r+=h[d++],i+=h[d++],p=s.L,e.addData(p,r,i);break;case"L":r=h[d++],i=h[d++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[d++],i+=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[d++],i=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[d++],p=s.L,e.addData(p,r,i);break;case"H":r=h[d++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[d++],p=s.L,e.addData(p,r,i);break;case"V":i=h[d++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[d++],h[d++],h[d++],h[d++],h[d++],h[d++]),r=h[d-2],i=h[d-1];break;case"c":p=s.C,e.addData(p,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i),r+=h[d-2],i+=h[d-1];break;case"S":g=r,y=i,E=e.len(),A=e.data,o===s.C&&(g+=r-A[E-4],y+=i-A[E-3]),p=s.C,C=h[d++],D=h[d++],r=h[d++],i=h[d++],e.addData(p,g,y,C,D,r,i);break;case"s":g=r,y=i,E=e.len(),A=e.data,o===s.C&&(g+=r-A[E-4],y+=i-A[E-3]),p=s.C,C=r+h[d++],D=i+h[d++],r+=h[d++],i+=h[d++],e.addData(p,g,y,C,D,r,i);break;case"Q":C=h[d++],D=h[d++],r=h[d++],i=h[d++],p=s.Q,e.addData(p,C,D,r,i);break;case"q":C=h[d++]+r,D=h[d++]+i,r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,C,D,r,i);break;case"T":g=r,y=i,E=e.len(),A=e.data,o===s.Q&&(g+=r-A[E-4],y+=i-A[E-3]),r=h[d++],i=h[d++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,E=e.len(),A=e.data,o===s.Q&&(g+=r-A[E-4],y+=i-A[E-3]),r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[d++],x=h[d++],S=h[d++],T=h[d++],w=h[d++],C=r,D=i,r=h[d++],i=h[d++],p=s.A,q_(C,D,r,i,T,w,_,x,S,p,e);break;case"a":_=h[d++],x=h[d++],S=h[d++],T=h[d++],w=h[d++],C=r,D=i,r+=h[d++],i+=h[d++],p=s.A,q_(C,D,r,i,T,w,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var K_=(function(t){ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ie);function Z_(t){return t.setData!=null}function j_(t,e){var r=GD(t),i=L({},e);return i.buildPath=function(n){var a=Z_(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Eh(r,n),this.dirtyShape()},i}function Q_(t,e){return new K_(j_(t,e))}function $_(t,e){var r=j_(t,e),i=(function(n){ee(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(K_);return i}function J_(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ie(e);return o.createPathProxy(),o.buildPath=function(s){if(Z_(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var WD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var e0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WD},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ie);e0.prototype.type="circle";var $o=e0;var XD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var t0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XD},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ie);t0.prototype.type="ellipse";var Mh=t0;var i0=Math.PI,Oh=i0*2,dn=Math.sin,Ma=Math.cos,qD=Math.acos,lt=Math.atan2,r0=Math.abs,es=Math.sqrt,Jo=Math.max,Mr=Math.min,nr=1e-4;function KD(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<nr))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function du(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/es(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,m=i+c,d=(p+v)/2,g=(h+m)/2,y=v-p,_=m-h,x=y*y+_*_,S=n-a,T=p*m-v*h,w=(_<0?-1:1)*es(Jo(0,S*S*x-T*T)),C=(T*_-y*w)/x,D=(-T*y-_*w)/x,E=(T*_+y*w)/x,A=(-T*y+_*w)/x,I=C-d,M=D-g,O=E-d,k=A-g;return I*I+M*M>O*O+k*k&&(C=E,D=A),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(n/S-1),y1:D*(n/S-1)}}function ZD(t){var e;if(P(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function n0(t,e){var r,i=Jo(e.r,0),n=Jo(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=r0(u-l),v=h>Oh&&h%Oh;if(v>nr&&(h=v),!(i>nr))t.moveTo(f,c);else if(h>Oh-nr)t.moveTo(f+i*Ma(l),c+i*dn(l)),t.arc(f,c,i,l,u,!p),n>nr&&(t.moveTo(f+n*Ma(u),c+n*dn(u)),t.arc(f,c,n,u,l,p));else{var m=void 0,d=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0,C=void 0,D=void 0,E=void 0,A=void 0,I=void 0,M=void 0,O=void 0,k=i*Ma(l),B=i*dn(l),Y=n*Ma(u),H=n*dn(u),Z=h>nr;if(Z){var X=e.cornerRadius;X&&(r=ZD(X),m=r[0],d=r[1],g=r[2],y=r[3]);var q=r0(i-n)/2;if(_=Mr(q,g),x=Mr(q,y),S=Mr(q,m),T=Mr(q,d),D=w=Jo(_,x),E=C=Jo(S,T),(w>nr||C>nr)&&(A=i*Ma(u),I=i*dn(u),M=n*Ma(l),O=n*dn(l),h<i0)){var $=KD(k,B,M,O,A,I,Y,H);if($){var se=k-$[0],K=B-$[1],pe=A-$[0],ye=I-$[1],ft=1/dn(qD((se*pe+K*ye)/(es(se*se+K*K)*es(pe*pe+ye*ye)))/2),xt=es($[0]*$[0]+$[1]*$[1]);D=Mr(w,(i-xt)/(ft+1)),E=Mr(C,(n-xt)/(ft-1))}}}if(!Z)t.moveTo(f+k,c+B);else if(D>nr){var je=Mr(g,D),ze=Mr(y,D),ne=du(M,O,k,B,i,je,p),de=du(A,I,Y,H,i,ze,p);t.moveTo(f+ne.cx+ne.x0,c+ne.cy+ne.y0),D<w&&je===ze?t.arc(f+ne.cx,c+ne.cy,D,lt(ne.y0,ne.x0),lt(de.y0,de.x0),!p):(je>0&&t.arc(f+ne.cx,c+ne.cy,je,lt(ne.y0,ne.x0),lt(ne.y1,ne.x1),!p),t.arc(f,c,i,lt(ne.cy+ne.y1,ne.cx+ne.x1),lt(de.cy+de.y1,de.cx+de.x1),!p),ze>0&&t.arc(f+de.cx,c+de.cy,ze,lt(de.y1,de.x1),lt(de.y0,de.x0),!p))}else t.moveTo(f+k,c+B),t.arc(f,c,i,l,u,!p);if(!(n>nr)||!Z)t.lineTo(f+Y,c+H);else if(E>nr){var je=Mr(m,E),ze=Mr(d,E),ne=du(Y,H,A,I,n,-ze,p),de=du(k,B,M,O,n,-je,p);t.lineTo(f+ne.cx+ne.x0,c+ne.cy+ne.y0),E<C&&je===ze?t.arc(f+ne.cx,c+ne.cy,E,lt(ne.y0,ne.x0),lt(de.y0,de.x0),!p):(ze>0&&t.arc(f+ne.cx,c+ne.cy,ze,lt(ne.y0,ne.x0),lt(ne.y1,ne.x1),!p),t.arc(f,c,n,lt(ne.cy+ne.y1,ne.cx+ne.x1),lt(de.cy+de.y1,de.cx+de.x1),p),je>0&&t.arc(f+de.cx,c+de.cy,je,lt(de.y1,de.x1),lt(de.y0,de.x0),!p))}else t.lineTo(f+Y,c+H),t.arc(f,c,n,u,l,p)}t.closePath()}}}var QD=(function(){function t(){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 t})();var a0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(r,i){n0(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ie);a0.prototype.type="sector";var Si=a0;var $D=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var o0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $D},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ie);o0.prototype.type="ring";var Ih=o0;function Lh(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Lr(f,f,t[p]),Pr(c,c,t[p]);Lr(f,f,i[0]),Pr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Hm(t[p]));continue}else l=t[p-1],u=t[p+1];Gm(a,u,l),il(a,a,e);var m=nl(v,l),d=nl(v,u),g=m+d;g!==0&&(m/=g,d/=g),il(o,a,-m),il(s,a,d);var y=zc([],v,o),_=zc([],v,s);i&&(Pr(y,y,f),Lr(y,y,c),Pr(_,_,f),Lr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function mu(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Lh(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var JD=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var l0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(r,i){mu(r,i,!0)},e})(ie);l0.prototype.type="polygon";var Ph=l0;var eM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var u0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eM},e.prototype.buildPath=function(r,i){mu(r,i,!1)},e})(ie);u0.prototype.type="polyline";var Nh=u0;var tM={},rM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var f0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rM},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Jl(tM,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ie);f0.prototype.type="line";var ar=f0;var Ct=[],iM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function c0(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?ip:Be)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ip:Be)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?np:qe)(t.x1,t.cpx1,t.x2,e),(r?np:qe)(t.y1,t.cpy1,t.y2,e)]}var p0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iM},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(la(n,l,o,p,Ct),l=Ct[1],o=Ct[2],la(a,u,s,p,Ct),u=Ct[1],s=Ct[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(sa(n,l,f,o,p,Ct),l=Ct[1],f=Ct[2],o=Ct[3],sa(a,u,c,s,p,Ct),u=Ct[1],c=Ct[2],s=Ct[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return c0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=c0(this.shape,r,!0);return Ym(i,i)},e})(ie);p0.prototype.type="bezier-curve";var Rh=p0;var nM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var h0=(function(t){ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nM},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ie);h0.prototype.type="arc";var ts=h0;var aM=(function(t){ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ie.prototype.getBoundingRect.call(this)},e})(ie),gu=aM;var oM=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),yu=oM;var sM=(function(t){ee(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(yu),v0=sM;var lM=(function(t){ee(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(yu),d0=lM;var kh=Math.min,uM=Math.max,_u=Math.abs,mn=[0,0],gn=[0,0],$e=Qc(),xu=$e.minTv,Su=$e.maxTv,fM=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new _e;for(var i=0;i<2;i++)this._axes[i]=new _e;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);_e.sub(n[0],i[1],i[0]),_e.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&_e.set(r,0,0),$e.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!$e.negativeSize&&_e.copy(r,n?$e.useDir?$e.dirMinTv:xu:Su),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,mn),e._getProjMinMaxOnAxis(o,r._corners,gn),$e.negativeSize||mn[1]<gn[0]||mn[0]>gn[1]){if(a=!1,$e.negativeSize||i)return a;var l=_u(gn[0]-mn[1]),u=_u(mn[0]-gn[1]);kh(l,u)>Su.len()&&(l<u?_e.scale(Su,s,-l*n):_e.scale(Su,s,u*n))}else if(!i){var l=_u(gn[0]-mn[1]),u=_u(mn[0]-gn[1]);($e.useDir||kh(l,u)<xu.len())&&((l<u||!$e.bidirectional)&&(_e.scale(xu,s,l*n),$e.useDir&&$e.calcDirMTV()),(l>=u||!$e.bidirectional)&&(_e.scale(xu,s,-u*n),$e.useDir&&$e.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=kh(f,s),l=uM(f,l)}i[0]=s+$e.touchThreshold,i[1]=l-$e.touchThreshold,$e.negativeSize=i[1]<i[0]},t})(),Tu=fM;var m0=1;var cM=[],pM=(function(t){ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=m0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new te(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(cM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(br),g0=pM;var hM=J();function vM(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=F(i.duration,200),f=F(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),G(c)&&(c=c(r,n)),G(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Bh(t,e,r,i,n,a,o){var s=!1,l;G(n)?(o=a,a=n,n=null):U(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=vM(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function mt(t,e,r,i,n,a){Bh("update",t,e,r,i,n,a)}function Wt(t,e,r,i,n,a){Bh("enter",t,e,r,i,n,a)}function yn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Oa(t,e,r,i,n,a){yn(t)||Bh("leave",t,e,r,i,n,a)}function y0(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Oa(t,{style:{opacity:0}},e,r,i)}function Ia(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||y0(n,e,r,i)}):y0(t,e,r,i)}function bu(t){hM(t).oldStyle=t.style}var zh={},Xr=["x","y"],_n=["width","height"],Vh=0,Hh=1,is=2;function dM(t){return ie.extend(t)}var mM=$_;function gM(t,e){return mM(t,e)}function or(t,e){zh[t]=e}function yM(t){if(zh.hasOwnProperty(t))return zh[t]}function Cu(t,e,r,i){var n=Q_(t,e);return r&&(i==="center"&&(r=S0(r,n.getBoundingRect())),T0(n,r)),n}function Gh(t,e,r){var i=new ot({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(S0(e,a))}}});return i}function S0(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var _M=J_;function T0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function xn(t,e){return Jl(t,t,{lineWidth:e}),t}function xM(t,e){return eu(t,t,e),t}var SM=yi;function TM(t,e){for(var r=Nr([]);t&&t!==e;)ai(r,t.getLocalTransform(),r),t=t.parent;return r}function Eu(t,e,r){return e&&!Fe(e)&&(e=va.getLocalTransform(e)),r&&(e=dr([],e)),rt([],t,e)}function bM(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ee(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ee(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Eu(a,e,r),Ee(a[0])>Ee(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _0(t){return!t.isGroup}function wM(t){return t.shape!=null}function Yh(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){_0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wM(o)&&(s.shape=j(o.shape)),s}var a=i(t);e.traverse(function(o){if(_0(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),mt(o,l,r,ge(o).dataIndex)}}})}function CM(t,e){return R(t,function(r){var i=r[0];i=le(i,e.x),i=Le(i,e.x+e.width);var n=r[1];return n=le(n,e.y),n=Le(n,e.y+e.height),[i,n]})}function EM(t,e){var r=le(t.x,e.x),i=Le(t.x+t.width,e.x+e.width),n=le(t.y,e.y),a=Le(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Wh(t,e,r){var i=L({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),oe(n,r),new ot(i)):Cu(t.replace("path://",""),i,r,"center")}function AM(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(b0(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function b0(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Uh(f,c,l,u);if(DM(p))return!1;var h=t-n,v=e-a,m=Uh(h,v,l,u)/p;if(m<0||m>1)return!1;var d=Uh(h,v,f,c)/p;return!(d<0||d>1)}function Uh(t,e,r,i){return t*i-r*e}function DM(t){return t<=1e-6&&t>=-1e-6}function La(t,e,r,i,n){return e==null||(fe(e)?we[0]=we[1]=we[2]=we[3]=e:(we[0]=e[0],we[1]=e[1],we[2]=e[2],we[3]=e[3]),i&&(we[0]=le(0,we[0]),we[1]=le(0,we[1]),we[2]=le(0,we[2]),we[3]=le(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),x0(t,we,"x","width",3,1,n&&n[0]||0),x0(t,we,"y","height",0,2,n&&n[1]||0)),t}var we=[0,0,0,0];function x0(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=le(0,Le(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ee(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Au(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=N(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&b(Q(l),function(f){Oe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ge(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:oe({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Fh(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Sn(t,e){if(t)if(P(t))for(var r=0;r<t.length;r++)Fh(t[r],e);else Fh(t,e)}function Du(t){return!t||Ee(t[1])<wu&&Ee(t[2])<wu||Ee(t[0])<wu&&Ee(t[3])<wu}var wu=1e-5;function Pa(t,e){return t?te.copy(t,e):e.clone()}function Mu(t,e){return e?xo(t||ht(),e):void 0}function Xh(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function MM(t){var e=-1/0,r=1/0;Fh(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function qh(t,e,r){w0(t,e,r,-1/0)}function w0(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=le(w0(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=le(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function OM(t){return t.animation={duration:0},t}function IM(t,e){return e?xo(rs.transform,e):Nr(rs.transform),rs.decomposeTransform(),fi(t,rs),t}var rs=new va;rs.transform=ht();function LM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}or("circle",$o);or("ellipse",Mh);or("sector",Si);or("ring",Ih);or("polygon",Ph);or("polyline",Nh);or("rect",Te);or("line",ar);or("bezierCurve",Rh);or("arc",ts);var Ou={};function PM(t,e){for(var r=0;r<Yr.length;r++){var i=Yr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function C0(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=G(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Yr.length;u++){var f=Yr[u],c=e[f];l[f]=F(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Iu(t,e,r,i){r=r||Ou;for(var n=t instanceof st,a=!1,o=0;o<yh.length;o++){var s=e[yh[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new st,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=C0(r,e),f=e.normal,c=!!f.getShallow("show"),p=Tn(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(E0(f,r,!1));for(var o=0;o<Yr.length;o++){var h=Yr[o],s=e[h];if(s){var v=l.ensureState(h),m=!!F(s.getShallow("show"),c);if(m!==c&&(v.ignore=!m),v.style=Tn(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var d=t.ensureState(h);d.textConfig=E0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Lu(l).setLabelText=function(g){var y=C0(r,e,g);PM(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Na(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Yr.length;i++){var n=Yr[i];r[n]=t.getModel([n,e])}return r}function Tn(t,e,r,i,n){var a={};return NM(a,t,r,i,n),e&&L(a,e),a}function E0(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=F(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function NM(t,e,r,i,n){r=r||Ou;var a=e.ecModel,o=a&&a.option.textStyle,s=RM(e),l;if(s){l={};var u="richInheritPlainLabel",f=F(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);O0(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var m=t,d=e.get("minMargin");if(d!=null)d=fe(d)?d/2:0,m.margin=[d,d,d,d],m.__marginType=bn.minMargin;else{var g=e.get("textMargin");g!=null&&(m.margin=ea(g),m.__marginType=bn.textMargin)}O0(t,e,o,null,null,r,i,n,!0,!1)}function RM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Ou).rich;if(r){e=e||{};for(var i=Q(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var A0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],D0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],M0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function O0(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Ou;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=F(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=F(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var m=F(e.getShallow("textBorderType"),r.textBorderType);m!=null&&(t.lineDash=m);var d=F(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<A0.length;g++){var y=A0[g],_=n!==!1&&i?Qt(e.getShallow(y),i.getShallow(y),r[y]):F(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<D0.length;g++){var y=D0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<M0.length;g++){var y=M0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function I0(t,e){var r=e&&e.getModel("textStyle");return tt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Lu=J();function L0(t,e,r,i){if(t){var n=Lu(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var bn={minMargin:1,textMargin:2};var kM=["textStyle","color"],Kh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zh=new st,BM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(kM):null)},t.prototype.getFont=function(){return I0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Kh.length;i++)r[Kh[i]]=this.getShallow(Kh[i]);return Zh.useStyle(r),Zh.update(),Zh.getBoundingRect()},t})(),P0=BM;var jh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UM=Sr(jh),N0=(function(){function t(){}return t.prototype.getLineStyle=function(e){return UM(this,e)},t})();var Qh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],zM=Sr(Qh),R0=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return zM(this,e,r)},t})();var wn=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){he(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(j(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!re.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();ba(wn);Ny(wn);ct(wn,N0);ct(wn,R0);ct(wn,Ry);ct(wn,P0);var De=wn;var FM=Math.round(Math.random()*10);function Ti(t){return[t||"",FM++].join("_")}function k0(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=wt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=wt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function B0(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(b(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],m=!!p[h];m&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),b(v.successor,m?g:d)}b(p,function(){var y="";throw new Error(y)});function d(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,d(y)}};function r(a){var o={},s=[];return b(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),b(c,function(p){ae(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ae(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(l){ae(o,l)>=0&&s.push(l)}),s}}function U0(t,e){return he(he({},t,!0),e,!0)}var z0={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var F0={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Nu="ZH",Jh="EN",Ra=Jh,Pu={},ev={},Ru=re.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ra).toUpperCase();return t.indexOf(Nu)>-1?Nu:Ra})():Ra;function V0(t,e){t=t.toUpperCase(),ev[t]=new De(e),Pu[t]=e}function H0(t){if(N(t)){var e=Pu[t.toUpperCase()]||{};return t===Nu||t===Jh?j(e):he(j(e),j(Pu[Ra]),!1)}else return he(j(t),j(Pu[Ra]),!1)}function G0(t){return ev[t]}function Y0(){return ev[Ra]}V0(Jh,z0);V0(Nu,F0);var VM=null;function Pe(){return VM}function ku(t,e){var r=Pe(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Cn(t){var e=t.brk;return e?e.breaks:[]}function En(t){var e=t.brk;return e?e.hasBreaks():!1}var zu=1e3,Fu=zu*60,ka=Fu*60,Bt=ka*24,tv=Bt*365,HM={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})/},Uu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},GM="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Bu="{yyyy}-{MM}-{dd}",rv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bu,hour:Bu+" "+Uu.hour,minute:Bu+" "+Uu.minute,second:Bu+" "+Uu.second,millisecond:GM},At=["year","month","day","hour","minute","second","millisecond"],W0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function X0(t){return!N(t)&&!G(t)?YM(t):t}function YM(t){t=t||{};var e={},r=!0;return b(At,function(i){r&&(r=t[i]==null)}),b(At,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=At[s],u=U(a)&&!P(a)?a[l]:a,f=void 0;P(u)?(f=u.slice(),o=f[0]||""):N(u)?(o=u,f=[o]):(o==null?o=Uu[i]:HM[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function qr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ba(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function q0(t){return t===Ba(t)}function K0(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function An(t,e,r,i){var n=_r(t),a=n[iv(r)](),o=n[Hu(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Gu(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[Yu(r)](),c=(f-1)%12+1,p=n[Wu(r)](),h=n[Xu(r)](),v=n[qu(r)](),m=f>=12?"pm":"am",d=m.toUpperCase(),g=i instanceof De?i:G0(i||Ru)||Y0(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),T=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,qr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,qr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,qr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,qr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,qr(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,qr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,qr(v,3)).replace(/{S}/g,v+"")}function Z0(t,e,r,i,n){var a=null;if(N(r))a=r;else if(G(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Pe();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Dn(t.value,n);a=r[f][f][0]}}return An(new Date(t.value),a,n,i)}function Dn(t,e){var r=_r(t),i=r[Hu(e)]()+1,n=r[Gu(e)](),a=r[Yu(e)](),o=r[Wu(e)](),s=r[Xu(e)](),l=r[qu(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Vu(t,e,r){switch(e){case"year":t[nv(r)](0);case"month":t[av(r)](1);case"day":t[ov(r)](0);case"hour":t[sv(r)](0);case"minute":t[lv(r)](0);case"second":t[uv(r)](0)}return t}function iv(t){return t?"getUTCFullYear":"getFullYear"}function Hu(t){return t?"getUTCMonth":"getMonth"}function Gu(t){return t?"getUTCDate":"getDate"}function Yu(t){return t?"getUTCHours":"getHours"}function Wu(t){return t?"getUTCMinutes":"getMinutes"}function Xu(t){return t?"getUTCSeconds":"getSeconds"}function qu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function j0(t){return t?"setUTCFullYear":"setFullYear"}function nv(t){return t?"setUTCMonth":"setMonth"}function av(t){return t?"setUTCDate":"setDate"}function ov(t){return t?"setUTCHours":"setHours"}function sv(t){return t?"setUTCMinutes":"setMinutes"}function lv(t){return t?"setUTCSeconds":"setSeconds"}function uv(t){return t?"setUTCMilliseconds":"setMilliseconds"}function cv(t){if(!Up(t))return N(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ku(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ua=ea;function Zu(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&tt(f)?f:"-"}function a(f){return He(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?_r(t):t;if(isNaN(+l)){if(s)return"-"}else return An(l,i,r)}if(e==="ordinal")return _o(t)?n(t):fe(t)&&a(t)?t+"":"-";var u=xr(t);return a(u)?cv(u):_o(t)?n(t):typeof t=="boolean"?t+"":"-"}var Q0=["a","b","c","d","e","f","g"],fv=function(t,e){return"{"+t+(e??"")+"}"};function ju(t,e,r){P(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=Q0[a];t=t.replace(fv(o),fv(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(fv(Q0[l],s),r?Xe(u):u)}return t}function $0(t,e){var r=N(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xe(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xe(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function bi(t,e){return e=e||"transparent",N(t)?t:U(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Qu={},pv={},WM=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(Qu,!0),this._normalMasterList=i(pv,!1);function i(n,a){var o=[];return b(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Qu[e]=r;return}pv[e]=r},t.get=function(e){return pv[e]||Qu[e]},t})();function XM(t){return!!Qu[t]}var qM=1,ex=2;var KM=V();function Ju(t){var e=t.getShallow("coord",!0),r=qM;if(e==null){var i=KM.get(t.type);i&&i.getCoord2&&(r=ex,e=i.getCoord2(t))}return{coord:e,from:r}}var za=0,$u=1,ZM=2;function jM(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=za;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=$u,o||(a=za)):i==="box"&&(a=ZM,!o&&!XM(r)&&(a=za))}return{coordSysType:r,kind:a}}function tx(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=jM(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==$u&&(s=$u,l=r),s===za||l!==r)return za;var u=i(r,e);return u?(s===$u?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):za}var ns=WM;var rf=b,QM=["left","right","top","bottom","width","height"],ef=[["width","left","right"],["height","top","bottom"]];function rx(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var m=f.width+(p?-p.x+f.x:0);h=a+m,h>i||l.newline?(a=0,h=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>n||l.newline?(a+=s+r,o=0,v=d,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var ZF=Ve(rx,"vertical"),jF=Ve(rx,"horizontal");function ix(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function as(t,e,r){r=Ua(r||0);var i=e.width,n=e.height,a=Ke(t.left,i),o=Ke(t.top,n),s=Ke(t.right,i),l=Ke(t.bottom,n),u=Ke(t.width,i),f=Ke(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new te((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var tf={rect:1,point:2};function nx(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=Ju(t),u=l.coord,f=l.from;if(o.dataToLayout){a=tf.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=tf.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=tf.rect),a===tf.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function wi(t){var e=t.layoutMode||t.constructor.layoutMode;return U(e)?e:e?{type:e}:null}function sr(t,e,r){var i=r&&r.ignoreSize;!P(i)&&(i=[i,i]);var n=o(ef[0],0),a=o(ef[1],1);l(ef[0],t,n),l(ef[1],t,a);function o(u,f){var c={},p=0,h={},v=0,m=2;if(rf(u,function(y){h[y]=t[y]}),rf(u,function(y){Oe(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===m||!p)return h;if(p>=m)return c;for(var d=0;d<u.length;d++){var g=u[d];if(!Oe(c,g)&&Oe(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){rf(u,function(p){f[p]=c[p]})}}function Ci(t){return $M({},t)}function $M(t,e){return e&&t&&rf(QM,function(r){Oe(e,r)&&(t[r]=e[r])}),t}var eO=J(),Fa=(function(t){W(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=Ti("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=wi(this),a=n?Ci(r):{},o=i.getTheme();he(r,o.get(this.mainType)),he(r,this.getDefaultOption()),n&&sr(r,a,n)},e.prototype.mergeOption=function(r,i){he(this.option,r,!0);var n=wi(this);n&&sr(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Py(r))return r.defaultOption;var i=eO(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=he(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return hi(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return ix(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(De);Kl(Fa,De);vi(Fa);k0(Fa);B0(Fa,tO);function tO(t){var e=[];return b(Fa.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=R(e,function(r){return wt(r).main}),t!=="dataset"&&ae(e,"dataset")<=0&&e.unshift("dataset"),e}var Se=Fa;var Mn={color:{},darkColor:{},size:{}},Re=Mn.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)"};L(Re,{primary:Re.neutral80,secondary:Re.neutral70,tertiary:Re.neutral60,quaternary:Re.neutral50,disabled:Re.neutral20,border:Re.neutral30,borderTint:Re.neutral20,borderShade:Re.neutral40,background:Re.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Re.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Re.neutral70,axisLineTint:Re.neutral40,axisTick:Re.neutral70,axisTickMinor:Re.neutral60,axisLabel:Re.neutral70,axisSplitLine:Re.neutral15,axisMinorSplitLine:Re.neutral05});for(Ei in Re)Re.hasOwnProperty(Ei)&&(hv=Re[Ei],Ei==="theme"?Mn.darkColor.theme=Re.theme.slice():Ei==="highlight"?Mn.darkColor.highlight="rgba(255,231,130,0.4)":Ei.indexOf("accent")===0?Mn.darkColor[Ei]=Do(hv,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Mn.darkColor[Ei]=Do(hv,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var hv,Ei;Mn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ue=Mn;var ax="";typeof navigator<"u"&&(ax=navigator.platform||"");var Va="rgba(0, 0, 0, 0.2)",ox=ue.color.theme[0],rO=Do(ox,null,null,.9),nf={darkMode:"auto",colorBy:"series",color:ue.color.theme,gradientColor:[rO,ox],aria:{decal:{decals:[{color:Va,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Va,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Va,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Va,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Va,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Va,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ax.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gt={Must:1,Might:2,Not:3},sx=J();function lx(t){sx(t).datasetMap=V()}function ux(t,e,r){var i={},n=vv(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=sx(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(m,d){var g=U(m)?m:t[d]={name:m};g.type==="ordinal"&&f==null&&(f=d,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});b(t,function(m,d){var g=m.name,y=v(m);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===d)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(m,d,g){for(var y=0;y<g;y++)m.push(d+y)}function v(m){var d=m.dimsDef;return d?d.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function vv(t){var e=t.get("data",!0);if(!e)return hi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},it).models[0]}function fx(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:hi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},it).models}function af(t,e){return iO(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function iO(t,e,r,i,n,a){var o,s=5;if(Ne(t))return gt.Not;var l,u;if(i){var f=i[a];U(f)?(l=f.name,u=f.type):N(f)&&(l=f)}if(u!=null)return u==="ordinal"?gt.Must:gt.Not;if(e===Ge){var c=t;if(r===Dr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===dt){var m=t;if(!l)return gt.Not;for(var h=0;h<m.length&&h<s;h++){var d=m[h];if(d&&(o=x(d[l]))!=null)return o}}else if(e===Nt){var g=t;if(!l)return gt.Not;var p=g[l];if(!p||Ne(p))return gt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===Ze)for(var y=t,h=0;h<y.length&&h<s;h++){var d=y[h],_=zr(d);if(!P(_))return gt.Not;if((o=x(_[a]))!=null)return o}function x(S){var T=N(S);if(S!=null&&isFinite(Number(S))&&S!=="")return T?gt.Might:gt.Not;if(T&&S!=="-")return gt.Must}return gt.Not}var nO=V();function cx(t,e,r){var i=nO.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var px=J(),aO=J(),os=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ae(this.get("color",!0)),a=this.get("colorLayer",!0);return hx(this,px,n,a,e,r,i)},t.prototype.clearColorPalette=function(){sO(this,px)},t})();function dv(t,e,r,i){var n=Ae(t.get(["aria","decal","decals"]));return hx(t,aO,n,null,e,r,i)}function oO(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function hx(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:oO(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function sO(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var of,ss,vx,dx="\0_ec_inner",lO=1;var _x=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new De(a),this._locale=new De(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=yx(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,yx(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?vx(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;lx(this),b(r,function(c,p){c!=null&&(Se.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?j(c):he(n[p],c,!0))}),u&&u.each(function(c,p){Se.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(c){var p=cx(this,c,Ae(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",m=xy(h,p,v);Ty(m,c,Se),n[c]=null,a.set(c,null),o.set(c,0);var d=[],g=[],y=0,_,x;b(m,function(S,T){var w=S.existing,C=S.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var D=c==="series",E=Se.getClass(c,S.keyInfo.subType,!D);if(!E){if(0)var A,I;return}if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===E)w.name=S.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var M=L({componentIndex:T},S.keyInfo);w=new E(C,this,this,M),L(w,M),S.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(d.push(w.option),g.push(w),y++):(d.push(void 0),g.push(void 0))},this),n[c]=d,a.set(c,g),o.set(c,y),c==="series"&&of(this)}this._seriesIndices||of(this)},e.prototype.getOption=function(){var r=j(this.option);return b(r,function(i,n){if(Se.hasClass(n)){for(var a=Ae(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!_a(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[dx],r},e.prototype.setTheme=function(r){this._theme=new De(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(Ae(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=mx("id",a,s):o!=null?l=mx("name",o,s):l=Me(s,function(u){return!!u}),gx(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Me(this._componentsMap.get(n),function(u){return!!u});return l(gx(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Me(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(G(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=N(r)?a.get(r):U(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Lt(r,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Me(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){ss(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){b(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){ss(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return b(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return ss(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){ss(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(r){of(this);var i=this._componentsMap,n=[];i.each(function(a,o){Se.hasClass(o)&&n.push(o)}),Se.topologicalTravel(n,Se.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!=="series"||!uO(o,r))&&o.restoreData()})})},e.internalField=(function(){of=function(r){var i=r._seriesIndices=[];b(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=V(i)},ss=function(r){},vx=function(r,i){r.option={},r.option[dx]=lO,r._componentsMap=V({series:[]}),r._componentsCount=V();var n=i.aria;U(n)&&n.enabled==null&&(n.enabled=!0),fO(i,r._theme.option),he(i,nf,!1),r._mergeOption(i,null)}})(),e})(De);function uO(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function fO(t,e){var r=t.color&&!t.colorLayer;b(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||Se.hasClass(n)||(typeof i=="object"?t[n]=t[n]?he(t[n],i,!1):j(i):t[n]==null&&(t[n]=i))})}function mx(t,e,r){if(P(e)){var i=V();return b(e,function(a){if(a!=null){var o=Lt(a,null);o!=null&&i.set(a,!0)}}),Me(r,function(a){return a&&i.get(a[t])})}else{var n=Lt(e,null);return Me(r,function(a){return a&&n!=null&&a[t]===n})}}function gx(t,e){return e.hasOwnProperty("subType")?Me(t,function(r){return r&&r.subType===e.subType}):t}function yx(t){var e=V();return t&&b(Ae(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ct(_x,os);var sf=_x;var cO=/^(min|max)?(.+)$/,pO=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(b(Ae(e.series),function(o){o&&o.data&&Ne(o.data)&&ta(o.data)}),b(Ae(e.dataset),function(o){o&&o.source&&Ne(o.source)&&ta(o.source)})),e=j(e);var n=this._optionBackup,a=hO(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],j(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=j(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)vO(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mO(o,this._currentMediaIndices)&&(s=R(o,function(f){return j(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function hO(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&P(u)&&b(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),b(l,function(h){return p(h)}),b(i,function(h){return p(h.option)});function p(h){b(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function vO(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return b(t,function(a,o){var s=o.match(cO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();dO(i[u],a,l)||(n=!1)}}),n}function dO(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mO(t,e){return t.join(",")===e.join(",")}var xx=pO;var lr=b,us=U,Sx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mv(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=Sx.length;r<i;r++){var n=Sx[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?he(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?he(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function ut(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,oe(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function ls(t){ut(t,"itemStyle"),ut(t,"lineStyle"),ut(t,"areaStyle"),ut(t,"label"),ut(t,"labelLine"),ut(t,"upperLabel"),ut(t,"edgeLabel")}function Ue(t,e){var r=us(t)&&t[e],i=us(r)&&r.textStyle;if(i)for(var n=0,a=Hp.length;n<a;n++){var o=Hp[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Xt(t){t&&(ls(t),Ue(t,"label"),t.emphasis&&Ue(t.emphasis,"label"))}function gO(t){if(us(t)){mv(t),ls(t),Ue(t,"label"),Ue(t,"upperLabel"),Ue(t,"edgeLabel"),t.emphasis&&(Ue(t.emphasis,"label"),Ue(t.emphasis,"upperLabel"),Ue(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(mv(e),Xt(e));var r=t.markLine;r&&(mv(r),Xt(r));var i=t.markArea;i&&Xt(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Ne(a))for(var o=0;o<a.length;o++)Xt(a[o]);b(t.categories,function(u){ls(u)})}if(n&&!Ne(n))for(var o=0;o<n.length;o++)Xt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Xt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)P(l[o])?(Xt(l[o][0]),Xt(l[o][1])):Xt(l[o]);t.type==="gauge"?(Ue(t,"axisLabel"),Ue(t,"title"),Ue(t,"detail")):t.type==="treemap"?(ut(t.breadcrumb,"itemStyle"),b(t.levels,function(u){ls(u)})):t.type==="tree"&&ls(t.leaves)}}function Kr(t){return P(t)?t:t?[t]:[]}function Tx(t){return(P(t)?t[0]:t)||{}}function gv(t,e){lr(Kr(t.series),function(i){us(i)&&gO(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),lr(r,function(i){lr(Kr(t[i]),function(n){n&&(Ue(n,"axisLabel"),Ue(n.axisPointer,"label"))})}),lr(Kr(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Ue(n,"axisLabel"),Ue(n&&n.axisPointer,"label")}),lr(Kr(t.calendar),function(i){ut(i,"itemStyle"),Ue(i,"dayLabel"),Ue(i,"monthLabel"),Ue(i,"yearLabel")}),lr(Kr(t.radar),function(i){Ue(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),lr(Kr(t.geo),function(i){us(i)&&(Xt(i),lr(Kr(i.regions),function(n){Xt(n)}))}),lr(Kr(t.timeline),function(i){Xt(i),ut(i,"label"),ut(i,"itemStyle"),ut(i,"controlStyle",!0);var n=i.data;P(n)&&b(n,function(a){U(a)&&(ut(a,"label"),ut(a,"itemStyle"))})}),lr(Kr(t.toolbox),function(i){ut(i,"iconStyle"),lr(i.feature,function(n){ut(n,"iconStyle")})}),Ue(Tx(t.axisPointer),"label"),Ue(Tx(t.tooltip).axisPointer,"label")}function yO(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function _O(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function bx(t){t&&b(xO,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var xO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<yv.length;r++){var i=yv[r][1],n=yv[r][0];e[i]!=null&&(e[n]=e[i])}}function Cx(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Ex(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function TO(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Ax(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Ax(t[r].children,e)}function lf(t,e){gv(t,e),t.series=Ae(t.series),b(t.series,function(r){if(U(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Cx(r.label);var n=r.data;if(n&&!Ne(n))for(var a=0;a<n.length;a++)Cx(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=yO(r,"pointer.color");o!=null&&_O(r,"itemStyle.color",o)}else if(i==="bar"){fs(r),fs(r.backgroundStyle),fs(r.emphasis);var n=r.data;if(n&&!Ne(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(fs(n[a]),fs(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Ex(r),Ax(r.data,Ex)}else i==="graph"||i==="sankey"?TO(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&oe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),bx(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(SO,function(r){var i=t[r];i&&(P(i)||(i=[i]),b(i,function(n){bx(n)}))})}var Dx=Sa(bO);function bO(t){var e=V();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),wO(r)}})}function wO(t){b(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var m=NaN,d=r-1;d>=0;d--){var g=t[d];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=vy(p,y),m=y;break}}}return i[0]=p,i[1]=m,i})})}var uf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Nt?{}:[]),this.sourceFormat=e.sourceFormat||vh,this.seriesLayoutBy=e.seriesLayoutBy||kt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&af(this,i)===gt.Must&&(n.type="ordinal")}}return t})();function Ha(t){return t instanceof uf}function cs(t,e,r){r=r||_v(t);var i=e.seriesLayoutBy,n=CO(t,r,i,e.sourceHeader,e.dimensions),a=new uf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(e)});return a}function Ga(t){return new uf({data:t,sourceFormat:Ne(t)?Rt:Ze})}function Ix(t){return new uf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:j(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function _v(t){var e=vh;if(Ne(t))e=Rt;else if(P(t)){t.length===0&&(e=Ge);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(P(n)||Ne(n)){e=Ge;break}else if(U(n)){e=dt;break}}}}else if(U(t)){for(var a in t)if(Oe(t,a)&&Fe(t[a])){e=Nt;break}}return e}function CO(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Mx(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ge){var s=t;i==="auto"||i==null?Ox(function(u){u!=null&&u!=="-"&&(N(u)?o==null&&(o=1):o=0)},r,s,10):o=fe(i)?i:i?1:0,!n&&o===1&&(n=[],Ox(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===Dr?s.length:s[0]?s[0].length:null}else if(e===dt)n||(n=EO(t));else if(e===Nt)n||(n=[],b(t,function(u,f){n.push(f)}));else if(e===Ze){var l=zr(t[0]);a=P(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Mx(n),dimensionsDetectedCount:a}}function EO(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Q(r)}function Mx(t){if(t){var e=V();return R(t,function(r,i){r=U(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function Ox(t,e,r,i){if(e===Dr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function ff(t){var e=t.sourceFormat;return e===dt||e===Nt}var On,In,Ln,Pn,Lx,Px,pf=(function(){function t(e,r){var i=Ha(e)?e:Ga(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Rt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;Px(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Px=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=Lx[wv(u,f)];if(L(o,h),u===Rt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=Sv(u,f);o.getItem=me(v,null,s,c,p);var m=Tv(u,f);o.count=me(m,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],d=s-o,g=l[p],y=0;y<d;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>m&&(m=_)}h[0]=v,h[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};Lx=(e={},e[Ge+"_"+kt]={pure:!0,appendData:a},e[Ge+"_"+Dr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[dt]={pure:!0,appendData:a},e[Nt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ze]={appendData:a},e[Rt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var cf=function(t){P(t)||Fp("series.data or dataset.source must be an array.")},$V=(On={},On[Ge+"_"+kt]=cf,On[Ge+"_"+Dr]=cf,On[dt]=cf,On[Nt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Fp("dimension name must not be null/undefined.")}},On[Ze]=cf,On),Nx=function(t,e,r,i){return t[i]},AO=(In={},In[Ge+"_"+kt]=function(t,e,r,i){return t[i+e]},In[Ge+"_"+Dr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},In[dt]=Nx,In[Nt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},In[Ze]=Nx,In);function Sv(t,e){var r=AO[wv(t,e)];return r}var Rx=function(t,e,r){return t.length},DO=(Ln={},Ln[Ge+"_"+kt]=function(t,e,r){return Math.max(0,t.length-e)},Ln[Ge+"_"+Dr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Ln[dt]=Rx,Ln[Nt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Ln[Ze]=Rx,Ln);function Tv(t,e){var r=DO[wv(t,e)];return r}var xv=function(t,e,r){return t[e]},MO=(Pn={},Pn[Ge]=xv,Pn[dt]=function(t,e,r){return t[r]},Pn[Nt]=xv,Pn[Ze]=function(t,e,r){var i=zr(t);return i instanceof Array?i[e]:i},Pn[Rt]=xv,Pn);function bv(t){var e=MO[t];return e}function wv(t,e){return t===Ge?t+"_"+e:t}function Zr(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return bv(a)(i,o,s)}else{var l=i;return a===Ze&&(l=zr(i)),l}}}}var OO=/\{@(.+?)\}/g,kx=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&P(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(G(a))return l.status=r,l.dimensionIndex=n,a(l);if(N(a)){var f=ju(a,l);return f.replace(OO,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var m=Zr(s,e,v);if(o&&P(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(m=o.interpolatedValue[d])}return m!=null?m+"":""})}},t.prototype.getRawValue=function(e,r){return Zr(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Cv(t){var e,r;return U(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ai(t){return new IO(t)}var IO=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var m=this._progress;if(P(m))for(var d=0;d<m.length;d++)this._doProgress(m[d],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){Bx.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Bx.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),P(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Bx=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Ya(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!fe(t)&&t!=null&&t!=="-"&&(t=+_r(t)),t==null||t===""?NaN:Number(t))}var uH=V({number:function(t){return parseFloat(t)},time:function(t){return+_r(t)},trim:function(t){return N(t)?tt(t):t}});var LO={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},fH=(function(){function t(e,r){if(!fe(r)){var i="";Qe(i)}this._opFn=LO[e],this._rvalFloat=xr(r)}return t.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(xr(e),this._rvalFloat)},t})(),Ux=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=fe(e)?e:xr(e),n=fe(r)?r:xr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=N(e),l=N(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var cH=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=xr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=xr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function hf(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function vf(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var PO=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ya(e,r)},t})();function NO(t,e){var r=new PO,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==kt&&Qe(o);var s=[],l={},u=t.dimensionsDefine;if(u)b(u,function(m,d){var g=m.name,y={index:d,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Oe(l,g)&&Qe(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Sv(n,kt);e.__isBuiltIn&&(r.getRawDataItem=function(m){return c(i,a,s,m)},r.getRawData=me(RO,null,t)),r.cloneRawData=me(kO,null,t);var p=Tv(n,kt);r.count=me(p,null,i,a,s);var h=bv(n);r.retrieveValue=function(m,d){var g=c(i,a,s,m);return v(g,d)};var v=r.retrieveValueFromItem=function(m,d){if(m!=null){var g=s[d];if(g)return h(m,d,g.name)}};return r.getDimensionInfo=me(BO,null,s,l),r.cloneAllDimensionInfo=me(UO,null,s),r}function RO(t){var e=t.sourceFormat;if(!Ev(e)){var r="";Qe(r)}return t.data}function kO(t){var e=t.sourceFormat,r=t.data;if(!Ev(e)){var i="";Qe(i)}if(e===Ge){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===dt){for(var n=[],a=0,o=r.length;a<o;a++)n.push(L({},r[a]));return n}}function BO(t,e,r){if(r!=null){if(fe(r)||!isNaN(r)&&!Oe(e,r))return t[r];if(Oe(e,r))return e[r]}}function UO(t){return j(t)}var zx=V();function Fx(t){t=j(t);var e=t.type,r="";e||Qe(r);var i=e.split(":");i.length!==2&&Qe(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,zx.set(e,t)}function Vx(t,e,r){var i=Ae(t),n=i.length,a="";n||Qe(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=zO(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function zO(t,e,r,i){var n="";e.length||Qe(n),U(t)||Qe(n);var a=t.type,o=zx.get(a);o||Qe(n);var s=R(e,function(f){return NO(f,o)}),l=Ae(o.transform({upstream:s[0],upstreamList:s,config:j(t.config)}));if(0&&t.print)var u;return R(l,function(f,c){var p="";U(f)||Qe(p),f.data||Qe(p);var h=_v(f.data);Ev(h)||Qe(p);var v,m=e[0];if(m&&c===0&&!f.dimensions){var d=m.startIndex;d&&(f.data=m.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:kt,sourceHeader:d,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:kt,sourceHeader:0,dimensions:f.dimensions};return cs(f.data,v,null)})}function Ev(t){return t===Ge||t===dt}var FO=typeof Uint32Array===_i?Array:Uint32Array,VO=typeof Uint16Array===_i?Array:Uint16Array,Dv=typeof Int32Array===_i?Array:Int32Array,Hx=typeof Float64Array===_i?Array:Float64Array,Yx={float:Hx,int:Dv,ordinal:Array,number:Array,time:Hx},Av;function Wa(t){return t>65535?FO:VO}function HO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gx(t,e,r,i,n){var a=Yx[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var GO=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Av[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=ff(n);this._dimensions=R(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new Yx[r||"float"](this._rawCount),this._rawExtent[a]=bt(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=bt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];Gx(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],m=Av.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=m;var d=o[v];m<d[0]&&(d[0]=m),m>d[1]&&(d[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=R(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=bt()),Gx(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var m=a[v],d=this._dimValueGetter(p,u[v],h,v);m[h]=d;var g=l[v];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),ya(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Wa(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Wa(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var m=c[f][v];h=r(m,p)}else{for(var d=0;d<l;d++)s[d]=c[e[d]][v];s[d]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=Q(e),a=n.length;if(!a)return this;var o=r.count(),s=Wa(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var m=0;if(a===1){for(var d=h[n[0]],g=0;g<i;g++){var y=d[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=m),m++}v=!0}else if(a===2){for(var d=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=d[g],T=_[g];(y>=c&&y<=p||isNaN(y))&&(T>=x&&T<=S||isNaN(T))&&(l[u++]=m),m++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=h[n[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var C=!0,w=r.getRawIndex(g),D=0;D<a;D++){var E=n[D],y=h[E][w];(y<e[E][0]||y>e[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=bt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var m=r[f],d=v[f],g=u[m],y=n[m];y&&(y[p]=d),d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Wa(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var m=Math.min(v+l,o-1),d=Math.min(v+l*2,o),g=(d+m)/2,y=0,_=m;_<d;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=d-m;var T=v,w=Math.min(v+l,o),C=v-1,D=a[u];f=-1,p=T;for(var E=-1,A=0,_=T;_<w;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){A++,E<0&&(E=x);continue}c=Math.abs((C-g)*(S-D)-(C-_)*(y-D)),c>f&&(f=c,p=x)}A>0&&A<w-T&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Wa(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],m=a;f+a>s&&(m=s-f);for(var d=0;d<m;d++){var g=this.getRawIndex(f+d),y=o[g];y<p&&(p=y,c=f+d),y>v&&(v=y,h=f+d)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=bt(),p=new(Wa(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var m=0;m<l;m++){var d=this.getRawIndex(v+m);s[m]=u[d]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=bt();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=hf(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var m=this.getRawIndex(v),d=i[m];(!r||vf(u,d))&&(d<p&&(p=d),d>h&&(h=d))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&jt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?HO(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=j(this._extent),e._rawExtent=j(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Ya(r[a],this._dimensions[a])}Av={arrayRows:e,objectRows:function(r,i,n,a){return Ya(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Ya(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),ps=GO;var Xx=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(df(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ne(s)?Rt:Ze,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=F(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=F(c.sourceHeader,p.sourceHeader),m=F(c.dimensions,p.dimensions),d=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||m;n=d?[cs(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[cs(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&Wx(a)}var o,s=[],l=[];return b(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&Wx(c),s.push(f),l.push(u._getVersionSign())}),i?o=Vx(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Ix(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];df(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new ps,s.initData(new pf(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(df(e)){var r=vv(e);return r?[r.getSourceManager()]:[]}else return R(fx(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(df(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function df(t){return t.mainType==="series"}function Wx(t){throw new Error(t)}var YO="line-height:1";function qx(t){var e=t.lineHeight;return e==null?YO:"line-height:"+Xe(e+"")+"px"}function Kx(t,e){var r=t.color||ue.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||ue.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Xe(i+"")+"px;color:"+Xe(r)+";font-weight:"+Xe(n+""),valueStyle:"font-size:"+Xe(o+"")+"px;color:"+Xe(a)+";font-weight:"+Xe(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var WO=[0,10,20,30],XO=["",`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function Nn(t,e){return e.type=t,e}function Mv(t){return t.type==="section"}function Zx(t){return Mv(t)?qO:KO}function jx(t){if(Mv(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return b(t.blocks,function(n){var a=jx(n);a>=e&&(e=a+ +(i&&(!a||Mv(n)&&!n.noHeader)))}),e}return 0}function qO(t,e,r,i){var n=e.noHeader,a=ZO(jx(e)),o=[],s=e.blocks||[];Ie(!s||P(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oe(u,l)){var f=new Ux(u[l],null);s.sort(function(m,d){return f.evaluate(m.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(m,d){var g=e.valueFormatter,y=Zx(m)(g?L(L({},t),{valueFormatter:g}):t,m,d>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Ov(i,o.join(""),n?r:a.html);if(n)return c;var p=Zu(e.header,"ordinal",t.useUTC),h=Kx(i,t.renderMode).nameStyle,v=qx(i);return t.renderMode==="richText"?Qx(t,p,h)+a.richText+c:Ov(i,'<div style="'+h+";"+v+';">'+Xe(p)+"</div>"+c,r)}function KO(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=P(x)?x:[x],R(x,function(S,T){return Zu(S,P(h)?h[T]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ue.color.secondary,n),p=a?"":Zu(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),m=!s||!a,d=!s&&a,g=Kx(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":Qx(t,p,y))+(o?"":$O(t,v,m,d,_)):Ov(i,(s?"":c)+(a?"":jO(p,!s,y))+(o?"":QO(v,m,d,_)),r)}}function Iv(t,e,r,i,n,a){if(t){var o=Zx(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function ZO(t){return{html:WO[t],richText:XO[t]}}function Ov(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=qx(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function jO(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Xe(t)+"</span>"}function QO(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=P(t)?t:[t],'<span style="'+a+";"+i+'">'+R(t,function(o){return Xe(o)}).join("&nbsp;&nbsp;")+"</span>"}function Qx(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function $O(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(P(e)?e.join(" "):e,a)}function $x(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return bi(i)}function mf(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var gf=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Fo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=$0({color:r,type:e,renderMode:i,markerId:n});return N(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};P(r)?b(r,function(a){return L(i,a)}):L(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function Jx(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=P(s),u=$x(e,r),f,c,p,h;if(o>1||l&&!o){var v=JO(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var m=n.getDimensionInfo(a[0]);h=f=Zr(n,r,a[0]),c=m.type}else h=f=l?s[0]:s;var d=Gl(e),g=d&&e.name||"",y=n.getName(r),_=i?g:y;return Nn("section",{header:g,noHeader:i||!d,sortParam:h,blocks:[Nn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!tt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function JO(t,e,r,i,n){var a=e.getData(),o=jt(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(c){f(Zr(a,r,c),c)}):b(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Nn("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Di=J();function yf(t,e){return t.getName(e)||t.getId(e)}var eI="__universalTransitionEnabled",_f=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Ai({count:rI,reset:iI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Di(this).sourceManager=new Xx(this);a.prepareSource();var o=this.getInitialData(r,n);tS(o,this),this.dataTask.context.data=o,Di(this).dataBeforeProcessed=o,eS(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=wi(this),a=n?Ci(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),he(r,i.getTheme().get(this.subType)),he(r,this.getDefaultOption()),Vp(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&sr(r,a,n)},e.prototype.mergeOption=function(r,i){r=he(this.option,r,!0),this.fillDataTextStyle(r.data);var n=wi(this);n&&sr(this.option,r,n);var a=Di(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);tS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Di(this).dataBeforeProcessed=o,eS(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ne(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&Vp(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Lv(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Di(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Lv(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Di(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return Di(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Di(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),m=o.getStore(),d=0,g=m.count();d<g;d++){var y=m.get(v,d),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=d))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return Jx({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(re.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=os.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=yf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=Q(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[yf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[eI])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=yf(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=yf(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return Se.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(Se);ct(_f,kx);ct(_f,os);Kl(_f,Se);function eS(t){var e=t.name;Gl(t)||(t.name=tI(t)||e)}function tI(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return b(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function rI(t){return t.model.getRawData().count()}function iI(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),nI}function nI(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tS(t,e){b(Vm(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ve(aI,e))})}function aI(t,e){var r=Lv(t);return r&&r.setOutputEnd((e||this).count()),e}function Lv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var ur=_f;var Pv=(function(){function t(){this.group=new be,this.uid=Ti("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();ba(Pv);vi(Pv);var Ut=Pv;function Rn(){var t=J();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var nS=J(),oI=Rn(),Nv=(function(){function t(){this.group=new be,this.uid=Ti("viewChart"),this.renderTask=Ai({plan:sI,reset:lI}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&iS(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&iS(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Sn(this.group,e)},t.markUpdateMethod=function(e,r){nS(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function rS(t,e,r){t&&jo(t)&&(e==="emphasis"?hn:vn)(t,r)}function iS(t,e,r){var i=Fr(t,e),n=e&&e.highlightKey!=null?H_(e.highlightKey):null;i!=null?b(Ae(i),function(a){rS(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){rS(a,r,n)})}ba(Nv,["dispose"]);vi(Nv);function sI(t){return oI(t.model)}function lI(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&nS(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),uI[l]}var uI={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},fr=Nv;var xf="\0__throttleOriginMethod",aS="\0__throttleRate",oS="\0__throttleType";function hs(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var m=f||e,d=f||r;f=null,s=i-(d?n:a)-m,clearTimeout(o),d?o=setTimeout(c,m):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Sf(t,e,r,i){var n=t[e];if(n){var a=n[xf]||n,o=n[oS],s=n[aS];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=hs(a,r,i==="debounce"),n[xf]=a,n[oS]=i,n[aS]=r}return n}}function vs(t,e){var r=t[e];r&&r[xf]&&(r.clear&&r.clear(),t[e]=r[xf])}var sS=J(),lS={itemStyle:Sr(Qh,!0),lineStyle:Sr(jh,!0)},cI={lineStyle:"stroke",itemStyle:"fill"};function uS(t,e){var r=t.visualStyleMapper||lS[e];return r||(console.warn("Unknown style type '"+e+"'."),lS.itemStyle)}function fS(t,e){var r=t.visualDrawType||cI[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var cS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=uS(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=fS(t,i),u=o[l],f=G(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=t.getDataParams(v),d=L({},o);d[l]=f(m),h.setItemVisual(v,"style",d)}}}},ds=new De,pS={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=uS(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){ds.option=l[i];var u=n(ds),f=o.ensureUniqueItemVisual(s,"style");L(f,u),ds.option.decal&&(o.setItemVisual(s,"decal",ds.option.decal),ds.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},hS={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();sS(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=sS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=fS(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var Tf=Math.PI;function Rv(t,e){e=e||{},oe(e,{text:"loading",textColor:ue.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ue.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new be,i=new Te({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Te({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ts({shape:{startAngle:-Tf/2,endAngle:-Tf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Tf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Tf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var pI=(function(){function t(e,r,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):ql(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=V();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Ie(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;b(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(d){s(n,d)&&(d.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var m=o.getPerformArgs(p,n.block);v.each(function(d){d.perform(m)}),p.perform(m)&&(a=!0)}else c&&c.each(function(d,g){s(n,d)&&d.dirty();var y=o.getPerformArgs(d,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||Ai({plan:gI,reset:yI,count:xI}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||Ai({reset:hI});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Ie(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):b(i.getSeries(),v);function v(m){var d=m.uid,g=l.set(d,s&&s.get(d)||(p=!0,Ai({reset:vI,onDirty:mI})));g.context={model:m,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(m,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return G(e)&&(e={overallReset:e,seriesType:SI(e)}),e.uid=Ti("stageHandler"),r&&(e.visualType=r),e},t})();function hI(t){t.overallReset(t.ecModel,t.api,t.payload)}function vI(t){return t.dirtyOnOverallProgress&&dI}function dI(){this.agent.dirty(),this.getDownstream().dirty()}function mI(){this.agent&&this.agent.dirty()}function gI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function yI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ae(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?R(e,function(r,i){return vS(i)}):_I}var _I=vS(0);function vS(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function xI(t){return t.data.count()}function SI(t){bf=null;try{t(ms,dS)}catch{}return bf}var ms={},dS={},bf;mS(ms,sf);mS(dS,iu);ms.eachSeriesByType=ms.eachRawSeriesByType=function(t){bf=t};ms.eachComponent=function(t){t.mainType==="series"&&t.subType&&(bf=t.subType)};function mS(t,e){for(var r in e.prototype)t[r]=Ce}var kv=pI;var z=ue.darkColor,gS=z.background,gs=function(){return{axisLine:{lineStyle:{color:z.axisLine}},splitLine:{lineStyle:{color:z.axisSplitLine}},splitArea:{areaStyle:{color:[z.backgroundTint,z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:z.axisMinorSplitLine}},axisLabel:{color:z.axisLabel},axisName:{}}},yS={label:{color:z.secondary},itemStyle:{borderColor:z.borderTint},dividerLineStyle:{color:z.border}},_S={darkMode:!0,color:z.theme,backgroundColor:gS,axisPointer:{lineStyle:{color:z.border},crossStyle:{color:z.borderShade},label:{color:z.tertiary}},legend:{textStyle:{color:z.secondary},pageTextStyle:{color:z.tertiary}},textStyle:{color:z.secondary},title:{textStyle:{color:z.primary},subtextStyle:{color:z.quaternary}},toolbox:{iconStyle:{borderColor:z.accent50},feature:{dataView:{backgroundColor:gS,textColor:z.primary,textareaColor:z.background,textareaBorderColor:z.border,buttonColor:z.accent50,buttonTextColor:z.neutral00}}},tooltip:{backgroundColor:z.neutral20,defaultBorderColor:z.border,textStyle:{color:z.tertiary}},dataZoom:{borderColor:z.accent10,textStyle:{color:z.tertiary},brushStyle:{color:z.backgroundTint},handleStyle:{color:z.neutral00,borderColor:z.accent20},moveHandleStyle:{color:z.accent40},emphasis:{handleStyle:{borderColor:z.accent50}},dataBackground:{lineStyle:{color:z.accent30},areaStyle:{color:z.accent20}},selectedDataBackground:{lineStyle:{color:z.accent50},areaStyle:{color:z.accent30}}},visualMap:{textStyle:{color:z.secondary},handleStyle:{borderColor:z.neutral30}},timeline:{lineStyle:{color:z.accent10},label:{color:z.tertiary},controlStyle:{color:z.accent30,borderColor:z.accent30}},calendar:{itemStyle:{color:z.neutral00,borderColor:z.neutral20},dayLabel:{color:z.tertiary},monthLabel:{color:z.secondary},yearLabel:{color:z.secondary}},matrix:{x:yS,y:yS,backgroundColor:{borderColor:z.axisLine},body:{itemStyle:{borderColor:z.borderTint}}},timeAxis:gs(),logAxis:gs(),valueAxis:gs(),categoryAxis:gs(),line:{symbol:"circle"},graph:{color:z.theme},gauge:{title:{color:z.secondary},axisLine:{lineStyle:{color:[[1,z.neutral05]]}},axisLabel:{color:z.axisLabel},detail:{color:z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:z.background}},radar:(function(){var t=gs();return t.axisName={color:z.axisLabel},t.axisLine.lineStyle.color=z.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:z.neutral20,textStyle:{color:z.secondary}},emphasis:{itemStyle:{color:z.neutral30}}}},sunburst:{itemStyle:{borderColor:z.background}},map:{itemStyle:{borderColor:z.border,areaColor:z.neutral10},label:{color:z.tertiary},emphasis:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}},select:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}}},geo:{itemStyle:{borderColor:z.border,areaColor:z.neutral10},emphasis:{label:{color:z.primary},itemStyle:{areaColor:z.highlight}},select:{label:{color:z.primary},itemStyle:{color:z.highlight}}}};_S.categoryAxis.splitLine.show=!1;var xS=_S;var SS=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(N(e)){var a=wt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Bv=["symbol","symbolSize","symbolRotate","symbolOffset"],TS=Bv.concat(["symbolKeepAspect"]),bS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Bv.length;o++){var s=Bv[o],l=t.get(s);G(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(L({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=Q(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),m=0;m<u.length;m++){var d=u[m];c.setItemVisual(p,d,n[d](h,v))}}return{dataEach:a?f:null}}},wS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<TS.length;s++){var l=TS[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function CS(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function ES(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function Xa(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=Fr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:P(p)?c.getName(p[0]):c.getName(p),selected:N(l)?l:L({},l)})}})}function AS(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Xa("map","selectchanged",e,n,i),Xa("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Xa("map","selected",e,n,i),Xa("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Xa("map","unselected",e,n,i),Xa("pie","unselected",e,n,i))})}function kn(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var TI=new pt,zt=TI;var DS={};function MS(t,e){DS[t]=e}function OS(t){return DS[t]}var bI={};function IS(t,e){bI[t]=e}var wf=J();function LS(t){wf(t).prepare={}}function PS(t){wf(t).fullUpdate={}}function NS(t){return wf(t).prepare}function Bn(t){return wf(t).fullUpdate}var wI=Math.round(Math.random()*9),CI=typeof Object.defineProperty=="function",EI=(function(){function t(){this._id="__ec_inner_"+wI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return CI?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),RS=EI;var AI=ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),DI=ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),MI=ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),OI=ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),II={line:ar,rect:Te,roundRect:Te,square:Te,circle:$o,diamond:DI,pin:MI,arrow:OI,triangle:AI},LI={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Uv={};b(II,function(t,e){Uv[e]=new t});var PI=ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=$i(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Uv[i];n||(i="rect",n=Uv[i]),LI[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function NI(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ue.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Mi(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Gh(t.slice(8),new te(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=Cu(t.slice(7),{},new te(e,r,i,n),o?"center":"cover"):l=new PI({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=NI,a&&l.setColor(a),l}function kS(t){return P(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Cf(t,e){if(t!=null)return P(t)||(t=[t,t]),[Ke(t[0],e[0])||0,Ke(F(t[1],t[0]),e[1])||0]}function Un(t){return isFinite(t)}function RI(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Un(i)?i:0,n=Un(n)?n:1,a=Un(a)?a:0,o=Un(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function kI(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=Un(o)?o:.5,s=Un(s)?s:.5,l=l>=0&&Un(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function zv(t,e,r){for(var i=e.type==="radial"?kI(t,e,r):RI(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function BS(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Ef(t){return parseInt(t,10)}function Fv(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Ef(s[i])||Ef(t.style[i]))-(Ef(s[a])||0)-(Ef(s[o])||0)||0}function BI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:fe(t)?[t]:P(t)?t:null}function ys(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&BI(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=R(r,function(a){return a/n}),i/=n)}return[r,i]}var UI=new Pt(!0);function Af(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function US(t){return typeof t=="string"&&t!=="none"}function Df(t){var e=t.fill;return e!=null&&e!=="none"}function zS(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function FS(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function VS(t,e,r){var i=Go(e.image,e.__image,r);if(wa(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*ra),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function zI(t,e,r,i,n){var a,o=Af(r),s=Df(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||UI,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,m=s&&!!h.colorStops,d=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,T=void 0,w=void 0;(m||d)&&(w=e.getBoundingRect()),m&&(_=p?zv(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),d&&(x=p?zv(t,v,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?VS(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(T=p||!e.__canvasStrokePattern?VS(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),m?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),d?t.strokeStyle=x:y&&(T?t.strokeStyle=T:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,E;t.setLineDash&&r.lineDash&&(a=ys(e),D=a[0],E=a[1]);var A=!0;(f||p&oi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),D&&(t.setLineDash(D),t.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&FS(t,r),s&&zS(t,r)):(s&&zS(t,r),o&&FS(t,r)),D&&t.setLineDash([])}function FI(t,e,r){var i=e.__image=Go(r.image,e.__image,e,e.onload);if(!(!i||!wa(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function VI(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||St,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=ys(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Af(r)&&t.strokeText(n,r.x,r.y),Df(r)&&t.fillText(n,r.x,r.y)):(Df(r)&&t.fillText(n,r.x,r.y),Af(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var HS=["shadowBlur","shadowOffsetX","shadowOffsetY"],GS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZS(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){yt(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Tr.opacity:o}(i||e.blend!==r.blend)&&(a||(yt(t,n),a=!0),t.globalCompositeOperation=e.blend||Tr.blend);for(var s=0;s<HS.length;s++){var l=HS[s];(i||e[l]!==r[l])&&(a||(yt(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(yt(t,n),a=!0),t.shadowColor=e.shadowColor||Tr.shadowColor),a}function YS(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=ZS(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(yt(t,n),s=!0),US(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(yt(t,n),s=!0),US(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(yt(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(yt(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<GS.length;f++){var c=GS[f],p=c[0];(i||a[p]!==o[p])&&(s||(yt(t,n),s=!0),t[p]=a[p]||c[1])}return s}function HI(t,e,r,i,n){return ZS(t,e.style,r&&r.style,i,n)}function jS(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function GI(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),jS(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function YI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var WS=1,XS=2,qS=3,KS=4;function WI(t){var e=Df(t),r=Af(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function yt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function QS(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Vv(t,e,r),Hv(t,r)}function Vv(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~at,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||BS(n,a))&&(a&&(yt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(yt(t,r),t.save(),GI(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~at,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ie&&e.autoBatch&&WI(o);s||YI(i,u.transform)?(yt(t,r),jS(t,e)):f||yt(t,r),e instanceof ie?(r.lastDrawType!==WS&&(l=!0,r.lastDrawType=WS),YS(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),zI(t,e,o,f,r)):e instanceof pn?(r.lastDrawType!==qS&&(l=!0,r.lastDrawType=qS),YS(t,e,u,l,r),VI(t,e,o)):e instanceof ot?(r.lastDrawType!==XS&&(l=!0,r.lastDrawType=XS),HI(t,e,u,l,r),FI(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==KS&&(l=!0,r.lastDrawType=KS),XI(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&yt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Hv(t,e){yt(t,e),e.prevElClipPaths&&t.restore()}function XI(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Vv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Hv(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Vv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Hv(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Gv=new RS,$S=new gr(100),JS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Gv.delete(t);var a=Gv.get(t);if(a)return a;var o=oe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Gv.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<JS.length;++p){var h=o[JS[p]];if(h!=null&&!P(h)&&!N(h)&&!fe(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var m=$S.get(v);m&&(n?u.svgElement=m:u.image=m)}var d=tT(o.dashArrayX),g=qI(o.dashArrayY),y=eT(o.symbol),_=KI(d),x=rT(g),S=!n&&nt.createCanvas(),T=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=D(),C;S&&(S.width=w.width*r,S.height=w.height*r,C=S.getContext("2d")),E(),c&&$S.put(v,S||T),u.image=S,u.svgElement=T,u.svgWidth=w.width,u.svgHeight=w.height;function D(){for(var A=1,I=0,M=_.length;I<M;++I)A=zp(A,_[I]);for(var O=1,I=0,M=y.length;I<M;++I)O=zp(O,y[I].length);A*=O;var k=x*_.length*y.length;if(0)var B;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var A=0,I=0;I<g.length;++I)A+=g[I];if(A<=0)return;for(var M=-x,O=0,k=0,B=0;M<w.height;){if(O%2===0){for(var Y=k/2%y.length,H=0,Z=0,X=0;H<w.width*2;){for(var q=0,I=0;I<d[B].length;++I)q+=d[B][I];if(q<=0)break;if(Z%2===0){var $=(1-o.symbolSize)*.5,se=H+d[B][Z]*$,K=M+g[O]*$,pe=d[B][Z]*o.symbolSize,ye=g[O]*o.symbolSize,ft=X/2%y[Y].length;xt(se,K,pe,ye,y[Y][ft])}H+=d[B][Z],++X,++Z,Z===d[B].length&&(Z=0)}++B,B===d.length&&(B=0)}M+=g[O],++k,++O,O===g.length&&(O=0)}function xt(je,ze,ne,de,Zt){var We=n?1:r,mo=Mi(Zt,je*We,ze*We,ne*We,de*We,o.color,o.symbolKeepAspect);if(n){var Bi=i.painter.renderOneToVNode(mo);Bi&&T.children.push(Bi)}else QS(C,mo)}}}}function eT(t){if(!t||t.length===0)return[["rect"]];if(N(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!N(t[r])){e=!1;break}if(e)return eT([t]);for(var i=[],r=0;r<t.length;++r)N(t[r])?i.push([t[r]]):i.push(t[r]);return i}function tT(t){if(!t||t.length===0)return[[0,0]];if(fe(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!fe(t[i])){r=!1;break}if(r)return tT([t]);for(var n=[],i=0;i<t.length;++i)if(fe(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=R(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function qI(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(fe(t)){var e=Math.ceil(t);return[e,e]}var r=R(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function KI(t){return R(t,function(e){return rT(e)})}function rT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var iT=Sa(ZI);function ZI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Yv(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Yv(n,e)}}})}var vT="6.1.0";var jI=1,QI=800,$I=900,JI=920,eL=1e3,tL=2e3,nT=5e3,dT=1e3,rL=1100,rd=2e3,mT=3e3,iL=4e3,kf=4500,nL=4600,aL=5e3,oL=6e3,gT=7e3,yT={PROCESSOR:{SERIES_FILTER:QI,AXIS_STATISTICS:JI,FILTER:eL,STATISTIC:nT,STATISTICS:nT},VISUAL:{LAYOUT:dT,PROGRESSIVE_LAYOUT:rL,GLOBAL:rd,CHART:mT,POST_CHART_LAYOUT:nL,COMPONENT:iL,BRUSH:aL,CHART_ITEM:kf,ARIA:oL,DECAL:gT}},Ye="__flagInMainProcess",Mf="__mainProcessVersion",Je="__pendingUpdate",Wv="__needsUpdateStatus",aT=/^[a-zA-Z0-9_]+$/,Xv="__connectUpdateStatus",oT=0,sL=1,lL=2;function _T(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return ST(this,t,e)}}function xT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ST(this,t,e)}}function ST(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),pt.prototype[e].apply(t,r)}var TT=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(pt),bT=TT.prototype;bT.on=xT("on");bT.off=xT("off");var zn,qv,Of,jr,If,Kv,Zv,qa,Ka,sT,lT,jv,uT,Lf,fT,wT,qt,cT,Za,Pf=(function(t){W(e,t);function e(r,i,n){var a=t.call(this,new SS)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[Mf]=1,0)var u;n.ssr&&fy(function(h){var v=ge(h),m=v.dataIndex;if(m!=null){var d=V();return d.set("series_index",v.seriesIndex),d.set("data_index",m),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var f=a._zr=Lp(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:F(n.useDirtyRect,l),useCoarsePointer:F(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=hs(me(f.flush,f),17),a._updateTheme(i),a._locale=H0(n.locale||Ru),a._coordSysMgr=new ns;var c=a._api=fT(a);function p(h,v){return h.__prio-v.__prio}return Wi(Rf,p),Wi(Jv,p),a._scheduler=new kv(a,c,Jv,Rf),a._messageCenter=new TT,a._initEvents(),a.resize=me(a.resize,a),f.animation.on("frame",a._onframe,a),sT(f,a),lT(f,a),ta(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(cT(this),this[Je]){var a=this[Je].silent;this[Ye]=!0,Za(this);try{zn(this),jr.update.call(this,null,this[Je].updateParams)}catch(l){throw this[Ye]=!1,this[Je]=null,l}this._zr.flush(),this[Ye]=!1,this[Je]=null,qa.call(this,a),Ka.call(this,a)}else if(r.unfinished){var o=jI;do{r.unfinished=!1;var s=nt.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Kv(this,i),r.performVisualTasks(i),Lf(this,this._model,n,"remain",{}),o-=nt.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[Ye]){if(this._disposed){this.id;return}var a,o,s;if(U(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Ye]=!0,Za(this),!this._model||i){var l=new xx(this._api),u=this._theme,f=this._model=new sf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ed);var c={seriesTransition:s,optionChanged:!0};if(n)this[Je]={silent:a,updateParams:c},this[Ye]=!1,this.getZr().wakeUp();else{try{zn(this),jr.update.call(this,null,c)}catch(p){throw this[Je]=null,this[Ye]=!1,p}this._ssr||this._zr.flush(),this[Je]=null,this[Ye]=!1,qa.call(this,a),Ka.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Ye]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Je]&&(a==null&&(a=this[Je].silent),o=this[Je].updateParams,this[Je]=null),this[Ye]=!0,Za(this);try{this._updateTheme(r),n.setTheme(this._theme),zn(this),jr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ye]=!1,s}this[Ye]=!1,qa.call(this,a),Ka.call(this,a)}}},e.prototype._updateTheme=function(r){N(r)&&(r=CT[r]),r&&(r=j(r),r&&lf(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||re.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;b(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(pT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();b(ja,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,m=c-u,d=nt.createCanvas(),g=Lp(d,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:m}),i){var y="";return b(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Te({shape:{x:0,y:0,width:v,height:m},style:{fill:r.connectedBackgroundColor}})),b(p,function(_){var x=new ot({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),d.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return If(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return If(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return If(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Yl(n,r);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Yl(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?CS(s,l,i):ES(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;b(uL,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&kn(l,function(m){var d=ge(m);if(d&&d.dataIndex!=null){var g=d.dataModel||s.getSeriesByIndex(d.seriesIndex);return u=g&&g.getDataParams(d.dataIndex,d.dataType,l)||{},!0}else if(d.eventData)return u=L({},d.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;b($v,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),AS(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Gp(this.getDom(),nd,"");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete ja[i.id]},e.prototype.resize=function(r){if(!this[Ye]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[Je]&&(a==null&&(a=this[Je].silent),n=!0,this[Je]=null),this[Ye]=!0,Za(this);try{n&&zn(this),jr.update.call(this,{type:"resize",animation:L({duration:0},r&&r.animation)})}catch(o){throw this[Ye]=!1,o}this[Ye]=!1,qa.call(this,a),Ka.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(U(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!td[r]){var n=td[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=L({},r);return i.type=Qv[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!Nf[r.type]&&this._model){if(this[Ye]){this._pendingActions.push(r);return}var n=i.silent;Zv.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&re.browser.weChat&&this._throttledZrFlush(),qa.call(this,n),Ka.call(this,n)}},e.prototype.updateLabelLayout=function(){zt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){zn=function(c){LS(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),qv(c,!0),qv(c,!1),p.plan()},qv=function(c,p){for(var h=c._model,v=c._scheduler,m=p?c._componentsViews:c._chartsViews,d=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<m.length;_++)m[_].__alive=!1;p?h.eachComponent(function(T,w){T!=="series"&&x(w)}):h.eachSeries(x);function x(T){var w=T.__requireNewView;T.__requireNewView=!1;var C="_ec_"+T.id+"_"+T.type,D=!w&&d[C];if(!D){var E=wt(T.type),A=p?Ut.getClass(E.main,E.sub):fr.getClass(E.sub);D=new A,D.init(h,y),d[C]=D,m.push(D),g.add(D.group)}T.__viewId=D.__id=C,D.__alive=!0,D.__model=T,D.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(D,T,h,y)}for(var _=0;_<m.length;){var S=m[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),m.splice(_,1),d[S.__id]===S&&delete d[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Of=function(c,p,h,v,m){var d=c._model;if(d.setUpdatePayload(h),!v){b([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=by(h,v,m),y=h.excludeSeriesId,_;y!=null&&(_=V(),b(Ae(y),function(S){var T=Lt(S,null);T!=null&&_.set(T,!0)})),d&&d.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;if(!T)if(Ch(h))if(S instanceof ur)h.type===xi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&R_(S,h,c._api);else{var w=fu(S.mainType,S.componentIndex,h.name,c._api),C=w.focusSelf,D=w.dispatchers;h.type===xi&&C&&!h.notBlur&&nu(S.mainType,S.componentIndex,c._api),D&&b(D,function(E){h.type===xi?hn(E):vn(E)})}else pu(h)&&S instanceof ur&&(U_(S,h,c._api),wh(S),qt(c))},c),d&&d.eachComponent(g,function(S){var T=_&&_.get(S.id)!=null;T||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,d,c._api,h)}},jr={prepareAndUpdate:function(c){zn(this),jr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,m=this._zr,d=this._coordSysMgr,g=this._scheduler;if(h){PS(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),d.create(h,v),zt.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),Kv(this,h),d.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),jv(this,h,v,c,p),zt.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var m=[];h.eachComponent(function(g,y){if(g!==tu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&m.push(_)}else m.push(_)}});var d=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&d.set(g.uid,1)}else d.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:d}),Lf(p,h,v,c,{},d),zt.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),fr.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),jv(this,p,this._api,c,{}),zt.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),fr.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var d=p.getViewOfComponentModel(m);d&&d.__alive&&d.updateVisual(m,h,p._api,c)}}),h.eachSeries(function(v){var m=p._chartsMap[v.__viewId];m.updateVisual(v,h,p._api,c)}),zt.trigger("afterupdate",h,this._api))},updateLayout:function(c){jr.update.call(this,c)}};function r(c,p,h,v,m){if(c._disposed){c.id;return}for(var d=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Yl(d,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](d,_,v,m))!=null)return y}}If=r,Kv=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},Zv=function(c,p){var h=this,v=this.getModel(),m=c.type,d=c.escapeConnect,g=Nf[m],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&wt(y[0]);this[Ye]=!0,Za(this);var S=[c],T=!1;c.batch&&(T=!0,S=R(c.batch,function(B){return B=oe(L({},B),c),B.batch=null,B}));var w=[],C,D=[],E=g.nonRefinedEventType,A=pu(c),I=Ch(c);if(I&&bh(this._api),b(S,function(B){var Y=g.action(B,v,h._api);if(g.refineEvent?D.push(Y):C=Y,C=C||L({},B),C.type=E,w.push(C),I){var H=Ho(c),Z=H.queryOptionMap,X=H.mainTypeSpecified,q=X?Z.keys()[0]:"series";Of(h,_,B,q),qt(h)}else A?(Of(h,_,B,"series"),qt(h)):x&&Of(h,_,B,x.main,x.sub)}),_!=="none"&&!I&&!A&&!x)try{this[Je]?(zn(this),jr.update.call(this,c),this[Je]=null):jr[_].call(this,c)}catch(B){throw this[Ye]=!1,B}if(T?C={type:E,escapeConnect:d,batch:w}:C=w[0],this[Ye]=!1,!p){var M=void 0;if(g.refineEvent){var O=g.refineEvent(D,c,v,this._api).eventContent;Ie(U(O)),M=oe({type:g.refinedEventType},O),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var k=this._messageCenter;k.trigger(C.type,C),M&&k.trigger(M.type,M)}},qa=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Zv.call(this,h,c)}},Ka=function(c){!c&&this.trigger("updated")},sT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[Je]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},lT=function(c,p){c.on("mouseover",function(h){var v=h.target,m=kn(v,jo);m&&(k_(m,h,p._api),qt(p))}).on("mouseout",function(h){var v=h.target,m=kn(v,jo);m&&(B_(m,h,p._api),qt(p))}).on("click",function(h){var v=h.target,m=kn(v,function(y){return ge(y).dataIndex!=null},!0);if(m){var d=m.selected?"unselect":"select",g=ge(m);p._api.dispatchAction({type:d,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,T=_.getZLevelKey();v=v||!!T,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:T})}),v){var m=p.concat(h),d,g;Wi(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(m,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;d!=null&&(x=Math.max(d,x)),S?(x===d&&S!==g&&x++,g=S):g&&(x===d&&x++,g=""),d=x,_.setZLevel(x)})}}jv=function(c,p,h,v,m){n(p),uT(c,p,h,v,m),b(c._chartsViews,function(d){d.__alive=!1}),Lf(c,p,h,v,m),b(c._chartsViews,function(d){d.__alive||d.remove(p,h)})},uT=function(c,p,h,v,m,d){b(d||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},Lf=function(c,p,h,v,m,d){var g=c._scheduler;m=L(m||{},{updatedSeries:p.getSeries()}),zt.trigger("series:beforeupdate",p,h,m);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),d&&d.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),wh(_)}),g.unfinished=y||g.unfinished,zt.trigger("series:layoutlabels",p,h,m),zt.trigger("series:transition",p,h,m),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),zt.trigger("series:afterupdate",p,h,m)},qt=function(c){c[Wv]=!0,c.getZr().wakeUp()},Za=function(c){c[Mf]=(c[Mf]+1)%1e6},cT=function(c){c[Wv]&&(c.getZr().storage.traverse(function(p){yn(p)||a(p)}),c[Wv]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||p.push(m)}c.selected&&c.states.select&&p.push("select"),c.hoverState===ou&&c.states.emphasis?p.push("emphasis"):c.hoverState===au&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,m=0;v.traverse(function(g){g.isGroup||m++});var d=m>F(p.get("hoverLayerThreshold"),nf.hoverLayerThreshold)&&!re.node&&!re.worker;(c._usingTHL||d)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==is&&(x.hoverLayer=d?Hh:Vh)})}}),c._usingTHL=d)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Xh(c);p.eachRendered(function(v){return qh(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!yn(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),m=h.get("duration"),d=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(yn(g))return;if(g instanceof ie&&G_(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=d;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=d),x&&(x.stateTransition=d)}g.__dirty&&a(g)}})}fT=function(c){return new((function(p){W(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return c._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){hn(v,m),qt(c)},h.prototype.leaveEmphasis=function(v,m){vn(v,m),qt(c)},h.prototype.enterBlur=function(v){P_(v),qt(c)},h.prototype.leaveBlur=function(v){xh(v),qt(c)},h.prototype.enterSelect=function(v){Sh(v),qt(c)},h.prototype.leaveSelect=function(v){Th(v),qt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Mf]},h.prototype.usingTHL=function(){return c._usingTHL},h})(iu))(c)},wT=function(c){function p(h,v){for(var m=0;m<h.length;m++){var d=h[m];d[Xv]=v}}b(Qv,function(h,v){c._messageCenter.on(v,function(m){if(pT[c.group]&&c[Xv]!==oT){if(m&&m.escapeConnect)return;var d=c.makeActionFromEvent(m),g=[];b(ja,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,oT),b(g,function(y){y[Xv]!==sL&&y.dispatchAction(d)}),p(g,lL)}})})}})(),e})(pt),id=Pf.prototype;id.on=_T("on");id.off=_T("off");id.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var uL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Nf={},Qv={},$v={},Jv=[],ed=[],Rf=[],CT={},td={},ja={},pT={},fL=+new Date-0,m3=+new Date-0,nd="_echarts_instance_";function ET(t,e,r){var i=!(r&&r.ssr);if(i){var n=Bf(t);if(n)return n}var a=new Pf(t,e,r);return a.id="ec_"+fL++,ja[a.id]=a,i&&Gp(t,nd,a.id),wT(a),zt.trigger("afterinit",a),a}function AT(t){N(t)?t=ja[t]:t instanceof Pf||(t=Bf(t)),t instanceof Pf&&!t.isDisposed()&&t.dispose()}function Bf(t){return ja[wy(t,nd)]}function DT(t,e){CT[t]=e}function ad(t){ae(ed,t)<0&&ed.push(t)}function od(t,e){sd(Jv,t,e,tL)}function MT(t){Uf("afterinit",t)}function OT(t){Uf("afterupdate",t)}function Uf(t,e){zt.on(t,e)}function Fn(t,e,r){var i,n,a,o,s;G(e)&&(r=e,e=""),U(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Nf[i]||(Ie(aT.test(i)&&aT.test(n)),a&&Ie(n!==i),Nf[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},$v[n]=1,a&&s&&($v[u]=1),Qv[u]=i)}function IT(t,e){ns.register(t,e)}function LT(t,e){sd(Rf,t,e,dT,"layout",!0)}function Oi(t,e){sd(Rf,t,e,mT,"visual",!0)}var hT=[];function sd(t,e,r,i,n,a){if((G(e)||U(e))&&(r=e,e=i),!(ae(hT,r)>=0)){hT.push(r);var o=kv.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function ld(t,e){td[t]=e}function PT(t,e,r){var i=OS("registerMap");i&&i(t,e,r)}var NT=Fx;Oi(rd,cS);Oi(kf,pS);Oi(kf,hS);Oi(rd,bS);Oi(kf,wS);Oi(gT,iT);ad(lf);od($I,Dx);ld("default",Rv);Fn({type:xi,event:xi,update:xi},Ce);Fn({type:qo,event:qo,update:qo},Ce);Fn({type:Ko,event:lu,update:Ko,action:Ce,refineEvent:ud,publishNonRefinedEvent:!0});Fn({type:su,event:lu,update:su,action:Ce,refineEvent:ud,publishNonRefinedEvent:!0});Fn({type:Zo,event:lu,update:Zo,action:Ce,refineEvent:ud,publishNonRefinedEvent:!0});function ud(t,e,r,i){return{eventContent:{selected:z_(r),isFromClick:e.isFromClick||!1}}}DT("default",{});DT("dark",xS);function _s(t){return t==null?0:t.length||1}function RT(t){return t}var cL=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||RT,this._newKeyGetter=n||RT,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=_s(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=_s(u),p=_s(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=_s(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=_s(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),kT=cL;var pL=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function BT(t,e){var r={},i=r.encode={},n=V(),a=[],o=[],s={};b(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var m=h.coordDimIndex;fd(i,v)[m]=p,h.isExtraCoord||(n.set(v,1),hL(h.type)&&(a[0]=p),fd(s,v)[m]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}ru.each(function(d,g){var y=fd(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=R(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new pL(s,e),r}function fd(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function UT(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function hL(t){return!(t==="ordinal"||t==="time")}var vL=(function(){function t(e){this.otherDims={},e!=null&&L(this,e)}return t})(),Qa=vL;var dL=J(),mL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cd=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pd(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return F(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=ff(this.source),i=!hd(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=mL[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function zf(t){return t instanceof cd}function xs(t){for(var e=V(),r=0;r<(t||[]).length;r++){var i=t[r],n=U(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function pd(t){var e=dL(t);return e.dimNameMap||(e.dimNameMap=xs(t.dimensionsDefine))}function hd(t){return t>30}var Ss=U,Ii=R,gL=typeof Int32Array>"u"?Array:Int32Array,yL="e\0\0",zT=-1,_L=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xL=["_approximateExtent"],FT,Ff,Ts,bs,vd,ws,dd,SL=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;zf(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=N(c)?new Qa({name:c}):c instanceof Qa?c:new Qa(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=V();b(o,function(d){m.set(a[d].storeDimIndex,d)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(fe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof ps&&(a=e),!a){var o=this.dimensions,s=Ha(e)||Fe(e)?new pf(e,o.length):e;a=new ps;var l=Ii(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=BT(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&dd(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Rt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ze;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&_y(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Lt(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Lt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)dd(this,f);FT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Ss(e)?L(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Ts(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Ff(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return P(e)?n.getValues(Ii(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?zT:n},t.prototype.each=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Ii(bs(e),this._getStoreDimIndex,this);this._store.each(a,n?me(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]);var n=i||this,a=Ii(bs(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?me(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=Q(e),a=[];return b(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";G(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=Ii(bs(e),this._getStoreDimIndex,this),s=ws(this);return s._store=this._store.map(o,a?me(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=Ii(bs(e),this._getStoreDimIndex,this);this._store.modify(s,o?me(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=ws(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=ws(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=ws(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new De(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new kT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Ff(e,i)},function(i){return Ff(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Ss(e)?L(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),P(a)?a=a.slice():Ss(a)&&(a=L({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ss(r)?L(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ss(e)?L(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?L(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;x_(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ii(this.dimensions,this._getDimInfo,this),this.hostModel)),vd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];G(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(tl(arguments)))})},t.internalField=(function(){FT=function(e){var r=e._invertedIndicesMap;b(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new gL(o.categories.length);for(var l=0;l<i.length;l++)i[l]=zT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Ts=function(e,r,i){return Lt(e._getCategory(r,i),null)},Ff=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Ts(e,e._idDimIdx,r)),i==null&&(i=yL+r),i},bs=function(e){return P(e)||(e=e!=null?[e]:[]),e},ws=function(e){var r=new t(e._schema?e._schema:Ii(e.dimensions,e._getDimInfo,e),e.hostModel);return vd(r,e),r},vd=function(e,r){b(_L.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,b(xL,function(i){e[i]=j(r[i])}),e._calculationInfo=L({},r._calculationInfo)},dd=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=Ts(e,a,r)),l==null&&o!=null&&(n[r]=l=Ts(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),VT=SL;function md(t,e){Ha(t)||(t=Ga(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=V(),a=[],o=TL(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hd(o),l=i===t.dimensionsDefine,u=l?pd(t):xs(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),p=new Dv(o),h=0;h<p.length;h++)p[h]=-1;function v(D){var E=p[D];if(E<0){var A=i[D],I=U(A)?A:{name:A},M=new Qa,O=I.name;O!=null&&u.get(O)!=null&&(M.name=M.displayName=O),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var k=a.length;return p[D]=k,M.storeDimIndex=D,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(D,E){var A=Ae(D).slice();if(A.length===1&&!N(A[0])&&A[0]<0){c.set(E,!1);return}var I=c.set(E,[]);b(A,function(M,O){var k=N(M)?u.get(M):M;k!=null&&k<o&&(I[O]=k,d(v(k),E,O))})});var m=0;b(r,function(D){var E,A,I,M;if(N(D))E=D,M={};else{M=D,E=M.name;var O=M.ordinalMeta;M.ordinalMeta=null,M=L({},M),M.ordinalMeta=O,A=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var k=c.get(E);if(k!==!1){if(k=Ae(k),!k.length)for(var B=0;B<(A&&A.length||1);B++){for(;m<o&&v(m).coordDim!=null;)m++;m<o&&k.push(m++)}b(k,function(Y,H){var Z=v(Y);if(l&&M.type!=null&&(Z.type=M.type),d(oe(Z,M),E,H),Z.name==null&&A){var X=A[H];!U(X)&&(X={name:X}),Z.name=Z.displayName=X.name,Z.defaultTooltip=X.defaultTooltip}I&&oe(Z.otherDims,I)})}});function d(D,E,A){ru.get(E)!=null?D.otherDims[E]=A:(D.coordDim=E,D.coordDimIndex=A,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)b(a,function(D){S(D)}),a.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var T=0;T<o;T++){var w=v(T),C=w.coordDim;C==null&&(w.coordDim=bL(x,n,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(af(t,T)===gt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return xa(a,function(D){return D.name},function(D,E){E>0&&(D.name=D.name+(E-1))}),new cd({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function TL(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return b(e,function(a){var o;U(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function bL(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var wL=(function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t})();function HT(t){var e=t.get("coordinateSystem"),r=new wL(e),i=CL[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var CL={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",it).models[0],a=t.getReferringComponents("yAxis",it).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),$a(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),$a(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",it).models[0];e.coordSysDims=["single"],r.set("single",n),$a(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",it).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),$a(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),$a(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),$a(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",it).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function $a(t){return t.get("type")==="category"}function GT(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;EL(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(b(a,function(x,S){N(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),b(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var m=f.coordDim,d=f.type,g=0;b(a,function(x){x.coordDim===m&&g++});var y={name:c,coordDim:m,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,d),_.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function EL(t){return!zf(t.schema)}function Ja(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function YT(t,e){return Ja(t,e)?t.getCalculationInfo("stackResultDimension"):e}function AL(t,e){var r=t.get("coordinateSystem"),i=ns.get(r),n;return e&&e.coordSysDims&&(n=R(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=UT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function DL(t,e,r){var i,n;return r&&b(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function ML(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=Ga(t)):(n=i.getSource(),a=n.sourceFormat===Ze);var o=HT(e),s=AL(e,o),l=r.useEncodeDefaulter,u=G(l)?l:l?Ve(ux,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=md(n,f),p=DL(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=GT(e,{schema:c,store:h}),m=new VT(c,e);m.setCalculationInfo(v);var d=p!=null&&OL(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return m.hasItemOption=!1,m.initData(a?n:h,null,d),m}function OL(t){if(t.sourceFormat===Ze){var e=IL(t.data||[]);return!P(zr(e))}}function IL(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var eo=ML;var WT=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();vi(WT);var _t=WT;var LL=0,PL=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++LL,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&R(i,NL);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!N(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t})();function NL(t){return U(t)&&t.value!=null?t.value:t+""}var Cs=PL;var Dt=0,to=1,RL={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},qT=Q(RL),ro=2,KT=3;function io(t,e,r){var i;t=t||{};var n=Pe();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(b(qT,function(o){a[o]&&(t[o]=me(a[o],a))}),i=a)}return i==null&&kL(t,r),{brk:i,mapper:t}}function Vf(t,e){b(qT,function(r){t[r]=e[r]})}function Hf(t,e){t.freeze=Ce}function Qr(t){return t.getExtentUnsafe(Dt,ro)}function Vn(t,e){return t.getExtentUnsafe(to,e)||t.getExtentUnsafe(Dt,e)}function ZT(t){var e=Vn(t,KT);return e[1]-e[0]}function no(t){var e=t.getExtentUnsafe(Dt,KT);return e[1]-e[0]}function kL(t,e){var r=t||{},i=[];return r._extents=i,i[Dt]=e?e.slice():bt(),L(r,BL),r}var BL={needTransform:function(){return!1},normalize:function(t){var e=this._extents[to]||this._extents[Dt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[to]||this._extents[Dt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Vn(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Dt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){XT(this._extents,Dt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Dt].slice()),XT(i,t,e,r)},freeze:function(){}};function XT(t,e,r,i){Vr(r,i)&&(t[e][0]=r,t[e][1]=i)}function Gf(t){return ao(t)||Or(t)}function ao(t){return t.type==="interval"}function oo(t){return t.type==="time"}function Or(t){return t.type==="log"}function et(t){return t.type==="ordinal"}function jT(t){var e=Hl(t),r=en(10,e),i=It(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ve(i*r,-e)}function cr(t){return Ji(t)+2}function Es(t,e){return ga(t)/ga(e)}function Yf(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return en(e,t)}function Wf(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ee(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!ir(i[0])||!ir(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function QT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function As(t,e){return t=t||e,It(le(t,1))}function Xf(t,e,r){var i=Qr(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var $T=(function(t){W(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Vf(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Cs({})),P(n)&&(n=new Cs({categories:R(n,function(o){return U(o)?o.value:o})})),i._ordinalMeta=n;var a=io(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Hf(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:N(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=It(r),r},e.prototype.getTicks=function(){var r=[];return Xf(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Le(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=Qr(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(It(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(_t);_t.registerClass($T);var JT=$T;function so(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=cr(h);f<e-1;){var m=ve(u.value+(f+1)*h,v);m>o[0]&&m<o[1]&&c.push(m),f++}var d=Pe();d&&d.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var eb=(function(t){W(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=ku(i,r),a=io(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return j(this._cfg)},e.prototype.setConfig=function(r){var i=Qr(this);this._cfg=r=j(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=cr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Qr(this),o=i.niceExtent,s=i.intervalPrecision,l=Pe(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):a[0]});for(var h=function(_,x){return It((x-_)/n)},v=i.intervalCount,m=o[0],d=0;;d++){if(v==null){if(m>o[1]||!isFinite(m)||!isFinite(o[1]))break}else{if(d>v)break;m=Le(m,o[1]),d===v&&(m=o[1])}if(c.push({value:m}),m=ve(m+n,s),u){var g=u.calcNiceTickMultiple(m,h);g>=0&&(m=ve(m+g*n,s))}if(c.length>0&&m===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return so(this,r,Cn(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Ji(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ve(r.value,n,!0);return cv(a)},e.type="interval",e})(_t);_t.registerClass(eb);var Hn=eb;var UL=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},rb=(function(t){W(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=ku(i,r),a=io(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return An(r.value,rv[K0(Ba(this._minLevelUnit))]||rv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return Z0(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Qr(this),a=Pe(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Pe().addBreaksToTicks(l,o.breaks,n),l;l=WL(this._minLevelUnit,this._approxInterval,u,n,no(this),o);var f=At.length-1,c=0;return b(l,function(p){p.time&&(f=Math.min(f,ae(At,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Pe().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Pe().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ae(At,Dn(p.vmin,u)),ae(At,Dn(p.vmax,u))),v=0,m=0;m<At.length;m++)if(!ib(At[m],p.vmin,p.vmax,u)){v=m;break}var d=Math.min(v,f),g=Math.max(d,h);return{level:c,lowerTimeUnit:At[g],upperTimeUnit:At[d]}}),l},e.prototype.getMinorTicks=function(r){return so(this,r,Cn(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return fe(r)?Math.round(r):+_r(r)},e.type="time",e})(_t),qf=[["second",zu],["minute",Fu],["hour",ka],["quarter-day",ka*6],["half-day",ka*12],["day",Bt*1.2],["half-week",Bt*3.5],["week",Bt*7],["month",Bt*31],["quarter",Bt*95],["half-year",tv/2],["year",tv]];function ib(t,e,r,i){return Vu(new Date(e),t,i).getTime()===Vu(new Date(r),t,i).getTime()}function zL(t,e){return t/=Bt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function FL(t){var e=30*Bt;return t/=e,t>6?6:t>3?3:t>2?2:1}function VL(t){return t/=ka,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function tb(t,e){return t/=e?Fu:zu,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function HL(t){return le(tn(t,!0),1)}function GL(t,e,r){var i=Math.max(0,ae(At,e)-1);return Vu(new Date(t),At[i],r).getTime()}function YL(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function WL(t,e,r,i,n,a){var o=3e3,s=W0,l=0;function u(B,Y,H,Z,X,q,$){for(var se=YL(X,B),K=Y,pe=new Date(K);K<H&&K<=i[1]&&($.push({value:K}),!(l++>o));)if(pe[X](pe[Z]()+B),K=pe.getTime(),a){var ye=a.calcNiceTickMultiple(K,se);ye>0&&(pe[X](pe[Z]()+ye*B),K=pe.getTime())}$.push({value:K,notAdd:K>i[1]})}function f(B,Y,H){var Z=[],X=!Y.length;if(!ib(Ba(B),i[0],i[1],r)){X&&(Y=[{value:GL(i[0],B,r)},{value:i[1]}]);for(var q=0;q<Y.length-1;q++){var $=Y[q].value,se=Y[q+1].value;if($!==se){var K=void 0,pe=void 0,ye=void 0,ft=!1;switch(B){case"year":K=Math.max(1,Math.round(e/Bt/365)),pe=iv(r),ye=j0(r);break;case"half-year":case"quarter":case"month":K=FL(e),pe=Hu(r),ye=nv(r);break;case"week":case"half-week":case"day":K=zL(e,31),pe=Gu(r),ye=av(r),ft=!0;break;case"half-day":case"quarter-day":case"hour":K=VL(e),pe=Yu(r),ye=ov(r);break;case"minute":K=tb(e,!0),pe=Wu(r),ye=sv(r);break;case"second":K=tb(e,!1),pe=Xu(r),ye=lv(r);break;case"millisecond":K=HL(e),pe=qu(r),ye=uv(r);break}se>=i[0]&&$<=i[1]&&u(K,$,se,pe,ye,ft,Z),B==="year"&&H.length>1&&q===0&&H.unshift({value:H[0].value-K})}}for(var q=0;q<Z.length;q++)H.push(Z[q])}}for(var c=[],p=[],h=0,v=0,m=0;m<s.length;++m){var d=Ba(s[m]);if(q0(s[m])){f(s[m],c[c.length-1]||[],p);var g=s[m+1]?Ba(s[m+1]):null;if(d!==g){if(p.length){v=h,p.sort(function(B,Y){return B.value-Y.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[m]))break}p=[]}}}for(var T=Me(R(c,function(B){return Me(B,function(Y){return Y.value>=i[0]&&Y.value<=i[1]&&!Y.notAdd})}),function(B){return B.length>0}),w=T.length-1,C=[],m=0;m<T.length;++m)for(var D=T[m],E=0;E<D.length;++E){var A=Dn(D[E].value,r);C.push({value:D[E].value,time:{level:w-m,upperTimeUnit:A,lowerTimeUnit:A}})}xa(C,Oy,null),C.sort(function(B,Y){return B.value-Y.value});var I=C[0],M=C[C.length-1],O=Dn(i[0],r),k=Dn(i[1],r);return(!I||I.value>i[0])&&C.unshift({value:i[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!M||M.value<i[1])&&C.push({value:i[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),C}var nb=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Bt,r[1]+=Bt),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Bt}t.setExtent(r[0],r[1]);var n=As(e.splitNumber,10),a=no(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=qf.length,u=Math.min(UL(qf,a,0,l),l-1),f=qf[u][1],c=qf[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};_t.registerClass(rb);var ab=rb;var Kf=0,Zf=1,XL=2,ub=(function(t){W(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Hn.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Kf]=n[Zf]=a[Kf]=a[Zf]=NaN,Vf(i,e.mapperMethods);var s=Pe(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},XL,u),i.powStub=new Hn({breakParsed:u.original}),i.intervalStub=new Hn({breakParsed:u.transformed}),Hf(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Pe(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return R(o.getTicks(r||{}),function(f){var c=f.value,p=Yf(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Cn(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return so(this,r,Cn(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Es(r,this.base))},scale:function(r){return Yf(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Es(r,this.base),i&&i.depth===ro?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return ob.depth=n,sb.lookup=this._lookup,Yf(n===ro?r:this.intervalStub.transformOut(r,ob),this.base,sb)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Dt,r,i)},setExtent2:function(r,i,n){if(!(!Vr(i,n)||i<=0||n<=0)){var a=lb,o=lb;if(r===Dt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Kf]=i,a[Zf]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Kf]=Es(i,l),o[Zf]=Es(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return Vr(i[0],i[1])&&He(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(_t);_t.registerClass(ub);var ob={},sb={},lb=[],fb=ub;var jf={value:1,category:1,time:1,log:1};var cb=J();function pb(t){var e=t.get("type");return(e==null||!Oe(jf,e)&&!_t.getClass(e))&&(e="value"),e}function hb(t,e,r){var i=Pe(),n;switch(i&&(n=gd(t,e,r)),e){case"category":return new JT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:bt()});case"time":return new ab({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new fb({logBase:t.get("logBase"),breakOption:n});case"value":return new Hn({breakOption:n});default:return new(_t.getClass(e)||Hn)({})}}function vb(t,e,r){var i=r?Vn(t,null):t.getExtentUnsafe(Dt,null),n=i[0],a=i[1];return Vr(n,a)?n===e||a===e?KL:n<e&&a>e?qL:Qf:Qf}var qL=1,KL=2,Qf=3;function db(t){cb(t).noOnMyZero=!0}function mb(t){return cb(t).noOnMyZero}function Ds(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=X0(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(N(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(G(e)){if(t.type==="category")return function(n,a){return e(lo(t,n),n.value-t.scale.getExtent()[0],null)};var i=Pe();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(lo(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function lo(t,e){var r=t.scale;return et(r)?r.getLabel(e):e.value}function $f(t){var e=t.get("interval");return e??"auto"}function gb(t){return t.type==="category"&&$f(t.getLabelModel())===0}function yb(t,e){var r={};return b(t.mapDimensionsAll(e),function(i){r[YT(t,i)]=!0}),Q(r)}function Li(t){return t==="middle"||t==="center"}function Gn(t){return t.getShallow("show")}function gd(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Pe())return;if(!r||!ZL(e)){if(0)var n;return}return i}}function ZL(t){return t!=="category"}function Jf(t,e,r,i,n,a){var o=Or(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:ro},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=QT(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Yn(t,e){return et(t)?t.getRawOrdinalNumber(e.value):e.value}function ec(t,e){return et(t)&&!!e.get("boundaryGap")}var xb=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var jL=Wl(),tc="|&",uo=J(),rc=-2,Sb=-1,QL=J();function Tb(t,e){var r=t.model,i=uo(Bn(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function bb(t,e){return Eb(Tb(t,e))}function wb(t,e){var r=[];return Cb(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(Eb(i))}),r}function Cb(t,e){var r=uo(Bn(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function Eb(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function Ab(t,e){var r=t.model.ecModel,i=uo(Bn(r)).axSer;i&&ic(r,i.get(t.model.uid),e)}function xd(t,e,r){var i=Tb(t,e);i&&ic(t.model.ecModel,i.sers,r)}function ic(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function Db(t,e,r){var i=uo(Bn(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function Sd(t,e){var r=t.model,i=uo(Bn(r.ecModel)).keys;i&&b(i.get(r.uid),function(n){if(0)var a;e(n)})}function $L(t){var e=QL(NS(t)),r=e.keyed||(e.keyed=V());Cb(t,function(i,n,a){var o=r.get(n)||r.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&Ob.liPosMinGap(t,i,s)})}function Mb(t,e){Ob[t]=e}var Ob={};function Td(t,e,r){if(t){var i=e.ecModel,n=uo(Bn(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=_d.get(yd(c,p,r))||_d.get(yd(c,p,null));if(h){var v=n.keyed||(n.keyed=V()),m=n.keys||(n.keys=V()),d=h.key,g=v.get(d)||v.set(d,V()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(m.get(a)||m.set(a,[])).push(d)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function yd(t,e,r){return t+tc+F(e,!0)+tc+(r||"")}function Ib(t,e){var r=yd(e.seriesType,e.baseAxis,e.coordSysType);_d.set(r,e),jL(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:$L})})}var _d=V();var JL=J(),Nb=1;var eP=3,Rb=(function(){function t(e,r,i,n,a){var o=et(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(ao(e)||Or(e)||oo(e))&&(Yp(f,Ms(e,r.get("dataMin",!0))),Wp(f,Ms(e,r.get("dataMax",!0)))),Dy(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Ms(e,G(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Ms(e,G(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var m=tP(e,r),d=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-m[0]*d),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+m[1]*d),!ir(c[0])&&(c[0]=NaN),!ir(c[1])&&(c[1]=NaN);var g=l||ri(c[0])||ri(c[1])||o&&!s,y=ao(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Ms(e,r.get("startValue",!0)),T=S!=null;!He(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),He(S)&&(T||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};Lb(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),Lb(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Lb(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),My(e))}function Ms(t,e){return e==null?null:ri(e)?NaN:t.parse(e)}function tP(t,e){var r;if(et(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=P(i)?i:[i,i]}return[Pb(r[0]),Pb(r[1])]}function Pb(t){return er(typeof t=="boolean"?0:t,1)||0}function kb(t){var e=JL(t.scale);return e.extent||(e.extent=bt()),e}function Bb(t,e){kb(t).dimIdxInCoord=e.get(t.dim)}function Ub(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||rP(r,t,n,i,e)}function rP(t,e,r,i,n){var a=kb(e),o=a.extent,s=!1;Ab(e,function(f){if(f.boxCoordinateSystem){var c=Ju(f).coord,p=a.dimIdxInCoord;if(p>=0){if(P(c)){var h=c[p];h!=null&&!P(h)&&Ey(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var m=t.getFilter?t.getFilter():null;b(yb(v,r),function(d){Ay(o,v.getApproximateExtent(d,m))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=nP(t,e,i),u=new Rb(t,i,o,s,l);zb(t,u,n),a.extent=null}function iP(t,e){var r=t.scale;zb(r,new Rb(r,t.model,e,!1,!1),eP)}function zb(t,e,r){t.rawExtentInfo=e,e.from=r}function Fb(t,e){bd.set(t,e)}var bd=V();function nc(t,e,r,i,n){t.rawExtentInfo||iP({scale:t,model:e},n||bt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function nP(t,e,r){var i=ec(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Sd(e,function(o){a=!!bd.get(o)||a}),a}function Vb(t,e,r,i){if(r.ctnShp){var n;if(Sd(t,function(s){var l=bd.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Yp(n,u[0]),Wp(n,u[1]),db(t))}}),!!n){var a=e.getExtent();if(et(e))t.onBand||e.setExtent2(to,Le(a[0],a[0]+n[0]),le(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Le(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=le(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(to,o[0],o[1])}}}}function Hb(t,e){var r=Or(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Wf(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?oP(i,e):aP(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=cr(c)),n[0]||(s[0]=ve(Ur(s[0]/f)*f,u)),n[1]||(s[1]=ve(pi(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Jf(t,n,o,s,a,l)}function aP(t,e){var r=As(e.splitNumber,5),i=no(t),n=e.minInterval,a=e.maxInterval,o=tn(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=cr(o),l=t.getExtent(),u=[ve(pi(l[0]/o)*o,s),ve(Ur(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function oP(t,e){var r=As(e.splitNumber,10),i=t.getExtent(),n=no(t),a=le(Vl(n),1),o=r/n*a;o<=.5&&(a*=10);var s=cr(a),l=[ve(pi(i[0]/a)*a,s),ve(Ur(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function wd(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;sP(e,r,i,n,null)}function sP(t,e,r,i,n){var a=nc(t,e,i,r,n),o=ao(t)||oo(t);lP(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&Vb(r,t,a,i)}function lP(t,e){uP[t.type](t,e)}var uP={interval:Hb,log:Hb,time:nb,ordinal:Ce};var Gb=[],fP={registerPreprocessor:ad,registerProcessor:od,registerPostInit:MT,registerPostUpdate:OT,registerUpdateLifecycle:Uf,registerAction:Fn,registerCoordinateSystem:IT,registerLayout:LT,registerVisual:Oi,registerTransform:NT,registerLoading:ld,registerMap:PT,registerImpl:MS,PRIORITY:yT,ComponentModel:Se,ComponentView:Ut,SeriesModel:ur,ChartView:fr,registerComponentModel:function(t){Se.registerClass(t)},registerComponentView:function(t){Ut.registerClass(t)},registerSeriesModel:function(t){ur.registerClass(t)},registerChartView:function(t){fr.registerClass(t)},registerCustomSeries:function(t,e){IS(t,e)},registerSubTypeDefaulter:function(t,e){Se.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ly(t,e)}};function pr(t){if(P(t)){b(t,function(e){pr(e)});return}ae(Gb,t)>=0||(Gb.push(t),G(t)&&(t={install:t}),t.install(fP))}var cP=J(),Os=J(),Mt={estimate:1,determine:2};function fo(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Yb(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:R(Xb(r,i),function(n,a){return{formattedLabel:Ds(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?pP(t,e):vP(t)}function Wb(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:Xb(n,i)}:t.type==="category"?hP(t,e):{ticks:i.getTicks(r)}}function Xb(t,e){var r=e.getExtent(),i=[];return b(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),xa(i,Iy,null),ya(i),R(i,function(n){return{value:n}})}function pP(t,e){var r=t.getLabelModel(),i=qb(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function qb(t,e,r){var i=mP(t),n=$f(e),a=r.kind===Mt.estimate;if(!a){var o=Zb(i,n);if(o)return o}var s,l;G(n)?s=ac(t,n,!1):(l=n==="auto"?gP(t,r):n,s=ac(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Cd(i,n,u),!0}):Cd(i,n,u),u}function hP(t,e){var r=dP(t),i=$f(e),n=Zb(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),G(i))a=ac(t,i,!0);else if(i==="auto"){var s=qb(t,t.getLabelModel(),fo(Mt.determine));o=s.labelCategoryInterval,a=R(s.labels,function(l){return l.tick})}else o=i,a=ac(t,o,!0);return Cd(r,i,{ticks:a,tickCategoryInterval:o})}function vP(t){var e=t.scale.getTicks(),r=Ds(t);return{labels:R(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var dP=Kb("axisTick"),mP=Kb("axisLabel");function Kb(t){return function(r){return Os(r)[t]||(Os(r)[t]={list:[]})}}function Zb(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Cd(t,e,r){return t.list.push({key:e,value:r}),r}function gP(t,e){if(e.kind===Mt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Os(t).autoInterval=r,!0}),r}var i=Os(t).autoInterval;return i??(Os(t).autoInterval=t.calculateCategoryInterval(e))}function jb(t,e){var r=e.kind,i=_P(t),n=Ds(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),m=0,d=0;c<=s[1];c+=u){var g=0,y=0,_=Rl(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,m=Math.max(m,g,7),d=Math.max(d,y,7)}var x=m/h,S=d/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var T=Math.max(0,Math.floor(Math.min(x,S)));if(r===Mt.estimate)return e.out.noPxChangeTryDetermine.push(me(yP,null,t,T,l)),T;var w=Qb(t,T,l);return w??T}function yP(t,e,r){return Qb(t,e,r)==null}function Qb(t,e,r){var i=cP(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function _P(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function ac(t,e,r){var i=Ds(t),n=t.scale,a=[],o=G(e);return Xf(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var xP=.8;function hr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=ZT(i);He(o)||(o=NaN);var s=t.getExtent(),l=Ee(s[1]-s[0]);return et(i)?SP(r,t,o,l):n?TP(r,t,o,l,n):a==null,a!=null&&(r.w=He(r.w)?le(a,r.w):a),r}function SP(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function TP(t,e,r,i,n){var a=!1,o=-1/0;b(n.key?[bb(e,n.key)]:wb(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===rc&&(a=!0))}),He(r)&&r>0&&He(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*xP,t.w2=t.w*r/i)}var $b=[0,1],bP=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),Np(e,$b,Jb(this),r)},t.prototype.coordToData=function(e,r){var i=Np(e,Jb(this),$b,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=Wb(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=R(i.ticks,function(s){return{coord:this.dataToCoord(Yn(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=wP(this,n,a);return R(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(et(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=R(i,function(a){return R(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||fo(Mt.determine),Yb(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return hr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||fo(Mt.determine),jb(this,e)},t})();function Jb(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function wP(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=hr(t).w;if(!n)return!1;b(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var ew=bP;var tw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],CP=1,oc=2,iw=CP|oc;function Is(t,e,r){r=r||iw,e?t.dirty|=r:t.dirty&=~r}function nw(t,e){return e=e||iw,t.dirty==null||!!(t.dirty&e)}function vr(t){if(t)return nw(t)&&EP(t,t.label,t),t}function EP(t,e,r){var i=e.getComputedTransform();t.transform=Mu(t.transform,i);var n=t.localRect=Pa(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=bn.textMargin);for(var c=0;c<4;c++)Ed[c]=f===bn.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===bn.textMargin&&La(n,Ed,!1,!1);var p=t.rect=Pa(t.rect,n);return i&&p.applyTransform(i),f===bn.minMargin&&La(p,Ed,!1,!1),t.axisAligned=Du(i),(t.label=t.label||{}).ignore=e.ignore,Is(t,!1),Is(t,!0,oc),t}var Ed=[0,0,0,0];function aw(t,e,r){return t.transform=Mu(t.transform,r),t.localRect=Pa(t.localRect,e),t.rect=Pa(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Du(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function ow(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Ad(t,e){for(var r=0;r<tw.length;r++){var i=tw[r];t[i]==null&&(t[i]=e[i])}return vr(t)}function rw(t){var e=t.obb;return(!e||nw(t,oc))&&(t.obb=e=e||new Tu,e.fromBoundingRect(t.localRect,t.transform),Is(t,!1,oc)),e}function sw(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=vr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(sc(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function sc(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:rw(t).intersect(rw(e),r,i)}function lc(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Zr(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Zr(t,e,r[o]));return a.join(" ")}}function lw(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!P(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var AP=(function(t){W(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=Mi(r,-1,-1,2,2,null,s);l.attr({z2:F(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=DP,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){hn(this.childAt(0))},e.prototype.downplay=function(){vn(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):mt(h,v,s,i),bu(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Wt(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,m,d,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,m=a.labelStatesModels,d=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),m=Na(y),d=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Cf(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var T=r.getItemVisual(i,"style"),w=T.fill;if(s instanceof ot){var C=s.style;s.useStyle(L({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},T))}else s.__isEmptyBrush?s.useStyle(L({},T)):s.useStyle(T),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(i,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var A=o&&o.useNameLabel;Iu(s,m,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:T.opacity});function I(k){return A?r.getName(k):lc(r,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;M.scaleX=this._sizeX*O,M.scaleY=this._sizeY*O,this.setSymbolScale(1),cu(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=ge(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Oa(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Oa(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return kS(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(be);function DP(t,e){this.parent.drift(t,e)}var uw=AP;function uc(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function fw(t){return t!=null&&!U(t)&&(t={isIgnore:t}),t||{}}function cw(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Na(e),cursorStyle:e.get("cursor")}}function pw(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var MP=(function(){function t(e){this.group=new be,this._SymbolCtor=e||uw}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=fw(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=cw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);uc(e,p,c,r)&&pw(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!uc(e,v,c,r)){i.remove(h);return}var m=e.getItemVisual(c,"symbol")||"circle",d=h&&h.getSymbolType&&h.getSymbolType();if(!h||d&&d!==m)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):mt(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);uc(r,l,a,e)?(s=s||pw(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=cw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=fw(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=is)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(uc(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Sn(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),hw=MP;var OP=typeof Float32Array!==_i?Float32Array:void 0,vw=typeof Float64Array!==_i?Float64Array:void 0;function co(t){return fc({ctor:OP},t).arr}function fc(t,e){var r=t.arr,i=t.ctor;if(e>Rp&&(e=Rp),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function IP(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Te({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var m=G(n)?function(d){n(d,c)}:null;Wt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,m)}return c}function LP(t,e,r){var i=t.getArea(),n=ve(i.r0,1),a=ve(i.r,1),o=new Si({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,Wt(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function dw(t,e,r,i,n){if(t){if(t.type==="polar")return LP(t,e,r);if(t.type==="cartesian2d")return IP(t,e,r,i,n)}else return null;return null}function mw(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function gw(t,e){return t.type===e}function Ls(t,e){return{seriesType:t,plan:Rn(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=R(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ja(i,s[0])&&(s[0]=u),Ja(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var m=h.end-h.start,d=o&&co(m*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var T=f.get(c,_);S=n.dataToPoint(T,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(d[x++]=S[0],d[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",d),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var PP={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},NP=function(t){return Math.round(t.length/2)};function Dd(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;N(a)?v=PP[a]:G(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,NP))}}}}}var RP=(function(t){W(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(ew),yw=RP;var kP=null;function Wn(){return kP}var _w="expandAxisBreak";var Pi=Math.PI,BP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ni=J(),Tw=J(),Od=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function zP(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=Pd(t.axisName)&&Li(t.nameLocation);b(i,function(v){var m=vr(v);if(!(!m||m.label.ignore)){o.push(m);var d=a.transGroup;l&&(d.transform?dr(Ps,d.transform):Nr(Ps),m.transform&&ai(Ps,Ps,m.transform),te.copy(cc,m.localRect),cc.applyTransform(Ps),s?s.union(cc):te.copy(s=new te(0,0,0,0),cc))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,m){return Math.abs(v.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new te(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Ps=ht(),cc=new te(0,0,0,0),Id=function(t,e,r,i,n,a){if(Li(t.nameLocation)){var o=a.stOccupiedRect;o&&bw(aw({},o,a.transGroup.transform),i,n)}else Ld(a.labelInfoList,a.dirVec,i,n)};function bw(t,e,r){var i=new _e;sc(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&ow(e,i)}function Ld(t,e,r,i){for(var n=_e.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||bw(s,r,i)}}var Xn=(function(){function t(e,r,i,n){this.group=new be,this._axisModel=e,this._api=r,this._local={},this._shared=n||new Od(Id),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=F(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=F(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:F(e.nameDirection,1),tickDirection:F(e.tickDirection,1),labelDirection:F(e.labelDirection,1),labelOffset:F(e.labelOffset,0),silent:F(e.silent,!0),axisName:n,nameLocation:Qt(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Pd(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new be({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new _e(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(FP,function(n){e[n]&&VP[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=kp(r-e),a,o;return zo(n)?(o=i>0?"top":"bottom",a="center"):zo(n-Pi)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Pi?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),FP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],VP={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(rt(c,c,f),rt(p,p,f));var v=L({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&En(i.axis.scale))Wn().buildAxisBreakLine(i,n,a,m);else{var d=new ar(L({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},m));xn(d.shape,d.style.lineWidth),d.anid="line",n.add(d)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);N(g)&&(g=[g,g]),(N(y)||fe(y))&&(y=[y,y]);var _=Cf(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];b([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(T,w){if(g[w]!=="none"&&g[w]!=null){var C=Mi(g[w],-x/2,-S/2,x,S,v.stroke,!0),D=T.r+T.offset,E=h?p:c;C.attr({rotation:T.rotate,x:E[0]+D*Math.cos(t.rotation),y:E[1]-D*Math.sin(t.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=Sw(e,n,s);u&&xw(t,e,r,i,n,a,o,Mt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=Sw(e,n,s);u&&xw(t,e,r,i,n,a,o,Mt.determine);var f=WP(t,n,a,i);YP(t,e.labelLayoutList,f),XP(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Pd(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,m=i.axis.getExtent(),d=i.axis.inverse?-1:1,g=new _e(0,0),y=new _e(0,0);c==="start"?(g.x=m[0]-d*v,y.x=-d):c==="end"?(g.x=m[1]+d*v,y.x=d):(g.x=(m[0]+m[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=ht();y.transform(na(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Pi/180);var S,T;Li(c)?S=Xn.innerTextLayout(t.rotation,x??t.rotation,p):(S=HP(t.rotation,c,x||0,m),T=t.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var w=h.getFont(),C=i.get("nameTruncate",!0)||{},D=C.ellipsis,E=Jn(t.raw.nameTruncateMaxWidth,C.maxWidth,T),A=s.nameMarginLevel||0,I=new st({x:g.x,y:g.y,rotation:S.rotation,silent:Xn.isLabelSilent(i),style:Tn(h,{text:f,font:w,overflow:"truncate",width:E,ellipsis:D,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Au({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Xn.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ge(I).eventData=M}a.add(I),I.updateTransform(),e.nameEl=I;var O=l.nameLayout=vr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Li(c)?BP[A]:UP[A]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),t.shouldNameMoveOverlap&&O){var k=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,O,y,k)}}}};function xw(t,e,r,i,n,a,o,s){Cw(e)||qP(t,e,n,s,i,o);var l=e.labelLayoutList;KP(t,i,l,a),QP(i,t.rotation,l);var u=t.optionHideOverlap;GP(i,l,u),u&&sw(Me(l,function(f){return f&&!f.label.ignore})),zP(t,r,i,l)}function HP(t,e,r,i){var n=kp(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return zo(n-Pi/2)?(o=l?"bottom":"top",a="center"):zo(n-Pi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Pi*1.5&&n>Pi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function GP(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(gb(i))return;function a(u,f,c){var p=vr(e[f]),h=vr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var m=Ni(p.label).labelInfo.tick;if(oo(v)&&m.notNice||et(v)&&m.offInterval){po(p.label);return}}if(u===!1||p.suggestIgnore){po(p.label);return}if(h.suggestIgnore){po(h.label);return}var d=.1;if(!r){var g=[0,0,0,0];p=Ad({marginForce:g},p),h=Ad({marginForce:g},h)}sc(p,h,null,{touchThreshold:d})&&po(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function YP(t,e,r){t.showMinorTicks||b(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=Tw(a),s=Ni(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){po(a);return}}})}function po(t){t&&(t.ignore=!0)}function ww(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(rt(o,o,e),rt(s,s,e));var f=new ar({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});xn(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=Tw(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function WP(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=ww(u,r.transform,l,oe(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function XP(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=oe(l.getLineStyle(),oe(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=ww(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function Sw(t,e,r){if(Cw(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),Md(t,null,null,null))}return!0}function qP(t,e,r,i,n,a){var o=n.axis,s=Jn(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new be;r.add(l);var u=fo(i);if(!s||o.scale.isBlank()){Md(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Jn(t.raw.labelRotate,f.get("rotate"))||0)*Pi/180,h=Xn.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),m=[],d=n.get("triggerEvent"),g=1/0,y=-1/0;b(c,function(x,S){var T,w=x.tick,C=x.formattedLabel,D=x.rawLabel,E=f,A=Yn(o.scale,w);if(v&&v[A]){var I=v[A];U(I)&&I.textStyle&&(E=new De(I.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=E.getShallow("align",!0)||h.textAlign,k=F(E.getShallow("alignMinLabel",!0),O),B=F(E.getShallow("alignMaxLabel",!0),O),Y=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,H=F(E.getShallow("verticalAlignMinLabel",!0),Y),Z=F(E.getShallow("verticalAlignMaxLabel",!0),Y),X=10+(((T=w.time)===null||T===void 0?void 0:T.level)||0);g=Math.min(g,X),y=Math.max(y,X);var q=new st({x:0,y:0,rotation:0,silent:Xn.isLabelSilent(n),z2:X,style:Tn(E,{text:C,align:S===0?k:S===c.length-1?B:O,verticalAlign:S===0?H:S===c.length-1?Z:Y,fill:G(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,S):M})});q.anid="label_"+A;var $=Ni(q);if($.labelInfo=x,$.layoutRotation=h.rotation,Au({el:q,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:D,tickIndex:S}}),d){var se=Xn.makeAxisEventDataBase(n);se.targetType="axisLabel",se.value=D,se.tickIndex=S;var K=x.tick.break;if(K){var pe=K.parsedBreak;se.break={start:pe.vmin,end:pe.vmax}}o.type==="category"&&(se.dataIndex=A),ge(q).eventData=se,K&&jP(n,a,q,K)}m.push(q),l.add(q)});var _=R(m,function(x){return{label:x,priority:Ni(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Md(e,_,l,u)}function Cw(t){return!!t.labelLayoutList}function Md(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function KP(t,e,r,i){var n=e.get(["axisLabel","margin"]);b(r,function(a,o){var s=vr(a);if(s){var l=s.label,u=Ni(l);s.suggestIgnore=l.ignore,l.ignore=!1,fi($r,ZP);var f=e.axis;$r.x=f.dataToCoord(Yn(f.scale,u.labelInfo.tick)),$r.y=t.labelOffset+t.labelDirection*n,$r.rotation=u.layoutRotation,i.add($r),$r.updateTransform(),i.remove($r),$r.decomposeTransform(),fi(l,$r),l.markRedraw(),Is(s,!0),vr(s)}})}var $r=new Te,ZP=new Te;function Pd(t){return!!t}function jP(t,e,r,i){r.on("click",function(n){var a={type:_w,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function QP(t,e,r){var i=Pe();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Ni(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&b(n,function(o){Wn().adjustBreakLabelPair(t.axis.inverse,e,[vr(r[o[0]]),vr(r[o[1]])])})}}var pc=Xn;function Ns(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Jn(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-m:m,n.z2=1,n}function Ew(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Aw(t){var e={xAxisModel:null,yAxisModel:null};return b(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,it).models[0];e[i]=a}),e}function Dw(t,e,r,i,n,a){for(var o=Ns(t,r),s=!1,l=!1,u=0;u<e.length;u++)Gf(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new pc(r,i,o,n)}function Mw(t,e,r){var i=Ns(e,r);if(0)var n;t.updateCfg(i)}function Ow(){Mb("liPosMinGap",JP)}function JP(t,e,r){var i=V(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=hf(f);function p(_){ic(t,e.sers,function(x){var S=x.getRawData(),T=S.getDimensionIndex(S.mapDimension(s.dim));T>=0&&_(T,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}fc(qn,h);var v=0;p(function(_,x,S){for(var T=0,w=S.count();T<w;++T){var C=S.get(_,T);isFinite(C)&&(!f||vf(c,C))&&(u&&(C=l.transformIn(C,null)),qn.arr[v++]=C)}});var m=qn.typed?qn.arr.subarray(0,v):(qn.arr.length=v,qn.arr);qn.typed?m.sort():ya(m);for(var d=1/0,g=1;g<v;++g){var y=m[g]-m[g-1];y>0&&y<d&&(d=y)}r.liPosMinGap=e.liPosMinGap=He(d)?d:v>0?rc:Sb,r.serUids=i}var qn=fc({ctor:vw},50);function Iw(t){return function(e,r){var i=hr(e,{fromStat:{key:t}});if(He(i.w2))return[-i.w2/2,i.w2/2]}}function Rs(t,e){return t+tc+e}function Lw(t){return Ow(),{liPosMinGap:!et(t.scale)}}var Jr="bar";function Pw(t,e,r,i){Ib(t,{key:e,seriesType:r,coordSysType:i,getMetrics:Lw})}function Nw(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Nd={left:0,right:0,top:0,bottom:0},ks=["25%","25%"],Kt="cartesian2d",eN=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=Ci(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&sr(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&sr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Nd,outerBoundsContain:"all",outerBoundsClampWidth:ks[0],outerBoundsClampHeight:ks[1],backgroundColor:ue.color.transparent,borderWidth:1,borderColor:ue.color.neutral30},e})(Se),Rw=eN;var tN=Wl(),rN="__ec_stack_";function kw(t){return t.get("stack")||rN+t.seriesIndex}function iN(t,e){var r=nN(t,e);return r.columnMap=aN(r),r}function nN(t,e){var r=Rs(e,Kt),i=[],n=hr(t,{fromStat:{key:r},min:1});return xd(t,r,function(a){i.push({barWidth:Ke(a.get("barWidth"),n.w),barMaxWidth:Ke(a.get("barMaxWidth"),n.w),barMinWidth:Ke(a.get("barMinWidth")||(zw(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:kw(a)})}),{bandWidthResult:n,seriesInfo:i}}function aN(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};b(t.seriesInfo,function(m,d){d||(a=m.defaultBarGap||0);var g=m.stackId;Oe(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=m.barWidth;_&&!y.width&&(y.width=_,_=Le(r,_),r-=_);var x=m.barMaxWidth;x&&(y.maxWidth=x);var S=m.barMinWidth;S&&(y.minWidth=S);var T=m.barGap;T!=null&&(a=T);var w=m.barCategoryGap;w!=null&&(n=w)}),n==null&&(n=le(35-o.length*4,15)+"%");var l=Ke(n,e),u=Ke(a,1),f=(r-l)/(i+(i-1)*u);f=le(f,0),b(o,function(m){var d=s[m],g=d.maxWidth,y=d.minWidth;if(d.width){var _=d.width;g&&(_=Le(_,g)),y&&(_=le(_,y)),d.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Le(g,r)),y&&y>_&&(_=y),_!==f&&(d.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=le(f,0);var c=0,p;b(o,function(m){var d=s[m];d.width||(d.width=f),p=d,c+=d.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return b(o,function(m){var d=s[m];h[m]=h[m]||{bandWidth:e,offset:v,width:d.width},v+=d.width*(1+u)}),h}function Bw(t){return{seriesType:t,overallReset:function(e){var r=Rs(t,Kt);Db(e,r,function(i){var n=iN(i,t);xd(i,r,function(a){var o=n.columnMap[kw(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Uw(t){return{seriesType:t,plan:Rn(),reset:function(e){if(Ew(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ja(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(Nw(a))),v=zw(e),m=e.get("barMinHeight")||0,d=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,T=v&&co(S*3),w=v&&l&&co(S*3),C=v&&co(S),D=i.master.getRect(),E=p?D.width:D.height,A,I=x.getStore(),M=0;(A=_.next())!=null;){var O=I.get(c?d:o,A),k=I.get(s,A),B=h,Y=void 0;c&&(Y=+O-I.get(o,A));var H=void 0,Z=void 0,X=void 0,q=void 0;if(p){var $=i.dataToPoint([O,k]);c&&(B=i.dataToPoint([Y,k])[0]),H=B,Z=$[1]+y,X=$[0]-B,q=g,Ee(X)<m&&(X=(X<0?-1:1)*m)}else{var $=i.dataToPoint([k,O]);c&&(B=i.dataToPoint([k,Y])[1]),H=$[0]+y,Z=B,X=g,q=$[1]-B,Ee(q)<m&&(q=(q<=0?-1:1)*m)}v?(T[M]=H,T[M+1]=Z,T[M+2]=p?X:q,w&&(w[M]=p?D.x:H,w[M+1]=p?Z:D.y,w[M+2]=E),C[A]=A):x.setItemLayout(A,{x:H,y:Z,width:X,height:q}),M+=3}v&&x.setLayout({largePoints:T,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function zw(t){return t.pipelineContext&&t.pipelineContext.large}function oN(t){return Iw(Rs(t,Kt))}function Fw(t){tN(t,function(){function e(r){var i=Rs(r,Kt);Pw(t,i,r,Kt),Fb(i,oN(r))}e("bar"),e("pictorialBar")})}var Vw=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return eo(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)b(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),m=p.getTickModel().get("alignWithLabel"),d=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!m&&(d+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var T=v[S].coord,w=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(w===d){_=T;break}else if(w<d)y=T;else if(y!=null&&w>d){_=(T+y)/2;break}S===1&&(x=w-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ur);ur.registerClass(Vw);var Rd=Vw;var sN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return eo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,i){var n=ql(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Jr,e.dependencies=["grid","polar"],e.defaultOption=U0(Rd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:ue.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Rd),Hw=sN;var lN=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),uN=(function(t){W(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new lN},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var m=Math.cos(f),d=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(m*o+n,d*o+a),r.arc(m*u+n,d*u+a,l,-Math.PI+f,f,!p)):r.moveTo(m*s+n,d*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(ie),kd=uN;function Gw(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return $i(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,m=u.startAngle,d=u.endAngle,g=(m+d)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(m),T=c+p*x(m),w="left",C="top";switch(s){case"startArc":S=f+(h-l)*_(g),T=c+(h-l)*x(g),w="center",C="top";break;case"insideStartArc":S=f+(h+l)*_(g),T=c+(h+l)*x(g),w="center",C="bottom";break;case"startAngle":S=f+v*_(m)+hc(m,l+y,!1),T=c+v*x(m)+vc(m,l+y,!1),w="right",C="middle";break;case"insideStartAngle":S=f+v*_(m)+hc(m,-l+y,!1),T=c+v*x(m)+vc(m,-l+y,!1),w="left",C="middle";break;case"middle":S=f+v*_(g),T=c+v*x(g),w="center",C="middle";break;case"endArc":S=f+(p+l)*_(g),T=c+(p+l)*x(g),w="center",C="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),T=c+(p-l)*x(g),w="center",C="top";break;case"endAngle":S=f+v*_(d)+hc(d,l+y,!0),T=c+v*x(d)+vc(d,l+y,!0),w="left",C="middle";break;case"insideEndAngle":S=f+v*_(d)+hc(d,-l+y,!0),T=c+v*x(d)+vc(d,-l+y,!0),w="right",C="middle";break;default:return $i(i,n,a)}return i=i||{},i.x=S,i.y=T,i.align=w,i.verticalAlign=C,i}}function Yw(t,e,r,i){if(fe(i)){t.setTextConfig({rotation:i});return}else if(P(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function hc(t,e,r){return e*Math.sin(t)*(r?-1:1)}function vc(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ww(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;P(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:R(i,function(a){return er(a,n)})}}var Bd=Math.max,Ud=Math.min,fN=(function(t){W(e,t);function e(){var r=t.call(this)||this;return r.type=Jr,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Sn(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=cN(r,u);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,m=u.getArea();o.removeClipPath();var d=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,T=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function C(A){var I=dc[u.type](s,A);if(!I)return null;var M=yN(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[A]=M,M}s.diff(l).add(function(A){var I=s.getItemModel(A),M=dc[u.type](s,A,I);if(M&&(g&&C(A),!(!s.hasValue(A)||!jw[u.type](M)))){var O=!1;v&&(O=Xw[u.type](m,M));var k=qw[u.type](r,s,A,M,c,p,f.model,!1,d);h&&(k.forceLabelAnimation=!0),Qw(k,s,A,I,M,r,c,u.type==="polar"),T?k.attr({shape:M}):h?Kw(h,p,k,M,A,c,!1,!1):Wt(k,{shape:M},r,A),s.setItemGraphicEl(A,k),o.add(k),k.ignore=O}}).update(function(A,I){var M=s.getItemModel(A),O=dc[u.type](s,A,M);if(O){if(g){var k=void 0;S.length===0?k=C(I):(k=S[I],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),x[A]=k);var B=dc[u.type](s,A),Y=rC(c,B,u);mt(k,{shape:Y},p,A)}var H=l.getItemGraphicEl(I);if(!s.hasValue(A)||!jw[u.type](O)){o.remove(H);return}var Z=!1;v&&(Z=Xw[u.type](m,O),Z&&o.remove(H));var X=H&&(H.type==="sector"&&d||H.type==="sausage"&&!d);if(X&&(H&&Ia(H,r,I),H=null),H?bu(H):H=qw[u.type](r,s,A,O,c,p,f.model,!0,d),h&&(H.forceLabelAnimation=!0),w){var q=H.getTextContent();if(q){var $=Lu(q);$.prevValue!=null&&($.prevValue=$.value)}}else Qw(H,s,A,M,O,r,c,u.type==="polar");T?H.attr({shape:O}):h?Kw(h,p,H,O,A,c,!0,w):mt(H,{shape:O},r,A,null),s.setItemGraphicEl(A,H),H.ignore=Z,o.add(H)}}).remove(function(A){var I=l.getItemGraphicEl(A);I&&Ia(I,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new be);D.removeAll();for(var E=0;E<x.length;++E)D.add(x[E]);o.add(D),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),Jw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),Jw(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&dw(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:R(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Ia(a,r,ge(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Jr,e})(fr),Xw={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=Bd(e.x,t.x),s=Ud(e.x+e.width,n),l=Bd(e.y,t.y),u=Ud(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=Ud(e.r,t.r),a=Bd(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},qw={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new Te({shape:L({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?kd:Si,f=new u({shape:i,z2:1});f.name="item";var c=tC(n);if(f.calculateTextPosition=Gw(c,{isRoundCap:u===kd}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?mt:Wt)(f,{shape:v},a)}return f}};function cN(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function Kw(t,e,r,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?mt:Wt)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?mt:Wt)(r,{shape:u},f,n)}function Zw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var pN=["x","y","width","height"],hN=["cx","cy","r","startAngle","endAngle"],jw={cartesian2d:function(t){return!Zw(t,pN)},polar:function(t){return!Zw(t,hN)}},dc={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?dN(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function vN(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function tC(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function Qw(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Ww(i.getModel("itemStyle"),f,!0);L(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?_N(n,a.coordinateSystem):xN(n,a.coordinateSystem),v=Na(i);Iu(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:lc(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=t.getTextContent();if(s&&m){var d=i.get(["label","position"]);t.textConfig.inside=d==="middle"?!0:null,Yw(t,d==="outside"?h:d,tC(o),i.get(["label","rotate"]))}L0(m,v,a.getRawValue(r),function(y){return lw(e,y)});var g=i.getModel(["emphasis"]);cu(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),F_(t,i),vN(n)&&(t.style.fill="none",t.style.stroke="none",b(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function dN(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var mN=(function(){function t(){}return t})(),$w=(function(t){W(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new mN},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(ie);function Jw(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?Xl(t):0;if(u){var c=new $w({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new $w({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,ge(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",eC),p.on("mousemove",eC)),r&&r.push(p)}var eC=hs(function(t){var e=this,r=gN(e,t.offsetX,t.offsetY);ge(e).dataIndex=r>=0?r:null},30,!1);function gN(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function rC(t,e,r){if(gw(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function yN(t,e,r){var i=t.type==="polar"?Si:Te;return new i({shape:rC(e,r,t),silent:!0,z2:0})}function _N(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function xN(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var iC=fN;function zd(t){t.registerChartView(iC),t.registerSeriesModel(Hw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Bw(Jr)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Uw(Jr)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dd(Jr)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),Fw(t)}var SN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,i){return eo(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:ue.color.primary}},universalTransition:{divideShape:"clone"}},e})(ur),nC=SN;var aC=4,TN=(function(){function t(){}return t})(),bN=(function(t){W(e,t);function e(r){var i=t.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new TN},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<aC,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var p=n[c++],h=n[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(r>=c&&i>=p&&r<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<n.length;){var h=n[p++],v=n[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}r=this._rect=new te(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(ie),wN=(function(){function t(){this.group=new be}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var i=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,i,n){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new bN({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=Mi(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<aC;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ge(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),oC=wN;var CN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,Fd(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),Xl(i),Fd(i)),this._finished=r.end===i.getData().count()},e.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),this._finished){var o=Ls("").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(Fd(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new oC:new hw,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(fr);function Fd(t){return{clipShape:mw(t)}}var sC=CN;var mc=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",it).models[0]},e.type="cartesian2dAxis",e})(Se);ct(mc,xb);var lC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:ue.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:ue.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ue.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ue.color.backgroundTint,ue.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ue.color.neutral00,borderColor:ue.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},EN=he({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},lC),Vd=he({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ue.color.axisMinorSplitLine,width:1}}},lC),AN=he({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vd),DN=oe({logBase:10},Vd),uC={category:EN,value:Vd,time:AN,log:DN};function gc(t,e,r,i){b(jf,function(n,a){var o=he(he({},uC[a],!0),i,!0),s=(function(l){W(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=wi(this),h=p?Ci(f):{},v=c.getTheme();he(f,v.get(a+"Axis")),he(f,this.getDefaultOption()),f.type=fC(f),p&&sr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Cs.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Wn();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",fC)}function fC(t){return t.type||(t.data?"category":"value")}var MN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Me(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),cC=MN;var Bs=["x","y"];function pC(t){return(t.type==="interval"||t.type==="time")&&!En(t)}var ON=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Kt,r.dimensions=Bs,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!pC(r)||!pC(i))){var n=Vn(r,null),a=Vn(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=dr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new te(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return rt(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return rt(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new te(a,o,s,l)},e})(cC),hC=ON;function vC(t,e){var r=t.scale,i=t.model,n=nc(r,i,i.ecModel,t,null),a=Or(r),o=Or(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var m=Ee(u[0].value-u[1].value),d=Ee(u[1].value-u[2].value);p=h=0,m===d?v=2:(v=1,m<d?p=m/d:h=d/m)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),T=s.getExtent(),w=Wf(T,x),C,D,E,A,I,M;function O($){for(var se=50,K=0;K<se&&!$();K++)E=a?E*le(l,2):jT(E),A=cr(E)}function k(){C=ve(M-E*p,A)}function B(){D=ve(I+E*h,A)}function Y(){M=p?ve(C+E*p,A):C}function H(){I=h?ve(D-E*h,A):D}if(x[0]&&x[1]){C=w[0],D=w[1],E=(D-C)/(v+p+h);var Z=t.getExtent(),X=Ee(Z[1]-Z[0]);A=hy([D,C],X,.5/v),Y(),H(),He(A)&&(E=ve(E,A))}else{var q=w[1]-w[0];E=a?le(Vl(q),1):tn(q/v,Bp),A=cr(E),x[0]?(C=w[0],O(function(){if(Y(),I=ve(M+E*v,A),B(),D>=w[1])return!0})):x[1]?(D=w[1],O(function(){if(H(),M=ve(I-E*v,A),k(),C<=w[0])return!0})):O(function(){M=ve(pi(w[0]/E)*E,A),I=ve(Ur(w[1]/E)*E,A);var $=It((I-M)/E);if($<=v){var se=v-$,K=void 0,pe=n.incl0||a;if(pe&&w[0]===0)K=[0,se];else if(pe&&w[1]===0)K=[se,0];else{var ye=Ur(se/2);K=se%2===0?[ye,ye]:C+D<w[0]+w[1]?[ye,ye+1]:[ye+1,ye]}if(M=ve(M-E*K[0],A),I=ve(I+E*K[1],A),k(),B(),C<=w[0]&&D>=w[1])return!0}})}Jf(r,x,T,[C,D],S,{interval:E,intervalCount:v,intervalPrecision:A,niceExtent:[M,I]})}var dC=[[3,1],[0,2]],IN=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bs,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;b(this._axesList,function(o){Ub(o,Nb);var s=o.scale;et(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=Q(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):wd(f)}b(l,function(c){PN(c,c.__alignTo)?wd(c):vC(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};b(i.x,function(o){mC(i,"y",o,a)}),b(i.y,function(o){mC(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=nx(e,r),a=this._rect=as(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Hd(o,a),!i){var u=RN(a,s,o,l,r),f=void 0;if(l)xC?(xC(this._axesList,a),Hd(o,a)):f=SC(a.clone(),"axisLabel",null,a,o,u,n);else{var c=kN(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=SC(p,h,v,a,o,u,n))}TC(a,o,Mt.determine,null,f,n),b(this._coordsList,function(m){m.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}U(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",it).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",it).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ae(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(p,h){var v="x"+c+"y"+h,m=new hC(v);m.master=n,m.model=e,n._coordsMap[v]=m,n._coordsList.push(m),m.addAxis(f),m.addAxis(p)})}),yC(s.x),yC(s.y);function u(f){return function(c,p){if(LN(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=pb(c),m=new yw(f,hb(c,v,!0),[0,0],v,h);m.onBand=ec(m.scale,c),m.inverse=c.get("inverse"),c.axis=m,m.model=c,m.grid=a,m.index=p,a._axesList.push(m),s[f][p]=m,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return b(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ae(r,a)<0&&r.push(a),ae(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),b(o._axesList,function(s){Bb(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;tx({targetModel:n,coordSysType:Kt,coordSysProvider:s});function s(){var l=Aw(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Td(a,n,Kt),Td(o,n,Kt))},this),i},t.dimensions=Bs,t.dimIdxMap=xs(Bs),t})();function LN(t,e){return t.getCoordSysModel()===e}function mC(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gC(s,n[l])&&(a=n[l]);else for(var u in n)if(Oe(n,u)&&gC(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function gC(t,e){if(!e)return!1;var r=e.scale,i=vb(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Qf;return n&&t==="auto"&&mb(e)&&(n=!1),n}function yC(t){for(var e=Q(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];Gf(a.scale)&&gd(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&b(i,function(o){o.__alignTo=r})}function PN(t,e){return En(t.scale)||En(e.scale)||e.scale.getTicks().length<2}function NN(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function Hd(t,e){b(t.x,function(r){return _C(r,e.x,e.width)}),b(t.y,function(r){return _C(r,e.y,e.height)})}function _C(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),NN(t,e)}var xC;function SC(t,e,r,i,n,a,o){TC(i,n,Mt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Um(s,function(p){return p>0})==null;return La(i,s,!0,!0,r),Hd(n,i),l;function u(p){b(n[Xr[p]],function(h){if(Gn(h.model)){var v=a.ensureRecord(h.model),m=v.labelInfoList;if(m)for(var d=0;d<m.length;d++){var g=m[d],y=h.scale.normalize(Yn(h.scale,Ni(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Li(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var m=t[Xr[h]]-p[Xr[h]],d=p[_n[h]]+p[Xr[h]]-(t[_n[h]]+t[Xr[h]]);m=c(m,1-v),d=c(d,v);var g=dC[h][0],y=dC[h][1];s[g]=le(s[g],m),s[y]=le(s[y],d)}function c(p,h){return p>0&&!ri(h)&&h>1e-4&&(p/=h),p}}function RN(t,e,r,i,n){var a=new Od(BN);return b(r,function(o){return b(o,function(s){if(Gn(s.model)){var l=!i;s.axisBuilder=Dw(t,e,s.model,n,a,l)}})}),a}function TC(t,e,r,i,n,a){var o=r===Mt.determine;b(e,function(u){return b(u,function(f){Gn(f.model)&&(Mw(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Xr[1-u]]=t[_n[u]]<=a.refContainer[_n[u]]*.5?0:1-u===1?2:1}b(e,function(u,f){return b(u,function(c){Gn(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function kN(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=as(t.get("outerBounds",!0)||Nd,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ae(["all","axisLabel"],a)<0?o="all":o=a;var s=[Fl(F(t.get("outerBoundsClampWidth",!0),ks[0]),e.width),Fl(F(t.get("outerBoundsClampHeight",!0),ks[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var BN=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Id(t,e,r,i,n,a),Li(t.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Ld(s.labelInfoList,s.dirVec,i,n)})},bC=IN;function wC(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return UN(r,t,e),r.seriesInvolved&&FN(r,t),r}function UN(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ho(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(b(s.getAxes(),Ve(m,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&b(v.baseAxes,Ve(m,h?"cross":!0,p)),h&&b(v.otherAxes,Ve(m,"cross",!1))}function m(d,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!d&&!Yd(_))){g==null&&(g=_.get("triggerTooltip")),_=d?zN(y,c,n,e,d,g):_;var S=_.get("snap"),T=_.get("triggerEmphasis"),w=ho(y.model),C=g||S||y.type==="category",D=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:T,involveSeries:C,snap:S,useHandle:Yd(_),seriesModels:[],linkGroup:null};u[w]=D,t.seriesInvolved=t.seriesInvolved||C;var E=VN(a,y);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[w]=D,A.mapper=a[E].mapper,D.linkGroup=A}}}})}function zN(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(p){l[p]=j(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&oe(u,c.textStyle)}}return t.model.getModel("axisPointer",new De(l,r,i))}function FN(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||b(t.coordSysAxesInfo[ho(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function VN(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(Gd(a[i+"AxisId"],r.id)||Gd(a[i+"AxisIndex"],r.componentIndex)||Gd(a[i+"AxisName"],r.name))return n}}function Gd(t,e){return t==="all"||P(t)&&ae(t,e)>=0||t===e}function CC(t){var e=yc(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Yd(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function yc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ho(t)]}function EC(t){var e=yc(t);return e&&e.axisPointerModel}function Yd(t){return!!t.get(["handle","show"])}function ho(t){return t.type+"||"+t.id}var AC={},HN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&CC(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=EC(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){AC[r]=i},e.getAxisPointerClass=function(r){return r&&AC[r]},e.type="axis",e})(Ut),_c=HN;var Xd=J();function DC(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Xd(t).splitAreaColors,p=V(),h=0;if(c)for(var v=0;v<u.length;v++){var m=c.get(u[v].tickValue);if(m!=null){h=(m+(f-1)*v)%f;break}}var d=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=P(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,T=void 0;n.isHorizontal()?(_=d,x=l.y,S=y-_,T=l.height,d=_+S):(_=l.x,x=d,S=l.width,T=y-x,d=x+T);var w=u[v-1].tickValue;w!=null&&p.set(w,h),e.add(new Te({anid:w!=null?"area_"+w:null,shape:{x:_,y:x,width:S,height:T},style:oe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}Xd(t).splitAreaColors=p}}}function MC(t){Xd(t).splitAreaColors=null}var GN=["splitArea","splitLine","minorSplitLine","breakArea"],OC=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new be,this.group.add(this._axisGroup),!!Gn(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(GN,function(l){r.get([l,"show"])&&YN[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Yh(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){MC(this)},e.type="cartesianAxis",e})(_c),YN={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=P(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],d=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(m[0]=_,m[1]=c.y,d[0]=_,d[1]=c.y+c.height):(m[0]=c.x,m[1]=_,d[0]=c.x+c.width,d[1]=_);var S=h++%l.length,T=new ar({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:d[0],y2:d[1]},style:oe({stroke:l[S]},g),silent:!0});xn(T.shape,g.lineWidth),e.add(T)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var m=0;m<f[v].length;m++){var d=a.toGlobalCoord(f[v][m].coord);u?(c[0]=d,c[1]=l.y,p[0]=d,p[1]=l.y+l.height):(c[0]=l.x,c[1]=d,p[0]=l.x+l.width,p[1]=d);var g=new ar({anid:"minor_line_"+f[v][m].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});xn(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){DC(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=Wn(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},qd=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(OC);var IC=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=qd.type,r}return e.type="yAxis",e})(OC);var WN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new Te({shape:r.coordinateSystem.getRect(),style:oe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ut),LC={offset:0};function xc(t){t.registerComponentView(WN),t.registerComponentModel(Rw),t.registerCoordinateSystem("cartesian2d",bC),gc(t,"x",mc,LC),gc(t,"y",mc,LC),t.registerComponentView(qd),t.registerComponentView(IC),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Kd(t){pr(xc),t.registerSeriesModel(nC),t.registerChartView(sC),t.registerLayout(Ls("scatter"))}var Kn=J(),PC=j,Zd=me,XN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new be,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Ve(NC,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}kC(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&hr(n).w>s)return!0;if(o){var l=yc(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=Kn(e).pointerEl=new Et[a.type](PC(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Kn(e).labelEl=new st(PC(r.label));e.add(a),RC(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Kn(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=Kn(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),RC(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Wh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ul(u.event)},onmousedown:Zd(this._onHandleDragMove,this,0,0),drift:Zd(this._onHandleDragMove,this),ondragend:Zd(this._onHandleDragEnd,this)}),i.add(n)),kC(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");P(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Sf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){NC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,jd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(jd(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(jd(n)),Kn(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),vs(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function NC(t,e,r,i){BC(Kn(r).lastProp,i)||(Kn(r).lastProp=i,e?mt(r,i,t):(r.stopAnimation(),r.attr(i)))}function BC(t,e){if(U(t)&&U(e)){var r=!0;return b(e,function(i,n){r=r&&BC(t[n],i)}),!!r}else return t===e}function RC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function jd(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function kC(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var UC=XN;function zC(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function qN(t,e,r,i,n){var a=r.get("value"),o=Qd(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ua(s.get("padding")||0),u=s.getFont(),f=Rl(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var m=n.verticalAlign;m==="bottom"&&(c[1]-=h),m==="middle"&&(c[1]-=h/2),KN(c,p,h,i);var d=s.get("backgroundColor");(!d||d==="auto")&&(d=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Tn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:d}),z2:10}}function KN(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Qd(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:lo(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),N(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function $d(t,e,r){var i=ht();return na(i,i,r.rotation),So(i,i,r.position),Eu([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function FC(t,e,r,i,n,a){var o=pc.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),qN(e,i,n,a,{position:$d(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function VC(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function HC(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function GC(t,e,r){return hr(t,{fromStat:{sers:R(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function YC(t,e,r){return[le(Le(e[0],e[1]),t-r/2),Le(t+r/2,le(e[0],e[1]))]}var ZN=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=XC(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=zC(a),v=jN[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var m=Ns(l.getRect(),n);FC(i,r,m,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=Ns(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=$d(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=XC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Le(l[1],c[f]),c[f]=le(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(UC);function XC(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var jN={line:function(t,e,r,i){var n=VC([e,i[0]],[e,i[1]],qC(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=GC(t,n,a),s=i[1]-i[0],l=YC(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:HC([u,i[0]],[f-u,s],qC(t))}}};function qC(t){return t.dim==="x"?0:1}var KC=ZN;var QN=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:ue.color.border,width:1,type:"dashed"},shadowStyle:{color:ue.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ue.color.neutral00,padding:[5,7,5,7],backgroundColor:ue.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ue.color.accent40,throttle:40}},e})(Se),ZC=QN;var ei=J(),$N=b;function Sc(t,e,r){if(!re.node){var i=e.getZr();ei(i).records||(ei(i).records={}),JN(i,e);var n=ei(i).records[t]||(ei(i).records[t]={});n.handler=r}}function JN(t,e){if(ei(t).initialized)return;ei(t).initialized=!0,r("click",Ve(Jd,"click")),r("mousemove",Ve(Jd,"mousemove")),r("mousewheel",Ve(Jd,"mousewheel")),r("globalout",tR);function r(i,n){t.on(i,function(a){var o=rR(e);$N(ei(t).records,function(s){s&&n(s,a,o.dispatchAction)}),eR(o.pendings,e)})}}function eR(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function tR(t,e,r){t.handler("leave",null,r)}function Jd(t,e,r,i){e.handler(t,r,i)}function rR(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Us(t,e){if(!re.node){var r=e.getZr(),i=(ei(r).records||{})[t];i&&(ei(r).records[t]=null)}}var iR=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Sc("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Us("axisPointer",i)},e.prototype.dispose=function(r,i){Us("axisPointer",i)},e.type="axisPointer",e})(Ut),QC=iR;function zs(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Fr(a,t);if(o==null||o<0||P(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),m=[];m[h]=a.get(v,o),m[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(R(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var d=s.getBoundingRect().clone();d.applyTransform(s.transform),r=[d.x+d.width/2,d.y+d.height/2]}return{point:r,el:s}}var $C=J();function em(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||me(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Tc(n)&&(n=zs({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Tc(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Tc(n),p={},h={},v={list:[],map:{}},m={showPointer:Ve(aR,h),showTooltip:Ve(oR,v)};b(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var T=x.axis,w=fR(u,x);if(!c&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=T.pointToData(n)),C!=null&&JC(x,C,m,!1,p)}})});var d={};return b(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&b(_.axesInfo,function(x,S){var T=h[S];if(x!==g&&T){var w=T.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,e1(x),e1(g)))),d[g.key]=w}})}),b(d,function(g,y){JC(f[y],g,m,!0,p)}),sR(h,f,p),lR(v,n,t,o),uR(f,o,r),p}}function JC(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=nR(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&L(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function nR(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(He(c)){var v=t-c,m=Math.abs(v);m<=o&&((m<o||v>=0&&s<0)&&(o=m,s=v,n=c,a.length=0),b(p,function(d){a.push({seriesIndex:l.seriesIndex,dataIndexInside:d,dataIndex:l.getData().getRawIndex(d)})}))}}),{payloadBatch:a,snapToValue:n}}function aR(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function oR(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=ho(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function sR(t,e,r){var i=r.axesInfo=[];b(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function lR(t,e,r,i){if(Tc(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function uR(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=$C(i)[n]||{},o=$C(i)[n]={};b(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&b(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,c){!o[c]&&l.push(u(f))}),b(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fR(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function e1(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Tc(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function bc(t){_c.registerAxisPointerClass("CartesianAxisPointer",KC),t.registerComponentModel(ZC),t.registerComponentView(QC),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!P(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=wC(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},em)}function tm(t){pr(xc),pr(bc)}var cR=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ue.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ue.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ue.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ue.color.tertiary,fontSize:14}},e})(Se),t1=cR;function wc(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function r1(t){if(re.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var rm=r1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),i1=r1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function im(t,e){if(!t)return e;e=Ku(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function n1(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var pR=im(i1,"transition"),nm=im(rm,"transform"),hR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(re.transform3dSupported?"will-change:transform;":"");function vR(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function dR(t,e,r){if(!N(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=bi(e);var a=vR(r),o=Math.max(Math.round(n)*1.5,6),s="",l=nm+":",u;ae(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+m.join("")+'"></div>'}function mR(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(re.transformSupported?""+nm+n:",left"+n+",top"+n)),pR+":"+a}function a1(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!re.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=re.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+nm+":"+o+";":[["top",0],["left",0],[rm,o]]}function gR(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=F(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),b(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function yR(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=mf(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(mR(a,r,i)),o&&n.push("background-color:"+o),b(["width","color","radius"],function(v){var m="border-"+v,d=Ku(m),g=t.get(d);g!=null&&n.push(m+":"+g+(v==="color"?"":"px"))}),n.push(gR(c)),p!=null&&n.push("padding:"+Ua(p).join("px ")+"px"),n.join(";")+";"}function o1(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&qm(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var _R=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,re.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(N(a)?document.querySelector(a):Qn(a)?a:G(a)&&a(e.getDom()));o1(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Tt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=n1(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=hR+yR(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+a1(a[0],a[1],!0)+("border-color:"+bi(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(N(a)&&i.get("trigger")==="item"&&!wc(i)&&(s=dR(i,n,a)),N(e))o.innerHTML=e+s;else if(e){o.innerHTML="",P(e)||(e=[e]);for(var l=0;l<e.length;l++)Qn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(o1(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=a1(i[0],i[1]);b(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",re.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Km(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),s1=_R;var xR=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),u1(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;U(e)&&Qe(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new st({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:mf(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=l1(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;u1(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=Ri(a.borderWidth||0),s=l1(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(me(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Ri(t){return Math.max(0,t)}function l1(t){var e=Ri(t.shadowBlur||0),r=Ri(t.shadowOffsetX||0),i=Ri(t.shadowOffsetY||0);return{left:Ri(e-r),right:Ri(e+r),top:Ri(e-i),bottom:Ri(e+i)}}function u1(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var f1=xR;var SR=new Te({shape:{x:-1,y:-1,width:2,height:2}}),TR=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(re.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=Cy(n.get("renderMode"));this._tooltipContent=a==="richText"?new f1(i):new s1(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(re.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Sf(this,"_updatePosition",50,"fixRate"):vs(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Sc("itemTooltip",this._api,me(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||re.node||!n.getDom())){var o=c1(a,n);this._ticket="";var s=a.dataByCoordSys,l=ER(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=SR;f.x=a.x,f.y=a.y,f.update(),ge(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=zs(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(c1(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Fs([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ge(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;kn(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ge(f).dataIndex!=null?l=f:ge(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=me(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Fs([i.tooltipOption],a),l=this._renderMode,u=[],f=Nn("section",{blocks:[],noHeader:!0}),c=[],p=new gf;b(r,function(y){b(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,T=x.axis,w=T.scale.parse(S);if(!(!x||S==null)){var C=Qd(S,T,n,_.seriesDataIndices,_.valueLabelOpt),D=Nn("section",{header:C,noHeader:!tt(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),b(_.seriesDataIndices,function(E){var A=n.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,M=A.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=lo(x.axis,{value:w}),M.axisValueLabel=C,M.marker=p.makeTooltipMarker("item",bi(M.color),l);var O=Cv(A.formatTooltip(I,!0,null)),k=O.frag;if(k){var B=Fs([A],a).get("valueFormatter");D.blocks.push(B?L({valueFormatter:B},k):k)}O.text&&c.push(O.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),m=Iv(f,p,l,v,n.get("useUTC"),s.get("textStyle"));m&&c.unshift(m);var d=l==="richText"?`
15
+
16
+ `:"<br/>",g=c.join(d);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=ge(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,m=Fs([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),d=m.get("trigger");if(!(d!=null&&d!=="item")){var g=u.getDataParams(f,c),y=new gf;g.marker=y.makeTooltipMarker("item",bi(g.color),h);var _=Cv(u.formatTooltip(f,!1,c)),x=m.get("order"),S=m.get("valueFormatter"),T=_.frag,w=T?Iv(S?L({valueFormatter:S},T):T,y,h,x,a.get("useUTC"),m.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,w,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=ge(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(N(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=j(l),l.content=Xe(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Fs(c,this._tooltipModel,h?{position:h}:null),m=v.get("content"),d=Math.random()+"",g=new gf;this._showOrMove(v,function(){var y=j(v.get("formatterParams")||{});this._showTooltipContent(v,m,y,d,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=v.color;if(p)if(N(p)){var d=r.ecModel.get("useUTC"),g=P(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=An(g.axisValue,h,d)),h=ju(h,n,!0)}else if(G(p)){var _=me(function(x,S){x===this._ticket&&(c.setContent(S,f,r,m,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,m,l),c.show(r,m),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||P(i))return{color:a||o};if(!P(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),G(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),P(i))n=Ke(i[0],u),a=Ke(i[1],f);else if(U(i)){var m=i;m.width=c[0],m.height=c[1];var d=as(m,{width:u,height:f});n=d.x,a=d.y,p=null,h=null}else if(N(i)&&l){var g=CR(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=bR(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=p1(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=p1(h)?c[1]/2:h==="bottom"?c[1]:0),wc(r)){var g=wR(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&b(u,function(p,h){var v=c[h]||{},m=p.seriesDataIndices||[],d=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&m.length===d.length,o&&b(m,function(g,y){var _=d[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&b(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){re.node||!i.getDom()||(vs(this,"_updatePosition"),this._tooltipContent.dispose(),Us("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Ut);function Fs(t,e,r){var i=e.ecModel,n;r?(n=new De(r,i,i),n=new De(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof De&&(o=o.get("tooltip",!0)),N(o)&&(o={formatter:o}),o&&(n=new De(o,n,i)))}return n}function c1(t,e){return t.dispatchAction||me(e.dispatchAction,e)}function bR(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function wR(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function CR(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function p1(t){return t==="center"||t==="middle"}function ER(t,e,r){var i=Ho(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=hi(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ge(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var h1=TR;function am(t){pr(bc),t.registerComponentModel(t1),t.registerComponentView(h1),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ce),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ce)}var AR={label:{enabled:!0},decal:{show:!1}},v1=J(),d1=J(),m1=Sa(DR);function DR(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=d1(t).scope||(d1(t).scope={}),n=j(AR);he(n.label,t.getLocaleModel().get("aria"),!1),he(r.option,n,!1),a(),o();function a(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=V();t.eachSeries(function(h){h.isColorBySeries()||(v1(h).scope=p.get(h.type)||p.set(h.type,{}))}),t.eachSeries(function(h){if(G(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var _=dv(h.ecModel,h.name,i,t.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",S(x,_))}else{var m=h.getRawData(),d={},g=v1(h).scope;v.each(function(T){var w=v.getRawIndex(T);d[w]=T});var y=m.count();m.each(function(T){var w=d[T],C=m.getName(T)||T+"",D=dv(h.ecModel,C,g,y),E=v.getItemVisual(w,"decal");v.setItemVisual(w,"decal",S(E,D))})}function S(T,w){var C=T?L(L({},w),T):w;return C.dirty=!0,C}})}}function o(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=oe(p.option,c),!!p.get("enabled")){if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var h=t.getSeriesCount(),v=p.get(["data","maxCount"])||10,m=p.get(["series","maxCount"])||10,d=Math.min(h,m),g;if(!(h<1)){var y=l();if(y){var _=p.get(["general","withTitle"]);g=s(_,{title:y})}else g=p.get(["general","withoutTitle"]);var x=[],S=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);g+=s(S,{seriesCount:h}),t.eachSeries(function(D,E){if(E<d){var A=void 0,I=D.get("name"),M=I?"withName":"withoutName";A=h>1?p.get(["series","multiple",M]):p.get(["series","single",M]),A=s(A,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:u(D.subType)});var O=D.getData();if(O.count()>v){var k=p.get(["data","partialData"]);A+=s(k,{displayCnt:v})}else A+=p.get(["data","allData"]);for(var B=p.get(["data","separator","middle"]),Y=p.get(["data","separator","end"]),H=p.get(["data","excludeDimensionId"]),Z=[],X=0;X<O.count();X++)if(X<v){var q=O.getName(X),$=H?Me(O.getValues(X),function(K,pe){return ae(H,pe)===-1}):O.getValues(X),se=p.get(["data",q?"withName":"withoutName"]);Z.push(s(se,{name:q,value:$.join(B)}))}A+=Z.join(B)+Y,x.push(A)}});var T=p.getModel(["series","multiple","separator"]),w=T.get("middle"),C=T.get("end");g+=x.join(w)+C,f.setAttribute("aria-label",g)}}}}function s(f,c){if(!N(f))return f;var p=f;return b(c,function(h,v){p=p.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),p}function l(){var f=t.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function om(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},b(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function sm(t){t.registerPreprocessor(om),t.registerVisual(t.PRIORITY.VISUAL.ARIA,m1)}var lm=Math.sin,um=Math.cos,g1=Math.PI,Zn=Math.PI*2,MR=180/g1,OR=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=yr(c-Zn)||(f?u>=Zn:-u>=Zn),h=u>0?u%Zn:u%Zn+Zn,v=!1;p?v=!0:yr(c)?v=!1:v=h>=g1==!!f;var m=e+i*um(o),d=r+n*lm(o);this._start&&this._add("M",m,d);var g=Math.round(a*MR);if(p){var y=1/this._p,_=(f?1:-1)*(Zn-y);this._add("A",i,n,g,1,+f,e+i*um(o+_),r+n*lm(o+_)),y>.01&&this._add("A",i,n,g,0,+f,m,d)}else{var x=e+i*um(s),S=r+n*lm(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Cc=OR;var Vs="none",IR=Math.round;function LR(t){var e=t.fill;return e!=null&&e!==Vs}function PR(t){var e=t.stroke;return e!=null&&e!==Vs}var fm=["lineCap","miterLimit","lineJoin"],NR=R(fm,function(t){return"stroke-"+t.toLowerCase()});function cm(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof ot){t("opacity",n);return}if(LR(e)){var a=ui(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t("fill-opacity",o)}else t("fill",Vs);if(PR(e)){var s=ui(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=ys(r),h=p[0],v=p[1];h&&(v=IR(v||0),t("stroke-dasharray",h.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Vs);for(var m=0;m<fm.length;m++){var d=fm[m];if(i||e[d]!==Ca[d]){var g=e[d]||Ca[d];g&&t(NR[m],g)}}}else i&&t("stroke",Vs)}var y1="http://www.w3.org/2000/svg",pm="http://www.w3.org/1999/xlink",_1="http://www.w3.org/2000/xmlns/",x1="http://www.w3.org/XML/1998/namespace",hm="ecmeta_";function Ec(t){return document.createElementNS(y1,t)}function ke(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function RR(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function kR(t){return"</"+t+">"}function Hs(t,e){e=e||{};var r=e.newline?`
17
+ `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return RR(o,s)+(o!=="style"?Xe(l):l||"")+(a?""+r+R(a,function(u){return i(u)}).join(r)+r:"")+kR(o)}return i(t)}function S1(t,e,r){r=r||{};var i=r.newline?`
18
+ `:"",n=" {"+i,a=i+"}",o=R(Q(t),function(l){return l+n+R(Q(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=R(Q(e),function(l){return"@keyframes "+l+n+R(Q(e[l]),function(u){return u+n+R(Q(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Gs(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vm(t,e,r,i){return ke("svg","root",{width:t,height:e,xmlns:y1,"xmlns:xlink":pm,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var BR=0;function Ac(){return BR++}var T1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},jn="transform-origin";function UR(t,e,r){var i=L({},t.shape);L(i,e),t.buildPath(r,i);var n=new Cc;return n.reset(El(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function zR(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[jn]=r+"px "+i+"px")}var FR={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function w1(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function VR(t,e,r){var i=t.shape.paths,n={},a,o;if(b(i,function(l){var u=Gs(r.zrId);u.animation=!0,Ys(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=Q(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var m in v){var d=v[m];n[m]=n[m]||{d:""},n[m].d+=d.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=w1(n,r);return a.replace(o,s)}}function b1(t){return N(t)?T1[t]?"cubic-bezier("+T1[t]+")":ua(t)?t:"":""}function Ys(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof gu){var s=VR(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1e3+"s"],p=b1(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function m(y){var _=y[1],x=_.length,S={},T={},w={},C="animation-timing-function";function D(xt,je,ze){for(var ne=xt.getTracks(),de=xt.getMaxTime(),Zt=0;Zt<ne.length;Zt++){var We=ne[Zt];if(We.needsAnimate()){var mo=We.keyframes,Bi=We.propName;if(ze&&(Bi=ze(Bi)),Bi)for(var Ic=0;Ic<mo.length;Ic++){var Ks=mo[Ic],Zs=Math.round(Ks.time/de*100)+"%",Mm=b1(Ks.easing),Om=Ks.rawValue;(N(Om)||fe(Om))&&(je[Zs]=je[Zs]||{},je[Zs][Bi]=Ks.rawValue,Mm&&(je[Zs][C]=Mm))}}}}for(var E=0;E<x;E++){var A=_[E],I=A.targetName;I?I==="shape"&&D(A,T):!i&&D(A,S)}for(var M in S){var O={};fi(O,t),L(O,S[M]);var k=Al(O),B=S[M][C];w[M]=k?{transform:k}:{},zR(w[M],O),B&&(w[M][C]=B)}var Y,H=!0;for(var M in T){w[M]=w[M]||{};var Z=!Y,B=T[M][C];Z&&(Y=new Pt);var X=Y.len();Y.reset(),w[M].d=UR(t,T[M],Y);var q=Y.len();if(!Z&&X!==q){H=!1;break}B&&(w[M][C]=B)}if(!H)for(var M in w)delete w[M].d;if(!i)for(var E=0;E<x;E++){var A=_[E],I=A.targetName;I==="style"&&D(A,w,function(ne){return FR[ne]})}for(var $=Q(w),se=!0,K,E=1;E<$.length;E++){var pe=$[E-1],ye=$[E];if(w[pe][jn]!==w[ye][jn]){se=!1;break}K=w[pe][jn]}if(se&&K){for(var M in w)w[M][jn]&&delete w[M][jn];e[jn]=K}if(Me($,function(xt){return Q(w[xt]).length>0}).length){var ft=w1(w,r);return ft+" "+y[0]+" both"}}for(var d in l){var s=m(l[d]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Ac();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function E1(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};C1(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Mo(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),C1(i,e,r,!0)}}function C1(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+Ac(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Ws=Math.round;function O1(t){return t&&N(t.src)}function I1(t){return t&&G(t.toDataURL)}function dm(t,e,r,i){cm(function(n,a){var o=n==="fill"||n==="stroke";o&&Cl(a)?_m(e,t,n,i):o&&Oo(a)?xm(r,t,n,i):t[n]=a,o&&i.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),KR(r,t,i)}function mm(t,e){var r=uy(e);r&&(r.each(function(i,n){i!=null&&(t[(hm+n).toLowerCase()]=i+"")}),e.isSilent()&&(t[hm+"silent"]="true"))}function A1(t){return yr(t[0]-1)&&yr(t[1])&&yr(t[2])&&yr(t[3]-1)}function HR(t){return yr(t[4])&&yr(t[5])}function gm(t,e,r){if(e&&!(HR(e)&&A1(e))){var i=r?10:1e4;t.transform=A1(e)?"translate("+Ws(e[4]*i)/i+" "+Ws(e[5]*i)/i+")":Lg(e)}}function D1(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(Ws(i[a][0]*r)/r),n.push(Ws(i[a][1]*r)/r);e.points=n.join(" ")}function M1(t){return!t.smooth}function GR(t){var e=R(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=Ws(s*n)/n)}}}var YR={circle:[GR(["cx","cy","r"])],polyline:[D1,M1],polygon:[D1,M1]};function WR(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function L1(t,e){var r=t.style,i=t.shape,n=YR[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&El(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&WR(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),v=t,m=v.__svgPathBuilder;(v.__svgPathVersion!==h||!m||l!==v.__svgPathStrokePercent)&&(m||(m=v.__svgPathBuilder=new Cc),m.reset(u),p.rebuildPath(m,l),m.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=m.getStr()}return gm(a,t.transform),dm(a,r,t,e),mm(a,t),e.animation&&Ys(t,a,e),e.emphasis&&E1(t,a,e),ke(s,t.id+"",a)}function XR(t,e){var r=t.style,i=r.image;if(i&&!N(i)&&(O1(i)?i=i.src:I1(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),gm(l,t.transform),dm(l,r,t,e),mm(l,t),e.animation&&Ys(t,l,e),ke("image",t.id+"",l)}}function qR(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||St,a=r.x||0,o=Ng(r.y||0,Qi(n),r.textBaseline),s=Pg[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(hh(r)){var u="",f=r.fontStyle,c=ph(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||Nc,h=r.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),gm(l,t.transform),dm(l,r,t,e),mm(l,t),e.animation&&Ys(t,l,e),ke("text",t.id+"",l,void 0,i)}}function ym(t,e){if(t instanceof ie)return L1(t,e);if(t instanceof ot)return XR(t,e);if(t instanceof pn)return qR(t,e)}function KR(t,e,r){var i=t.style;if(Rg(i)){var n=kg(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=ui(i.shadowColor),v=h.opacity,m=h.color,d=p/2/l,g=p/2/u,y=d+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ke("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ke("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":m,"flood-opacity":v})]),a[n]=o}e.filter=Io(o)}}function _m(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(bl(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(wl(n))a="radialGradient",o.cx=F(n.x,.5),o.cy=F(n.y,.5),o.r=F(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Tl(s[u].offset)*100+"%",p=s[u].color,h=ui(p),v=h.color,m=h.opacity,d={offset:c};d["stop-color"]=v,m<1&&(d["stop-opacity"]=m),l.push(ke("stop",u+"",d))}var g=ke(a,"",o,l),y=Hs(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=ke(a,x,o,l)),e[r]=Io(x)}function xm(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(fp(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,m=n.image;if(N(m)?v=m:O1(m)?v=m.src:I1(m)&&(v=m.toDataURL()),typeof Image>"u"){var d="Image width/height must been given explictly in svg-ssr renderer.";Ie(p,d),Ie(h,d)}else if(p==null||h==null){var g=function(E,A){if(E){var I=E.elm,M=p||A.width,O=h||A.height;E.tag==="pattern"&&(u?(O=1,M/=a.width):f&&(M=1,O/=a.height)),E.attrs.width=M,E.attrs.height=O,I&&(I.setAttribute("width",M),I.setAttribute("height",O))}},y=Go(v,null,t,function(E){l||g(T,E),g(c,E)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=ke("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=j(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=Al(n);S&&(o.patternTransform=S);var T=ke("pattern","",o,[c]),w=Hs(T),C=i.patternCache,D=C[w];D||(D=i.zrId+"-p"+i.patternIdx++,C[w]=D,o.id=D,T=i.defs[D]=ke("pattern",D,o,[c])),e[r]=Io(D)}}function P1(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=ke("clipPath",a,o,[L1(t,r)])}e["clip-path"]=Io(a)}function Sm(t){return document.createTextNode(t)}function ki(t,e,r){t.insertBefore(e,r)}function Tm(t,e){t.removeChild(e)}function bm(t,e){t.appendChild(e)}function wm(t){return t.parentNode}function Cm(t){return t.nextSibling}function Dc(t,e){t.textContent=e}var N1=58,jR=120,QR=ke("","");function Em(t){return t===void 0}function Ir(t){return t!==void 0}function $R(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function Xs(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function qs(t){var e,r=t.children,i=t.tag;if(Ir(i)){var n=t.elm=Ec(i);if(Oc(QR,t),P(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&bm(n,qs(a))}else Ir(t.text)&&!U(t.text)&&bm(n,Sm(t.text))}else t.elm=Sm(t.text);return t.elm}function R1(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&ki(t,qs(a),e)}}function Mc(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(Ir(n.tag)){var a=wm(n.elm);Tm(a,n.elm)}else Tm(t,n.elm)}}function Oc(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==jR?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(_1,r,o):r.charCodeAt(3)===N1?i.setAttributeNS(x1,r,o):r.charCodeAt(5)===N1?i.setAttributeNS(pm,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function JR(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=r[++n]:f==null?f=r[--l]:Xs(o,u)?(vo(o,u),o=e[++i],u=r[++n]):Xs(s,f)?(vo(s,f),s=e[--a],f=r[--l]):Xs(o,f)?(vo(o,f),ki(t,o.elm,Cm(s.elm)),o=e[++i],f=r[--l]):Xs(s,u)?(vo(s,u),ki(t,s.elm,o.elm),s=e[--a],u=r[++n]):(Em(c)&&(c=$R(e,i,a)),p=c[u.key],Em(p)?ki(t,qs(u),o.elm):(h=e[p],h.tag!==u.tag?ki(t,qs(u),o.elm):(vo(h,u),e[p]=void 0,ki(t,h.elm,o.elm))),u=r[++n]);(i<=a||n<=l)&&(i>a?(v=r[l+1]==null?null:r[l+1].elm,R1(t,v,r,n,l)):Mc(t,e,i,a))}function vo(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(Oc(t,e),Em(e.text)?Ir(i)&&Ir(n)?i!==n&&JR(r,i,n):Ir(n)?(Ir(t.text)&&Dc(r,""),R1(r,null,n,0,n.length-1)):Ir(i)?Mc(r,i,0,i.length-1):Ir(t.text)&&Dc(r,""):t.text!==e.text&&(Ir(i)&&Mc(r,i,0,i.length-1),Dc(r,e.text)))}function Am(t,e){if(Xs(t,e))vo(t,e);else{var r=t.elm,i=wm(r);qs(e),i!==null&&(ki(i,e.elm,Cm(r)),Mc(i,[t],0,0))}return e}var e2=0,t2=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=r2("configLayer"),this.storage=r,this._opts=i=L({},i),this.root=e,this._id="zr"+e2++,this._oldVNode=vm(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Ec("svg");Oc(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Am(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return ym(e,Gs(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=Gs(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=i2(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ke("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=R(Q(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(ke("defs","defs",{},u)),e.animation){var f=S1(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ke("style","stl",{},[],f);o.push(c)}}return vm(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Hs(this.renderToVNode({animation:F(e.cssAnimation,!0),emphasis:F(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:F(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,m=void 0;for(m=Math.max(h-1,v-1);m>=0&&!(p&&l&&p[m]===l[m]);m--);for(var d=v-1;d>m;d--)o--,s=a[o-1];for(var g=m+1;g<h;g++){var y={};P1(p[g],y,r);var _=ke("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=ym(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display="none",e=Fv(n,0,i),r=Fv(n,1,i),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(Oo(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";return e?(r=Bg(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function r2(t){return function(){}}function i2(t,e,r,i){var n;if(r&&r!=="none")if(n=ke("rect","bg",{width:t,height:e,x:"0",y:"0"}),Cl(r))_m({fill:r},n.attrs,"fill",i);else if(Oo(r))xm({style:{fill:r},dirty:Ce,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=ui(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var k1=t2;function Dm(t){t.registerPainter("svg",k1)}pr([zd,Kd,tm,am,sm,Dm]);return V1(n2);})();
19
+ /*! Bundled license information:
20
+
21
+ tslib/tslib.es6.js:
22
+ tslib/tslib.es6.js:
23
+ (*! *****************************************************************************
24
+ Copyright (c) Microsoft Corporation.
25
+
26
+ Permission to use, copy, modify, and/or distribute this software for any
27
+ purpose with or without fee is hereby granted.
28
+
29
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
30
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
31
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
32
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
34
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
35
+ PERFORMANCE OF THIS SOFTWARE.
36
+ ***************************************************************************** *)
37
+
38
+ zrender/lib/zrender.js:
39
+ (*!
40
+ * ZRender, a high performance 2d drawing library.
41
+ *
42
+ * Copyright (c) 2013, Baidu Inc.
43
+ * All rights reserved.
44
+ *
45
+ * LICENSE
46
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
47
+ *)
48
+ */