You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
549 KiB
JavaScript

1 year ago
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t,window,document){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pm(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;o>r;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}function i(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function r(t,e){Dm[t]=e}function o(){return km++}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function s(t){if(null==t||"object"!=typeof t)return t;var e=t,n=_m.call(t);if("[object Array]"===n){if(!X(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=s(t[i])}}else if(mm[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=s(t[i])}}}else if(!vm[n]&&!X(t)&&!L(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==Im&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!k(e)||!k(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Im){var r=t[i],o=e[i];!k(o)||!k(r)||M(o)||M(r)||L(o)||L(r)||A(o)||A(r)||X(o)||X(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Im&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=b(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function p(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function g(t){return t?"string"==typeof t?!1:"number"==typeof t.length:!1}function y(t,e,n){if(t&&e)if(t.forEach&&t.forEach===bm)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return V(t);if(t.map&&t.map===Mm)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return V(t);if(t.filter&&t.filter===wm)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function x(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function b(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);re
var n=typeof t;return"string"===n?t:"number"===n||I(t)?t+"":e}function er(t){var e=t.name;return!(!e||!e.indexOf(Lx))}function nr(t){return t&&null!=t.id&&0===Qi(t.id).indexOf(Ox)}function ir(t,e,n){y(t,function(t){var i=t.newOption;k(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=rr(e,i,t.existing,n))})}function rr(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function or(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?v(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?v(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ar(){var t="__ec_inner_"+zx++;return function(e){return e[t]||(e[t]={})}}function sr(t,e,n){var i=lr(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=ur(t,i,e,{useDefault:l===i,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]}),s}function lr(t,e){var n;if(C(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Y(),o={},a=!1;return y(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&p(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function ur(t,e,n,i){i=i||Ex;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||r===!1?(G(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(G(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function hr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function cr(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function pr(t){return"auto"===t?ym.domSupported?"html":"richText":t||"html"}function dr(t,e){var n=Y(),i=[];return y(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function fr(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i){var a=vn(n||0,i,r);return xi(a,o?Math.max(wi(n||0),wi(i)):e)}if("string"==typeof i)return 1>r?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,f=u[c],a=vn(d,f,r);s[c]=xi(a,o?Math.max(wi(d),wi(f)):e)}}return s}function gr(t){var e={main:"",sub:""};if(t){var n=t.split(Bx);e.main=n[0]||"",e.sub=n[1]||""}return e}function yr(t){G(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function vr(t){return!(!t||!t[Fx])}function mr(t){t.$constructor=t,t.extend=function(t){function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(_r(i)){var a=q(e.prototype,new(i.bind.apply(i,n([void 0],r))));return a}i.apply(this,arguments)}}var i=this;return e[Fx]=!0,h(e.prototype,t),e.extend=this.extend,e.superCall=wr,e.superApply=Sr,d(e,this),e.superClass=i,e}}function _r(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function xr(t,e){t.extend=e.extend}function br(t){var e=["__\x00is_clz",Vx++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function wr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Sr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Mr(t){function e(t){var e=n[t.main];return e&&e[Nx]||(e=n[t.main]={},e[Nx]=!0),e}var n={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){yr(i),t.prototype.type=i;var r=gr(i);if(r.sub){if(r.sub!==Nx){var o=e(r);o[r.sub]=t}}else n[r.main]=t}return t},t.getC
else{var y=tS(n-i)/2,v=iS(y,f),m=iS(y,g),_=m,x=v,b=n*$w(u),w=n*Kw(u),S=i*$w(h),M=i*Kw(h),T=void 0,C=void 0,I=void 0,D=void 0;if((v>rS||m>rS)&&(T=n*$w(h),C=n*Kw(h),I=i*$w(u),D=i*Kw(u),qw>s)){var k=Va(b,w,I,D,T,C,S,M);if(k){var A=b-k[0],P=w-k[1],L=T-k[0],O=C-k[1],R=1/Kw(Jw((A*L+P*O)/(eS(A*A+P*P)*eS(L*L+O*O)))/2),z=eS(k[0]*k[0]+k[1]*k[1]);_=iS(m,(i-z)/(R-1)),x=iS(v,(n-z)/(R+1))}}if(s>rS)if(x>rS){var E=Ha(I,D,b,w,n,x,l),B=Ha(T,C,S,M,n,x,l);t.moveTo(p+E.cx+E.x01,d+E.cy+E.y01),v>x?t.arc(p+E.cx,d+E.cy,x,Qw(E.y01,E.x01),Qw(B.y01,B.x01),!l):(t.arc(p+E.cx,d+E.cy,x,Qw(E.y01,E.x01),Qw(E.y11,E.x11),!l),t.arc(p,d,n,Qw(E.cy+E.y11,E.cx+E.x11),Qw(B.cy+B.y11,B.cx+B.x11),!l),t.arc(p+B.cx,d+B.cy,x,Qw(B.y11,B.x11),Qw(B.y01,B.x01),!l))}else t.moveTo(p+b,d+w),t.arc(p,d,n,u,h,!l);else t.moveTo(p+b,d+w);if(i>rS&&s>rS)if(_>rS){var E=Ha(S,M,T,C,i,-_,l),B=Ha(b,w,I,D,i,-_,l);t.lineTo(p+E.cx+E.x01,d+E.cy+E.y01),m>_?t.arc(p+E.cx,d+E.cy,_,Qw(E.y01,E.x01),Qw(B.y01,B.x01),!l):(t.arc(p+E.cx,d+E.cy,_,Qw(E.y01,E.x01),Qw(E.y11,E.x11),!l),t.arc(p,d,i,Qw(E.cy+E.y11,E.cx+E.x11),Qw(B.cy+B.y11,B.cx+B.x11),l),t.arc(p+B.cx,d+B.cy,_,Qw(B.y11,B.x11),Qw(B.y01,B.x01),!l))}else t.lineTo(p+S,d+M),t.arc(p,d,i,h,u,l);else t.lineTo(p+S,d+M)}else t.moveTo(p,d);t.closePath()}}function Wa(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Ua(t,e){for(var n=t.length,i=[],r=0,o=1;n>o;o++)r+=ce(t[o-1],t[o]);var a=r/2;a=n>a?n:a;for(var o=0;a>o;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%n],p=void 0,d=void 0;e?(h=t[(l-1+n)%n],p=t[(l+1)%n],d=t[(l+2)%n]):(h=t[0===l?l:l-1],p=t[l>n-2?n-1:l+1],d=t[l>n-3?n-1:l+2]);var f=u*u,g=u*f;i.push([Wa(h[0],c[0],p[0],d[0],u,f,g),Wa(h[1],c[1],p[1],d[1],u,f,g)])}return i}function Xa(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)ye(a,a,t[p]),ve(s,s,t[p]);ye(a,a,i[0]),ve(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(Q(t[p]));continue}r=t[p-1],o=t[p+1]}ie(u,o,r),ue(u,u,e);var g=ce(f,r),y=ce(f,o),v=g+y;0!==v&&(g/=v,y/=v),ue(h,u,-g),ue(c,u,y);var m=ee([],f,h),_=ee([],f,c);i&&(ve(m,m,a),ye(m,m,s),ve(_,_,a),ye(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Ya(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i&&"spline"!==i){var o=Xa(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===i&&(r=Ua(r,n)),t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function ja(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?Ur:Wr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Ur:Wr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?$r:Kr)(t.x1,t.cpx1,t.x2,e),(n?$r:Kr)(t.y1,t.cpy1,t.y2,e)]}function qa(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=N(i.duration,200),h=N(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),"function"==typeof c&&(c=c(n,r)),"function"==typeof u&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function Za(t,e,n,i,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):k(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="remove"===t;u||e.stopAnimation("remove");var h=qa(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Ka(t,e,n,i,r,o){Za("update",t,e,n,i,r,o)}function $a(t,e,n,i
if(isNaN(h))return r;var c,p;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var d=0/0,f=n-1;f>=0;f--){var g=t[f];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var y=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&y>0||0>=h&&0>y){h=Ci(h,y),d=y;break}}}return i[0]=h,i[1]=d,i})})}function _u(t){return t instanceof vT}function xu(t,e,n){n=n||Su(t);var i=e.seriesLayoutBy,r=Mu(t,n,i,e.sourceHeader,e.dimensions),o=new vT({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function bu(t){return new vT({data:t,sourceFormat:P(t)?HM:BM})}function wu(t){return new vT({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Su(t){var e=GM;if(P(t))e=HM;else if(M(t)){0===t.length&&(e=NM);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=NM;break}if(k(r)){e=FM;break}}}}else if(k(t))for(var o in t)if(Z(t,o)&&g(t[o])){e=VM;break}return e}function Mu(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Cu(r),startIndex:a,dimensionsDetectedCount:o};if(e===NM){var s=t;"auto"===i||null==i?Iu(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=D(i)?i:i?1:0,r||1!==a||(r=[],Iu(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===UM?s.length:s[0]?s[0].length:null}else if(e===FM)r||(r=Tu(t));else if(e===VM)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===BM){var l=Wi(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Cu(r),dimensionsDetectedCount:o}}function Tu(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return y(e,function(t,e){i.push(e)}),i}}function Cu(t){if(t){var e=Y();return v(t,function(t){t=k(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Iu(t,e,n,i){if(e===UM)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function Du(t){var e=t.sourceFormat;return e===FM||e===VM}function ku(t,e){var n=xT[Lu(t,e)];return n}function Au(t,e){var n=wT[Lu(t,e)];return n}function Pu(t){var e=MT[t];return e}function Lu(t,e){return t===NM?t+"_"+e:t}function Ou(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Pu(o)(i,a,s)}var l=i;return o===BM&&(l=Wi(i)),l}}}function Ru(t){var e,n;return k(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function zu(t){return new IT(t)}function Eu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+ki(t)),null==t||""===t?0/0:+t)}function Bu(t,e){var n=new PT,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==WM&&Vi(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";Z(l,n)&&Vi(r),l[n]=i}});else for(var h=0;h<t.dimensionsDetectedCount;h++)s.push({index:h});var c=ku(r,WM);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,s,t)},n.getRawData=Pm(Nu,null,t)),n.cloneRawData=Pm(Fu,null,t);var p=Au(r,WM);n.count=Pm(p,null,i,o,s);var d=Pu(r);n.retrieveValue=function(t,e){var n=c(i,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Pm(Vu,null,s,l),n.cloneAllDimensionInfo=Pm(Hu,null,s),n}function Nu(t){var e=t.sourceFormat;if(!Xu(e)){var n="";Vi(n)}return t.data}function Fu(t){var e=t.sourceFormat,n=t.data;if(!Xu(e)){var i="";Vi(i)}if(e===NM){for(var r=[],o=0,a=n.length;a>o;o++)r.push(n[o].slice());return r}if(e===FM){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function Vu(t,e,n){return null!=n?"number"==typeo
e.setCenter(i)}}}function ip(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:_I[0]})}function rp(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function op(t){return C(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function ap(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:lp(this,t,e)}}function sp(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return lp(this,t,e)}}function lp(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Gm.prototype[e].apply(t,n)}function up(t,e,n){var i=dp(t);if(i)return i;var r=new xD(t,e,n);return r.id="ec_"+LD++,AD[r.id]=r,hr(t,RD,r.id),vD(r),MI.trigger("afterinit",r),r}function hp(t){if(M(t)){var e=t;t=null,y(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+OD++,y(e,function(e){e.group=t})}return PD[t]=!0,t}function cp(t){PD[t]=!1}function pp(t){"string"==typeof t?t=AD[t]:t instanceof xD||(t=dp(t)),t instanceof xD&&!t.isDisposed()&&t.dispose()}function dp(t){return AD[cr(t,RD)]}function fp(t){return AD[t]}function gp(t,e){DD[t]=e}function yp(t){p(CD,t)<0&&CD.push(t)}function vp(t,e){Cp(TD,t,e,LI)}function mp(t){xp("afterinit",t)}function _p(t){xp("afterupdate",t)}function xp(t,e){MI.on(t,e)}function bp(t,e,n){"function"==typeof e&&(n=e,e="");var i=k(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,MD[e]||(G(qI.test(i)&&qI.test(e)),SD[i]||(SD[i]={action:n,actionInfo:t}),MD[e]=i)}function wp(t,e){lT.register(t,e)}function Sp(t){var e=lT.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function Mp(t,e){Cp(ID,t,e,RI,"layout")}function Tp(t,e){Cp(ID,t,e,BI,"visual")}function Cp(t,e,n,i,r){if((T(e)||k(e))&&(n=e,e=i),!(p(ED,n)>=0)){ED.push(n);var o=pC.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Ip(t,e){kD[t]=e}function Dp(t){r("createCanvas",t)}function kp(t,e,n){SI.registerMap(t,e,n)}function Ap(t){return SI.getMapForUser(t)}function Pp(t){return null==t?0:t.length||1}function Lp(t){return t}function Op(t,e){var n={},i=n.encode={},r=Y(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;Rp(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),Ep(n.type)&&(o[0]=e),Rp(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}EM.each(function(t,e){var r=Rp(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=v(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new jD(s,e),n}function Rp(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function zp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ep(t){return!("ordinal"===t||"time"===t)}function Bp(t){return t instanceof $D}function Np(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var i=t[n],r=k(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Fp(t){var e=ZD(t);return e.dimNameMap||(e.dimNameMap=Np(t.dimensionsDefine))}function Vp(t){return t>30}function Hp(t,e){return Gp(t,e).dimensions}function Gp(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=k(n)?n:{name:n},r=new qD,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=EM.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}_u(t)||(t=bu(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),l=[],u=Up(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Vp(u),d=a===t.dimensionsDefine,f=d?Fp(t):Np(a),g=e.encodeDefine;!g&&e.encodeDe
if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;"string"==typeof r?d=_A[r]:"function"==typeof r&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,xA))}}}}}function jf(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new aw({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g="function"==typeof r?function(t){r(t,c)}:null;$a(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function qf(t,e,n){var i=t.getArea(),r=xi(i.r0,1),o=xi(i.r,1),a=new aS({shape:{cx:xi(t.cx,1),cy:xi(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,$a(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Zf(t,e,n,i,r){return t?"polar"===t.type?qf(t,e,n):"cartesian2d"===t.type?jf(t,e,n,i,r):null:null}function Kf(t,e){return t.type===e}function $f(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Ou(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Ou(t,e,n[a]));return o.join(" ")}}function Jf(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!M(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function Qf(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return ri(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(c-p)/2:0,m=Math.cos,_=Math.sin,x=u+c*m(f),b=h+c*_(f),w="left",S="top";switch(a){case"startArc":x=u+(p-s)*m(y),b=h+(p-s)*_(y),w="center",S="top";break;case"insideStartArc":x=u+(p+s)*m(y),b=h+(p+s)*_(y),w="center",S="bottom";break;case"startAngle":x=u+d*m(f)+eg(f,s+v,!1),b=h+d*_(f)+ng(f,s+v,!1),w="right",S="middle";break;case"insideStartAngle":x=u+d*m(f)+eg(f,-s+v,!1),b=h+d*_(f)+ng(f,-s+v,!1),w="left",S="middle";break;case"middle":x=u+d*m(y),b=h+d*_(y),w="center",S="middle";break;case"endArc":x=u+(c+s)*m(y),b=h+(c+s)*_(y),w="center",S="bottom";break;case"insideEndArc":x=u+(c-s)*m(y),b=h+(c-s)*_(y),w="center",S="top";break;case"endAngle":x=u+d*m(g)+eg(g,s+v,!0),b=h+d*_(g)+ng(g,s+v,!0),w="left",S="middle";break;case"insideEndAngle":x=u+d*m(g)+eg(g,-s+v,!0),b=h+d*_(g)+ng(g,-s+v,!0),w="right",S="middle";break;default:return ri(e,i,r)}return e=e||{},e.x=x,e.y=b,e.align=w,e.verticalAlign=S,e}}function tg(t,e,n,i){if("number"==typeof i)return void t.setTextConfig({rotation:i});if(M(e))return void t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function eg(t,e,n){return e*Math.sin(t)*(n?-1:1)}function ng(t,e,n){return e*Math.cos(t)*(n?1:-1)}function ig(t,e){var n=t.getArea&&t.getArea();if(Kf(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function rg(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();return n&&"category"===i.type&&"cartesian2d"===e.type?{baseAxis:i,otherAxis:e.getOtherAxis(i)}:void 0}function og(t,e,n,i,r,o,a,s){var l,u;o?(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||(a?K
}}})}function Ey(t,e,n,i,r,o){var a=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};y(l,function(t){u[t]=s(a.get(t))}),u.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===r){var p=a.get(["label","show"]);if(h.show=null!=p?p:!0,!o){var d=u.lineStyle=a.get("crossStyle");d&&c(h,d.textStyle)}}return t.model.getModel("axisPointer",new tM(u,n,i))}function By(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get(["axisPointer","show"],!0)!==!1&&y(t.coordSysAxesInfo[Uy(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Ny(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Fy(o[i+"AxisId"],n.id)||Fy(o[i+"AxisIndex"],n.componentIndex)||Fy(o[i+"AxisName"],n.name))return r}}function Fy(t,e){return"all"===t||M(t)&&p(t,e)>=0||t===e}function Vy(t){var e=Hy(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Wy(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Hy(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Uy(t)]}function Gy(t){var e=Hy(t);return e&&e.axisPointerModel}function Wy(t){return!!t.get(["handle","show"])}function Uy(t){return t.type+"||"+t.id}function Xy(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=s.length,p=AP(t).splitAreaColors,d=Y(),f=0;if(p)for(var g=0;g<u.length;g++){var y=p.get(u[g].tickValue);if(null!=y){f=(y+(h-1)*g)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=M(s)?s:[s];for(var g=1;g<u.length;g++){var _=r.toGlobalCoord(u[g].coord),x=void 0,b=void 0,w=void 0,S=void 0;r.isHorizontal()?(x=v,b=l.y,w=_-x,S=l.height,v=x+w):(x=l.x,b=v,w=l.width,S=_-b,v=b+S);var T=u[g-1].tickValue;null!=T&&d.set(T,f),e.add(new aw({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:S},style:c({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%h}AP(t).splitAreaColors=d}}}function Yy(t){AP(t).splitAreaColors=null}function jy(t){t.registerComponentView(BP),t.registerComponentModel(cP),t.registerCoordinateSystem("cartesian2d",MP),gy(t,"x",pP,NP),gy(t,"y",pP,NP),t.registerComponentView(zP),t.registerComponentView(EP),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function qy(t){t.registerComponentModel(FP),t.registerComponentView(VP)}function Zy(t,e){var n=xM(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new aw({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function Ky(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),UP(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke";l.decal=i.decal,"inherit"===l.fill&&(l.fill=i[r]),"inherit"===l.stroke&&(l.stroke=i[u]),"inherit"===l.opacity&&(l.opacity=("fill"===r?i:n).opacity),a(l,i);var h=e.getModel("lineStyle"),c=h.getLineStyle();if(a(c,n),"auto"===l.fill&&(l.fill=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),!o){var p=e.get("inactiveBorderWidth"),d=l[u];l.lineWidth="auto"===p?i.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),c.stroke=h.get("inactiveColor"),c.lineWidth=h.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function $
}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,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}();i_="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var c_=i_,p_={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 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?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,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*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-p_.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*p_.bounceIn(2*t):.5*p_.bounceOut(2*t-1)+.5}},d_=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;0>n&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?p_[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),f_=functio
},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?U_:W_},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&on(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,fn(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(k(t))for(var n=t,i=b(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!r||r===fx){var o=i.targetName,a=o?e[o]:e;i.saveFinalToTarget(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,gx)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(fx,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===fx,o=this.hasState();if(o||!r){var s=this.currentStates,l=this.stateTransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void a("State "+t+" not exists.");r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,h),d&&d.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~a_),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~a_)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=p(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=p(i,t),o=p(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];h(n,r),r.textConfig&&(e=e||{},h(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!
o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Kb.length;++s)r[Kb[s]]=this[Kb[s]];r.__dirty|=a_}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=b(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?h(this.style,a):this.useStyle(a):"shape"===o?h(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(C(t)){var e=gn(t,0);return e>.5?W_:e>.2?X_:U_}if(t)return U_}return W_},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=gn(t,0)<G_;if(i===r)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~l_},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new Vb(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&l_)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Mo(o,a/s,t,e)))return!0}if(this.hasFill())return So(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=l_,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&l_)},n.prototype.createStyle=function(t){return q(qb,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=h({},i.shape),h(s,n.shape)):(s=h({},r?this.shape:i.shape),h(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=b(s),p=0;p<c.length;p++){var d=c[p];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n
return t.indexOf(rM)>-1?rM:aM}():aM;Ws(oM,nM),Ws(rM,iM);var hM=1e3,cM=60*hM,pM=60*cM,dM=24*pM,fM=365*dM,gM={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},yM="{yyyy}-{MM}-{dd}",vM={year:"{yyyy}",month:"{yyyy}-{MM}",day:yM,hour:yM+" "+gM.hour,minute:yM+" "+gM.minute,second:yM+" "+gM.second,millisecond:gM.none},mM=["year","month","day","hour","minute","second","millisecond"],_M=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],xM=H,bM=/([&<>"'])/g,wM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SM=["a","b","c","d","e","f","g"],MM=function(t,e){return"{"+t+(null==e?"":e)+"}"},TM=y,CM=["left","right","top","bottom","width","height"],IM=[["width","left","right"],["height","top","bottom"]],DM=Cl,kM=(S(Cl,"vertical"),S(Cl,"horizontal"),ar()),AM=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Fs("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Dl(this),i=n?Al(t):{},r=e.getTheme();l(t,r.get(this.mainType)),l(t,this.getDefaultOption()),n&&kl(t,i,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=Dl(this);e&&kl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!vr(t))return t.defaultOption;var e=kM(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return ur(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(tM);xr(AM,tM),Mr(AM),Vs(AM),Hs(AM,Ll);var PM="";"undefined"!=typeof navigator&&(PM=navigator.platform||"");var LM,OM,RM="rgba(0, 0, 0, 0.2)",zM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:RM,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:RM,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:RM,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:RM,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:RM,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:RM,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:PM.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},EM=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),BM="original",NM="arrayRows",FM="objectRows",VM="keyedColumns",HM="typedArray",GM="unknown",WM="column",UM="row",XM={Must:1,Might:2,Not:3},YM=ar(),jM=Y(),qM=ar(),ZM=(ar(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Hi(this.get("color",!0)),r=this.get("colorLayer",!0);return Gl(this,qM,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Wl(this,qM)},t}()),KM="\x00_ec_inner",$M=1,JM=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new tM(i
1!==t.length&&Ju(r)}var o,a=[],s=[];return y(t,function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Ju(n),a.push(e),s.push(t._getVersionSign())}),n?o=Wu(n,a,{datasetIndex:e.componentIndex}):null!=i&&(o=[wu(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];$u(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new FT,a.initData(new mT(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if($u(t)){var e=El(t);return e?[e.getSourceManager()]:[]}return v(Bl(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if($u(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),HT="line-height:1",GT=[0,10,20,30],WT=["","\n","\n\n","\n\n\n"],UT={section:{planLayout:function(t){var e=t.blocks.length,n=e>1||e>0&&!t.noHeader,i=0;y(t.blocks,function(t){eh(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=rh(e),a=nh(t,e,r?n:o.html,i);if(r)return a;var s=_l(e.header,"ordinal",t.useUTC),l=Qu(i,t.renderMode).nameStyle;return"richText"===t.renderMode?lh(t,s,l)+o.richText+a:oh('<div style="'+l+";"+HT+';">'+ml(s)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=t.useUTC;if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":_l(l,"ordinal",h),d=e.valueType,f=a?[]:M(u)?v(u,function(t,e){return _l(t,M(d)?d[e]:d,h)}):[_l(u,M(d)?d[0]:d,h)],g=!s||!o,y=!s&&o,m=Qu(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":lh(t,p,_))+(a?"":uh(t,f,g,y,x)):oh((s?"":c)+(o?"":ah(p,!s,_))+(a?"":sh(f,g,y,x)),n)}}}},XT=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Bi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=bl({color:e,type:t,renderMode:n,markerId:i});return C(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};M(e)?y(e,function(t){return h(n,t)}):h(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),YT=ar(),jT="__universalTransitionEnabled",qT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=zu({count:vh,reset:mh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=YT(this).sourceManager=new VT(this);i.prepareSource();var r=this.getInitialData(t,n);xh(r,this),this.dataTask.context.data=r,YT(this).dataBeforeProcessed=r,gh(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Dl(this),i=n?Al(t):{},r=this.subType;AM.hasClass(r)&&(r+="Series"),l(t,e.getTheme().get(this.subType)),l(t,this.getDefaultOption()),Gi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&kl(t
}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Kc(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Yc(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,G(null!=n)}catch(i){throw new Error("Invalid svg format\n"+i.message)}var r=new xx;r.add(n),r.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,p=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(h=0,p=a):s&&(h=s.y,p=s.height),null==u||null==h){var d=n.getBoundingRect();null==u&&(u=d.x,c=d.width),null==h&&(h=d.y,p=d.height)}l=this._boundingRect=new hx(u,h,c,p)}if(s){var f=Xc(s,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}r.setClipPath(new aw({shape:l.plain()}));var g=[];return y(e.named,function(t){null!=hI.get(t.svgNodeTagLower)&&(g.push(t),Zc(t.el))}),{root:r,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n?n:(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),pI=[126,25],dI="南海诸岛",fI=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],gI=0;gI<fI.length;gI++)for(var yI=0;yI<fI[gI].length;yI++)fI[gI][yI][0]/=10.5,fI[gI][yI][1]/=-14,fI[gI][yI][0]+=pI[0],fI[gI][yI][1]+=pI[1];var vI={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},mI={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},_I=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],xI="name",bI=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Y(),this._mapName=t,this._specialAreas=n,this._geoJSON=op(e)}return t.prototype.load=function(t,e){e=e||xI;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:rp(i)})}var r=Y(),o=[];return y(n.regions,function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new hx(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?Qc(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return tp(n,e),y(e,function(t){var e=t.name;ep(n,t),np(n,t),ip(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),wI=Y(),SI={registerMap:function(t,e,n){if(e.svg){var i=new cI(t,e.svg);wI.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;var i=new bI(t,r,n);wI.set(t,i)}},getGeoResource:function(t){return wI.get(t)},getMapForUser:function(t){var e=wI.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=wI.get(t);if(i)return i.load(e,n)}},MI=new Gm,TI="undefined"!=typeof window,CI="5
this._nameList[a]=e[s],o&&UD(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==HM&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===BM;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getItem(u,l);if(!this.hasItemOption&&Ui(h)&&(this.hasItemOption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=tr(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=tr(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)UD(this,u);ND(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){JD(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=VD(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return FD(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return M(t)?i.getValues(QD(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?nk:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=n||this,r=QD(HD(t),this._getStoreDimIndex,this);this._store.each(r,i?Pm(e,i):e)},t.prototype.filterSelf=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=n||this,r=QD(HD(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Pm(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=b(t),r=[];return y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=QD(HD(t),this._getStoreDimIndex,this),a=WD(this);return a._store=this._store.map(o,r?Pm(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=QD(HD(t),this._getStoreDimIndex,this);this._store.modify(o,r?Pm(e,r):e)},t.prototype.downSam
p&&r(p);var d=c&&(h.__dirty&a_||!h.__isRendered)?h.getPaintRect():null;d&&r(d)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(n,i,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&r(p)}}var f;do{f=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(f=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(f);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},n.prototype.clear=function(t,e,n){function i(t,n,i,r){if(o.clearRect(t,n,i,r),e&&"transparent"!==e){var a=void 0;O(e)?(a=e.__canvasGradient||ec(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):R(e)&&(a=uc(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var p=this.domBack;!n||l?i(0,0,a,s):n.length&&y(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})},n}(Gm),pA=1e5,dA=314159,fA=.01,gA=.001,yA=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=h({},n||{}),this.dpr=n.devicePixelRatio||H_,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new cA(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[dA]=c,c.zlevel=dA,o.push(dA),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=Wf(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(pA)),i||(i=n.ctx,i.save()),Sc(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(pA)},t.prototype.paintOne=function(t,e){wc(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;c_(fun
}}),Ag(this._stackedOnPoints,b)&&Ag(this._points,u)||(v?this._doUpdateAnimation(a,b,r,n,C,_):(C&&(u=zg(u,r,C),b&&(b=zg(b,r,C))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,T),C&&(u=zg(u,r,C),b&&(b=zg(b,r,C))),f=this._newPolyline(u),m&&(g=this._newPolygon(u,b)),h||this._initOrUpdateEndLabel(t,r,Ml(I)),y.setClipPath(Xg(this,r,!0,t));var A=t.get(["emphasis","focus"]),P=t.get(["emphasis","blurScope"]);if(f.useStyle(c(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),wa(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=f.getState("emphasis").style;L.lineWidth=+f.style.lineWidth+1}dw(f).seriesIndex=t.seriesIndex,xa(f,A,P);var O=Og(t.get("smooth")),R=t.get("smoothMonotone"),z=t.get("connectNulls");if(f.setShape({smooth:O,smoothMonotone:R,connectNulls:z}),g){var E=a.getCalculationInfo("stackedOnSeries"),B=0;g.useStyle(c(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(B=Og(E.get("smooth"))),g.setShape({smooth:O,stackedOnSmooth:B,smoothMonotone:R,connectNulls:z}),wa(g,t,"areaStyle"),dw(g).seriesIndex=t.seriesIndex,xa(g,A,P)}var N=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=_},n.prototype.dispose=function(){},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=or(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel"),c=t.get("z");s=new FA(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else JT.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=or(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else JT.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;qo(this._polyline,t),e&&qo(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new YA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,h="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _="function"==typeof u?u(o):l*m+h,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Ug(t)){var r=t.getData(),o=this._polyline,a=this._endLabel;a||(a=this._endLabel=new hw({z2:200}),a.ignoreClip=
"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new SP(e,Ed(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void y(a.x,function(e,n){y(a.y,function(r,o){var a="x"+n+"y"+o,s=new wP(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function n(t,e){y(Ud(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}y(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(_y(t)){var i=xy(t),r=i.xAxisModel,o=i.yAxisModel;if(!by(r,e)||!by(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return y(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);p(e,r)<0&&e.push(r),p(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(_y(t)){var e=xy(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=bP,t}(),TP=Math.PI,CP=function(){function t(t,e){this.group=new xx,this.opt=e,this.axisModel=t,c(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new xx({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!IP[t]},t.prototype.add=function(t){IP[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Ii(e-t);return Di(o)?(r=n>0?"top":"bottom",i="center"):Di(o-TP)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&TP>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),IP={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(ge(s,s,a),ge(l,l,a));var u=h({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new gS({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);"string"==typeof p&&(p=[p,p]),("string"==typeof d||"number"==typeof d)&&(d=[d,d]);var f=Jh(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];y([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=Kh(p[i],-g/2,-v/2,g,v,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=Py(n,i,e,t),o=Oy(n,i,e,t);if(Cy(e,o,r),Ly(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverla
}(AM),hL=Xv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cL=Xv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pL=Yv(cL,"transition"),dL=Yv(hL,"transform"),fL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ym.transform3dSupported?"will-change:transform;":""),gL=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ym.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;tm(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();De(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=jv(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=fL+Qv(t,!this._firstShow,this._longHide)+$v(r[0],r[1],!0)+("border-color:"+Ml(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(C(r)&&"item"===n.get("trigger")&&!Uv(n)&&(a=Zv(n,i,r)),C(t))o.innerHTML=t+a;else if(t){o.innerHTML="",M(t)||(t=[t]);for(var s=0;s<t.length;s++)L(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(tm(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=$v(n[0],n[1]);y(r,function(t){i[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",ym.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Pm(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),yL=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),im(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i){k(t)&&Vi(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle");this.el=new hw({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffset