12345678910111213141516171819 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45f6bd2a"],{"083a":function(t,e,n){"use strict";var r=n("0d51"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},"0c9b":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"el-fade-in"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.toTopShow,expression:"toTopShow"}],staticClass:"page-up",on:{click:t.scrollToTop}},[e("van-icon",{staticStyle:{margin:"10%"},attrs:{name:"back-top",color:"#f9fafb",size:"2rem"}})],1)])},i=[],o={name:"pageup",data:function(){return{toTopShow:!0}},created:function(){},mounted:function(){this.$nextTick((function(){window.addEventListener("scroll",this.handleScroll,!0)}))},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){this.scrollTop=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,this.scrollTop>0?this.toTopShow=!0:this.toTopShow=!1},scrollToTop:function(){var t=null,e=this;cancelAnimationFrame(t),t=requestAnimationFrame((function n(){e.scrollTop>1e3||e.scrollTop>1e3&&e.scrollTop<=5e3||e.scrollTop>200&&e.scrollTop<=1e3||e.scrollTop>50&&e.scrollTop<=200||e.scrollTop>0&&e.scrollTop<=50?(e.scrollTop-=0,document.documentElement.scrollTop=0,window.pageYOffset=0,document.body.scrollTop=0,t=requestAnimationFrame(n)):(cancelAnimationFrame(t),e.toTopShow=!1)}))}}},a=o,s=(n("9d9b"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"03d30358",null);e["a"]=l.exports},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(r));return i.join("")}function g(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(d(t,s,s+a>l?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),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}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},3375:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d401"),n("4de4"),n("4160"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("4d90"),n("5319"),n("159b");function r(t,e){var n,r={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(var i in r)n=new RegExp("("+i+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?r[i]:r[i].padStart(n[1].length,"0")));return t}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return m})),n.d(e,"lift",(function(){return x})),n.d(e,"toHex",(function(){return w})),n.d(e,"fastLerp",(function(){return S})),n.d(e,"fastMapToColor",(function(){return O})),n.d(e,"lerp",(function(){return M})),n.d(e,"mapToColor",(function(){return T})),n.d(e,"modifyHSL",(function(){return C})),n.d(e,"modifyAlpha",(function(){return k})),n.d(e,"stringify",(function(){return I})),n.d(e,"lum",(function(){return D})),n.d(e,"random",(function(){return A})),n.d(e,"liftColor",(function(){return P}));var r=n("d51b"),i=n("6d8b"),o={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 a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t=Math.round(t),t<0?0:t>360?360:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function f(t,e,n){return t+(e-t)*n}function p(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new r["a"](20),v=null;function y(t,e){v&&d(v,e),v=g.put(t,v||e.slice())}function m(t,e){if(t){e=e||[];var n=g.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in o)return d(e,o[r]),y(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?p(e,+h[0],+h[1],+h[2],1):p(e,0,0,0,1);f=c(h.pop());case"rgb":return h.length>=3?(p(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?f:c(h[3])),y(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==h.length?void p(e,0,0,0,1):(h[3]=c(h[3]),_(h,e),y(t,e),e);case"hsl":return 3!==h.length?void p(e,0,0,0,1):(_(h,e),y(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===i||5===i){var v=parseInt(r.slice(1,4),16);return v>=0&&v<=4095?(p(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===i?parseInt(r.slice(4),16)/15:1),y(t,e),e):void p(e,0,0,0,1)}if(7===i||9===i){v=parseInt(r.slice(1,7),16);return v>=0&&v<=16777215?(p(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===i?parseInt(r.slice(7),16)/255:1),y(t,e),e):void p(e,0,0,0,1)}}}}function _(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return e=e||[],p(e,a(255*h(s,o,n+1/3)),a(255*h(s,o,n)),a(255*h(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function x(t,e){var n=m(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return I(n,4===n.length?"rgba":"rgb")}}function w(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=e[i],u=e[o],c=r-i;return n[0]=a(f(s[0],u[0],c)),n[1]=a(f(s[1],u[1],c)),n[2]=a(f(s[2],u[2],c)),n[3]=l(f(s[3],u[3],c)),n}}var O=S;function M(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=m(e[i]),u=m(e[o]),c=r-i,h=I([a(f(s[0],u[0],c)),a(f(s[1],u[1],c)),a(f(s[2],u[2],c)),l(f(s[3],u[3],c))],"rgba");return n?{color:h,leftIndex:i,rightIndex:o,value:r}:h}}var T=M;function C(t,e,n,r){var i=m(t);if(t)return i=b(i),null!=e&&(i[0]=s(e)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),I(_(i),"rgba")}function k(t,e){var n=m(t);if(n&&null!=e)return n[3]=l(e),I(n,"rgba")}function I(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function A(){return I([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var j=new r["a"](100);function P(t){if(Object(i["isString"])(t)){var e=j.get(t);return e||(e=x(t,-.1),j.put(t,e)),e}if(Object(i["isGradientObject"])(t)){var n=Object(i["extend"])({},t);return n.colorStops=Object(i["map"])(t.colorStops,(function(t){return{offset:t.offset,color:x(t.color,-.1)}})),n}return t}},4662:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("09fe"),n("4d75"),n("e3b3"),n("8270"),n("786d"),n("504b")},"4c10":function(t,e,n){"use strict";n.d(e,"g",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"k",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"b",(function(){return d}));var r=n("1808");function i(t){return Object(r["a"])({url:"orders",method:"get",params:t})}function o(t){return Object(r["a"])({url:"orders/".concat(t),method:"get"})}function a(t){return Object(r["a"])({url:"orders/".concat(t),method:"delete"})}function s(t,e){return Object(r["a"])({url:"orders/".concat(t,"/allot"),method:"post",data:e})}function l(t,e){return Object(r["a"])({url:"orders/".concat(t,"/allot"),method:"put",data:e})}function u(t,e){return Object(r["a"])({url:"orders/".concat(t,"/check"),method:"post",data:e})}function c(t){return Object(r["a"])({url:"orders/".concat(t,"/complete"),method:"post"})}function h(t,e){return Object(r["a"])({url:"orders/".concat(t,"/issue"),method:"post",data:e})}function f(t,e){return Object(r["a"])({url:"orders/".concat(t,"/suspend"),method:"post",data:e})}function p(t){return Object(r["a"])({url:"workorders",method:"get",params:t})}function d(t,e){return Object(r["a"])({url:"extension/".concat(t,"/check"),method:"post",data:e})}},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return _})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return S})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return M})),n.d(e,"mixin",(function(){return T})),n.d(e,"isArrayLike",(function(){return C})),n.d(e,"each",(function(){return k})),n.d(e,"map",(function(){return I})),n.d(e,"reduce",(function(){return D})),n.d(e,"filter",(function(){return A})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return R})),n.d(e,"curry",(function(){return E})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return z})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return H})),n.d(e,"isBuiltInObject",(function(){return W})),n.d(e,"isTypedArray",(function(){return G})),n.d(e,"isDom",(function(){return U})),n.d(e,"isGradientObject",(function(){return Y})),n.d(e,"isImagePatternObject",(function(){return q})),n.d(e,"isRegExp",(function(){return X})),n.d(e,"eqNaN",(function(){return Z})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return $})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return ut})),n.d(e,"createHashMap",(function(){return ct})),n.d(e,"concatArray",(function(){return ht})),n.d(e,"createObject",(function(){return ft})),n.d(e,"disableUserSelect",(function(){return pt})),n.d(e,"hasOwn",(function(){return dt})),n.d(e,"noop",(function(){return gt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return vt}));var r=n("726e"),i=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,p=f?f.prototype:null,d="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!ot(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=m(t[r])}}else if(o[n]){if(!ot(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!ot(t)&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==d&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!H(e)||!H(t))return n?m(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==d){var i=t[r],o=e[r];!H(o)||!H(i)||N(o)||N(i)||U(o)||U(i)||W(o)||W(i)||ot(o)||ot(i)?!n&&r in t||(t[r]=m(e[r])):_(i,o,n)}return t}function b(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=_(n,t[r],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==d&&(t[n]=e[n]);return t}function w(t,e,n){for(var r=P(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=r["c"].createCanvas;function O(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function M(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function T(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function I(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function D(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function A(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function j(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function L(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var R=p&&B(p.bind)?p.call.bind(p.bind):L;function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function B(t){return"function"===typeof t}function F(t){return"string"===typeof t}function z(t){return"[object String]"===a.call(t)}function V(t){return"number"===typeof t}function H(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function W(t){return!!i[a.call(t)]}function G(t){return!!o[a.call(t)]}function U(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function q(t){return null!=t.image}function X(t){return"[object RegExp]"===a.call(t)}function Z(t){return t!==t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function $(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function tt(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rt="__ec_primitive__";function it(t){t[rt]=!0}function ot(t){return t[rt]}var at=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),st="function"===typeof Map;function lt(){return st?new Map:new at}var ut=function(){function t(e){var n=N(e);this.data=lt();var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&k(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return st?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function ct(t){return new ut(t)}function ht(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ft(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&x(n,e),n}function pt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function gt(){}var vt=180/Math.PI},"726e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-a)/s;e[r]=i}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var a=h.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||o),t.measureText(n);n=n||"",i=i||o;var s=/((?:\d+)?\.?\d*)px/.exec(i),l=s&&+s[1]||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var f=0;f<n.length;f++){var p=c[n[f]];u+=null==p?l:p*l}return{width:u}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function f(t){for(var e in h)t[e]&&(h[e]=t[e])}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n("6d8b"),i=(n("41ef"),n("22d1"));Math.round;function o(t){return"linear"===t.type}function a(t){return"radial"===t.type}(function(){i["a"].hasGlobalWindow&&Object(r["isFunction"])(window.btoa)})()}).call(this,n("b639").Buffer)},9152:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},"9d0a":function(t,e,n){"use strict";var r="Servicer-Storage";e["a"]={get:function(t){var e=window.localStorage.getItem(r+"_"+t);return e?window.JSON.parse(e):""},set:function(t,e){window.localStorage.setItem(r+"_"+t,window.JSON.stringify(e))},del:function(t,e){window.localStorage.removeItem(r+"_"+t)}}},"9d9b":function(t,e,n){"use strict";n("daa2")},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),u=n("3511"),c=n("65f0"),h=n("8418"),f=n("083a"),p=n("1dde"),d=p("splice"),g=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,p,d,y,m,_=i(this),b=s(_),x=o(t,b),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=b-x):(n=w-2,r=v(g(a(e),0),b-x)),u(b+n-r),p=c(_,r),d=0;d<r;d++)y=x+d,y in _&&h(p,d,_[y]);if(p.length=r,n<r){for(d=x;d<b-r;d++)y=d+r,m=d+n,y in _?_[m]=_[y]:f(_,m);for(d=b;d>b-r+n;d--)f(_,d-1)}else if(n>r)for(d=b-r;d>x;d--)y=d+r-1,m=d+n-1,y in _?_[m]=_[y]:f(_,m);for(d=0;d<n;d++)_[d+x]=arguments[d+2];return l(_,b-r+n),p}})},ad7b:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n("1808");function i(){return Object(r["a"])({url:"statis/order",method:"get"})}function o(){return Object(r["a"])({url:"statis/repair",method:"get"})}function a(){return Object(r["a"])({url:"statis/extension",method:"get"})}},b1a4:function(t,e,n){"use strict";n("4de4"),n("d3b7");var r=function(){var t=this,e=t._self._c;return e("div",[e("van-field",{attrs:{readonly:"",clickable:t.edit,border:t.border,label:t.label,value:t.showFormat?t.showFormat(t.value):t.value?t.dateFormat("datetime"==t.type?"YYYY-mm-dd HH:MM":"YYYY-mm-dd",new Date(1e3*t.value)):"",placeholder:t.placeholder,disabled:t.disabled,rules:t.rules},on:{click:t.showSelect}}),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[e("van-datetime-picker",{attrs:{type:t.type,title:t.label,value:t.value?new Date(1e3*t.value):new Date,"min-date":t.minDate,"max-date":t.maxDate,filter:t.filter,formatter:t.formatter},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm}})],1)],1)},i=[],o=(n("e25e"),n("3375")),a={name:"DatetimeSelect",components:{},props:{value:{default:""},label:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1},type:{type:String,default:"date"},edit:{type:Boolean,default:!0},minDate:{type:Date,default:function(){return new Date(1900,0,1)}},maxDate:{type:Date,default:function(){return new Date(2100,0,1)}},rules:{type:Array,default:function(){return[]}},filter:Function,formatter:{type:Function,default:function(t,e){return e}},showFormat:{type:Function,default:void 0}},data:function(){return{showPicker:!1}},methods:{dateFormat:o["a"],showSelect:function(){this.edit&&(this.showPicker=!0)},onConfirm:function(t){t=parseInt(t.getTime()/1e3);this.$emit("input",t),this.showPicker=!1}}},s=a,l=n("2877"),u=Object(l["a"])(s,r,i,!1,null,"24ef799b",null);e["a"]=u.exports},b639:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,r):"string"===typeof e?d(t,e,n):y(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=l(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|m(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function v(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|m(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return j(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function M(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function T(t,e,n,r){return tt(K(e,t.length-n),t,n,r)}function C(t,e,n,r){return tt($(e),t,n,r)}function k(t,e,n,r){return C(t,e,n,r)}function I(t,e,n,r){return tt(J(e),t,n,r)}function D(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function j(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):x.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=P));return n}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function N(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=Z(t[o]);return i}function B(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function W(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,r,o){return o||W(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||W(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a<n&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<n&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:K(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function q(t){if(t=X(t).replace(Y,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function X(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,r,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(q(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},daa2:function(t,e,n){},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5ad:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return T})),n.d(r,"copy",(function(){return C})),n.d(r,"clone",(function(){return k})),n.d(r,"set",(function(){return I})),n.d(r,"add",(function(){return D})),n.d(r,"scaleAndAdd",(function(){return A})),n.d(r,"sub",(function(){return j})),n.d(r,"len",(function(){return P})),n.d(r,"length",(function(){return L})),n.d(r,"lenSquare",(function(){return R})),n.d(r,"lengthSquare",(function(){return E})),n.d(r,"mul",(function(){return N})),n.d(r,"div",(function(){return B})),n.d(r,"dot",(function(){return F})),n.d(r,"scale",(function(){return z})),n.d(r,"normalize",(function(){return V})),n.d(r,"distance",(function(){return H})),n.d(r,"dist",(function(){return W})),n.d(r,"distanceSquare",(function(){return G})),n.d(r,"distSquare",(function(){return U})),n.d(r,"negate",(function(){return Y})),n.d(r,"lerp",(function(){return q})),n.d(r,"applyTransform",(function(){return X})),n.d(r,"min",(function(){return Z})),n.d(r,"max",(function(){return K}));var i={};n.r(i),n.d(i,"create",(function(){return Dt})),n.d(i,"identity",(function(){return At})),n.d(i,"copy",(function(){return jt})),n.d(i,"mul",(function(){return Pt})),n.d(i,"translate",(function(){return Lt})),n.d(i,"rotate",(function(){return Rt})),n.d(i,"scale",(function(){return Et})),n.d(i,"invert",(function(){return Nt})),n.d(i,"clone",(function(){return Bt}));var o={};n.r(o),n.d(o,"init",(function(){return Qr})),n.d(o,"dispose",(function(){return Jr})),n.d(o,"disposeAll",(function(){return ti})),n.d(o,"getInstance",(function(){return ei})),n.d(o,"registerPainter",(function(){return ni})),n.d(o,"getElementSSRData",(function(){return ri})),n.d(o,"registerSSRDataGetter",(function(){return ii})),n.d(o,"version",(function(){return oi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return cu})),n.d(a,"initProps",(function(){return hu})),n.d(a,"removeElement",(function(){return pu})),n.d(a,"removeElementWithFadeOut",(function(){return gu})),n.d(a,"isElementRemoved",(function(){return fu})),n.d(a,"extendShape",(function(){return gv})),n.d(a,"extendPath",(function(){return yv})),n.d(a,"registerShape",(function(){return mv})),n.d(a,"getShapeClass",(function(){return _v})),n.d(a,"makePath",(function(){return bv})),n.d(a,"makeImage",(function(){return xv})),n.d(a,"mergePath",(function(){return Sv})),n.d(a,"resizePath",(function(){return Ov})),n.d(a,"subPixelOptimizeLine",(function(){return Mv})),n.d(a,"subPixelOptimizeRect",(function(){return Tv})),n.d(a,"subPixelOptimize",(function(){return Cv})),n.d(a,"getTransform",(function(){return kv})),n.d(a,"applyTransform",(function(){return Iv})),n.d(a,"transformDirection",(function(){return Dv})),n.d(a,"groupTransition",(function(){return Pv})),n.d(a,"clipPointsByRect",(function(){return Lv})),n.d(a,"clipRectByRect",(function(){return Rv})),n.d(a,"createIcon",(function(){return Ev})),n.d(a,"linePolygonIntersect",(function(){return Nv})),n.d(a,"lineLineIntersect",(function(){return Bv})),n.d(a,"setTooltipConfig",(function(){return Vv})),n.d(a,"traverseElements",(function(){return Wv})),n.d(a,"Group",(function(){return Ur})),n.d(a,"Image",(function(){return xs})),n.d(a,"Text",(function(){return Xs})),n.d(a,"Circle",(function(){return ig})),n.d(a,"Ellipse",(function(){return sg})),n.d(a,"Sector",(function(){return Mg})),n.d(a,"Ring",(function(){return kg})),n.d(a,"Polygon",(function(){return Pg})),n.d(a,"Polyline",(function(){return Eg})),n.d(a,"Rect",(function(){return Ds})),n.d(a,"Line",(function(){return zg})),n.d(a,"BezierCurve",(function(){return Ug})),n.d(a,"Arc",(function(){return Xg})),n.d(a,"IncrementalDisplayable",(function(){return hv})),n.d(a,"CompoundPath",(function(){return Kg})),n.d(a,"LinearGradient",(function(){return tv})),n.d(a,"RadialGradient",(function(){return nv})),n.d(a,"BoundingRect",(function(){return Kt})),n.d(a,"OrientedBoundingRect",(function(){return lv})),n.d(a,"Point",(function(){return zt})),n.d(a,"Path",(function(){return ps}));var s={};n.r(s),n.d(s,"createList",(function(){return lS})),n.d(s,"getLayoutRect",(function(){return rh})),n.d(s,"createDimensions",(function(){return Ax})),n.d(s,"dataStack",(function(){return uS})),n.d(s,"createSymbol",(function(){return cm})),n.d(s,"createScale",(function(){return cS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return hS})),n.d(s,"getECData",(function(){return Zs})),n.d(s,"enableHoverEmphasis",(function(){return Xl})),n.d(s,"createTextStyle",(function(){return fS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return ui})),n.d(l,"round",(function(){return hi})),n.d(l,"asc",(function(){return fi})),n.d(l,"getPrecision",(function(){return pi})),n.d(l,"getPrecisionSafe",(function(){return di})),n.d(l,"getPixelPrecision",(function(){return gi})),n.d(l,"getPercentWithPrecision",(function(){return vi})),n.d(l,"MAX_SAFE_INTEGER",(function(){return _i})),n.d(l,"remRadian",(function(){return bi})),n.d(l,"isRadianAroundZero",(function(){return xi})),n.d(l,"parseDate",(function(){return Si})),n.d(l,"quantity",(function(){return Oi})),n.d(l,"quantityExponent",(function(){return Mi})),n.d(l,"nice",(function(){return Ti})),n.d(l,"quantile",(function(){return Ci})),n.d(l,"reformIntervals",(function(){return ki})),n.d(l,"isNumeric",(function(){return Di})),n.d(l,"numericToNumber",(function(){return Ii}));var u={};n.r(u),n.d(u,"parse",(function(){return Si})),n.d(u,"format",(function(){return Sc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return gv})),n.d(c,"extendPath",(function(){return yv})),n.d(c,"makePath",(function(){return bv})),n.d(c,"makeImage",(function(){return xv})),n.d(c,"mergePath",(function(){return Sv})),n.d(c,"resizePath",(function(){return Ov})),n.d(c,"createIcon",(function(){return Ev})),n.d(c,"updateProps",(function(){return cu})),n.d(c,"initProps",(function(){return hu})),n.d(c,"getTransform",(function(){return kv})),n.d(c,"clipPointsByRect",(function(){return Lv})),n.d(c,"clipRectByRect",(function(){return Rv})),n.d(c,"registerShape",(function(){return mv})),n.d(c,"getShapeClass",(function(){return _v})),n.d(c,"Group",(function(){return Ur})),n.d(c,"Image",(function(){return xs})),n.d(c,"Text",(function(){return Xs})),n.d(c,"Circle",(function(){return ig})),n.d(c,"Ellipse",(function(){return sg})),n.d(c,"Sector",(function(){return Mg})),n.d(c,"Ring",(function(){return kg})),n.d(c,"Polygon",(function(){return Pg})),n.d(c,"Polyline",(function(){return Eg})),n.d(c,"Rect",(function(){return Ds})),n.d(c,"Line",(function(){return zg})),n.d(c,"BezierCurve",(function(){return Ug})),n.d(c,"Arc",(function(){return Xg})),n.d(c,"IncrementalDisplayable",(function(){return hv})),n.d(c,"CompoundPath",(function(){return Kg})),n.d(c,"LinearGradient",(function(){return tv})),n.d(c,"RadialGradient",(function(){return nv})),n.d(c,"BoundingRect",(function(){return Kt}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Vc})),n.d(h,"toCamelCase",(function(){return Hc})),n.d(h,"normalizeCssArray",(function(){return Wc})),n.d(h,"encodeHTML",(function(){return dt})),n.d(h,"formatTpl",(function(){return qc})),n.d(h,"getTooltipMarker",(function(){return Xc})),n.d(h,"formatTime",(function(){return Zc})),n.d(h,"capitalFirst",(function(){return Kc})),n.d(h,"truncateText",(function(){return Bo})),n.d(h,"getTextRect",(function(){return kS}));var f={};n.r(f),n.d(f,"map",(function(){return M["map"]})),n.d(f,"each",(function(){return M["each"]})),n.d(f,"indexOf",(function(){return M["indexOf"]})),n.d(f,"inherits",(function(){return M["inherits"]})),n.d(f,"reduce",(function(){return M["reduce"]})),n.d(f,"filter",(function(){return M["filter"]})),n.d(f,"bind",(function(){return M["bind"]})),n.d(f,"curry",(function(){return M["curry"]})),n.d(f,"isArray",(function(){return M["isArray"]})),n.d(f,"isString",(function(){return M["isString"]})),n.d(f,"isObject",(function(){return M["isObject"]})),n.d(f,"isFunction",(function(){return M["isFunction"]})),n.d(f,"extend",(function(){return M["extend"]})),n.d(f,"defaults",(function(){return M["defaults"]})),n.d(f,"clone",(function(){return M["clone"]})),n.d(f,"merge",(function(){return M["merge"]}));var p={};n.r(p),n.d(p,"version",(function(){return c_})),n.d(p,"dependencies",(function(){return h_})),n.d(p,"PRIORITY",(function(){return k_})),n.d(p,"init",(function(){return wb})),n.d(p,"connect",(function(){return Sb})),n.d(p,"disconnect",(function(){return Ob})),n.d(p,"disConnect",(function(){return Mb})),n.d(p,"dispose",(function(){return Tb})),n.d(p,"getInstanceByDom",(function(){return Cb})),n.d(p,"getInstanceById",(function(){return kb})),n.d(p,"registerTheme",(function(){return Ib})),n.d(p,"registerPreprocessor",(function(){return Db})),n.d(p,"registerProcessor",(function(){return Ab})),n.d(p,"registerPostInit",(function(){return jb})),n.d(p,"registerPostUpdate",(function(){return Pb})),n.d(p,"registerUpdateLifecycle",(function(){return Lb})),n.d(p,"registerAction",(function(){return Rb})),n.d(p,"registerCoordinateSystem",(function(){return Eb})),n.d(p,"getCoordinateSystemDimensions",(function(){return Nb})),n.d(p,"registerLocale",(function(){return oc})),n.d(p,"registerLayout",(function(){return Bb})),n.d(p,"registerVisual",(function(){return Fb})),n.d(p,"registerLoading",(function(){return Hb})),n.d(p,"setCanvasCreator",(function(){return Wb})),n.d(p,"registerMap",(function(){return Gb})),n.d(p,"getMap",(function(){return Ub})),n.d(p,"registerTransform",(function(){return Yb})),n.d(p,"dataTool",(function(){return qb})),n.d(p,"zrender",(function(){return o})),n.d(p,"matrix",(function(){return i})),n.d(p,"vector",(function(){return r})),n.d(p,"zrUtil",(function(){return M})),n.d(p,"color",(function(){return sn})),n.d(p,"throttle",(function(){return ny})),n.d(p,"helper",(function(){return s})),n.d(p,"use",(function(){return Kb})),n.d(p,"setPlatformAPI",(function(){return br["d"]})),n.d(p,"parseGeoJSON",(function(){return CS})),n.d(p,"parseGeoJson",(function(){return CS})),n.d(p,"number",(function(){return l})),n.d(p,"time",(function(){return u})),n.d(p,"graphic",(function(){return c})),n.d(p,"format",(function(){return h})),n.d(p,"util",(function(){return f})),n.d(p,"env",(function(){return O["a"]})),n.d(p,"List",(function(){return Dx})),n.d(p,"Model",(function(){return Uu})),n.d(p,"Axis",(function(){return ZS})),n.d(p,"ComponentModel",(function(){return hh})),n.d(p,"ComponentView",(function(){return jd})),n.d(p,"SeriesModel",(function(){return Dd})),n.d(p,"ChartView",(function(){return Qv})),n.d(p,"innerDrawElementOnCanvas",(function(){return Ym})),n.d(p,"extendComponentModel",(function(){return KS})),n.d(p,"extendComponentView",(function(){return $S})),n.d(p,"extendSeriesModel",(function(){return QS})),n.d(p,"extendChartView",(function(){return JS}));var d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-container-top"},[e("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无订单"}}),e("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"immediate-check":!1,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadOrderList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(n,r){return e("div",{key:r,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow rounded relative -top-16"},[e("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2"},[e("span",[e("span",{staticClass:"font-bold"},[t._v("工单编号:")]),t._v(t._s(n.order_no))]),e("span",{class:"text-"+n.state_color+" rounded-sm",staticStyle:{width:"3.8rem",height:"100%","text-align":"center",border:"1px solid","border-radius":"5%"}},[t._v(t._s(n.state_name))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("时间:")]),t._v(t._s(n.created_at))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("申请人:")]),t._v(t._s(n.link_name))]),e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("联系电话:")]),e("span",{staticClass:"flex items-center"},[e("span",{staticClass:"pr-2"},[t._v(t._s(n.link_phone))]),e("a",{staticClass:"flex",attrs:{href:"tel:"+n.link_phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)])]),e("div",{staticClass:"pb-1 text-red-600"},[e("span",{staticClass:"font-bold"},[t._v("是否保修:")]),e("span",[t._v(t._s(n.warranty_period))])]),n.leader?e("div",{staticClass:"pb-1 flex items-center text-green-600"},[e("span",{staticClass:"font-bold"},[t._v("工程队长:")]),e("span",{staticClass:"flex items-center"},[e("span",[t._v(t._s(n.leader_info.username))]),n.leader_info.phone?e("span",{staticClass:"flex items-center"},[t._v("("+t._s(n.leader_info.phone)+")"),e("a",{staticClass:"flex items-center",attrs:{href:"tel:"+n.leader_info.phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),n.recent_visit_time?e("div",{staticClass:"pb-1 text-yellow-600"},[e("span",{staticClass:"font-semibold"},[t._v("预计回访:")]),t._v(t._s(n.recent_visit_time))]):t._e(),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修地址:")]),t._v(t._s(n.address))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障类型:")]),t._v(t._s(n.type))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障描述:")]),t._v(t._s(n.content))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障图片:")])]),e("div",{staticClass:"pb-1"}),e("div",{staticClass:"text-right"},[n.auth.check?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingCheck,type:"primary",size:"small"},on:{click:function(e){return t.handleCheck(n.id)}}},[t._v("审核通过")]):t._e(),n.auth.allot?e("van-button",{staticClass:"ml-2",attrs:{type:"info",size:"small",to:"/orders/"+n.id+"/allot"}},[t._v("分配工单")]):t._e(),n.auth.re_allot?e("van-button",{staticClass:"ml-2",attrs:{type:"info",size:"small",to:"/orders/"+n.id+"/allot"}},[t._v("重新分配")]):t._e(),n.auth.delete?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingDelete,type:"danger",size:"small"},on:{click:function(e){return t.handleDelete(n.id)}}},[t._v("删除工单")]):t._e(),n.auth.complete?e("van-button",{staticClass:"ml-2",attrs:{type:"danger",size:"small"},on:{click:function(e){return t.handleComplete(n.id)}}},[t._v("完结工单")]):t._e()],1)])})),0),e("ScrollTop"),e("van-popup",{attrs:{closeable:"",round:"",position:"bottom"},model:{value:t.checkShow,callback:function(e){t.checkShow=e},expression:"checkShow"}},[e("div",{staticClass:"mt-2 text-center leading-10 text-lg"},[t._v("审核通过")]),e("van-field",{attrs:{label:"业主维修时间",placeholder:"请输入业主维修时间"},model:{value:t.checkFrom.remark,callback:function(e){t.$set(t.checkFrom,"remark",e)},expression:"checkFrom.remark"}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:function(e){return t.checkCheck(t.checkFrom.id)}}},[t._v("提交")])],1)],1)},g=[],v=(n("4662"),n("28a2")),y=(n("c975"),n("14d9"),n("a434"),n("e25e"),n("4c10")),m=n("ad7b"),_=n("9d0a"),b=n("ec1b"),x=n.n(b),w=function(t,e){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},w(t,e)};function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var O=n("22d1"),M=n("6d8b");function T(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function C(t,e){return t[0]=e[0],t[1]=e[1],t}function k(t){return[t[0],t[1]]}function I(t,e,n){return t[0]=e,t[1]=n,t}function D(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function A(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function j(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function P(t){return Math.sqrt(R(t))}var L=P;function R(t){return t[0]*t[0]+t[1]*t[1]}var E=R;function N(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function B(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function F(t,e){return t[0]*e[0]+t[1]*e[1]}function z(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function V(t,e){var n=P(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function H(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var W=H;function G(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var U=G;function Y(t,e){return t[0]=-e[0],t[1]=-e[1],t}function q(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function X(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Z(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function K(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var $=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Q=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new $(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new $(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),J=Q,tt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),et=tt,nt=Math.log(2);function rt(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/nt);return t[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var h=0,f=0,p=0;f<s;f++){var d=1<<f;d&i||(h+=(p%2?-1:1)*t[n][f]*rt(t,e-1,c,u,i|d,o),p++)}return o[a]=h,h}function it(t,e){var n=[[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]]],r={},i=rt(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*rt(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var ot="___zrEVENTSAVED",at=[];function st(t,e,n,r,i){return lt(at,e,r,i,!0)&<(t,n,at[0],at[1])}function lt(t,e,n,r,i){if(e.getBoundingClientRect&&O["a"].domSupported&&!ht(e)){var o=e[ot]||(e[ot]={}),a=ut(e,o),s=ct(a,o,i);if(s)return s(t,n,r),!0}return!1}function ut(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function ct(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?it(s,a):it(a,s))}function ht(t){return"CANVAS"===t.nodeName.toUpperCase()}var ft=/([&<>"'])/g,pt={"&":"&","<":"<",">":">",'"':""","'":"'"};function dt(t){return null==t?"":(t+"").replace(ft,(function(t,e){return pt[e]}))}var gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vt=[],yt=O["a"].browser.firefox&&+O["a"].browser.version.split(".")[0]<39;function mt(t,e,n,r){return n=n||{},r?_t(t,e,n):yt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):_t(t,e,n),n}function _t(t,e,n){if(O["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(ht(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(lt(vt,t,r,i))return n.zrX=vt[0],void(n.zrY=vt[1])}n.zrX=n.zrY=0}function bt(t){return t||window.event}function xt(t,e,n){if(e=bt(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&mt(t,o,e,n)}else{mt(t,e,e,n);var a=wt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&>.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function wt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function St(t,e,n,r){t.addEventListener(e,n,r)}function Ot(t,e,n,r){t.removeEventListener(e,n,r)}var Mt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Tt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=mt(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in It)if(It.hasOwnProperty(e)){var n=It[e](this._track,t);if(n)return n}},t}();function Ct(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function kt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var It={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Ct(r)/Ct(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=kt(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Dt(){return[1,0,0,1,0,0]}function At(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function jt(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 Pt(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Lt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Rt(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function Et(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Nt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Bt(t){var e=Dt();return jt(e,t),e}var Ft=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),zt=Ft,Vt=Math.min,Ht=Math.max,Wt=new zt,Gt=new zt,Ut=new zt,Yt=new zt,qt=new zt,Xt=new zt,Zt=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Vt(t.x,this.x),n=Vt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ht(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ht(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Dt();return Lt(i,i,[-e.x,-e.y]),Et(i,i,[n,r]),Lt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(o<l||u<i||s<c||h<a);if(n){var p=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,v),b=Math.min(y,m);o<l||u<i?_>d&&(d=_,g<v?zt.set(Xt,-g,0):zt.set(Xt,v,0)):_<p&&(p=_,g<v?zt.set(qt,g,0):zt.set(qt,-v,0)),s<c||h<a?b>d&&(d=b,y<m?zt.set(Xt,0,-y):zt.set(Xt,0,m)):_<p&&(p=_,y<m?zt.set(qt,0,y):zt.set(qt,0,-m))}return n&&zt.copy(n,f?qt:Xt),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(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 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Wt.x=Ut.x=n.x,Wt.y=Yt.y=n.y,Gt.x=Yt.x=n.x+n.width,Gt.y=Ut.y=n.y+n.height,Wt.transform(r),Yt.transform(r),Gt.transform(r),Ut.transform(r),e.x=Vt(Wt.x,Gt.x,Ut.x,Yt.x),e.y=Vt(Wt.y,Gt.y,Ut.y,Yt.y);var l=Ht(Wt.x,Gt.x,Ut.x,Yt.x),u=Ht(Wt.y,Gt.y,Ut.y,Yt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Kt=Zt,$t="silent";function Qt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Jt}}function Jt(){Mt(this.event)}var te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return S(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(et),ee=function(){function t(t,e){this.x=t,this.y=e}return t}(),ne=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],re=new Kt(0,0,0,0),ie=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new ee(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new te,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new J(a),a}return S(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M["each"](ne,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=se(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new ee(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ee(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Qt(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new ee(t,e);if(ae(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Kt(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(re.copy(c.getBoundingRect()),c.transform&&re.applyTransform(c.transform),re.intersect(l)&&o.push(c))}if(o.length)for(var h=4,f=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=h)for(var g=0;g<p;g+=f){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(ae(o,i,v,y,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Tt);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new ee;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(et);function oe(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||$t}return!1}function ae(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=oe(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==$t)){e.target=a;break}}}function se(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}M["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){ie.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=se(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||W(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var le=ie,ue=32,ce=7;function he(t){var e=0;while(t>=ue)e|=1&t,t>>=1;return t+e}function fe(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;pe(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function pe(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function de(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,l=r;while(s<l)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function ge(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l<s&&o(t,e[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(t,e[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function ve(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(l<s&&o(t,e[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(t,e[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ye(t,e){var n,r,i=ce,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,c(t)}}function c(i){var a=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===o-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),o--;var c=ve(t[l],t,a,s,0,e);a+=c,s-=c,0!==s&&(u=ge(t[a+s-1],t,l,u,u-1,e),0!==u&&(s<=u?h(a,s,l,u):f(a,s,l,u)))}function h(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==r){var f,p,d,g=i;while(1){f=0,p=0,d=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,f=0,0===--s){d=!0;break}}else if(t[h++]=a[u++],f++,p=0,1===--r){d=!0;break}}while((f|p)<g);if(d)break;do{if(f=ve(t[c],a,u,r,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=a[u+l];if(h+=f,u+=f,r-=f,r<=1){d=!0;break}}if(t[h++]=t[c++],0===--s){d=!0;break}if(p=ge(a[u],t,c,s,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,s-=p,0===s){d=!0;break}}if(t[h++]=a[u++],1===--r){d=!0;break}g--}while(f>=ce||p>=ce);if(d)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<r;l++)t[h+l]=a[u+l]}function f(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,f=0,p=0;if(t[h--]=t[u--],0!==--r)if(1!==s){var d=i;while(1){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<d);if(y)break;do{if(g=r-ve(a[c],t,n,r,r-1,e),0!==g){for(h-=g,u-=g,r-=g,p=h+1,f=u+1,l=g-1;l>=0;l--)t[p+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(v=s-ge(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,p=h+1,f=c+1,l=0;l<v;l++)t[p+l]=a[f+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}d--}while(g>=ce||v>=ce);if(y)break;d<0&&(d=0),d+=2}if(i=d,i<1&&(i=1),1===s){for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else{if(0===s)throw new Error;for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l]}}else{for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l]}return n=[],r=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function me(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<ue)return o=fe(t,n,r,e),void de(t,n,r,n+o,e);var a=ye(t,e),s=he(i);do{if(o=fe(t,n,r,e),o<s){var l=i;l>s&&(l=s),de(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var _e=1,be=2,xe=4,we=!1;function Se(){we||(we=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Oe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Me,Te=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Oe}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,me(n,Oe)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=_e),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Se(),u.z=0),isNaN(u.z2)&&(Se(),u.z2=0),isNaN(u.zlevel)&&(Se(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},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;e<n;e++)this.delRoot(t[e]);else{var r=M["indexOf"](this._roots,t);r>=0&&this._roots.splice(r,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}(),Ce=Te;Me=O["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ke=Me,Ie={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*(2-Math.pow(2,-10*(t-1)))},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,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ie.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ie.bounceIn(2*t):.5*Ie.bounceOut(2*t-1)+.5}},De=Ie,Ae=Math.pow,je=Math.sqrt,Pe=1e-8,Le=1e-4,Re=je(3),Ee=1/3,Ne=T(),Be=T(),Fe=T();function ze(t){return t>-Pe&&t<Pe}function Ve(t){return t>Pe||t<-Pe}function He(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function We(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Ge(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,p=0;if(ze(c)&&ze(h))if(ze(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[p++]=d)}else{var g=h*h-4*c*f;if(ze(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=je(g),_=c*s+1.5*a*(-h+m),b=c*s+1.5*a*(-h-m);_=_<0?-Ae(-_,Ee):Ae(_,Ee),b=b<0?-Ae(-b,Ee):Ae(b,Ee);d=(-s-(_+b))/(3*a);d>=0&&d<=1&&(o[p++]=d)}else{var x=(2*c*s-3*a*h)/(2*je(c*c*c)),w=Math.acos(x)/3,S=je(c),O=Math.cos(w),M=(d=(-s-2*S*O)/(3*a),y=(-s+S*(O+Re*Math.sin(w)))/(3*a),(-s+S*(O-Re*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y),M>=0&&M<=1&&(o[p++]=M)}}return p}function Ue(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ze(a)){if(Ve(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ze(c))i[0]=-o/(2*a);else if(c>0){var h=je(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Ye(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function qe(t,e,n,r,i,o,a,s,l,u,c){var h,f,p,d,g,v=.005,y=1/0;Ne[0]=l,Ne[1]=u;for(var m=0;m<1;m+=.05)Be[0]=He(t,n,i,a,m),Be[1]=He(e,r,o,s,m),d=U(Ne,Be),d<y&&(h=m,y=d);y=1/0;for(var _=0;_<32;_++){if(v<Le)break;f=h-v,p=h+v,Be[0]=He(t,n,i,a,f),Be[1]=He(e,r,o,s,f),d=U(Be,Ne),f>=0&&d<y?(h=f,y=d):(Fe[0]=He(t,n,i,a,p),Fe[1]=He(e,r,o,s,p),g=U(Fe,Ne),p<=1&&g<y?(h=p,y=g):v*=.5)}return c&&(c[0]=He(t,n,i,a,h),c[1]=He(e,r,o,s,h)),je(y)}function Xe(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;p<=l;p++){var d=p*f,g=He(t,n,i,a,d),v=He(e,r,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Ze(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function Ke(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function $e(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(ze(o)){if(Ve(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ze(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=je(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Qe(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Je(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function tn(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Ne[0]=a,Ne[1]=s;for(var f=0;f<1;f+=.05){Be[0]=Ze(t,n,i,f),Be[1]=Ze(e,r,o,f);var p=U(Ne,Be);p<h&&(u=f,h=p)}h=1/0;for(var d=0;d<32;d++){if(c<Le)break;var g=u-c,v=u+c;Be[0]=Ze(t,n,i,g),Be[1]=Ze(e,r,o,g);p=U(Be,Ne);if(g>=0&&p<h)u=g,h=p;else{Fe[0]=Ze(t,n,i,v),Fe[1]=Ze(e,r,o,v);var y=U(Fe,Ne);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Ze(t,n,i,u),l[1]=Ze(e,r,o,u)),je(h)}function en(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var f=h*c,p=Ze(t,n,i,f),d=Ze(e,r,o,f),g=p-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=p,l=d}return u}var nn=/cubic-bezier\(([0-9,\.e ]+)\)/;function rn(t){var e=t&&nn.exec(t);if(e){var n=e[1].split(","),r=+Object(M["trim"])(n[0]),i=+Object(M["trim"])(n[1]),o=+Object(M["trim"])(n[2]),a=+Object(M["trim"])(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Ge(0,r,o,1,t,s)&&He(0,i,a,1,s[0])}}}var on=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||M["noop"],this.ondestroy=t.ondestroy||M["noop"],this.onrestart=t.onrestart||M["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(M["isFunction"])(t)?t:De[t]||rn(t)},t}(),an=on,sn=n("41ef"),ln=n("7a29"),un=Array.prototype.slice;function cn(t,e,n){return(e-t)*n+t}function hn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=cn(e[o],n[o],r);return t}function fn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=cn(e[a][s],n[a][s],r)}return t}function pn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function dn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function gn(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function vn(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:un.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function yn(t){if(Object(M["isArrayLike"])(t)){var e=t.length;if(Object(M["isArrayLike"])(t[0])){for(var n=[],r=0;r<e;r++)n.push(un.call(t[r]));return n}return un.call(t)}return t}function mn(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]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function _n(t){return Object(M["isArrayLike"])(t&&t[0])?2:1}var bn=0,xn=1,wn=2,Sn=3,On=4,Mn=5,Tn=6;function Cn(t){return t===On||t===Mn}function kn(t){return t===xn||t===wn}var In=[0,0,0,0],Dn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Tn,s=e;if(Object(M["isArrayLike"])(e)){var l=_n(e);a=l,(1===l&&!Object(M["isNumber"])(e[0])||2===l&&!Object(M["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(M["isNumber"])(e)&&!Object(M["eqNaN"])(e))a=bn;else if(Object(M["isString"])(e))if(isNaN(+e)){var u=sn["parse"](e);u&&(s=u,a=Sn)}else a=bn;else if(Object(M["isGradientObject"])(e)){var c=Object(M["extend"])({},s);c.colorStops=Object(M["map"])(e.colorStops,(function(t){return{offset:t.offset,color:sn["parse"](t.color)}})),Object(ln["a"])(e)?a=On:Object(ln["b"])(e)&&(a=Mn),s=c}0===i?this.valType=a:a===this.valType&&a!==Tn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(M["isFunction"])(n)?n:De[n]||rn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=kn(r),l=Cn(r),u=0;u<i;u++){var c=n[u],h=c.value,f=o.value;c.percent=c.time/t,a||(s&&u!==i-1?vn(h,f,r):l&&gn(h.colorStops,f.colorStops))}if(!a&&r!==Mn&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)r===bn?n[u].additiveValue=n[u].value-p:r===Sn?n[u].additiveValue=pn([],n[u].value,p,-1):kn(r)&&(n[u].additiveValue=r===xn?pn([],n[u].value,p,-1):dn([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===Sn,f=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var d=p(f+1,u-1);for(n=d;n>=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=f;n<u;n++)if(l[n].percent>e)break;n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?In:t[c];if(!kn(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(kn(s))s===xn?hn(y,r[a],i[a],v):fn(y,r[a],i[a],v);else if(Cn(s)){var m=r[a],_=i[a],b=s===On;t[c]={type:b?"linear":"radial",x:cn(m.x,_.x,v),y:cn(m.y,_.y,v),colorStops:Object(M["map"])(m.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:cn(t.offset,n.offset,v),color:mn(hn([],t.color,n.color,v))}})),global:_.global},b?(t[c].x2=cn(m.x2,_.x2,v),t[c].y2=cn(m.y2,_.y2,v)):t[c].r=cn(m.r,_.r,v)}else if(h)hn(y,r[a],i[a],v),o||(t[c]=mn(y));else{var x=cn(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===bn?t[n]=t[n]+r:e===Sn?(sn["parse"](t[n],In),pn(In,In,r,1),t[n]=mn(In)):e===xn?pn(t[n],t[n],r,1):e===wn&&dn(t[n],t[n],r,1)},t}(),An=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(M["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}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(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(M["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Dn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===Sn&&l&&(l=mn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,yn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,yn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new an({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(M["map"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=yn(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(M["keys"])(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),jn=An;function Pn(){return(new Date).getTime()}var Ln=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return S(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Pn()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(ke(e),!t._paused&&t.update())}this._running=!0,ke(e)},e.prototype.start=function(){this._running||(this._time=Pn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Pn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Pn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new jn(t,e.loop);return this.addAnimator(n),n},e}(et),Rn=Ln,En=300,Nn=O["a"].domSupported,Bn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=M["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Fn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zn=!1;function Vn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Hn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Wn(t){t&&(t.zrByTouch=!0)}function Gn(t,e){return xt(t.dom,new Yn(t,e),!0)}function Un(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Yn=function(){function t(t,e){this.stopPropagation=M["noop"],this.stopImmediatePropagation=M["noop"],this.preventDefault=M["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),qn={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(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=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=xt(this.dom,t);var e=t.toElement||t.relatedTarget;Un(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){zn=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){zn||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=xt(this.dom,t),Wn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qn.mousemove.call(this,t),qn.mousedown.call(this,t)},touchmove:function(t){t=xt(this.dom,t),Wn(t),this.handler.processGesture(t,"change"),qn.mousemove.call(this,t)},touchend:function(t){t=xt(this.dom,t),Wn(t),this.handler.processGesture(t,"end"),qn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<En&&qn.click.call(this,t)},pointerdown:function(t){qn.mousedown.call(this,t)},pointermove:function(t){Vn(t)||qn.mousemove.call(this,t)},pointerup:function(t){qn.mouseup.call(this,t)},pointerout:function(t){Vn(t)||qn.mouseout.call(this,t)}};M["each"](["click","dblclick","contextmenu"],(function(t){qn[t]=function(e){e=xt(this.dom,e),this.trigger(t,e)}}));var Xn={pointermove:function(t){Vn(t)||Xn.mousemove.call(this,t)},pointerup:function(t){Xn.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 Zn(t,e){var n=e.domHandlers;O["a"].pointerEventsSupported?M["each"](Bn.pointer,(function(r){$n(e,r,(function(e){n[r].call(t,e)}))})):(O["a"].touchEventsSupported&&M["each"](Bn.touch,(function(r){$n(e,r,(function(i){n[r].call(t,i),Hn(e)}))})),M["each"](Bn.mouse,(function(r){$n(e,r,(function(i){i=bt(i),e.touching||n[r].call(t,i)}))})))}function Kn(t,e){function n(n){function r(r){r=bt(r),Un(t,r.target)||(r=Gn(t,r),e.domHandlers[n].call(t,r))}$n(e,n,r,{capture:!0})}O["a"].pointerEventsSupported?M["each"](Fn.pointer,n):O["a"].touchEventsSupported||M["each"](Fn.mouse,n)}function $n(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,St(t.domTarget,e,n,r)}function Qn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ot(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Jn=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),tr=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Jn(e,qn),Nn&&(r._globalHandlerScope=new Jn(document,Xn)),Zn(r,r._localHandlerScope),r}return S(e,t),e.prototype.dispose=function(){Qn(this._localHandlerScope),Nn&&Qn(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Nn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Kn(this,e):Qn(e)}},e}(et),er=tr,nr=1;O["a"].hasGlobalWindow&&(nr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var rr=nr,ir=.4,or="#333",ar="#ccc",sr="#eee",lr=At,ur=5e-5;function cr(t){return t>ur||t<-ur}var hr=[],fr=[],pr=Dt(),dr=Math.abs,gr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return cr(this.rotation)||cr(this.x)||cr(this.y)||cr(this.scaleX-1)||cr(this.scaleY-1)||cr(this.skewX)||cr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Dt(),e?this.getLocalTransform(n):lr(n),t&&(e?Pt(n,t,n):jt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(lr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(hr);var n=hr[0]<0?-1:1,r=hr[1]<0?-1:1,i=((hr[0]-n)*e+n)/hr[0]||0,o=((hr[1]-r)*e+r)/hr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Dt(),Nt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dt(),Pt(fr,t.invTransform,e),e=fr);var n=this.originX,r=this.originY;(n||r)&&(pr[4]=n,pr[5]=r,Pt(fr,e,pr),fr[4]-=n,fr[5]-=r,e=fr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&X(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&X(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&dr(t[0]-1)>1e-10&&dr(t[3]-1)>1e-10?Math.sqrt(dr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){yr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-h*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&Rt(e,e,l),e[4]+=n+u,e[5]+=r+c,e},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}(),vr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yr(t,e){for(var n=0;n<vr.length;n++){var r=vr[n];t[r]=e[r]}}var mr=gr,_r=n("d51b"),br=n("726e"),xr={};function wr(t,e){e=e||br["a"];var n=xr[e];n||(n=xr[e]=new _r["a"](500));var r=n.get(t);return null==r&&(r=br["c"].measureText(t,e).width,n.put(t,r)),r}function Sr(t,e,n,r){var i=wr(t,e),o=Cr(e),a=Mr(0,i,n),s=Tr(0,o,r),l=new Kt(a,s,i,o);return l}function Or(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Sr(i[0],e,n,r);for(var a=new Kt(0,0,0,0),s=0;s<i.length;s++){var l=Sr(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function Mr(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Tr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Cr(t){return wr("国",t)}function kr(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ir(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=kr(r[0],n.width),u+=kr(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Dr="__zr_normal__",Ar=vr.concat(["ignore"]),jr=Object(M["reduce"])(vr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Pr={},Lr=new Kt(0,0,0,0),Rr=function(){function t(t){this.id=Object(M["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,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(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=Lr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pr,n,u):Ir(Pr,n,u),i.x=Pr.x,i.y=Pr.y,o=Pr.align,a=Pr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=kr(c[0],u.width),f=kr(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=_e,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ar:or},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(sn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(sn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},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||{},Object(M["extend"])(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(Object(M["isObject"])(t))for(var n=t,r=Object(M["keys"])(n),i=0;i<r.length;i++){var o=r[i];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 r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Dr)){var o=r.targetName,a=o?e[o]:e;r.saveTo(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,Ar)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},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(Dr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===Dr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(M["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_e),l}Object(M["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_e)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},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=Object(M["indexOf"])(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 r=this.currentStates.slice(),i=Object(M["indexOf"])(r,t),o=Object(M["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(M["extend"])(n,i),i.textConfig&&(e=e||{},Object(M["extend"])(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(M["extend"])({},r?this.textConfig:n.textConfig),Object(M["extend"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ar.length;u++){var c=Ar[u],h=i&&jr[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var f=this.animators[u],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new mr,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(M["extend"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=_e;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new jn(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(M["indexOf"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Er(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Er(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Er(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},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.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=_e;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Er(t,e,n,r,i){n=n||{};var o=[];Hr(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f<o.length;f++){var p=o[f];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Nr(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Br(t){return Object(M["isArrayLike"])(t[0])}function Fr(t,e,n){if(Object(M["isArrayLike"])(e[n]))if(Object(M["isArrayLike"])(t[n])||(t[n]=[]),Object(M["isTypedArray"])(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Nr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Br(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?Nr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Nr(o,i,a);o.length=i.length}else t[n]=e[n]}function zr(t,e){return t===e||Object(M["isArrayLike"])(t)&&Object(M["isArrayLike"])(e)&&Vr(t,e)}function Vr(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Hr(t,e,n,r,i,o,a,s){for(var l=Object(M["keys"])(r),u=i.duration,c=i.delay,h=i.additive,f=i.setToFinal,p=!Object(M["isObject"])(o),d=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=r[y];if(null!=m&&null!=n[y]&&(p||o[y]))if(!Object(M["isObject"])(m)||Object(M["isArrayLike"])(m)||Object(M["isGradientObject"])(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Hr(t,y,n[y],m,i,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<d.length;b++){var x=d[b];if(x.targetName===e){var w=x.stopTracks(g);if(w){var S=Object(M["indexOf"])(d,x);d.splice(S,1)}}}if(i.force||(g=Object(M["filter"])(g,(function(t){return!zr(r[t],n[t])})),_=g.length),_>0||i.force&&!a.length){var O=void 0,T=void 0,C=void 0;if(s){T={},f&&(O={});for(b=0;b<_;b++){y=g[b];T[y]=n[y],f?O[y]=r[y]:n[y]=r[y]}}else if(f){C={};for(b=0;b<_;b++){y=g[b];C[y]=yn(n[y]),Fr(n,r,y)}}x=new jn(n,!1,!1,h?Object(M["filter"])(d,(function(t){return t.targetName===e})):null);x.targetName=e,i.scope&&(x.scope=i.scope),f&&O&&x.whenWithKeys(0,O,g),C&&x.whenWithKeys(0,C,g),x.whenWithKeys(null==u?500:u,s?T:r,g).delay(c||0),t.addAnimator(x,e),a.push(x)}}Object(M["mixin"])(Rr,et),Object(M["mixin"])(Rr,mr);var Wr=Rr,Gr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return S(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=M["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=M["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Kt(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Kt.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(Wr);Gr.prototype.type="group";var Ur=Gr,Yr={},qr={};
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */function Xr(t){delete qr[t]}function Zr(t){if(!t)return!1;if("string"===typeof t)return Object(sn["lum"])(t,1)<ir;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(sn["lum"])(e[i].color,1);return n/=r,n<ir}return!1}var Kr,$r=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Ce,o=n.renderer||"canvas";Yr[o]||(o=M["keys"](Yr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Yr[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=O["a"].node||O["a"].worker||s?null:new er(a.getViewportRoot(),a.root),c=n.useCoarsePointer,h=null==c||"auto"===c?O["a"].touchEventsSupported:!!c,f=44;h&&(l=M["retrieve2"](n.pointerSize,f)),this.handler=new le(i,a,u,a.root,l),this.animation=new Rn({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Zr(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=Pn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Pn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ur&&t[e].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,Xr(this.id))},t}();function Qr(t,e){var n=new $r(M["guid"](),t,e);return qr[n.id]=n,n}function Jr(t){t.dispose()}function ti(){for(var t in qr)qr.hasOwnProperty(t)&&qr[t].dispose();qr={}}function ei(t){return qr[t]}function ni(t,e){Yr[t]=e}function ri(t){if("function"===typeof Kr)return Kr(t)}function ii(t){Kr=t}var oi="5.6.0",ai=1e-4,si=20;function li(t){return t.replace(/^\s+|\s+$/g,"")}function ui(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function ci(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return M["isString"](t)?li(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function hi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),si),t=(+t).toFixed(e),n?t:+t}function fi(t){return t.sort((function(t,e){return t-e})),t}function pi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return di(t)}function di(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function gi(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function vi(t,e,n){if(!t[e])return 0;var r=yi(t,n);return r[e]||0}function yi(t,e){var n=M["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=M["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=M["map"](i,(function(t){return Math.floor(t)})),s=M["reduce"](a,(function(t,e){return t+e}),0),l=M["map"](i,(function(t,e){return t-a[e]}));while(s<o){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return M["map"](a,(function(t){return t/r}))}function mi(t,e){var n=Math.max(pi(t),pi(e)),r=t+e;return n>si?r:hi(r,n)}var _i=9007199254740991;function bi(t){var e=2*Math.PI;return(t%e+e)%e}function xi(t){return t>-ai&&t<ai}var wi=/^(?:(\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 Si(t){if(t instanceof Date)return t;if(M["isString"](t)){var e=wi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}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)}return null==t?new Date(NaN):new Date(Math.round(t))}function Oi(t){return Math.pow(10,Mi(t))}function Mi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ti(t,e){var n,r=Mi(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function Ci(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function ki(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function Ii(t){var e=parseFloat(t);return e==t&&(0!==e||!M["isString"](t)||t.indexOf("x")<=0)?e:NaN}function Di(t){return!isNaN(Ii(t))}function Ai(){return Math.round(9*Math.random())}function ji(t,e){return 0===e?t:ji(e,t%e)}function Pi(t,e){return null==t?e:null==e?t:t*e/ji(t,e)}function Li(t,e,n){return(e-t)*n+t}var Ri="series\0",Ei="\0_ec_\0";function Ni(t){return t instanceof Array?t:null==t?[]:[t]}function Bi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Fi=["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 zi(t){return!Object(M["isObject"])(t)||Object(M["isArray"])(t)||t instanceof Date?t:t.value}function Vi(t){return Object(M["isObject"])(t)&&!(t instanceof Array)}function Hi(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(M["createHashMap"])();Object(M["each"])(e,(function(t,n){Object(M["isObject"])(t)||(e[n]=null)}));var s=Wi(t,a,n);return(r||i)&&Gi(s,t,a,e),r&&Ui(s,e),r||i?Yi(s,e,i):o&&qi(s,e),Xi(s),s}function Wi(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Ji(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Gi(t,e,n,r){Object(M["each"])(r,(function(i,o){if(i&&null!=i.id){var a=Ki(i.id),s=n.get(a);if(null!=s){var l=t[s];Object(M["assert"])(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}function Ui(t,e){Object(M["each"])(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Ji(n)&&!Ji(o)&&Zi("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function Yi(t,e,n){Object(M["each"])(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||Ji(r.existing)||r.existing&&null!=e.id&&!Zi("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function qi(t,e){Object(M["each"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Xi(t){var e=Object(M["createHashMap"])();Object(M["each"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(M["each"])(t,(function(t){var n=t.newOption;Object(M["assert"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(M["each"])(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(Object(M["isObject"])(i)){if(o.name=null!=i.name?Ki(i.name):r?r.name:Ri+n,r)o.id=Ki(r.id);else if(null!=i.id)o.id=Ki(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Zi(t,e,n){var r=$i(e[t],null),i=$i(n[t],null);return null!=r&&null!=i&&r===i}function Ki(t){return $i(t,"")}function $i(t,e){return null==t?e:Object(M["isString"])(t)?t:Object(M["isNumber"])(t)||Object(M["isStringSafe"])(t)?t+"":e}function Qi(t){var e=t.name;return!(!e||!e.indexOf(Ri))}function Ji(t){return t&&null!=t.id&&0===Ki(t.id).indexOf(Ei)}function to(t,e,n){Object(M["each"])(t,(function(t){var r=t.newOption;Object(M["isObject"])(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=eo(e,r,t.existing,n))}))}function eo(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function no(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(M["isArray"])(e.dataIndex)?Object(M["map"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(M["isArray"])(e.name)?Object(M["map"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function ro(){var t="__ec_inner_"+io++;return function(e){return e[t]||(e[t]={})}}var io=Ai();function oo(t,e,n){var r=ao(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=lo(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function ao(t,e){var n;if(Object(M["isString"])(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(M["createHashMap"])(),o={},a=!1;return Object(M["each"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(M["indexOf"])(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var so={useDefault:!0,enableAll:!1,enableNone:!1};function lo(t,e,n,r){r=r||so;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Object(M["assert"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(M["assert"])(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function uo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function co(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ho(t){return"auto"===t?O["a"].domSupported?"html":"richText":t||"html"}function fo(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Object(M["isNumber"])(r)){var a=Li(n||0,r,i);return hi(a,o?Math.max(pi(n||0),pi(r)):e)}if(Object(M["isString"])(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var f=t.getDimensionInfo(h);if(f&&"ordinal"===f.type)s[h]=(i<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,d=u[h];a=Li(p,d,i);s[h]=hi(a,o?Math.max(pi(p),pi(d)):e)}}return s}var po=".",go="___EC__COMPONENT__CONTAINER___",vo="___EC__EXTENDED_CLASS___";function yo(t){var e={main:"",sub:""};if(t){var n=t.split(po);e.main=n[0]||"",e.sub=n[1]||""}return e}function mo(t){M["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function _o(t){return!(!t||!t[vo])}function bo(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return xo(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return S(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},M["inherits"](e,this)),M["extend"](e.prototype,t),e[vo]=!0,e.extend=this.extend,e.superCall=Mo,e.superApply=To,e.superClass=n,e}}function xo(t){return M["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function wo(t,e){t.extend=e.extend}var So=Math.round(10*Math.random());function Oo(t){var e=["__\0is_clz",So++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Mo(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function To(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Co(t){var e={};function n(t){var n=e[t.main];return n&&n[go]||(n=e[t.main]={},n[go]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){mo(r),t.prototype.type=r;var i=yo(r);if(i.sub){if(i.sub!==go){var o=n(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[go]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=yo(t),r=[],i=e[n.main];return i&&i[go]?M["each"](i,(function(t,e){e!==go&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=yo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return M["each"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=yo(t),r=e[n.main];return r&&r[go]}}function ko(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&M["indexOf"](r,s)>=0||i&&M["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Io=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Do=ko(Io),Ao=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Do(this,t,e)},t}(),jo=new _r["a"](50);function Po(t){if("string"===typeof t){var e=jo.get(t);return e&&e.image}return t}function Lo(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=jo.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Eo(e)&&o.pending.push(a)):(e=br["c"].loadImage(t,Ro,Ro),e.__zrImageSrc=t,jo.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ro(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Eo(t){return t&&t.width&&t.height}var No=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Bo(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Fo(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=zo(o[a],i);return o.join("\n")}function Fo(t,e,n,r){r=r||{};var i=Object(M["extend"])({},r);i.font=e,n=Object(M["retrieve2"])(n,"..."),i.maxIterations=Object(M["retrieve2"])(r.maxIterations,2);var o=i.minChar=Object(M["retrieve2"])(r.minChar,0);i.cnCharWidth=wr("国",e);var a=i.ascCharWidth=wr("a",e);i.placeholder=Object(M["retrieve2"])(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=wr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function zo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=wr(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Vo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=wr(t,r)}return""===t&&(t=e.placeholder),t}function Vo(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Ho(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Cr(o),l=Object(M["retrieve2"])(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width;n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?$o(t,e.font,h,"breakAll"===r,0).lines:[];var f=n.length*l,p=Object(M["retrieve2"])(e.height,f);if(f>p&&c){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=h)for(var g=Fo(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=zo(n[v],g);var y=p,m=0;for(v=0;v<n.length;v++)m=Math.max(wr(n[v],o),m);null==h&&(h=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],h+=i[1]+i[3]),u&&(_=h),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:f,width:h}}var Wo=function(){function t(){}return t}(),Go=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Uo=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Yo(t,e){var n=new Uo;if(null!=t&&(t+=""),!t)return n;var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=No.lastIndex=0;while(null!=(r=No.exec(t))){var u=r.index;u>l&&qo(n,t.substring(l,u),e,s),qo(n,r[2],e,s,r[1]),l=No.lastIndex}l<t.length&&qo(n,t.substring(l,t.length),e,s);var c=[],h=0,f=0,p=e.padding,d="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,f=Math.max(f,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,b=0,x=0;x<m.tokens.length;x++){var w=m.tokens[x],S=w.styleName&&e.rich[w.styleName]||{},O=w.textPadding=S.padding,T=O?O[1]+O[3]:0,C=w.font=S.font||e.font;w.contentHeight=Cr(C);var k=Object(M["retrieve2"])(S.height,w.contentHeight);if(w.innerHeight=k,O&&(k+=O[0]+O[2]),w.height=k,w.lineHeight=Object(M["retrieve3"])(S.lineHeight,e.lineHeight,k),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){x>0?(m.tokens=m.tokens.slice(0,x),v(m,b,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var I=S.width,D=null==I||"auto"===I;if("string"===typeof I&&"%"===I.charAt(I.length-1))w.percentWidth=I,c.push(w),w.contentWidth=wr(w.text,C);else{if(D){var A=S.backgroundColor,j=A&&A.image;j&&(j=Po(j),Eo(j)&&(w.width=Math.max(w.width,j.width*k/j.height)))}var P=d&&null!=i?i-b:null;null!=P&&P<w.width?!D||P<T?(w.text="",w.width=w.contentWidth=0):(w.text=Bo(w.text,P-T,C,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=wr(w.text,C)):w.contentWidth=wr(w.text,C)}w.width+=T,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}v(m,b,_)}n.outerWidth=n.width=Object(M["retrieve2"])(i,f),n.outerHeight=n.height=Object(M["retrieve2"])(o,h),n.contentHeight=h,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(y=0;y<c.length;y++){w=c[y];var L=w.percentWidth;w.width=parseInt(L,10)/100*n.width}return n}function qo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=kr(l.width,r.width)+p;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=$o(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Wo;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:wr(y,c),v||h)u.push(new Go([m]));else{var _=(u[u.length-1]||(u[0]=new Go)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=m:(y||!b||s)&&_.push(m)}}}function Xo(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Zo=Object(M["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ko(t){return!Xo(t)||!!Zo[t]}function $o(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var f=t.charAt(h);if("\n"!==f){var p=wr(f,e),d=!r&&!Ko(f);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Qo="__zr_style_"+Math.round(10*Math.random()),Jo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Jo[Qo]=!0;var ea=["z","z2","invisible"],na=["invisible"],ra=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype._init=function(e){for(var n=Object(M["keys"])(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&aa(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Kt(0,0,0,0)),e?Kt.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Kt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(M["extend"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=be,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&be)},e.prototype.styleUpdated=function(){this.__dirty&=~be},e.prototype.createStyle=function(t){return Object(M["createObject"])(Jo,t)},e.prototype.useStyle=function(t){t[Qo]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Qo]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ea)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Object(M["keys"])(u),h=0;h<c.length;h++){var f=c[h];f in s&&(s[f]=s[f],this.style[f]=u[f])}var p=Object(M["keys"])(s);for(h=0;h<p.length;h++){f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var d=this.__inHover?na:ea;for(h=0;h<d.length;h++){f=d[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(M["extend"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return ta},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=_e|be}(),e}(Wr),ia=new Kt(0,0,0,0),oa=new Kt(0,0,0,0);function aa(t,e,n){return ia.copy(t.getBoundingRect()),t.transform&&ia.applyTransform(t.transform),oa.width=e,oa.height=n,!ia.intersect(oa)}var sa=ra,la=Math.min,ua=Math.max,ca=Math.sin,ha=Math.cos,fa=2*Math.PI,pa=T(),da=T(),ga=T();function va(t,e,n,r,i,o){i[0]=la(t,n),i[1]=la(e,r),o[0]=ua(t,n),o[1]=ua(e,r)}var ya=[],ma=[];function _a(t,e,n,r,i,o,a,s,l,u){var c=Ue,h=He,f=c(t,n,i,a,ya);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<f;p++){var d=h(t,n,i,a,ya[p]);l[0]=la(d,l[0]),u[0]=ua(d,u[0])}f=c(e,r,o,s,ma);for(p=0;p<f;p++){var g=h(e,r,o,s,ma[p]);l[1]=la(g,l[1]),u[1]=ua(g,u[1])}l[0]=la(t,l[0]),u[0]=ua(t,u[0]),l[0]=la(a,l[0]),u[0]=ua(a,u[0]),l[1]=la(e,l[1]),u[1]=ua(e,u[1]),l[1]=la(s,l[1]),u[1]=ua(s,u[1])}function ba(t,e,n,r,i,o,a,s){var l=Qe,u=Ze,c=ua(la(l(t,n,i),1),0),h=ua(la(l(e,r,o),1),0),f=u(t,n,i,c),p=u(e,r,o,h);a[0]=la(t,i,f),a[1]=la(e,o,p),s[0]=ua(t,i,f),s[1]=ua(e,o,p)}function xa(t,e,n,r,i,o,a,s,l){var u=Z,c=K,h=Math.abs(i-o);if(h%fa<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(pa[0]=ha(i)*n+t,pa[1]=ca(i)*r+e,da[0]=ha(o)*n+t,da[1]=ca(o)*r+e,u(s,pa,da),c(l,pa,da),i%=fa,i<0&&(i+=fa),o%=fa,o<0&&(o+=fa),i>o&&!a?o+=fa:i<o&&a&&(i+=fa),a){var f=o;o=i,i=f}for(var p=0;p<o;p+=Math.PI/2)p>i&&(ga[0]=ha(p)*n+t,ga[1]=ca(p)*r+e,u(s,ga,s),c(l,ga,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],Oa=[],Ma=[],Ta=[],Ca=[],ka=[],Ia=Math.min,Da=Math.max,Aa=Math.cos,ja=Math.sin,Pa=Math.abs,La=Math.PI,Ra=2*La,Ea="undefined"!==typeof Float32Array,Na=[];function Ba(t){var e=Math.round(t/La*1e8)/1e8;return e%2*La}function Fa(t,e){var n=Ba(t[0]);n<0&&(n+=Ra);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ra?i=n+Ra:e&&n-i>=Ra?i=n-Ra:!e&&n>i?i=n+(Ra-Ba(n-i)):e&&n<i&&(i=n-(Ra-Ba(i-n))),t[0]=n,t[1]=i}var za=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(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(t,e,n){n=n||0,n>0&&(this._ux=Pa(n/rr/t)||0,this._uy=Pa(n/rr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},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(t,e){return this._drawPendingPt(),this.addData(wa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Pa(t-this._xi),r=Pa(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(wa.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Na[0]=r,Na[1]=i,Fa(Na,o),r=Na[0],i=Na[1];var a=i-r;return this.addData(wa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Aa(i)*n+t,this._yi=ja(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(wa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ea||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ea&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[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 t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ea&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ma[0]=Ma[1]=Ca[0]=Ca[1]=Number.MAX_VALUE,Ta[0]=Ta[1]=ka[0]=ka[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case wa.M:n=i=e[t++],r=o=e[t++],Ca[0]=i,Ca[1]=o,ka[0]=i,ka[1]=o;break;case wa.L:va(n,r,e[t],e[t+1],Ca,ka),n=e[t++],r=e[t++];break;case wa.C:_a(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ca,ka),n=e[t++],r=e[t++];break;case wa.Q:ba(n,r,e[t++],e[t++],e[t],e[t+1],Ca,ka),n=e[t++],r=e[t++];break;case wa.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(i=Aa(f)*c+l,o=ja(f)*h+u),xa(l,u,c,h,f,p,d,Ca,ka),n=Aa(p)*c+l,r=ja(p)*h+u;break;case wa.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];va(i,o,i+g,o+v,Ca,ka);break;case wa.Z:n=i,r=o;break}Z(Ma,Ma,Ca),K(Ta,Ta,ka)}return 0===t&&(Ma[0]=Ma[1]=Ta[0]=Ta[1]=0),new Kt(Ma[0],Ma[1],Ta[0]-Ma[0],Ta[1]-Ma[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var f=t[h++],p=1===h;p&&(i=t[h],o=t[h+1],a=i,s=o);var d=-1;switch(f){case wa.M:i=a=t[h++],o=s=t[h++];break;case wa.L:var g=t[h++],v=t[h++],y=g-i,m=v-o;(Pa(y)>n||Pa(m)>r||h===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case wa.C:var _=t[h++],b=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=Xe(i,o,_,b,g,v,x,w,10),i=x,o=w;break;case wa.Q:_=t[h++],b=t[h++],g=t[h++],v=t[h++];d=en(i,o,_,b,g,v,10),i=g,o=v;break;case wa.A:var S=t[h++],O=t[h++],M=t[h++],T=t[h++],C=t[h++],k=t[h++],I=k+C;h+=1,p&&(a=Aa(C)*M+S,s=ja(C)*T+O),d=Da(M,T)*Ia(Ra,Math.abs(k)),i=Aa(I)*M+S,o=ja(I)*T+O;break;case wa.R:a=i=t[h++],s=o=t[h++];var D=t[h++],A=t[h++];d=2*D+2*A;break;case wa.Z:y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,b=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x<v;){var w=p[x++],S=1===x;switch(S&&(i=p[x],o=p[x+1],n=i,r=o),w!==wa.L&&b>0&&(t.lineTo(h,f),b=0),w){case wa.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case wa.L:a=p[x++],s=p[x++];var O=Pa(a-i),M=Pa(s-o);if(O>d||M>g){if(y){var T=l[_++];if(m+T>c){var C=(c-m)/T;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),i=a,o=s,b=0}else{var k=O*O+M*M;k>b&&(h=a,f=s,b=k)}break;case wa.C:var I=p[x++],D=p[x++],A=p[x++],j=p[x++],P=p[x++],L=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Ye(i,I,A,P,C,Sa),Ye(o,D,j,L,C,Oa),t.bezierCurveTo(Sa[1],Oa[1],Sa[2],Oa[2],Sa[3],Oa[3]);break t}m+=T}t.bezierCurveTo(I,D,A,j,P,L),i=P,o=L;break;case wa.Q:I=p[x++],D=p[x++],A=p[x++],j=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Je(i,I,A,C,Sa),Je(o,D,j,C,Oa),t.quadraticCurveTo(Sa[1],Oa[1],Sa[2],Oa[2]);break t}m+=T}t.quadraticCurveTo(I,D,A,j),i=A,o=j;break;case wa.A:var R=p[x++],E=p[x++],N=p[x++],B=p[x++],F=p[x++],z=p[x++],V=p[x++],H=!p[x++],W=N>B?N:B,G=Pa(N-B)>.001,U=F+z,Y=!1;if(y){T=l[_++];m+T>c&&(U=F+z*(c-m)/T,Y=!0),m+=T}if(G&&t.ellipse?t.ellipse(R,E,N,B,V,F,U,H):t.arc(R,E,W,F,U,H),Y)break t;S&&(n=Aa(F)*N+R,r=ja(F)*B+E),i=Aa(U)*N+R,o=ja(U)*B+E;break;case wa.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var q=p[x++],X=p[x++];if(y){T=l[_++];if(m+T>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+Ia(Z,q),s),Z-=q,Z>0&&t.lineTo(a+q,s+Ia(Z,X)),Z-=X,Z>0&&t.lineTo(a+Da(q-Z,0),s+X),Z-=q,Z>0&&t.lineTo(a,s+Da(X-Z,0));break t}m+=T}t.rect(a,s,q,X);break;case wa.Z:if(y){T=l[_++];if(m+T>c){C=(c-m)/T;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=T}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=wa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Va=za;function Ha(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function Wa(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var f=qe(t,e,n,r,i,o,a,s,u,c,null);return f<=h/2}function Ga(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=tn(t,e,n,r,i,o,s,l,null);return c<=u/2}var Ua=2*Math.PI;function Ya(t){return t%=Ua,t<0&&(t+=Ua),t}var qa=2*Math.PI;function Xa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%qa<1e-4)return!0;if(o){var h=r;r=Ya(i),i=Ya(h)}else r=Ya(r),i=Ya(i);r>i&&(i+=qa);var f=Math.atan2(l,s);return f<0&&(f+=qa),f>=r&&f<=i||f+qa>=r&&f+qa<=i}function Za(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Ka=Va.CMD,$a=2*Math.PI,Qa=1e-4;function Ja(t,e){return Math.abs(t-e)<Qa}var ts=[-1,-1,-1],es=[-1,-1];function ns(){var t=es[0];es[0]=es[1],es[1]=t}function rs(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=Ge(e,r,o,s,u,ts);if(0===c)return 0;for(var h=0,f=-1,p=void 0,d=void 0,g=0;g<c;g++){var v=ts[g],y=0===v||1===v?.5:1,m=He(t,n,i,a,v);m<l||(f<0&&(f=Ue(e,r,o,s,es),es[1]<es[0]&&f>1&&ns(),p=He(e,r,o,s,es[0]),f>1&&(d=He(e,r,o,s,es[1]))),2===f?v<es[0]?h+=p<e?y:-y:v<es[1]?h+=d<p?y:-y:h+=s<d?y:-y:v<es[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function is(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=$e(e,r,o,s,ts);if(0===l)return 0;var u=Qe(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Ze(e,r,o,u),f=0;f<l;f++){var p=0===ts[f]||1===ts[f]?.5:1,d=Ze(t,n,i,ts[f]);d<a||(ts[f]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===ts[0]||1===ts[0]?.5:1,d=Ze(t,n,i,ts[0]);return d<a?0:o<e?p:-p}function os(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ts[0]=-l,ts[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=$a-1e-4){r=0,i=$a;var c=o?1:-1;return a>=ts[0]+t&&a<=ts[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=$a,i+=$a);for(var f=0,p=0;p<2;p++){var d=ts[p];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=$a+g),(g>=r&&g<=i||g+$a>=r&&g+$a<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function as(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,p=0,d=0;d<l;){var g=s[d++],v=1===d;switch(g===Ka.M&&d>1&&(n||(u+=Za(c,h,f,p,r,i))),v&&(c=s[d],h=s[d+1],f=c,p=h),g){case Ka.M:f=s[d++],p=s[d++],c=f,h=p;break;case Ka.L:if(n){if(Ha(c,h,s[d],s[d+1],e,r,i))return!0}else u+=Za(c,h,s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.C:if(n){if(Wa(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=rs(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.Q:if(n){if(Ga(c,h,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=is(c,h,s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.A:var y=s[d++],m=s[d++],_=s[d++],b=s[d++],x=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(x)*_+y,a=Math.sin(x)*b+m,v?(f=o,p=a):u+=Za(c,h,o,a,r,i);var O=(r-y)*b/_+y;if(n){if(Xa(y,m,b,x,x+w,S,e,O,i))return!0}else u+=os(y,m,b,x,x+w,S,O,i);c=Math.cos(x+w)*_+y,h=Math.sin(x+w)*b+m;break;case Ka.R:f=c=s[d++],p=h=s[d++];var M=s[d++],T=s[d++];if(o=f+M,a=p+T,n){if(Ha(f,p,o,p,e,r,i)||Ha(o,p,o,a,e,r,i)||Ha(o,a,f,a,e,r,i)||Ha(f,a,f,p,e,r,i))return!0}else u+=Za(o,p,o,a,r,i),u+=Za(f,a,f,p,r,i);break;case Ka.Z:if(n){if(Ha(c,h,f,p,e,r,i))return!0}else u+=Za(c,h,f,p,r,i);c=f,h=p;break}}return n||Ja(h,p)||(u+=Za(c,h,f,p,r,i)||0),0!==u}function ss(t,e,n){return as(t,0,!1,e,n)}function ls(t,e,n,r){return as(t,e,!0,n,r)}var us=Object(M["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Jo),cs={style:Object(M["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ta.style)},hs=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),fs=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<hs.length;++s)i[hs[s]]=this[hs[s]];i.__dirty|=_e}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(M["keys"])(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(M["extend"])(this.style,a):this.useStyle(a):"shape"===o?Object(M["extend"])(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(M["isString"])(t)){var e=Object(sn["lum"])(t,0);return e>.5?or:e>.2?sr:ar}if(t)return ar}return or},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(M["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(sn["lum"])(t,0)<ir;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~xe},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Va(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&xe)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=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},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ls(o,a/s,t,e)))return!0}if(this.hasFill())return ss(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=xe,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(M["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&xe)},e.prototype.createStyle=function(t){return Object(M["createObject"])(us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(M["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(M["extend"])({},r.shape),Object(M["extend"])(s,n.shape)):(s=Object(M["extend"])({},i?this.shape:r.shape),Object(M["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(M["extend"])({},this.shape);for(var u={},c=Object(M["keys"])(s),h=0;h<c.length;h++){var f=c[h];"object"===typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return cs},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return S(n,e),n.prototype.getDefaultStyle=function(){return Object(M["clone"])(t.style)},n.prototype.getDefaultShape=function(){return Object(M["clone"])(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=_e|be|xe}(),e}(sa),ps=fs,ds=Object(M["defaults"])({strokeFirst:!0,font:br["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},us),gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(M["createObject"])(ds,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Or(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(sa);gs.prototype.type="tspan";var vs=gs,ys=Object(M["defaults"])({x:0,y:0},Jo),ms={style:Object(M["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ta.style)};function _s(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.createStyle=function(t){return Object(M["createObject"])(ys,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=_s(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ms},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Kt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sa);bs.prototype.type="image";var xs=bs;function ws(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Ss=Math.round;function Os(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ss(2*r)===Ss(2*i)&&(t.x1=t.x2=Ts(r,s,!0)),Ss(2*o)===Ss(2*a)&&(t.y1=t.y2=Ts(o,s,!0)),t):t}}function Ms(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ts(r,s,!0),t.y=Ts(i,s,!0),t.width=Math.max(Ts(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ts(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Ts(t,e,n){if(!e)return t;var r=Ss(2*t);return(r+Ss(e))%2===0?r/2:(r+(n?1:-1))/2}var Cs=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ks={},Is=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Cs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Ms(ks,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?ws(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ps);Is.prototype.type="rect";var Ds=Is,As={fill:"#000"},js=2,Ps={style:Object(M["defaults"])({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},ta.style)},Ls=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=As,n.attr(e),n}return S(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},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,Vs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Kt(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||As},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(M["extend"])(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(M["keys"])(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(M["extend"])(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return Ps},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||br["a"],n=t.padding,r=Ys(t),i=Ho(r,t),o=qs(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,h=i.lineHeight,f=this._defaultStyle,p=t.x||0,d=t.y||0,g=t.align||f.align||"left",v=t.verticalAlign||f.verticalAlign||"top",y=p,m=Tr(d,i.contentHeight,v);if(o||n){var _=Mr(p,l,g),b=Tr(d,s,v);o&&this._renderBackground(t,t,_,b,l,s)}m+=h/2,n&&(y=Us(p,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var x=0,w=!1,S=(Gs("fill"in t?t.fill:(w=!0,f.fill))),O=(Ws("stroke"in t?t.stroke:a||f.autoStroke&&!w?null:(x=js,f.stroke))),M=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,k=0;k<c.length;k++){var I=this._getOrCreateChild(vs),D=I.createStyle();I.useStyle(D),D.text=c[k],D.x=y,D.y=m,g&&(D.textAlign=g),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=O,D.fill=S,O&&(D.lineWidth=t.lineWidth||x,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Fs(D,t),m+=h,T&&I.setBoundingRect(new Kt(Mr(D.x,t.width,D.textAlign),Tr(D.y,C,D.textBaseline),u,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=Ys(t),n=Yo(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,f=Mr(s,i,c),p=Tr(l,o,h),d=f,g=p;a&&(d+=a[3],g+=a[0]);var v=d+r;qs(t)&&this._renderBackground(t,t,f,p,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){var _=n.lines[m],b=_.tokens,x=b.length,w=_.lineHeight,S=_.width,O=0,M=d,T=v,C=x-1,k=void 0;while(O<x&&(k=b[O],!k.align||"left"===k.align))this._placeToken(k,t,w,g,M,"left",y),S-=k.width,M+=k.width,O++;while(C>=0&&(k=b[C],"right"===k.align))this._placeToken(k,t,w,g,T,"right",y),S-=k.width,T-=k.width,C--;M+=(r-(M-d)-(v-T)-S)/2;while(O<=C)k=b[O],this._placeToken(k,t,w,g,M+k.width/2,"center",y),M+=k.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&qs(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Us(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(vs),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Gs("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Ws("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=js,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,b&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||br["a"],d.opacity=Object(M["retrieve3"])(s.opacity,e.opacity,1),Fs(d,s),_&&(d.lineWidth=Object(M["retrieve3"])(s.lineWidth,e.lineWidth,y),d.lineDash=Object(M["retrieve2"])(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Kt(Mr(d.x,x,d.textAlign),Tr(d.y,w,d.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(Ds),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(M["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(xs),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(M["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(M["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return zs(t)&&(e=[t.fontStyle,t.fontWeight,Bs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(M["trim"])(e)||t.textFont||t.font},e}(sa),Rs={left:!0,right:1,center:1},Es={top:1,bottom:1,middle:1},Ns=["fontStyle","fontWeight","fontSize","fontFamily"];function Bs(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?br["b"]+"px":t+"px":t}function Fs(t,e){for(var n=0;n<Ns.length;n++){var r=Ns[n],i=e[r];null!=i&&(t[r]=i)}}function zs(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vs(t){return Hs(t),Object(M["each"])(t.rich,Hs),t}function Hs(t){if(t){t.font=Ls.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Rs[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Es[n]?n:"top";var r=t.padding;r&&(t.padding=Object(M["normalizeCssArray"])(t.padding))}}function Ws(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gs(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Us(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ys(t){var e=t.text;return null!=e&&(e+=""),e}function qs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Xs=Ls,Zs=ro(),Ks=function(t,e,n,r){if(r){var i=Zs(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=Zs(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},$s=1,Qs={},Js=ro(),tl=ro(),el=0,nl=1,rl=2,il=["emphasis","blur","select"],ol=["normal","emphasis","blur","select"],al=10,sl=9,ll="highlight",ul="downplay",cl="select",hl="unselect",fl="toggleSelect";function pl(t){return null!=t&&"none"!==t}function dl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function gl(t){dl(t,"emphasis",rl)}function vl(t){t.hoverState===rl&&dl(t,"normal",el)}function yl(t){dl(t,"blur",nl)}function ml(t){t.hoverState===nl&&dl(t,"normal",el)}function _l(t){t.selected=!0}function bl(t){t.selected=!1}function xl(t,e,n){e(t,n)}function wl(t,e,n){xl(t,e,n),t.isGroup&&t.traverse((function(t){xl(t,e,n)}))}function Sl(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function Ol(t,e,n,r){var i=n&&Object(M["indexOf"])(n,"select")>=0,o=!1;if(t instanceof ps){var a=Js(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(pl(s)||pl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(M["extend"])({},r),u=Object(M["extend"])({},u),u.fill=s):!pl(u.fill)&&pl(s)?(o=!0,r=Object(M["extend"])({},r),u=Object(M["extend"])({},u),u.fill=Object(sn["liftColor"])(s)):!pl(u.stroke)&&pl(l)&&(o||(r=Object(M["extend"])({},r),u=Object(M["extend"])({},u)),u.stroke=Object(sn["liftColor"])(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(M["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:al)}return r}function Ml(t,e,n){if(n&&null==n.z2){n=Object(M["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:sl)}return n}function Tl(t,e,n){var r=Object(M["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:Sl(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(M["extend"])({},n),a=Object(M["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Cl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Ol(this,t,e,n);if("blur"===t)return Tl(this,t,n);if("select"===t)return Ml(this,t,n)}return n}function kl(t){t.stateProxy=Cl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Cl),n&&(n.stateProxy=Cl)}function Il(t,e){!Nl(t,e)&&!t.__highByOuter&&wl(t,gl)}function Dl(t,e){!Nl(t,e)&&!t.__highByOuter&&wl(t,vl)}function Al(t,e){t.__highByOuter|=1<<(e||0),wl(t,gl)}function jl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&wl(t,vl)}function Pl(t){wl(t,yl)}function Ll(t){wl(t,ml)}function Rl(t){wl(t,_l)}function El(t){wl(t,bl)}function Nl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=tl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){ml(t)})),a&&n.push(i)),o.isBlured=!1})),Object(M["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Fl(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Ll(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&i&&"self"===e||yl(t)})),Object(M["isArrayLike"])(e))o(t.getData(),e);else if(Object(M["isObject"])(e))for(var f=Object(M["keys"])(e),p=0;p<f.length;p++)o(t.getData(f[p]),e[f[p]]);l.push(t),tl(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function zl(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){tl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){yl(t)}))}}}function Vl(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=no(i,e);o=(Object(M["isArray"])(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a){var s=i.count(),l=0;while(!a&&l<s)a=i.getItemGraphicEl(l++)}if(a){var u=Zs(a);Fl(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Fl(r,c,h,n)}}}function Hl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Zs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Wl(t,e,n){var r=Zs(t),i=Hl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&zl(r.componentMainType,r.componentIndex,n),Object(M["each"])(o,(function(t){return Il(t,e)}))):(Fl(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&zl(r.componentMainType,r.componentIndex,n),Il(t,e))}function Gl(t,e,n){Bl(n);var r=Zs(t),i=Hl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(M["each"])(i,(function(t){return Dl(t,e)})):Dl(t,e)}function Ul(t,e,n){if(iu(e)){var r=e.dataType,i=t.getData(r),o=no(i,e);Object(M["isArray"])(o)||(o=[o]),t[e.type===fl?"toggleSelect":e.type===cl?"select":"unselect"](o,r)}}function Yl(t){var e=t.getAllData();Object(M["each"])(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Rl(e):El(e)}))}))}function ql(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(M["each"])(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Xl(t,e,n){eu(t,!0),wl(t,kl),$l(t,e,n)}function Zl(t){eu(t,!1)}function Kl(t,e,n,r){r?Zl(t):Xl(t,e,n)}function $l(t,e,n){var r=Zs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Ql=["emphasis","blur","select"],Jl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tu(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Ql.length;i++){var o=Ql[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[Jl[n]]()}}function eu(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function nu(t){return!(!t||!t.__highDownDispatcher)}function ru(t){var e=Qs[t];return null==e&&$s<=32&&(e=Qs[t]=$s++),e}function iu(t){var e=t.type;return e===cl||e===hl||e===fl}function ou(t){var e=t.type;return e===ll||e===ul}function au(t){var e=Js(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var su=ro();function lu(t,e,n,r,i){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,c=void 0,h=void 0;r?(u=Object(M["retrieve2"])(r.duration,200),c=Object(M["retrieve2"])(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Object(M["isFunction"])(h)&&(h=h(n,i)),Object(M["isFunction"])(u)&&(u=u(n));var f={duration:u||0,delay:h,easing:c};return f}return null}function uu(t,e,n,r,i,o,a){var s,l=!1;Object(M["isFunction"])(i)?(a=o,o=i,i=null):Object(M["isObject"])(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=lu(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,f=c.delay,p=c.easing,d={duration:h,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function cu(t,e,n,r,i,o){uu("update",t,e,n,r,i,o)}function hu(t,e,n,r,i,o){uu("enter",t,e,n,r,i,o)}function fu(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function pu(t,e,n,r,i,o){fu(t)||uu("leave",t,e,n,r,i,o)}function du(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),pu(t,{style:{opacity:0}},e,n,r)}function gu(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||du(t,e,n,r)})):du(t,e,n,r)}function vu(t){su(t).oldStyle=t.style}var yu={};function mu(t,e){for(var n=0;n<il.length;n++){var r=il[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function _u(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(M["isFunction"])(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<il.length;u++){var c=il[u],h=e[c];l[c]=Object(M["retrieve2"])(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function bu(t,e,n,r){n=n||yu;for(var i=t instanceof Xs,o=!1,a=0;a<ol.length;a++){var s=e[ol[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new Xs,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=_u(n,e),c=e.normal,h=!!c.getShallow("show"),f=wu(c,r&&r.normal,n,!1,!i);f.text=u.normal,i||t.setTextConfig(Su(c,n,!1));for(a=0;a<il.length;a++){var p=il[a];s=e[p];if(s){var d=l.ensureState(p),g=!!Object(M["retrieve2"])(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=wu(s,r&&r[p],n,!0,!i),d.style.text=u[p],!i){var v=t.ensureState(p);v.textConfig=Su(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),n.enableTextSetter&&(Au(l).setLabelText=function(t){var r=_u(n,e,t);mu(l,r)})}else l&&(l.ignore=!0);t.dirty()}function xu(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<il.length;r++){var i=il[r];n[i]=t.getModel([i,e])}return n}function wu(t,e,n,r,i){var o={};return Ou(o,t,n,r,i),e&&Object(M["extend"])(o,e),o}function Su(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Object(M["retrieve2"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Ou(t,e,n,r,i){n=n||yu;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Mu(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Iu(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var f=e.get("minMargin");null!=f&&(t.margin=f),Iu(t,e,s,n,r,i,!0,!1)}function Mu(t){var e;while(t&&t!==t.ecModel){var n=(t.option||yu).rich;if(n){e=e||{};for(var r=Object(M["keys"])(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var Tu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Cu=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ku=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Iu(t,e,n,r,i,o,a,s){n=!i&&n||yu;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Object(M["retrieve2"])(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var f=Object(M["retrieve2"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=Object(M["retrieve2"])(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=Object(M["retrieve2"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Tu.length;g++){var v=Tu[g],y=Object(M["retrieve2"])(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(g=0;g<Cu.length;g++){v=Cu[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<ku.length;g++){v=ku[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Du(t,e){var n=e&&e.getModel("textStyle");return Object(M["trim"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Au=ro();function ju(t,e,n,r,i){var o=Au(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(M["retrieve2"])(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?hu:cu)(t,{percent:1},r,e,null,u)}function u(r){var u=fo(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=_u({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);mu(t,c)}}var Pu=["textStyle","color"],Lu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ru=new Xs,Eu=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Pu):null)},t.prototype.getFont=function(){return Du({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Lu.length;n++)e[Lu[n]]=this.getShallow(Lu[n]);return Ru.useStyle(e),Ru.update(),Ru.getBoundingRect()},t}(),Nu=Eu,Bu=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fu=ko(Bu),zu=function(){function t(){}return t.prototype.getLineStyle=function(t){return Fu(this,t)},t}(),Vu=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Hu=ko(Vu),Wu=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Hu(this,t,e)},t}(),Gu=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(M["merge"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(M["clone"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!O["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();bo(Gu),Oo(Gu),Object(M["mixin"])(Gu,zu),Object(M["mixin"])(Gu,Wu),Object(M["mixin"])(Gu,Ao),Object(M["mixin"])(Gu,Nu);var Uu=Gu,Yu=Math.round(10*Math.random());function qu(t){return[t||"",Yu++].join("_")}function Xu(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=yo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=yo(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function Zu(t,e){function n(t){var n={},o=[];return M["each"](t,(function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),M["each"](u,(function(t){M["indexOf"](s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);M["indexOf"](e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return M["each"](t,(function(t){M["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};M["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),M["each"](c.successor,h?p:f)}M["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,f(t)}}}function Ku(t,e){return M["merge"](M["merge"]({},t,!0),e,!0)}var $u={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:". "}}}},Qu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Ju="ZH",tc="EN",ec=tc,nc={},rc={},ic=O["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ec).toUpperCase();return t.indexOf(Ju)>-1?Ju:ec}():ec;function oc(t,e){t=t.toUpperCase(),rc[t]=new Uu(e),nc[t]=e}function ac(t){if(Object(M["isString"])(t)){var e=nc[t.toUpperCase()]||{};return t===Ju||t===tc?Object(M["clone"])(e):Object(M["merge"])(Object(M["clone"])(e),Object(M["clone"])(nc[ec]),!1)}return Object(M["merge"])(Object(M["clone"])(t),Object(M["clone"])(nc[ec]),!1)}function sc(t){return rc[t]}function lc(){return rc[ec]}oc(tc,$u),oc(Ju,Qu);var uc=1e3,cc=60*uc,hc=60*cc,fc=24*hc,pc=365*fc,dc={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}"},gc="{yyyy}-{MM}-{dd}",vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:gc,hour:gc+" "+dc.hour,minute:gc+" "+dc.minute,second:gc+" "+dc.second,millisecond:dc.none},yc=["year","month","day","hour","minute","second","millisecond"],mc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _c(t,e){return t+="","0000".substr(0,e-t.length)+t}function bc(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 xc(t){return t===bc(t)}function wc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sc(t,e,n,r){var i=Si(t),o=i[Cc(n)](),a=i[kc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Ic(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Dc(n)](),h=(c-1)%12+1,f=i[Ac(n)](),p=i[jc(n)](),d=i[Pc(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=r instanceof Uu?r:sc(r||ic)||lc(),m=y.getModel("time"),_=m.get("month"),b=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,_c(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,_c(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_c(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_c(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,_c(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,_c(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,_c(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,_c(d,3)).replace(/{S}/g,d+"")}function Oc(t,e,n,r,i){var o=null;if(M["isString"](n))o=n;else if(M["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=M["extend"]({},dc);if(t.level>0)for(var s=0;s<yc.length;++s)a[yc[s]]="{primary|"+a[yc[s]]+"}";var l=n?!1===n.inherit?n:M["defaults"](n,a):a,u=Mc(t.value,i);if(l[u])o=l[u];else if(l.inherit){var c=mc.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return Sc(new Date(t.value),o,i,r)}function Mc(t,e){var n=Si(t),r=n[kc(e)]()+1,i=n[Ic(e)](),o=n[Dc(e)](),a=n[Ac(e)](),s=n[jc(e)](),l=n[Pc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Tc(t,e,n){var r=M["isNumber"](t)?Si(t):t;switch(e=e||Mc(t,n),e){case"year":return r[Cc(n)]();case"half-year":return r[kc(n)]()>=6?1:0;case"quarter":return Math.floor((r[kc(n)]()+1)/4);case"month":return r[kc(n)]();case"day":return r[Ic(n)]();case"half-day":return r[Dc(n)]()/24;case"hour":return r[Dc(n)]();case"minute":return r[Ac(n)]();case"second":return r[jc(n)]();case"millisecond":return r[Pc(n)]()}}function Cc(t){return t?"getUTCFullYear":"getFullYear"}function kc(t){return t?"getUTCMonth":"getMonth"}function Ic(t){return t?"getUTCDate":"getDate"}function Dc(t){return t?"getUTCHours":"getHours"}function Ac(t){return t?"getUTCMinutes":"getMinutes"}function jc(t){return t?"getUTCSeconds":"getSeconds"}function Pc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Lc(t){return t?"setUTCFullYear":"setFullYear"}function Rc(t){return t?"setUTCMonth":"setMonth"}function Ec(t){return t?"setUTCDate":"setDate"}function Nc(t){return t?"setUTCHours":"setHours"}function Bc(t){return t?"setUTCMinutes":"setMinutes"}function Fc(t){return t?"setUTCSeconds":"setSeconds"}function zc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vc(t){if(!Di(t))return M["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Hc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Wc=M["normalizeCssArray"];function Gc(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&M["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?Si(t):t;if(!isNaN(+l))return Sc(l,r,n);if(s)return"-"}if("ordinal"===e)return M["isStringSafe"](t)?i(t):M["isNumber"](t)&&o(t)?t+"":"-";var u=Ii(t);return o(u)?Vc(u):M["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Uc=["a","b","c","d","e","f","g"],Yc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function qc(t,e,n){M["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Uc[o];t=t.replace(Yc(a),Yc(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Yc(Uc[l],s),n?dt(u):u)}return t}function Xc(t,e){var n=M["isString"](t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dt(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dt(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Si(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",_c(a,2)).replace("M",a).replace("yyyy",o).replace("yy",_c(o%100+"",2)).replace("dd",_c(s,2)).replace("d",s).replace("hh",_c(l,2)).replace("h",l).replace("mm",_c(u,2)).replace("m",u).replace("ss",_c(c,2)).replace("s",c).replace("SSS",_c(h,3)),t}function Kc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function $c(t,e){return e=e||"transparent",M["isString"](t)?t:M["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Qc=M["each"],Jc=["left","right","top","bottom","width","height"],th=[["width","left","right"],["height","top","bottom"]];function eh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var nh=eh;M["curry"](eh,"vertical"),M["curry"](eh,"horizontal");function rh(t,e,n){n=Wc(n||0);var r=e.width,i=e.height,o=ci(t.left,r),a=ci(t.top,i),s=ci(t.right,r),l=ci(t.bottom,i),u=ci(t.width,r),c=ci(t.height,i),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new Kt(o+n[3],a+n[0],u,c);return d.margin=n,d}function ih(t){var e=t.layoutMode||t.constructor.layoutMode;return M["isObject"](e)?e:e?{type:e}:null}function oh(t,e,n){var r=n&&n.ignoreSize;!M["isArray"](r)&&(r=[r,r]);var i=a(th[0],0),o=a(th[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Qc(n,(function(e){u[e]=t[e]})),Qc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Qc(t,(function(t){e[t]=n[t]}))}u(th[0],t,i),u(th[1],t,o)}function ah(t){return sh({},t)}function sh(t,e){return e&&t&&Qc(Jc,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var lh=ro(),uh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=qu("ec_cpt_model"),i}return S(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ih(this),r=n?ah(t):{},i=e.getTheme();M["merge"](t,i.get(this.mainType)),M["merge"](t,this.getDefaultOption()),n&&oh(t,r,n)},e.prototype.mergeOption=function(t,e){M["merge"](this.option,t,!0);var n=ih(this);n&&oh(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!_o(t))return t.defaultOption;var e=lh(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=M["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return lo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Uu);function ch(t){var e=[];return M["each"](uh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=M["map"](e,(function(t){return yo(t).main})),"dataset"!==t&&M["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}wo(uh,Uu),Co(uh),Xu(uh),Zu(uh,ch);var hh=uh,fh="";"undefined"!==typeof navigator&&(fh=navigator.platform||"");var ph="rgba(0, 0, 0, 0.2)",dh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ph,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ph,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ph,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ph,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ph,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ph,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fh.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},gh=Object(M["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),vh="original",yh="arrayRows",mh="objectRows",_h="keyedColumns",bh="typedArray",xh="unknown",wh="column",Sh="row",Oh={Must:1,Might:2,Not:3},Mh=ro();function Th(t){Mh(t).datasetMap=Object(M["createHashMap"])()}function Ch(t,e,n){var r={},i=Ih(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Mh(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(M["each"])(t,(function(e,n){var i=Object(M["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function d(t){var e=t.dimsDef;return e?e.length:1}return Object(M["each"])(t,(function(t,e){var n=t.name,i=d(t);if(null==o){var a=f.valueWayDim;p(r[n],a,i),p(l,a,i),f.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=f.categoryWayDim;p(r[n],a,i),p(l,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function kh(t,e,n){var r={},i=Ih(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==mh&&a!==_h||Object(M["each"])(s,(function(t,e){"name"===(Object(M["isObject"])(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=jh(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===Oh.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===Oh.Not)&&(t.n=l),f(t)&&i[t.n]!==Oh.Not)return t;h||(c===Oh.Might&&null==r.v&&l!==o&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function Ih(t){var e=t.get("data",!0);if(!e)return lo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},so).models[0]}function Dh(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?lo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},so).models:[]}function Ah(t,e){return jh(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function jh(t,e,n,r,i,o){var a,s,l,u=5;if(Object(M["isTypedArray"])(t))return Oh.Not;if(r){var c=r[o];Object(M["isObject"])(c)?(s=c.name,l=c.type):Object(M["isString"])(c)&&(s=c)}if(null!=l)return"ordinal"===l?Oh.Must:Oh.Not;if(e===yh){var h=t;if(n===Sh){for(var f=h[o],p=0;p<(f||[]).length&&p<u;p++)if(null!=(a=b(f[i+p])))return a}else for(p=0;p<h.length&&p<u;p++){var d=h[i+p];if(d&&null!=(a=b(d[o])))return a}}else if(e===mh){var g=t;if(!s)return Oh.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=b(v[s])))return a}}else if(e===_h){var y=t;if(!s)return Oh.Not;f=y[s];if(!f||Object(M["isTypedArray"])(f))return Oh.Not;for(p=0;p<f.length&&p<u;p++)if(null!=(a=b(f[p])))return a}else if(e===vh){var m=t;for(p=0;p<m.length&&p<u;p++){v=m[p];var _=zi(v);if(!Object(M["isArray"])(_))return Oh.Not;if(null!=(a=b(_[o])))return a}}function b(t){var e=Object(M["isString"])(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Oh.Might:Oh.Not:e&&"-"!==t?Oh.Must:void 0}return Oh.Not}var Ph=Object(M["createHashMap"])();function Lh(t,e,n){var r=Ph.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var Rh=ro(),Eh=(ro(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Ni(this.get("color",!0)),i=this.get("colorLayer",!0);return Bh(this,Rh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){Fh(this,Rh)},t}());function Nh(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Bh(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Nh(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Fh(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var zh,Vh,Hh;"undefined"!==typeof console&&console.warn&&console.log;function Wh(t){0}function Gh(t){throw new Error(t)}var Uh="\0_ec_inner",Yh=1;var qh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Uu(r),this._locale=new Uu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Qh(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Qh(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Hh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(M["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(M["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Lh(this,e,Ni(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Hi(a,o,l);to(u,e,hh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],p=0;Object(M["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=hh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(M["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(M["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,p),"series"===e&&zh(this)}Th(this),Object(M["each"])(t,(function(t,e){null!=t&&(hh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(M["clone"])(t):Object(M["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){hh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),hh.topologicalTravel(o,hh.getAllClassMainTypes(),l,this),this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=Object(M["clone"])(this.option);return Object(M["each"])(t,(function(e,n){if(hh.hasClass(n)){for(var r=Ni(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ji(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Uh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(M["each"])(Ni(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Kh("id",i,a):null!=o?Kh("name",o,a):Object(M["filter"])(a,(function(t){return!!t})),$h(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=o(e),i=r?this.queryComponents(r):Object(M["filter"])(this._componentsMap.get(n),(function(t){return!!t}));return a($h(i,t));function o(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function a(e){return t.filter?Object(M["filter"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(M["isFunction"])(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Object(M["isString"])(t)?r.get(t):Object(M["isObject"])(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=$i(t,null);return Object(M["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(M["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(M["filter"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Vh(this),Object(M["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(M["each"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Vh(this),Object(M["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(M["each"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Vh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Vh(this);var n=[];Object(M["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(M["createHashMap"])(n)},e.prototype.restoreData=function(t){zh(this);var e=this._componentsMap,n=[];e.each((function(t,e){hh.hasClass(e)&&n.push(e)})),hh.topologicalTravel(n,hh.getAllClassMainTypes(),(function(n){Object(M["each"])(e.get(n),(function(e){!e||"series"===n&&Xh(e,t)||e.restoreData()}))}))},e.internalField=function(){zh=function(t){var e=t._seriesIndices=[];Object(M["each"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(M["createHashMap"])(e)},Vh=function(t){0},Hh=function(t,e){t.option={},t.option[Uh]=Yh,t._componentsMap=Object(M["createHashMap"])({series:[]}),t._componentsCount=Object(M["createHashMap"])();var n=e.aria;Object(M["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),Zh(e,t._theme.option),Object(M["merge"])(e,dh,!1),t._mergeOption(e,null)}}(),e}(Uu);function Xh(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function Zh(t,e){var n=t.color&&!t.colorLayer;Object(M["each"])(e,(function(e,r){"colorLayer"===r&&n||hh.hasClass(r)||("object"===typeof e?t[r]=t[r]?Object(M["merge"])(t[r],e,!1):Object(M["clone"])(e):null==t[r]&&(t[r]=e))}))}function Kh(t,e,n){if(Object(M["isArray"])(e)){var r=Object(M["createHashMap"])();return Object(M["each"])(e,(function(t){if(null!=t){var e=$i(t,null);null!=e&&r.set(t,!0)}})),Object(M["filter"])(n,(function(e){return e&&r.get(e[t])}))}var i=$i(e,null);return Object(M["filter"])(n,(function(e){return e&&null!=i&&e[t]===i}))}function $h(t,e){return e.hasOwnProperty("subType")?Object(M["filter"])(t,(function(t){return t&&t.subType===e.subType})):t}function Qh(t){var e=Object(M["createHashMap"])();return t&&Object(M["each"])(Ni(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(M["mixin"])(qh,Eh);var Jh=qh,tf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ef=function(){function t(t){M["each"](tf,(function(e){this[e]=M["bind"](t[e],t)}),this)}return t}(),nf=ef,rf={},of=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];M["each"](rf,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){M["each"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){rf[t]=e},t.get=function(t){return rf[t]},t}(),af=of,sf=/^(min|max)?(.+)$/,lf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(M["each"])(Ni(t.series),(function(t){t&&t.data&&Object(M["isTypedArray"])(t.data)&&Object(M["setAsPrimitive"])(t.data)})),Object(M["each"])(Ni(t.dataset),(function(t){t&&t.source&&Object(M["isTypedArray"])(t.source)&&Object(M["setAsPrimitive"])(t.source)}))),t=Object(M["clone"])(t);var r=this._optionBackup,i=uf(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(M["clone"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(M["clone"])(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var s=0,l=r.length;s<l;s++)cf(r[s].query,e,n)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!ff(o,this._currentMediaIndices)&&(a=Object(M["map"])(o,(function(t){return Object(M["clone"])(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=o,a},t}();function uf(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function f(t){Object(M["each"])(e,(function(e){e(t,n)}))}return a?(i=a,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&Object(M["isArray"])(u)&&Object(M["each"])(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})),f(i),Object(M["each"])(l,(function(t){return f(t)})),Object(M["each"])(o,(function(t){return f(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}function cf(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(M["each"])(t,(function(t,e){var n=e.match(sf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();hf(r[a],t,o)||(i=!1)}})),i}function hf(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function ff(t,e){return t.join(",")===e.join(",")}var pf=lf,df=M["each"],gf=M["isObject"],vf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=vf.length;n<r;n++){var i=vf[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?M["merge"](t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?M["merge"](t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function mf(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,M["defaults"](t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function _f(t){mf(t,"itemStyle"),mf(t,"lineStyle"),mf(t,"areaStyle"),mf(t,"label"),mf(t,"labelLine"),mf(t,"upperLabel"),mf(t,"edgeLabel")}function bf(t,e){var n=gf(t)&&t[e],r=gf(n)&&n.textStyle;if(r){0;for(var i=0,o=Fi.length;i<o;i++){var a=Fi[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function xf(t){t&&(_f(t),bf(t,"label"),t.emphasis&&bf(t.emphasis,"label"))}function wf(t){if(gf(t)){yf(t),_f(t),bf(t,"label"),bf(t,"upperLabel"),bf(t,"edgeLabel"),t.emphasis&&(bf(t.emphasis,"label"),bf(t.emphasis,"upperLabel"),bf(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(yf(e),xf(e));var n=t.markLine;n&&(yf(n),xf(n));var r=t.markArea;r&&xf(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!M["isTypedArray"](o))for(var a=0;a<o.length;a++)xf(o[a]);M["each"](t.categories,(function(t){_f(t)}))}if(i&&!M["isTypedArray"](i))for(a=0;a<i.length;a++)xf(i[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)xf(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)M["isArray"](l[a])?(xf(l[a][0]),xf(l[a][1])):xf(l[a])}"gauge"===t.type?(bf(t,"axisLabel"),bf(t,"title"),bf(t,"detail")):"treemap"===t.type?(mf(t.breadcrumb,"itemStyle"),M["each"](t.levels,(function(t){_f(t)}))):"tree"===t.type&&_f(t.leaves)}}function Sf(t){return M["isArray"](t)?t:t?[t]:[]}function Of(t){return(M["isArray"](t)?t[0]:t)||{}}function Mf(t,e){df(Sf(t.series),(function(t){gf(t)&&wf(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),df(n,(function(e){df(Sf(t[e]),(function(t){t&&(bf(t,"axisLabel"),bf(t.axisPointer,"label"))}))})),df(Sf(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;bf(e,"axisLabel"),bf(e&&e.axisPointer,"label")})),df(Sf(t.calendar),(function(t){mf(t,"itemStyle"),bf(t,"dayLabel"),bf(t,"monthLabel"),bf(t,"yearLabel")})),df(Sf(t.radar),(function(t){bf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),df(Sf(t.geo),(function(t){gf(t)&&(xf(t),df(Sf(t.regions),(function(t){xf(t)})))})),df(Sf(t.timeline),(function(t){xf(t),mf(t,"label"),mf(t,"itemStyle"),mf(t,"controlStyle",!0);var e=t.data;M["isArray"](e)&&M["each"](e,(function(t){M["isObject"](t)&&(mf(t,"label"),mf(t,"itemStyle"))}))})),df(Sf(t.toolbox),(function(t){mf(t,"iconStyle"),df(t.feature,(function(t){mf(t,"iconStyle")}))})),bf(Of(t.axisPointer),"label"),bf(Of(t.tooltip).axisPointer,"label")}function Tf(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function Cf(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function kf(t){t&&Object(M["each"])(If,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var If=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Df=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Af=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function jf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Af.length;n++){var r=Af[n][1],i=Af[n][0];null!=e[r]&&(e[i]=e[r])}}function Pf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Lf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Rf(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Ef(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Ef(t[n].children,e)}function Nf(t,e){Mf(t,e),t.series=Ni(t.series),Object(M["each"])(t.series,(function(t){if(Object(M["isObject"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),Pf(t.label);var n=t.data;if(n&&!Object(M["isTypedArray"])(n))for(var r=0;r<n.length;r++)Pf(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=Tf(t,"pointer.color");null!=i&&Cf(t,"itemStyle.color",i)}else if("bar"===e){jf(t),jf(t.backgroundStyle),jf(t.emphasis);n=t.data;if(n&&!Object(M["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(jf(n[r]),jf(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Lf(t),Ef(t.data,Lf)}else"graph"===e||"sankey"===e?Rf(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(M["defaults"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),kf(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(M["each"])(Df,(function(e){var n=t[e];n&&(Object(M["isArray"])(n)||(n=[n]),Object(M["each"])(n,(function(t){kf(t)})))}))}function Bf(t){var e=Object(M["createHashMap"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(Ff)}function Ff(t){Object(M["each"])(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,f,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?f=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=mi(p,y),d=y;break}}}return r[0]=p,r[1]=d,r}))}))}var zf,Vf,Hf,Wf,Gf,Uf=function(){function t(t){this.data=t.data||(t.sourceFormat===_h?{}:[]),this.sourceFormat=t.sourceFormat||xh,this.seriesLayoutBy=t.seriesLayoutBy||wh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Ah(this,n)===Oh.Must&&(r.type="ordinal")}}return t}();function Yf(t){return t instanceof Uf}function qf(t,e,n){n=n||Kf(t);var r=e.seriesLayoutBy,i=$f(t,n,r,e.sourceHeader,e.dimensions),o=new Uf({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(M["clone"])(e)});return o}function Xf(t){return new Uf({data:t,sourceFormat:Object(M["isTypedArray"])(t)?bh:vh})}function Zf(t){return new Uf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(M["clone"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Kf(t){var e=xh;if(Object(M["isTypedArray"])(t))e=bh;else if(Object(M["isArray"])(t)){0===t.length&&(e=yh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(M["isArray"])(i)||Object(M["isTypedArray"])(i)){e=yh;break}if(Object(M["isObject"])(i)){e=mh;break}}}}else if(Object(M["isObject"])(t))for(var o in t)if(Object(M["hasOwn"])(t,o)&&Object(M["isArrayLike"])(t[o])){e=_h;break}return e}function $f(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Jf(i),startIndex:a,dimensionsDetectedCount:o};if(e===yh){var s=t;"auto"===r||null==r?tp((function(t){null!=t&&"-"!==t&&(Object(M["isString"])(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(M["isNumber"])(r)?r:r?1:0,i||1!==a||(i=[],tp((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Sh?s.length:s[0]?s[0].length:null}else if(e===mh)i||(i=Qf(t));else if(e===_h)i||(i=[],Object(M["each"])(t,(function(t,e){i.push(e)})));else if(e===vh){var l=zi(t[0]);o=Object(M["isArray"])(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Jf(i),dimensionsDetectedCount:o}}function Qf(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(M["keys"])(e)}function Jf(t){if(t){var e=Object(M["createHashMap"])();return Object(M["map"])(t,(function(t,n){t=Object(M["isObject"])(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function tp(t,e,n,r){if(e===Sh)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function ep(t){var e=t.sourceFormat;return e===mh||e===_h}var np=function(){function t(t,e){var n=Yf(t)?t:Xf(t);this._source=n;var r=this._data=n.data;n.sourceFormat===bh&&(this._offset=0,this._dimSize=e,this._data=r),Gf(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Gf=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Wf[fp(a,s)];if(Object(M["extend"])(t,c),a===bh)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=op(a,s);t.getItem=Object(M["bind"])(h,null,i,l,u);var f=lp(a,s);t.count=Object(M["bind"])(f,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],f=0;f<c;f++){var p=i[f*o+a];h[t+f]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[yh+"_"+wh]={pure:!0,appendData:i},t[yh+"_"+Sh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[mh]={pure:!0,appendData:i},t[_h]={pure:!0,appendData:function(t){var e=this._data;Object(M["each"])(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[vh]={appendData:i},t[bh]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Wf=t}(),t}(),rp=function(t,e,n,r){return t[r]},ip=(zf={},zf[yh+"_"+wh]=function(t,e,n,r){return t[r+e]},zf[yh+"_"+Sh]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},zf[mh]=rp,zf[_h]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[r]:null}return o},zf[vh]=rp,zf);function op(t,e){var n=ip[fp(t,e)];return n}var ap=function(t,e,n){return t.length},sp=(Vf={},Vf[yh+"_"+wh]=function(t,e,n){return Math.max(0,t.length-e)},Vf[yh+"_"+Sh]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Vf[mh]=ap,Vf[_h]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},Vf[vh]=ap,Vf);function lp(t,e){var n=sp[fp(t,e)];return n}var up=function(t,e,n){return t[e]},cp=(Hf={},Hf[yh]=up,Hf[mh]=function(t,e,n){return t[n]},Hf[_h]=up,Hf[vh]=function(t,e,n){var r=zi(t);return r instanceof Array?r[e]:r},Hf[bh]=up,Hf);function hp(t){var e=cp[t];return e}function fp(t,e){return t===yh?t+"_"+e:t}function pp(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return hp(o)(r,a,s)}var l=r;return o===vh&&(l=zi(r)),l}}}var dp=/\{@(.+?)\}/g,gp=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&M["isArray"](s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(M["isFunction"](i))return s.status=e,s.dimensionIndex=r,i(s);if(M["isString"](i)){var u=qc(i,s);return u.replace(dp,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=pp(a,t,i);if(o&&M["isArray"](o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return pp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function vp(t){var e,n;return M["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function yp(t){return new mp(t)}var mp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f<p)){var d=this._progress;if(Object(M["isArray"])(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){_p.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:_p.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(M["isArray"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),_p=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function bp(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(M["isNumber"])(t)||null==t||"-"===t||(t=+Si(t)),null==t||""===t?NaN:Number(t))}Object(M["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+Si(t)},trim:function(t){return Object(M["isString"])(t)?Object(M["trim"])(t):t}});var xp={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}},wp=(function(){function t(t,e){if(!Object(M["isNumber"])(e)){var n="";0,Gh(n)}this._opFn=xp[t],this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){return Object(M["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ii(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(M["isNumber"])(t)?t:Ii(t),r=Object(M["isNumber"])(e)?e:Ii(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(M["isString"])(t),s=Object(M["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ii(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var Sp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return bp(t,e)},t}();function Op(t,e){var n=new Sp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==wh&&Gh(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(M["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(M["hasOwn"])(l,n)&&Gh(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=op(i,wh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Object(M["bind"])(Mp,null,t)),n.cloneRawData=Object(M["bind"])(Tp,null,t);var f=lp(i,wh);n.count=Object(M["bind"])(f,null,r,o,s);var p=hp(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Object(M["bind"])(Cp,null,s,l),n.cloneAllDimensionInfo=Object(M["bind"])(kp,null,s),n}function Mp(t){var e=t.sourceFormat;if(!Pp(e)){var n="";0,Gh(n)}return t.data}function Tp(t){var e=t.sourceFormat,n=t.data;if(!Pp(e)){var r="";0,Gh(r)}if(e===yh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===mh){for(i=[],o=0,a=n.length;o<a;o++)i.push(Object(M["extend"])({},n[o]));return i}}function Cp(t,e,n){if(null!=n)return Object(M["isNumber"])(n)||!isNaN(n)&&!Object(M["hasOwn"])(e,n)?t[n]:Object(M["hasOwn"])(e,n)?e[n]:void 0}function kp(t){return Object(M["clone"])(t)}var Ip=Object(M["createHashMap"])();function Dp(t){t=Object(M["clone"])(t);var e=t.type,n="";e||Gh(n);var r=e.split(":");2!==r.length&&Gh(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,Ip.set(e,t)}function Ap(t,e,n){var r=Ni(t),i=r.length,o="";i||Gh(o);for(var a=0,s=i;a<s;a++){var l=r[a];e=jp(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function jp(t,e,n,r){var i="";e.length||Gh(i),Object(M["isObject"])(t)||Gh(i);var o=t.type,a=Ip.get(o);a||Gh(i);var s=Object(M["map"])(e,(function(t){return Op(t,a)})),l=Ni(a.transform({upstream:s[0],upstreamList:s,config:Object(M["clone"])(t.config)}));return Object(M["map"])(l,(function(t,n){var r="";Object(M["isObject"])(t)||Gh(r),t.data||Gh(r);var i,o=Kf(t.data);Pp(o)||Gh(r);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:wh,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:wh,sourceHeader:0,dimensions:t.dimensions};return qf(t.data,i,null)}))}function Pp(t){return t===yh||t===mh}var Lp,Rp="undefined",Ep=typeof Uint32Array===Rp?Array:Uint32Array,Np=typeof Uint16Array===Rp?Array:Uint16Array,Bp=typeof Int32Array===Rp?Array:Int32Array,Fp=typeof Float64Array===Rp?Array:Float64Array,zp={float:Fp,int:Bp,ordinal:Array,number:Array,time:Fp};function Vp(t){return t>65535?Ep:Np}function Hp(){return[1/0,-1/0]}function Wp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gp(t,e,n,r,i){var o=zp[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Up=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(M["createHashMap"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Lp[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];ep(r);this._dimensions=Object(M["map"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new zp[e||"float"](this._rawCount),this._rawExtent[i]=Hp(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=Hp());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];Gp(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var f=h-a,p=0;p<i;p++){u=r[p];var d=Lp.arrayRows.call(this,t[f]||c,u.property,f,p);n[p][h]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(M["map"])(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Hp()),Gp(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],f=t;f<e;f++){h=r.getItem(f,h);for(var p=0;p<a;p++){var d=i[p],g=this._dimValueGetter(h,l[p],f,p);d[f]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),f=e-i[h],p=Math.abs(f);p<=n&&((p<a||p===a&&f>=0&&s<0)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=Vp(this._rawCount);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=Vp(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<r;h++){var f=void 0,p=n.getRawIndex(h);if(0===s)f=e(h);else if(1===s){var d=c[u][p];f=e(d,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][p];a[g]=h,f=e.apply(null,a)}f&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(M["keys"])(t),i=r.length;if(!i)return this;var o=e.count(),a=Vp(e._rawCount),s=new a(o),l=0,u=r[0],c=t[u][0],h=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===i){for(var g=f[r[0]],v=0;v<n;v++){var y=g[v];(y>=c&&y<=h||isNaN(y))&&(s[l++]=d),d++}p=!0}else if(2===i){g=f[r[0]];var m=f[r[1]],_=t[r[1]][0],b=t[r[1]][1];for(v=0;v<n;v++){y=g[v];var x=m[v];(y>=c&&y<=h||isNaN(y))&&(x>=_&&x<=b||isNaN(x))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===i)for(v=0;v<o;v++){var w=e.getRawIndex(v);y=f[r[0]][w];(y>=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;v<o;v++){for(var S=!0,O=(w=e.getRawIndex(v),0);O<i;O++){var T=r[O];y=f[T][w];(y<t[T][0]||y>t[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(v))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Hp();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)s[f]=r[e[f]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var d=e[u],g=p[u],v=l[d],y=r[d];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(Vp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var p=1;p<l-1;p+=c){for(var d=Math.min(p+c,l-1),g=Math.min(p+2*c,l),v=(g+d)/2,y=0,m=d;m<g;m++){var _=this.getRawIndex(m),b=s[_];isNaN(b)||(y+=b)}y/=g-d;var x=p,w=Math.min(p+c,l),S=p-1,O=s[h];n=-1,i=x;var M=-1,T=0;for(m=x;m<w;m++){_=this.getRawIndex(m),b=s[_];isNaN(b)?(T++,M<0&&(M=_)):(r=Math.abs((S-v)*(b-O)-(S-m)*(y-O)),r>n&&(n=r,i=_))}T>0&&T<w-x&&(f[u++]=Math.min(M,i),i=Math.max(M,i)),f[u++]=i,h=i}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=Hp(),h=new(Vp(this._rawCount))(Math.ceil(u/s)),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Hp();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&Object(M["reduce"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?Wp(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(M["clone"])(this._extent),t._rawExtent=Object(M["clone"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return bp(t[r],this._dimensions[r])}Lp={arrayRows:t,objectRows:function(t,e,n,r){return bp(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return bp(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Yp=Up,qp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,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 t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(M["isTypedArray"])(a)?bh:vh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(M["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(M["retrieve2"])(c.sourceHeader,h.sourceHeader),d=Object(M["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||d;t=g?[qf(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[qf(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&Zp(o)}var a=[],s=[];return Object(M["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Zp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Ap(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Zf(a[0])]),{sourceList:e,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 r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];Xp(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new Yp,a.initData(new np(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xp(t)){var e=Ih(t);return e?[e.getSourceManager()]:[]}return Object(M["map"])(Dh(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(Xp(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Xp(t){return"series"===t.mainType}function Zp(t){throw new Error(t)}var Kp="line-height:1";function $p(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+dt(r+"")+"px;color:"+dt(n)+";font-weight:"+dt(i+""),valueStyle:"font-size:"+dt(a+"")+"px;color:"+dt(o)+";font-weight:"+dt(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Qp=[0,10,20,30],Jp=["","\n","\n\n","\n\n\n"];function td(t,e){return e.type=t,e}function ed(t){return"section"===t.type}function nd(t){return ed(t)?id:od}function rd(t){if(ed(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Object(M["each"])(t.blocks,(function(t){var n=rd(t);n>=e&&(e=n+ +(r&&(!n||ed(t)&&!t.noHeader)))})),e}return 0}function id(t,e,n,r){var i=e.noHeader,o=sd(rd(e)),a=[],s=e.blocks||[];Object(M["assert"])(!s||Object(M["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(M["hasOwn"])(u,l)){var c=new wp(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(M["each"])(s,(function(n,i){var s=e.valueFormatter,l=nd(n)(s?Object(M["extend"])(Object(M["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):ld(a.join(""),i?n:o.html);if(i)return h;var f=Gc(e.header,"ordinal",t.useUTC),p=$p(r,t.renderMode).nameStyle;return"richText"===t.renderMode?hd(t,f,p)+o.richText+h:ld('<div style="'+p+";"+Kp+';">'+dt(f)+"</div>"+h,n)}function od(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(M["isArray"])(t)?t:[t],Object(M["map"])(t,(function(t,e){return Gc(t,Object(M["isArray"])(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Gc(l,"ordinal",u),p=e.valueType,d=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,y=$p(r,i),m=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":hd(t,f,m))+(a?"":fd(t,d,g,v,_)):ld((s?"":h)+(o?"":ud(f,!s,m))+(a?"":cd(d,g,v,_)),n)}}function ad(t,e,n,r,i,o){if(t){var a=nd(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function sd(t){return{html:Qp[t],richText:Jp[t]}}function ld(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Kp+';">'+t+n+"</div>"}function ud(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+dt(t)+"</span>"}function cd(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(M["isArray"])(t)?t:[t],'<span style="'+o+";"+r+'">'+Object(M["map"])(t,(function(t){return dt(t)})).join(" ")+"</span>"}function hd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function fd(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(M["isArray"])(e)?e.join(" "):e,o)}function pd(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return $c(r)}function dd(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var gd=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ai()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Xc({color:e,type:t,renderMode:n,markerId:r});return Object(M["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(M["isArray"])(e)?Object(M["each"])(e,(function(t){return Object(M["extend"])(n,t)})):Object(M["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function vd(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(M["isArray"])(h),p=pd(o,a);if(c>1||f&&!c){var d=yd(h,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=pp(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=Qi(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return td("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[td("nameValue",{markerType:"item",markerColor:p,name:_,noName:!Object(M["trim"])(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}function yd(t,e,n,r,i){var o=e.getData(),a=Object(M["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(td("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(M["each"])(r,(function(t){c(pp(o,n,t),t)})):Object(M["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var md=ro();function _d(t,e){return t.getName(e)||t.getId(e)}var bd="__universalTransitionEnabled",xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return S(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=yp({count:Od,reset:Md}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=md(this).sourceManager=new qp(this);r.prepareSource();var i=this.getInitialData(t,n);Cd(i,this),this.dataTask.context.data=i,md(this).dataBeforeProcessed=i,wd(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ih(this),r=n?ah(t):{},i=this.subType;hh.hasClass(i)&&(i+="Series"),M["merge"](t,e.getTheme().get(this.subType)),M["merge"](t,this.getDefaultOption()),Bi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&oh(t,r,n)},e.prototype.mergeOption=function(t,e){t=M["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=ih(this);n&&oh(this.option,t,n);var r=md(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Cd(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,md(this).dataBeforeProcessed=i,wd(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!M["isTypedArray"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Bi(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=Id(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return md(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Id(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}md(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return M["createHashMap"](t)},e.prototype.getSourceManager=function(){return md(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return md(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return vd({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(O["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Eh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=_d(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=M["keys"](t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[_d(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[bd])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){M["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],c=_d(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1];c=_d(t,h);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return hh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(hh);function wd(t){var e=t.name;Qi(t)||(t.name=Sd(t)||e)}function Sd(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return M["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Od(t){return t.model.getRawData().count()}function Md(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Td}function Td(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Cd(t,e){M["each"](M["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,M["curry"](kd,e))}))}function kd(t,e){var n=Id(t);return n&&n.setOutputEnd((e||this).count()),e}function Id(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}M["mixin"](xd,gp),M["mixin"](xd,Eh),wo(xd,hh);var Dd=xd,Ad=function(){function t(){this.group=new Ur,this.uid=qu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();bo(Ad),Co(Ad);var jd=Ad;function Pd(){var t=ro();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Ld=Va.CMD,Rd=[[],[],[]],Ed=Math.sqrt,Nd=Math.atan2;function Bd(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Ld.M,h=Ld.C,f=Ld.L,p=Ld.R,d=Ld.A,g=Ld.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case f:r=1;break;case h:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Ed(e[0]*e[0]+e[1]*e[1]),_=Ed(e[2]*e[2]+e[3]*e[3]),b=Nd(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=b,l[i++]+=b,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],X(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],X(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var x=Rd[a];x[0]=l[i++],x[1]=l[i++],X(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var Fd=Math.sqrt,zd=Math.sin,Vd=Math.cos,Hd=Math.PI;function Wd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Gd(t,e){return(t[0]*e[0]+t[1]*e[1])/(Wd(t)*Wd(e))}function Ud(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Gd(t,e))}function Yd(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Hd/180),f=Vd(h)*(t-n)/2+zd(h)*(e-r)/2,p=-1*zd(h)*(t-n)/2+Vd(h)*(e-r)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Fd(d),s*=Fd(d));var g=(i===o?-1:1)*Fd((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+Vd(h)*v-zd(h)*y,_=(e+r)/2+zd(h)*v+Vd(h)*y,b=Ud([1,0],[(f-v)/a,(p-y)/s]),x=[(f-v)/a,(p-y)/s],w=[(-1*f-v)/a,(-1*p-y)/s],S=Ud(x,w);if(Gd(x,w)<=-1&&(S=Hd),Gd(x,w)>=1&&(S=0),S<0){var O=Math.round(S/Hd*1e6)/1e6;S=2*Hd+O%2*Hd}c.addData(u,m,_,a,s,b,S,h,o)}var qd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zd(t){var e=new Va;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Va.CMD,l=t.match(qd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,p=c.match(Xd)||[],d=p.length,g=0;g<d;g++)p[g]=parseFloat(p[g]);var v=0;while(v<d){var y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,O=r,M=i,T=void 0,C=void 0;switch(h){case"l":r+=p[v++],i+=p[v++],f=s.L,e.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="l";break;case"M":r=p[v++],i=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="L";break;case"h":r+=p[v++],f=s.L,e.addData(f,r,i);break;case"H":r=p[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=p[v++],f=s.L,e.addData(f,r,i);break;case"V":i=p[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.C,e.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),f=s.C,O=p[v++],M=p[v++],r=p[v++],i=p[v++],e.addData(f,y,m,O,M,r,i);break;case"s":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),f=s.C,O=r+p[v++],M=i+p[v++],r+=p[v++],i+=p[v++],e.addData(f,y,m,O,M,r,i);break;case"Q":O=p[v++],M=p[v++],r=p[v++],i=p[v++],f=s.Q,e.addData(f,O,M,r,i);break;case"q":O=p[v++]+r,M=p[v++]+i,r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,O,M,r,i);break;case"T":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r=p[v++],i=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"A":_=p[v++],b=p[v++],x=p[v++],w=p[v++],S=p[v++],O=r,M=i,r=p[v++],i=p[v++],f=s.A,Yd(O,M,r,i,w,S,_,b,x,f,e);break;case"a":_=p[v++],b=p[v++],x=p[v++],w=p[v++],S=p[v++],O=r,M=i,r+=p[v++],i+=p[v++],f=s.A,Yd(O,M,r,i,w,S,_,b,x,f,e);break}}"z"!==h&&"Z"!==h||(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}var Kd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.applyTransform=function(t){},e}(ps);function $d(t){return null!=t.setData}function Qd(t,e){var n=Zd(t),r=Object(M["extend"])({},e);return r.buildPath=function(t){if($d(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Bd(n,t),this.dirtyShape()},r}function Jd(t,e){return new Kd(Qd(t,e))}function tg(t,e){var n=Qd(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return S(e,t),e}(Kd);return r}function eg(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ps(e);return a.createPathProxy(),a.buildPath=function(t){if($d(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var ng=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),rg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new ng},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ps);rg.prototype.type="circle";var ig=rg,og=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),ag=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new og},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(ps);ag.prototype.type="ellipse";var sg=ag,lg=Math.PI,ug=2*lg,cg=Math.sin,hg=Math.cos,fg=Math.acos,pg=Math.atan2,dg=Math.abs,gg=Math.sqrt,vg=Math.max,yg=Math.min,mg=1e-4;function _g(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<mg))return f=(c*(e-o)-h*(t-i))/f,[t+f*l,e+f*u]}function bg(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/gg(s*s+l*l),c=u*l,h=-u*s,f=t+c,p=e+h,d=n+c,g=r+h,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,b=m*m+_*_,x=i-o,w=f*g-d*p,S=(_<0?-1:1)*gg(vg(0,x*x*b-w*w)),O=(w*_-m*S)/b,M=(-w*m-_*S)/b,T=(w*_+m*S)/b,C=(-w*m+_*S)/b,k=O-v,I=M-y,D=T-v,A=C-y;return k*k+I*I>D*D+A*A&&(O=T,M=C),{cx:O,cy:M,x0:-c,y0:-h,x1:O*(i/x-1),y1:M*(i/x-1)}}function xg(t){var e;if(Object(M["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function wg(t,e){var n,r=vg(e.r,0),i=vg(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,p=dg(u-l),d=p>ug&&p%ug;if(d>mg&&(p=d),r>mg)if(p>ug-mg)t.moveTo(c+r*hg(l),h+r*cg(l)),t.arc(c,h,r,l,u,!f),i>mg&&(t.moveTo(c+i*hg(u),h+i*cg(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,O=void 0,M=void 0,T=void 0,C=void 0,k=void 0,I=void 0,D=void 0,A=r*hg(l),j=r*cg(l),P=i*hg(u),L=i*cg(u),R=p>mg;if(R){var E=e.cornerRadius;E&&(n=xg(E),g=n[0],v=n[1],y=n[2],m=n[3]);var N=dg(r-i)/2;if(_=yg(N,y),b=yg(N,m),x=yg(N,g),w=yg(N,v),M=S=vg(_,b),T=O=vg(x,w),(S>mg||O>mg)&&(C=r*hg(u),k=r*cg(u),I=i*hg(l),D=i*cg(l),p<lg)){var B=_g(A,j,I,D,C,k,P,L);if(B){var F=A-B[0],z=j-B[1],V=C-B[0],H=k-B[1],W=1/cg(fg((F*V+z*H)/(gg(F*F+z*z)*gg(V*V+H*H)))/2),G=gg(B[0]*B[0]+B[1]*B[1]);M=yg(S,(r-G)/(W+1)),T=yg(O,(i-G)/(W-1))}}}if(R)if(M>mg){var U=yg(y,M),Y=yg(m,M),q=bg(I,D,A,j,r,U,f),X=bg(C,k,P,L,r,Y,f);t.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),M<S&&U===Y?t.arc(c+q.cx,h+q.cy,M,pg(q.y0,q.x0),pg(X.y0,X.x0),!f):(U>0&&t.arc(c+q.cx,h+q.cy,U,pg(q.y0,q.x0),pg(q.y1,q.x1),!f),t.arc(c,h,r,pg(q.cy+q.y1,q.cx+q.x1),pg(X.cy+X.y1,X.cx+X.x1),!f),Y>0&&t.arc(c+X.cx,h+X.cy,Y,pg(X.y1,X.x1),pg(X.y0,X.x0),!f))}else t.moveTo(c+A,h+j),t.arc(c,h,r,l,u,!f);else t.moveTo(c+A,h+j);if(i>mg&&R)if(T>mg){U=yg(g,T),Y=yg(v,T),q=bg(P,L,C,k,i,-Y,f),X=bg(A,j,I,D,i,-U,f);t.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),T<O&&U===Y?t.arc(c+q.cx,h+q.cy,T,pg(q.y0,q.x0),pg(X.y0,X.x0),!f):(Y>0&&t.arc(c+q.cx,h+q.cy,Y,pg(q.y0,q.x0),pg(q.y1,q.x1),!f),t.arc(c,h,i,pg(q.cy+q.y1,q.cx+q.x1),pg(X.cy+X.y1,X.cx+X.x1),f),U>0&&t.arc(c+X.cx,h+X.cy,U,pg(X.y1,X.x1),pg(X.y0,X.x0),!f))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Sg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Og=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Sg},e.prototype.buildPath=function(t,e){wg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ps);Og.prototype.type="sector";var Mg=Og,Tg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Cg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Tg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ps);Cg.prototype.type="ring";var kg=Cg;function Ig(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)Z(a,a,t[f]),K(s,s,t[f]);Z(a,a,r[0]),K(s,s,r[1])}for(f=0,p=t.length;f<p;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(k(t[f]));continue}i=t[f-1],o=t[f+1]}j(u,o,i),z(u,u,e);var g=H(d,i),v=H(d,o),y=g+v;0!==y&&(g/=y,v/=y),z(c,u,-g),z(h,u,v);var m=D([],d,c),_=D([],d,h);r&&(K(m,m,a),Z(m,m,s),K(_,_,a),Z(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Dg(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Ig(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Ag=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),jg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Ag},e.prototype.buildPath=function(t,e){Dg(t,e,!0)},e}(ps);jg.prototype.type="polygon";var Pg=jg,Lg=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Rg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lg},e.prototype.buildPath=function(t,e){Dg(t,e,!1)},e}(ps);Rg.prototype.type="polyline";var Eg=Rg,Ng={},Bg=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Fg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Bg},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Os(Ng,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ps);Fg.prototype.type="line";var zg=Fg,Vg=[],Hg=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 Wg(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?We:He)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?We:He)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Ke:Ze)(t.x1,t.cpx1,t.x2,e),(n?Ke:Ze)(t.y1,t.cpy1,t.y2,e)]}var Gg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hg},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Je(n,a,i,c,Vg),a=Vg[1],i=Vg[2],Je(r,s,o,c,Vg),s=Vg[1],o=Vg[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Ye(n,a,l,i,c,Vg),a=Vg[1],l=Vg[2],i=Vg[3],Ye(r,s,u,o,c,Vg),s=Vg[1],u=Vg[2],o=Vg[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Wg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Wg(this.shape,t,!0);return V(e,e)},e}(ps);Gg.prototype.type="bezier-curve";var Ug=Gg,Yg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),qg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Yg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(ps);qg.prototype.type="arc";var Xg=qg,Zg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return S(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ps.prototype.getBoundingRect.call(this)},e}(ps),Kg=Zg,$g=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Qg=$g,Jg=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return S(e,t),e}(Qg),tv=Jg,ev=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return S(e,t),e}(Qg),nv=ev,rv=[0,0],iv=[0,0],ov=new zt,av=new zt,sv=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new zt;for(n=0;n<2;n++)this._axes[n]=new zt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);zt.sub(r[0],n[1],n[0]),zt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return ov.set(1/0,1/0),av.set(0,0),!this._intersectCheckOneSide(this,t,ov,av,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,ov,av,r,-1)&&(n=!1,r)||r||zt.copy(e,n?ov:av),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,rv),this._getProjMinMaxOnAxis(s,e._corners,iv),rv[1]<iv[0]||rv[0]>iv[1]){if(a=!1,i)return a;var u=Math.abs(iv[0]-rv[1]),c=Math.abs(rv[0]-iv[1]);Math.min(u,c)>r.len()&&(u<c?zt.scale(r,l,-u*o):zt.scale(r,l,c*o))}else if(n){u=Math.abs(iv[0]-rv[1]),c=Math.abs(rv[0]-iv[1]);Math.min(u,c)<n.len()&&(u<c?zt.scale(n,l,u*o):zt.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),lv=sv,uv=[],cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return S(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Kt(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(uv)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},e}(sa),hv=cv,fv=Math.max,pv=Math.min,dv={};function gv(t){return ps.extend(t)}var vv=tg;function yv(t,e){return vv(t,e)}function mv(t,e){dv[t]=e}function _v(t){if(dv.hasOwnProperty(t))return dv[t]}function bv(t,e,n,r){var i=Jd(t,e);return n&&("center"===r&&(n=wv(n,i.getBoundingRect())),Ov(i,n)),i}function xv(t,e,n){var r=new xs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(wv(e,i))}}});return r}function wv(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var Sv=eg;function Ov(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Mv(t,e){return Os(t,t,{lineWidth:e}),t}function Tv(t){return Ms(t.shape,t.shape,t.style),t}var Cv=Ts;function kv(t,e){var n=At([]);while(t&&t!==e)Pt(n,t.getLocalTransform(),n),t=t.parent;return n}function Iv(t,e,n){return e&&!Object(M["isArrayLike"])(e)&&(e=mr.getLocalTransform(e)),n&&(e=Nt([],e)),X([],t,e)}function Dv(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Iv(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Av(t){return!t.isGroup}function jv(t){return null!=t.shape}function Pv(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Av(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),cu(t,i,n,Zs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Av(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return jv(t)&&(e.shape=Object(M["extend"])({},t.shape)),e}}function Lv(t,e){return Object(M["map"])(t,(function(t){var n=t[0];n=fv(n,e.x),n=pv(n,e.x+e.width);var r=t[1];return r=fv(r,e.y),r=pv(r,e.y+e.height),[n,r]}))}function Rv(t,e){var n=fv(t.x,e.x),r=pv(t.x+t.width,e.x+e.width),i=fv(t.y,e.y),o=pv(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Ev(t,e,n){var r=Object(M["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(M["defaults"])(i,n),new xs(r)):bv(t.replace("path://",""),r,n,"center")}function Nv(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Bv(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Bv(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=Fv(c,h,l,u);if(zv(f))return!1;var p=t-i,d=e-o,g=Fv(p,d,l,u)/f;if(g<0||g>1)return!1;var v=Fv(p,d,c,h)/f;return!(v<0||v>1)}function Fv(t,e,n,r){return t*r-n*e}function zv(t){return t<=1e-6&&t>=-1e-6}function Vv(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(M["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(M["each"])(Object(M["keys"])(l),(function(t){Object(M["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Zs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(M["defaults"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Hv(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Wv(t,e){if(t)if(Object(M["isArray"])(t))for(var n=0;n<t.length;n++)Hv(t[n],e);else Hv(t,e)}mv("circle",ig),mv("ellipse",sg),mv("sector",Mg),mv("ring",kg),mv("polygon",Pg),mv("polyline",Eg),mv("rect",Ds),mv("line",zg),mv("bezierCurve",Ug),mv("arc",Xg);var Gv=ro(),Uv=Pd(),Yv=function(){function t(){this.group=new Ur,this.uid=qu("viewChart"),this.renderTask=yp({plan:Zv,reset:Kv}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Xv(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Xv(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Wv(this.group,t)},t.markUpdateMethod=function(t,e){Gv(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function qv(t,e,n){t&&nu(t)&&("emphasis"===e?Al:jl)(t,n)}function Xv(t,e,n){var r=no(t,e),i=e&&null!=e.highlightKey?ru(e.highlightKey):null;null!=r?Object(M["each"])(Ni(r),(function(e){qv(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){qv(t,n,i)}))}function Zv(t){return Uv(t.model)}function Kv(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Gv(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),$v[l]}bo(Yv,["dispose"]),Co(Yv);var $v={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)}}},Qv=Yv,Jv="\0__throttleOriginMethod",ty="\0__throttleRate",ey="\0__throttleType";function ny(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var p=s||e,d=s||n;s=null,i=r-(d?l:u)-p,clearTimeout(c),d?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function ry(t,e,n,r){var i=t[e];if(i){var o=i[Jv]||i,a=i[ey],s=i[ty];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=ny(o,n,"debounce"===r),i[Jv]=o,i[ey]=r,i[ty]=n}return i}}function iy(t,e){var n=t[e];n&&n[Jv]&&(n.clear&&n.clear(),t[e]=n[Jv])}var oy=ro(),ay={itemStyle:ko(Vu,!0),lineStyle:ko(Bu,!0)},sy={lineStyle:"stroke",itemStyle:"fill"};function ly(t,e){var n=t.visualStyleMapper||ay[e];return n||(console.warn("Unknown style type '"+e+"'."),ay.itemStyle)}function uy(t,e){var n=t.visualDrawType||sy[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var cy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=ly(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=uy(t,r),u=a[l],c=Object(M["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(M["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(M["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(M["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},hy=new Uu,fy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=ly(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){hy.option=n[r];var a=i(hy),s=t.ensureUniqueItemVisual(e,"style");Object(M["extend"])(s,a),hy.option.decal&&(t.setItemVisual(e,"decal",hy.option.decal),hy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},py={performRawSeries:!0,overallReset:function(t){var e=Object(M["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),oy(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=oy(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=uy(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},dy=Math.PI;function gy(t,e){e=e||{},M["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ur,r=new Ds({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Xs({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 Ds({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new Xg({shape:{startAngle:-dy/2,endAngle:-dy/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*dy/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*dy/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var vy=function(){function t(t,e,n,r){this._stageTaskMap=Object(M["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(M["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(M["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(M["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(M["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(M["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||yp({plan:xy,reset:wy,count:My}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||yp({reset:yy});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(M["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,yp({reset:my,onDirty:by})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(M["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,Object(M["each"])(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(M["isFunction"])(t)&&(t={overallReset:t,seriesType:Ty(t)}),t.uid=qu("stageHandler"),e&&(t.visualType=e),t},t}();function yy(t){t.overallReset(t.ecModel,t.api,t.payload)}function my(t){return t.overallProgress&&_y}function _y(){this.agent.dirty(),this.getDownstream().dirty()}function by(){this.agent&&this.agent.dirty()}function xy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ni(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(M["map"])(e,(function(t,e){return Oy(e)})):Sy}var Sy=Oy(0);function Oy(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function My(t){return t.data.count()}function Ty(t){Cy=null;try{t(ky,Iy)}catch(e){}return Cy}var Cy,ky={},Iy={};function Dy(t,e){for(var n in e.prototype)t[n]=M["noop"]}Dy(ky,Jh),Dy(Iy,nf),ky.eachSeriesByType=ky.eachRawSeriesByType=function(t){Cy=t},ky.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Cy=t.subType)};var Ay=vy,jy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Py={color:jy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jy]},Ly="#B9B8CE",Ry="#100C2A",Ey=function(){return{axisLine:{lineStyle:{color:Ly}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Ny=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],By={darkMode:!0,color:Ny,backgroundColor:Ry,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ly}},textStyle:{color:Ly},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ly}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ly},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ly}},timeline:{lineStyle:{color:Ly},label:{color:Ly},controlStyle:{color:Ly,borderColor:Ly}},calendar:{itemStyle:{color:Ry},dayLabel:{color:Ly},monthLabel:{color:Ly},yearLabel:{color:Ly}},timeAxis:Ey(),logAxis:Ey(),valueAxis:Ey(),categoryAxis:Ey(),line:{symbol:"circle"},graph:{color:Ny},gauge:{title:{color:Ly},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ly},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};By.categoryAxis.splitLine.show=!1;var Fy=By,zy=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(M["isString"](t)){var i=yo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};M["each"](t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Vy=["symbol","symbolSize","symbolRotate","symbolOffset"],Hy=Vy.concat(["symbolKeepAspect"]),Wy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<Vy.length;a++){var s=Vy[a],l=t.get(s);Object(M["isFunction"])(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(M["extend"])({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Object(M["keys"])(i);return{dataEach:o?c:null}}}function c(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}}},Gy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<Hy.length;r++){var i=Hy[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}}};function Uy(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function Yy(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function qy(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(M["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Object(M["extend"])({},e),i.dispatchAction(Object(M["extend"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function Xy(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=no(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(M["isArray"])(u)?l.getName(u[0]):l.getName(u),selected:Object(M["isString"])(r)?r:Object(M["extend"])({},r)})}}))}function Zy(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(Xy("map","selectchanged",e,r,t),Xy("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Xy("map","selected",e,r,t),Xy("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Xy("map","unselected",e,r,t),Xy("pie","unselected",e,r,t))}))}function Ky(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var $y=Math.round(9*Math.random()),Qy="function"===typeof Object.defineProperty,Jy=function(){function t(){this._id="__ec_inner_"+$y++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Qy?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),tm=Jy,em=ps.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),nm=ps.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),rm=ps.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+f*p,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-c+h*p,l+s+f*p,n-c,l+s),t.closePath()}}),im=ps.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),om={line:zg,rect:Ds,roundRect:Ds,square:Ds,circle:ig,diamond:nm,pin:rm,arrow:im,triangle:em},am={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},sm={};Object(M["each"])(om,(function(t,e){sm[e]=new t}));var lm=ps.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Ir(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=sm[r];i||(r="rect",i=sm[r]),am[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function um(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function cm(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?xv(t.slice(8),new Kt(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?bv(t.slice(7),{},new Kt(e,n,r,i),a?"center":"cover"):new lm({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=um,o&&s.setColor(o),s}function hm(t,e){if(null!=t)return Object(M["isArray"])(t)||(t=[t,t]),[ci(t[0],e[0])||0,ci(Object(M["retrieve2"])(t[1],t[0]),e[1])||0]}function fm(t){return isFinite(t)}function pm(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=fm(r)?r:0,i=fm(i)?i:1,o=fm(o)?o:0,a=fm(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function dm(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=fm(a)?a:.5,s=fm(s)?s:.5,l=l>=0&&fm(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function gm(t,e,n){for(var r="radial"===e.type?dm(t,e,n):pm(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function vm(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function ym(t){return parseInt(t,10)}function mm(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||ym(s[r])||ym(t.style[r]))-(ym(s[o])||0)-(ym(s[a])||0)|0}function _m(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(M["isNumber"])(t)?[t]:Object(M["isArray"])(t)?t:null:null}function bm(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&_m(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(M["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var xm=new Va(!0);function wm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Sm(t){return"string"===typeof t&&"none"!==t}function Om(t){var e=t.fill;return null!=e&&"none"!==e}function Mm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Tm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Cm(t,e,n){var r=Lo(e.image,e.__image,n);if(Eo(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*M["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function km(t,e,n,r){var i,o=wm(n),a=Om(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||xm,h=e.__dirty;if(!r){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,v=a&&!!f.image,y=o&&!!p.image,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?gm(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?gm(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(b=h||!e.__canvasFillPattern?Cm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(x=h||!e.__canvasStrokePattern?Cm(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:v&&(b?t.fillStyle=b:a=!1),g?t.strokeStyle=_:y&&(x?t.strokeStyle=x:o=!1)}var S,O,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=bm(e),S=i[0],O=i[1]);var T=!0;(u||h&xe)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),r||(n.strokeFirst?(o&&Tm(t,n),a&&Mm(t,n)):(a&&Mm(t,n),o&&Tm(t,n))),S&&t.setLineDash([])}function Im(t,e,n){var r=e.__image=Lo(n.image,e.__image,e,e.onload);if(r&&Eo(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Dm(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||br["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=bm(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(wm(n)&&t.strokeText(i,n.x,n.y),Om(n)&&t.fillText(i,n.x,n.y)):(Om(n)&&t.fillText(i,n.x,n.y),wm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Am=["shadowBlur","shadowOffsetX","shadowOffsetY"],jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pm(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Gm(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Jo.opacity:a}(r||e.blend!==n.blend)&&(o||(Gm(t,i),o=!0),t.globalCompositeOperation=e.blend||Jo.blend);for(var s=0;s<Am.length;s++){var l=Am[s];(r||e[l]!==n[l])&&(o||(Gm(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Gm(t,i),o=!0),t.shadowColor=e.shadowColor||Jo.shadowColor),o}function Lm(t,e,n,r,i){var o=Um(e,i.inHover),a=r?null:n&&Um(n,i.inHover)||{};if(o===a)return!1;var s=Pm(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Gm(t,i),s=!0),Sm(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Gm(t,i),s=!0),Sm(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Gm(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Gm(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<jm.length;c++){var h=jm[c],f=h[0];(r||o[f]!==a[f])&&(s||(Gm(t,i),s=!0),t[f]=o[f]||h[1])}return s}function Rm(t,e,n,r,i){return Pm(t,Um(e,i.inHover),n&&Um(n,i.inHover),r,i)}function Em(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Nm(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Em(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function Bm(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 Fm=1,zm=2,Vm=3,Hm=4;function Wm(t){var e=Om(t),n=wm(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Gm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Um(t,e){return e&&t.__hoverStyle||t.style}function Ym(t,e){qm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function qm(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~_e,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!vm(o,a)||(a&&a.length&&(Gm(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Gm(t,n),t.save(),Nm(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof ps&&e.autoBatch&&Wm(e.style);s||Bm(i,u.transform)?(Gm(t,n),Em(t,e)):c||Gm(t,n);var h=Um(e,n.inHover);e instanceof ps?(n.lastDrawType!==Fm&&(l=!0,n.lastDrawType=Fm),Lm(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),km(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof vs?(n.lastDrawType!==Vm&&(l=!0,n.lastDrawType=Vm),Lm(t,e,u,l,n),Dm(t,e,h)):e instanceof xs?(n.lastDrawType!==zm&&(l=!0,n.lastDrawType=zm),Rm(t,e,u,l,n),Im(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==Hm&&(l=!0,n.lastDrawType=Hm),Xm(t,e,n)),c&&r&&Gm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Xm(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),qm(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),qm(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Zm=new tm,Km=new _r["a"](100),$m=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Qm(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Zm["delete"](t);var o=Zm.get(t);if(o)return o;var a=Object(M["defaults"])(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Zm.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<$m.length;++l){var u=a[$m[l]];if(null!=u&&!Object(M["isArray"])(u)&&!Object(M["isString"])(u)&&!Object(M["isNumber"])(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Km.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,f=t_(a.dashArrayX),p=e_(a.dashArrayY),d=Jm(a.symbol),g=n_(f),v=r_(p),y=!i&&br["c"].createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=b();function b(){for(var t=1,e=0,n=g.length;e<n;++e)t=Pi(t,g[e]);var r=1;for(e=0,n=d.length;e<n;++e)r=Pi(r,d[e].length);t*=r;var i=v*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function x(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0)){var o=-v,s=0,l=0,u=0;while(o<_.height){if(s%2===0){var c=l/2%d.length,g=0,b=0,x=0;while(g<2*_.width){var w=0;for(e=0;e<f[u].length;++e)w+=f[u][e];if(w<=0)break;if(b%2===0){var S=.5*(1-a.symbolSize),O=g+f[u][b]*S,M=o+p[s]*S,T=f[u][b]*a.symbolSize,C=p[s]*a.symbolSize,k=x/2%d[c].length;I(O,M,T,C,d[c][k])}g+=f[u][b],++x,++b,b===f[u].length&&(b=0)}++u,u===f.length&&(u=0)}o+=p[s],++l,++s,s===p.length&&(s=0)}}function I(t,e,o,s,l){var u=i?1:n,c=cm(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(c);f&&m.children.push(f)}else Ym(h,c)}}y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d")),x(),s&&Km.put(e,y||m),t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}}function Jm(t){if(!t||0===t.length)return[["rect"]];if(Object(M["isString"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(M["isString"])(t[n])){e=!1;break}if(e)return Jm([t]);var r=[];for(n=0;n<t.length;++n)Object(M["isString"])(t[n])?r.push([t[n]]):r.push(t[n]);return r}function t_(t){if(!t||0===t.length)return[[0,0]];if(Object(M["isNumber"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Object(M["isNumber"])(t[r])){n=!1;break}if(n)return t_([t]);var i=[];for(r=0;r<t.length;++r)if(Object(M["isNumber"])(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=Object(M["map"])(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function e_(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(M["isNumber"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(M["map"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function n_(t){return Object(M["map"])(t,(function(t){return r_(t)}))}function r_(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function i_(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=Qm(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Qm(i,e)}}}))}var o_=new et,a_=o_,s_={};function l_(t,e){s_[t]=e}function u_(t){return s_[t]}var c_="5.5.1",h_={zrender:"5.6.0"},f_=1,p_=800,d_=900,g_=1e3,v_=2e3,y_=5e3,m_=1e3,__=1100,b_=2e3,x_=3e3,w_=4e3,S_=4500,O_=4600,M_=5e3,T_=6e3,C_=7e3,k_={PROCESSOR:{FILTER:g_,SERIES_FILTER:p_,STATISTIC:y_},VISUAL:{LAYOUT:m_,PROGRESSIVE_LAYOUT:__,GLOBAL:b_,CHART:x_,POST_CHART_LAYOUT:O_,COMPONENT:w_,BRUSH:M_,CHART_ITEM:S_,ARIA:T_,DECAL:C_}},I_="__flagInMainProcess",D_="__pendingUpdate",A_="__needsUpdateStatus",j_=/^[a-zA-Z0-9_]+$/,P_="__connectUpdateStatus",L_=0,R_=1,E_=2;function N_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return F_(this,t,e);ub(this.id)}}function B_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return F_(this,t,e)}}function F_(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),et.prototype[e].apply(t,n)}var z_,V_,H_,W_,G_,U_,Y_,q_,X_,Z_,K_,$_,Q_,J_,tb,eb,nb,rb,ib=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e}(et),ob=ib.prototype;ob.on=B_("on"),ob.off=B_("off");var ab=function(t){function e(e,n,r){var i=t.call(this,new zy)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(M["isString"])(n)&&(n=gb[n]),i._dom=e;var o="canvas",a="auto",s=!1;r.ssr&&ii((function(t){var e=Zs(t),n=e.dataIndex;if(null!=n){var r=Object(M["createHashMap"])();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var l=i._zr=Qr(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(M["retrieve2"])(r.useDirtyRect,s),useCoarsePointer:Object(M["retrieve2"])(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ny(Object(M["bind"])(l.flush,l),17),n=Object(M["clone"])(n),n&&Nf(n,!0),i._theme=n,i._locale=ac(r.locale||ic),i._coordSysMgr=new af;var u=i._api=tb(i);function c(t,e){return t.__prio-e.__prio}return me(db,c),me(fb,c),i._scheduler=new Ay(i,u,fb,db),i._messageCenter=new ib,i._initEvents(),i.resize=Object(M["bind"])(i.resize,i),l.animation.on("frame",i._onframe,i),Z_(l,i),K_(l,i),Object(M["setAsPrimitive"])(i),i}return S(e,t),e.prototype._onframe=function(){if(!this._disposed){rb(this);var t=this._scheduler;if(this[D_]){var e=this[D_].silent;this[I_]=!0;try{z_(this),W_.update.call(this,null,this[D_].updateParams)}catch(a){throw this[I_]=!1,this[D_]=null,a}this._zr.flush(),this[I_]=!1,this[D_]=null,q_.call(this,e),X_.call(this,e)}else if(t.unfinished){var n=f_,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),U_(this,r),t.performVisualTasks(r),J_(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[I_])if(this._disposed)ub(this.id);else{var r,i,o;if(Object(M["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[I_]=!0,!this._model||e){var a=new pf(this._api),s=this._theme,l=this._model=new Jh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},pb);var u={seriesTransition:o,optionChanged:!0};if(n)this[D_]={silent:r,updateParams:u},this[I_]=!1,this.getZr().wakeUp();else{try{z_(this),W_.update.call(this,null,u)}catch(c){throw this[D_]=null,this[I_]=!1,c}this._ssr||this._zr.flush(),this[D_]=null,this[I_]=!1,q_.call(this,r),X_.call(this,r)}}},e.prototype.setTheme=function(){Wh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||O["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(O["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(M["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(M["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(M["each"])(r,(function(t){t.group.ignore=!1})),o}ub(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(mb[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(M["each"])(yb,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(M["clone"])(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:f,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,p=u-s,d=br["c"].createCanvas(),g=Qr(d,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:p}),e){var v="";return Object(M["each"])(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ds({shape:{x:0,y:0,width:f,height:p},style:{fill:t.connectedBackgroundColor}})),Object(M["each"])(c,(function(t){var e=new xs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}ub(this.id)},e.prototype.convertToPixel=function(t,e){return G_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return G_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=oo(r,t);return Object(M["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(M["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}ub(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=oo(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Uy(o,a,e):Yy(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(M["each"])(lb,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Ky(o,(function(t){var e=Zs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=Object(M["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(M["each"])(hb,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(M["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Zy(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?ub(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)ub(this.id);else{this._disposed=!0;var t=this.getDom();t&&uo(this.getDom(),xb,"");var e=this,n=e._api,r=e._model;Object(M["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(M["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete yb[e.id]}},e.prototype.resize=function(t){if(!this[I_])if(this._disposed)ub(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[D_]&&(null==r&&(r=this[D_].silent),n=!0,this[D_]=null),this[I_]=!0;try{n&&z_(this),W_.update.call(this,{type:"resize",animation:Object(M["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[I_]=!1,i}this[I_]=!1,q_.call(this,r),X_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)ub(this.id);else if(Object(M["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),vb[t]){var n=vb[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?ub(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(M["extend"])({},t);return e.type=hb[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)ub(this.id);else if(Object(M["isObject"])(e)||(e={silent:!!e}),cb[t.type]&&this._model)if(this[I_])this._pendingActions.push(t);else{var n=e.silent;Y_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&O["a"].browser.weChat&&this._throttledZrFlush(),q_.call(this,n),X_.call(this,n)}},e.prototype.updateLabelLayout=function(){a_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)ub(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);me(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(M["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===rl&&t.states.emphasis?e.push("emphasis"):t.hoverState===nl&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!O["a"].node&&!O["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(a(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(c&&c.showAbove?1:-1))}return r}function s(t,e){e.eachRendered((function(t){if(!fu(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(fu(t))return;if(t instanceof ps&&au(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}z_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),V_(t,!0),V_(t,!1),e.plan()},V_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=yo(t.type),f=e?jd.getClass(h.main,h.sub):Qv.getClass(h.sub);0,c=new f,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},H_=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Object(M["createHashMap"])(),Object(M["each"])(Ni(u),(function(t){var e=$i(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var r=l&&null!=l.get(e.id);if(!r)if(ou(n))if(e instanceof Dd)n.type!==ll||n.notBlur||e.get(["emphasis","disabled"])||Vl(e,n,t._api);else{var i=Hl(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===ll&&o&&!n.notBlur&&zl(e.mainType,e.componentIndex,t._api),a&&Object(M["each"])(a,(function(t){n.type===ll?Al(t):jl(t)}))}else iu(n)&&e instanceof Dd&&(Ul(e,n,t._api),Yl(e),nb(t))}),t),o&&o.eachComponent(s,(function(e){var n=l&&null!=l.get(e.id);n||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(M["each"])([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},W_={prepareAndUpdate:function(t){z_(this),W_.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),U_(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),$_(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),a_.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(M["createHashMap"])();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),J_(this,r,i,e,{},a),a_.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Qv.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),$_(this,n,this._api,e,{}),a_.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),Qv.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)})),a_.trigger("afterupdate",r,this._api))},updateLayout:function(t){W_.update.call(this,t)}},G_=function(t,e,n,r){if(t._disposed)ub(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=oo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},U_=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},Y_=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=cb[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&yo(l[0]);this[I_]=!0;var h=[t],f=!1;t.batch&&(f=!0,h=Object(M["map"])(t.batch,(function(e){return e=Object(M["defaults"])(Object(M["extend"])({},e),t),e.batch=null,e})));var p,d=[],g=iu(t),v=ou(t);if(v&&Bl(this._api),Object(M["each"])(h,(function(e){if(p=a.action(e,n._model,n._api),p=p||Object(M["extend"])({},e),p.type=s.event||p.type,d.push(p),v){var r=ao(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";H_(n,u,e,l),nb(n)}else g?(H_(n,u,e,"series"),nb(n)):c&&H_(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[D_]?(z_(this),W_.update.call(this,t),this[D_]=null):W_[u].call(this,t)}catch(_){throw this[I_]=!1,_}if(p=f?{type:s.event||i,escapeConnect:o,batch:d}:d[0],this[I_]=!1,!e){var y=this._messageCenter;if(y.trigger(p.type,p),g){var m={type:"selectchanged",escapeConnect:o,selected:ql(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},q_=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();Y_.call(this,n,t)}},X_=function(t){!t&&this.trigger("updated")},Z_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[D_]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},K_=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=Ky(n,nu);r&&(Wl(r,t,e._api),nb(e))})).on("mouseout",(function(t){var n=t.target,r=Ky(n,nu);r&&(Gl(r,t,e._api),nb(e))})).on("click",(function(t){var n=t.target,r=Ky(n,(function(t){return null!=Zs(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Zs(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},$_=function(t,n,r,i,o){e(n),Q_(t,n,r,i,o),Object(M["each"])(t._chartsViews,(function(t){t.__alive=!1})),J_(t,n,r,i,o),Object(M["each"])(t._chartsViews,(function(t){t.__alive||t.remove(n,r)}))},Q_=function(t,e,n,r,i,a){Object(M["each"])(a||t._componentsViews,(function(t){var i=t.__model;s(i,t),t.render(i,e,n,r),o(i,t),l(i,t)}))},J_=function(t,e,n,a,u,c){var h=t._scheduler;u=Object(M["extend"])(u||{},{updatedSeries:e.getSeries()}),a_.trigger("series:beforeupdate",e,n,u);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,a),s(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!e.get("silent"),i(e,n),Yl(e)})),h.unfinished=f||h.unfinished,a_.trigger("series:layoutlabels",e,n,u),a_.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),r(t,e),a_.trigger("series:afterupdate",e,n,u)},nb=function(t){t[A_]=!0,t.getZr().wakeUp()},rb=function(t){t[A_]&&(t.getZr().storage.traverse((function(t){fu(t)||n(t)})),t[A_]=!1)},tb=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return S(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Al(e,n),nb(t)},n.prototype.leaveEmphasis=function(e,n){jl(e,n),nb(t)},n.prototype.enterBlur=function(e){Pl(e),nb(t)},n.prototype.leaveBlur=function(e){Ll(e),nb(t)},n.prototype.enterSelect=function(e){Rl(e),nb(t)},n.prototype.leaveSelect=function(e){El(e),nb(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(nf))(t)},eb=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[P_]=e}}Object(M["each"])(hb,(function(n,r){t._messageCenter.on(r,(function(n){if(mb[t.group]&&t[P_]!==L_){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(M["each"])(yb,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,L_),Object(M["each"])(i,(function(t){t[P_]!==R_&&t.dispatchAction(r)})),e(i,E_)}}))}))}}(),e}(et),sb=ab.prototype;sb.on=N_("on"),sb.off=N_("off"),sb.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}Wh("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var lb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ub(t){0}var cb={},hb={},fb=[],pb=[],db=[],gb={},vb={},yb={},mb={},_b=+new Date-0,bb=+new Date-0,xb="_echarts_instance_";function wb(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=Cb(t);if(i)return i;0}var o=new ab(t,e,n);return o.id="ec_"+_b++,yb[o.id]=o,r&&uo(t,xb,o.id),eb(o),a_.trigger("afterinit",o),o}function Sb(t){if(Object(M["isArray"])(t)){var e=t;t=null,Object(M["each"])(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+bb++,Object(M["each"])(e,(function(e){e.group=t}))}return mb[t]=!0,t}function Ob(t){mb[t]=!1}var Mb=Ob;function Tb(t){Object(M["isString"])(t)?t=yb[t]:t instanceof ab||(t=Cb(t)),t instanceof ab&&!t.isDisposed()&&t.dispose()}function Cb(t){return yb[co(t,xb)]}function kb(t){return yb[t]}function Ib(t,e){gb[t]=e}function Db(t){Object(M["indexOf"])(pb,t)<0&&pb.push(t)}function Ab(t,e){Vb(fb,t,e,v_)}function jb(t){Lb("afterinit",t)}function Pb(t){Lb("afterupdate",t)}function Lb(t,e){a_.on(t,e)}function Rb(t,e,n){Object(M["isFunction"])(e)&&(n=e,e="");var r=Object(M["isObject"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,hb[e]||(Object(M["assert"])(j_.test(r)&&j_.test(e)),cb[r]||(cb[r]={action:n,actionInfo:t}),hb[e]=r)}function Eb(t,e){af.register(t,e)}function Nb(t){var e=af.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Bb(t,e){Vb(db,t,e,m_,"layout")}function Fb(t,e){Vb(db,t,e,x_,"visual")}var zb=[];function Vb(t,e,n,r,i){if((Object(M["isFunction"])(e)||Object(M["isObject"])(e))&&(n=e,e=r),!(Object(M["indexOf"])(zb,n)>=0)){zb.push(n);var o=Ay.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Hb(t,e){vb[t]=e}function Wb(t){Object(br["d"])({createCanvas:t})}function Gb(t,e,n){var r=u_("registerMap");r&&r(t,e,n)}function Ub(t){var e=u_("getMap");return e&&e(t)}var Yb=Dp;Fb(b_,cy),Fb(S_,fy),Fb(S_,py),Fb(b_,Wy),Fb(S_,Gy),Fb(C_,i_),Db(Nf),Ab(d_,Bf),Hb("default",gy),Rb({type:ll,event:ll,update:ll},M["noop"]),Rb({type:ul,event:ul,update:ul},M["noop"]),Rb({type:cl,event:cl,update:cl},M["noop"]),Rb({type:hl,event:hl,update:hl},M["noop"]),Rb({type:fl,event:fl,update:fl},M["noop"]),Ib("light",Py),Ib("dark",Fy);var qb={},Xb=[],Zb={registerPreprocessor:Db,registerProcessor:Ab,registerPostInit:jb,registerPostUpdate:Pb,registerUpdateLifecycle:Lb,registerAction:Rb,registerCoordinateSystem:Eb,registerLayout:Bb,registerVisual:Fb,registerTransform:Yb,registerLoading:Hb,registerMap:Gb,registerImpl:l_,PRIORITY:k_,ComponentModel:hh,ComponentView:jd,SeriesModel:Dd,ChartView:Qv,registerComponentModel:function(t){hh.registerClass(t)},registerComponentView:function(t){jd.registerClass(t)},registerSeriesModel:function(t){Dd.registerClass(t)},registerChartView:function(t){Qv.registerClass(t)},registerSubTypeDefaulter:function(t,e){hh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ni(t,e)}};function Kb(t){Object(M["isArray"])(t)?Object(M["each"])(t,(function(t){Kb(t)})):Object(M["indexOf"])(Xb,t)>=0||(Xb.push(t),Object(M["isFunction"])(t)&&(t={install:t}),t.install(Zb))}function $b(t){return null==t?0:t.length||1}function Qb(t){return t}var Jb=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Qb,this._newKeyGetter=r||Qb,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=$b(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=$b(l),h=$b(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=$b(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=$b(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),tx=Jb,ex=function(){function t(t,e){this._encode=t,this._schema=e}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 nx(t,e){var n={},r=n.encode={},i=Object(M["createHashMap"])(),o=[],a=[],s={};Object(M["each"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;rx(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),ox(n.type)&&(o[0]=e),rx(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}gh.each((function(t,e){var i=rx(r,e),o=n.otherDims[e];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(M["map"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new ex(s,e),n}function rx(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function ix(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function ox(t){return!("ordinal"===t||"time"===t)}var ax=function(){function t(t){this.otherDims={},null!=t&&M["extend"](this,t)}return t}(),sx=ax,lx=ro(),ux={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cx=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=px(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(M["retrieve2"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ep(this.source),n=!dx(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=ux[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function hx(t){return t instanceof cx}function fx(t){for(var e=Object(M["createHashMap"])(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(M["isObject"])(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function px(t){var e=lx(t);return e.dimNameMap||(e.dimNameMap=fx(t.dimensionsDefine))}function dx(t){return t>30}var gx,vx,yx,mx,_x,bx,xx,wx=M["isObject"],Sx=M["map"],Ox="undefined"===typeof Int32Array?Array:Int32Array,Mx="e\0\0",Tx=-1,Cx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kx=["_approximateExtent"],Ix=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;hx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=M["isString"](c)?new sx({name:c}):c instanceof sx?c:new sx(c),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,null!=l[f]&&(s=!0),h.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=M["createHashMap"]();M["each"](o,(function(t){d.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(M["isNumber"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Yp&&(r=t),!r){var o=this.dimensions,a=Yf(t)||M["isArrayLike"](t)?new np(t,o.length):t;r=new Yp;var s=Sx(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=nx(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&xx(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==bh&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===vh;if(s&&!r.pure)for(var l=[],u=t;u<e;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Vi(c)&&(this.hasItemOption=!0),c){var h=c.name;null==i[u]&&null!=h&&(i[u]=$i(h,null));var f=c.id;null==o[u]&&null!=f&&(o[u]=$i(f,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)xx(this,u);gx(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){wx(t)?M["extend"](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=yx(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return vx(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},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,r=this._store;return M["isArray"](t)?r.getValues(Sx(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;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();e<n;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];var r=n[e];return null==r||isNaN(r)?Tx:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){M["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=Sx(mx(t),this._getStoreDimIndex,this);this._store.each(i,r?M["bind"](e,r):e)},t.prototype.filterSelf=function(t,e,n){M["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=Sx(mx(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?M["bind"](e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=M["keys"](t),i=[];return M["each"](r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){M["isFunction"](t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=Sx(mx(t),this._getStoreDimIndex,this),a=bx(this);return a._store=this._store.map(o,i?M["bind"](e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=Sx(mx(t),this._getStoreDimIndex,this);this._store.modify(o,i?M["bind"](e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=bx(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=bx(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Uu(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new tx(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return vx(t,e)}),(function(t){return vx(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},wx(t)?M["extend"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),M["isArray"](i)?i=i.slice():wx(i)&&(i=M["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,wx(e)?M["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){wx(t)?M["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?M["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Ks(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){M["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Sx(this.dimensions,this._getDimInfo,this),this.hostModel)),_x(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];M["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(M["slice"](arguments)))})},t.internalField=function(){gx=function(t){var e=t._invertedIndicesMap;M["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Ox(o.categories.length);for(var s=0;s<n.length;s++)n[s]=Tx;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},yx=function(t,e,n){return $i(t._getCategory(e,n),null)},vx=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=yx(t,t._idDimIdx,e)),null==n&&(n=Mx+e),n},mx=function(t){return M["isArray"](t)||(t=null!=t?[t]:[]),t},bx=function(e){var n=new t(e._schema?e._schema:Sx(e.dimensions,e._getDimInfo,e),e.hostModel);return _x(n,e),n},_x=function(t,e){M["each"](Cx.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,M["each"](kx,(function(n){t[n]=M["clone"](e[n])})),t._calculationInfo=M["extend"]({},e._calculationInfo)},xx=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=yx(t,i,e)),null==s&&null!=o&&(r[e]=s=yx(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Dx=Ix;function Ax(t,e){return jx(t,e).dimensions}function jx(t,e){Yf(t)||(t=Xf(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(M["createHashMap"])(),o=[],a=Lx(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&dx(a),l=r===t.dimensionsDefine,u=l?px(t):fx(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(M["createHashMap"])(c),f=new Bp(a),p=0;p<f.length;p++)f[p]=-1;function d(t){var e=f[t];if(e<0){var n=r[t],i=Object(M["isObject"])(n)?n:{name:n},a=new sx,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return f[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)d(p);h.each((function(t,e){var n=Ni(t).slice();if(1===n.length&&!Object(M["isString"])(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Object(M["each"])(n,(function(t,n){var i=Object(M["isString"])(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(d(i),e,n))}))}}));var g=0;function v(t,e,n){null!=gh.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(M["each"])(n,(function(t){var e,n,r,i;if(Object(M["isString"])(t))e=t,i={};else{i=t,e=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Object(M["extend"])({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Ni(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=d(g).coordDim)g++;g<a&&s.push(g++)}Object(M["each"])(s,(function(t,o){var a=d(t);if(l&&null!=i.type&&(a.type=i.type),v(Object(M["defaults"])(a,i),e,o),null==a.name&&n){var s=n[o];!Object(M["isObject"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(M["defaults"])(a.otherDims,r)}))}}));var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var b=y||"value";function x(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(M["each"])(o,(function(t){x(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=d(w),O=S.coordDim;null==O&&(S.coordDim=Rx(b,i,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),x(S),null!=S.type||Ah(t,w)!==Oh.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return Px(o),new cx({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Px(t){for(var e=Object(M["createHashMap"])(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Lx(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(M["each"])(e,(function(t){var e;Object(M["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Rx(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}var Ex=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(M["createHashMap"])(),this.categoryAxisMap=Object(M["createHashMap"])(),this.coordSysName=t}return t}();function Nx(t){var e=t.get("coordinateSystem"),n=new Ex(e),r=Bx[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Bx={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",so).models[0],o=t.getReferringComponents("yAxis",so).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Fx(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Fx(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",so).models[0];e.coordSysDims=["single"],n.set("single",i),Fx(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",so).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Fx(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Fx(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(M["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Fx(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Fx(t){return"category"===t.get("type")}function zx(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Vx(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(M["each"])(r,(function(t,e){Object(M["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,d=u.type,g=0;Object(M["each"])(r,(function(t){t.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,d),y.storeDimIndex=o.ensureCalculationDimension(c,d)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Vx(t){return!hx(t.schema)}function Hx(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Wx(t,e){return Hx(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Gx(t,e){var n,r=t.get("coordinateSystem"),i=af.get(r);return e&&e.coordSysDims&&(n=M["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=ix(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Ux(t,e,n){var r,i;return n&&M["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Yx(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Xf(t)):(r=i.getSource(),o=r.sourceFormat===vh);var a=Nx(e),s=Gx(e,a),l=n.useEncodeDefaulter,u=M["isFunction"](l)?l:l?M["curry"](Ch,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=jx(r,c),f=Ux(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),d=zx(e,{schema:h,store:p}),g=new Dx(h,e);g.setCalculationInfo(d);var v=null!=f&&qx(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function qx(t){if(t.sourceFormat===vh){var e=Xx(t.data||[]);return!M["isArray"](zi(e))}}function Xx(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var Zx=Yx,Kx=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Co(Kx);var $x=Kx,Qx=0,Jx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Qx}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(M["map"])(r,tw);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(M["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(M["createHashMap"])(this.categories))},t}();function tw(t){return Object(M["isObject"])(t)&&null!=t.value?t.value:t+""}var ew=Jx;function nw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Ti(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=rw(a),l=i.niceTickExtent=[hi(Math.ceil(t[0]/a)*a,s),hi(Math.floor(t[1]/a)*a,s)];return ow(l,t),i}function rw(t){return pi(t)+2}function iw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ow(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),iw(t,0,e),iw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function aw(t,e){return t>=e[0]&&t<=e[1]}function sw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function lw(t,e){return t*(e[1]-e[0])+e[0]}var uw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new ew({})),Object(M["isArray"])(r)&&(r=new ew({categories:Object(M["map"])(r,(function(t){return Object(M["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return S(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(M["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),aw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),sw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(lw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}($x);$x.registerClass(uw);var cw=uw,hw=hi,fw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return S(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return aw(t,this._extent)},e.prototype.normalize=function(t){return sw(t,this._extent)},e.prototype.scale=function(t){return lw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:hw(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=hw(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:hw(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=hw(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=pi(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=hw(t.value,n,!0);return Vc(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=nw(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=hw(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=hw(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}($x);$x.registerClass(fw);var pw=fw,dw="undefined"!==typeof Float32Array;dw&&Float32Array;var gw="__ec_stack_";function vw(t){return t.get("stack")||gw+t.seriesIndex}function yw(t){return t.dim+t.index}function mw(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Sw(t)&&n.push(t)})),n}function _w(t){var e={};Object(M["each"])(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function bw(t){var e=_w(t),n=[];return Object(M["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var p=ci(t.get("barWidth"),r),d=ci(t.get("barMaxWidth"),r),g=ci(t.get("barMinWidth")||(Ow(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:yw(o),stackId:vw(t)})})),xw(n)}function xw(t){var e={};Object(M["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(M["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(M["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=ci(o,i),l=ci(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(M["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,p=0;Object(M["each"])(r,(function(t,e){t.width||(t.width=h),f=t,p+=t.width*(1+l)})),f&&(p-=f.width*l);var d=-p/2;Object(M["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function ww(t,e,n){if(t&&e){var r=t[yw(e)];return null!=r&&null!=n?r[vw(n)]:r}}function Sw(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Ow(t){return t.pipelineContext&&t.pipelineContext.large}var Mw=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},Tw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return S(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Sc(t.value,vc[wc(bc(this._minLevelUnit))]||vc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Oc(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=Rw(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=fc,e[1]+=fc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-fc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Cw.length,a=Math.min(Mw(Cw,this._approxInterval,0,o),o-1);this._interval=Cw[a][1],this._minLevelUnit=Cw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(M["isNumber"])(t)?t:+Si(t)},e.prototype.contain=function(t){return aw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return sw(this.parse(t),this._extent)},e.prototype.scale=function(t){return lw(t,this._extent)},e.type="time",e}(pw),Cw=[["second",uc],["minute",cc],["hour",hc],["quarter-day",6*hc],["half-day",12*hc],["day",1.2*fc],["half-week",3.5*fc],["week",7*fc],["month",31*fc],["quarter",95*fc],["half-year",pc/2],["year",pc]];function kw(t,e,n,r){var i=Si(e),o=Si(n),a=function(t){return Tc(i,t,r)===Tc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},p=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return p()}}function Iw(t,e){return t/=fc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Dw(t){var e=30*fc;return t/=e,t>6?6:t>3?3:t>2?2:1}function Aw(t){return t/=hc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function jw(t,e){return t/=e?cc:uc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Pw(t){return Ti(t,!0)}function Lw(t,e,n){var r=new Date(t);switch(bc(e)){case"year":case"month":r[Rc(n)](0);case"day":r[Ec(n)](1);case"hour":r[Nc(n)](0);case"minute":r[Bc(n)](0);case"second":r[Fc(n)](0),r[zc(n)](0)}return r.getTime()}function Rw(t,e,n,r){var i=1e4,o=mc,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!kw(bc(t),r[0],r[1],n)){l&&(i=[{value:Lw(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/fc/365)),p=Cc(n),d=Lc(n);break;case"half-year":case"quarter":case"month":f=Dw(e),p=kc(n),d=Rc(n);break;case"week":case"half-week":case"day":f=Iw(e,31),p=Ic(n),d=Ec(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=Aw(e),p=Dc(n),d=Nc(n);break;case"minute":f=jw(e,!0),p=Ac(n),d=Bc(n);break;case"second":f=jw(e,!1),p=jc(n),d=Fc(n);break;case"millisecond":f=Pw(e),p=Pc(n),d=zc(n);break}s(f,c,h,p,d,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,f=0,p=0;p<o.length&&a++<i;++p){var d=bc(o[p]);if(xc(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?bc(o[p+1]):null;if(d!==g){if(c.length){f=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<c.length;++y){var m=c[y].value;0!==y&&c[y-1].value===m||(v.push(c[y]),m>=r[0]&&m<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(v),h>_||t===o[p])break}c=[]}}}var b=Object(M["filter"])(Object(M["map"])(u,(function(t){return Object(M["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=b.length-1;for(p=0;p<b.length;++p)for(var S=b[p],O=0;O<S.length;++O)x.push({value:S[O].value,level:w-p});x.sort((function(t,e){return t.value-e.value}));var T=[];for(p=0;p<x.length;++p)0!==p&&x[p].value===x[p-1].value||T.push(x[p]);return T}$x.registerClass(Tw);var Ew=Tw,Nw=$x.prototype,Bw=pw.prototype,Fw=hi,zw=Math.floor,Vw=Math.ceil,Hw=Math.pow,Ww=Math.log,Gw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new pw,e._interval=0,e}return S(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=Bw.getTicks.call(this,t);return M["map"](i,(function(t){var e=t.value,i=hi(Hw(this.base,e));return i=e===n[0]&&this._fixMin?Yw(i,r[0]):i,i=e===n[1]&&this._fixMax?Yw(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=Ww(this.base);t=Ww(Math.max(0,t))/n,e=Ww(Math.max(0,e))/n,Bw.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Nw.getExtent.call(this);e[0]=Hw(t,e[0]),e[1]=Hw(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=Yw(e[0],r[0])),this._fixMax&&(e[1]=Yw(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Ww(t[0])/Ww(e),t[1]=Ww(t[1])/Ww(e),Nw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=Oi(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[hi(Vw(e[0]/r)*r),hi(zw(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Bw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ww(t)/Ww(this.base),aw(t,this._extent)},e.prototype.normalize=function(t){return t=Ww(t)/Ww(this.base),sw(t,this._extent)},e.prototype.scale=function(t){return t=lw(t,this._extent),Hw(this.base,t)},e.type="log",e}($x),Uw=Gw.prototype;function Yw(t,e){return Fw(t,pi(e))}Uw.getMinorTicks=Bw.getMinorTicks,Uw.getLabel=Bw.getLabel,$x.registerClass(Gw);var qw=Gw,Xw=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Object(M["isFunction"])(o)?this._modelMinNum=Qw(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Qw(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Object(M["isFunction"])(a)?this._modelMaxNum=Qw(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Qw(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Object(M["isArray"])(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[kr(l[0],1),kr(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(M["eqNaN"])(a)||Object(M["eqNaN"])(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Kw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Zw[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Zw={min:"_determinedMin",max:"_determinedMax"},Kw={min:"_dataMin",max:"_dataMax"};function $w(t,e,n){var r=t.rawExtentInfo;return r||(r=new Xw(t,e,n),t.rawExtentInfo=r,r)}function Qw(t,e){return null==e?null:Object(M["eqNaN"])(e)?NaN:t.parse(e)}function Jw(t,e){var n=t.type,r=$w(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=mw("bar",a),l=!1;if(M["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=bw(s),c=tS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function tS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=ww(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;M["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;M["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function eS(t,e){var n=e,r=Jw(t,n),i=r.extent,o=n.get("splitNumber");t instanceof qw&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function nS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new cw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ew({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new($x.getClass(e)||pw)}}function rS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):M["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):M["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(iS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function iS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function oS(t){var e=t.get("interval");return null==e?"auto":e}function aS(t){return"category"===t.type&&0===oS(t.getLabelModel())}var sS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function lS(t){return Zx(null,t)}var uS={isDimensionStacked:Hx,enableDataStack:zx,getStackedDimension:Wx};function cS(t,e){var n=e;e instanceof Uu||(n=new Uu(e));var r=nS(n);return r.setExtent(t[0],t[1]),eS(r,n),r}function hS(t){M["mixin"](t,sS)}function fS(t,e){return e=e||{},wu(t,null,null,"normal"!==e.state)}var pS=1e-8;function dS(t,e){return Math.abs(t-e)<pS}function gS(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Za(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return dS(i[0],s[0])&&dS(i[1],s[1])||(r+=Za(i[0],i[1],s[0],s[1],e,n)),0!==r}var vS=[];function yS(t,e){for(var n=0;n<t.length;n++)X(t[n],t[n],e)}function mS(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Z(e,e,o),K(n,n,o))}}function _S(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var bS=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),xS=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),wS=function(){function t(t){this.type="linestring",this.points=t}return t}(),SS=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return S(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return _S(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(M["each"])(i,(function(e){"polygon"===e.type?mS(e.exterior,n,r,t):Object(M["each"])(e.points,(function(e){mS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Kt(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(gS(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(gS(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Kt(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(yS(c.exterior,s),Object(M["each"])(c.interiors,(function(t){yS(t,s)}))):Object(M["each"])(c.points,(function(t){yS(t,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(bS);(function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}S(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=At(vS),i=t;while(i&&!i.isGeoSVGGraphicRoot)Pt(r,i.getLocalTransform(),r),i=i.parent;return Nt(r,r),X(n,n,r),n}})(bS);function OS(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return M["each"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=TS(i,r,n);break;case"Polygon":MS(i,r,n);break;case"MultiLineString":MS(i,r,n);break;case"MultiPolygon":M["each"](i,(function(t,e){return MS(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function MS(t,e,n){for(var r=0;r<t.length;r++)t[r]=TS(t[r],e[r],n)}function TS(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function CS(t,e){return t=OS(t),M["map"](M["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new xS(o[0],o.slice(1)));break;case"MultiPolygon":M["each"](r.coordinates,(function(t){t[0]&&i.push(new xS(t[0],t.slice(1)))}));break;case"LineString":i.push(new wS([r.coordinates]));break;case"MultiLineString":i.push(new wS(r.coordinates))}var a=new SS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function kS(t,e,n,r,i,o,a,s){var l=new Xs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var IS=ro();function DS(t,e){var n=M["map"](e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function AS(t){var e=t.getLabelModel().get("customValues");if(e){var n=rS(t);return{labels:DS(t,e).map((function(e){var r={value:e};return{formattedLabel:n(r),rawLabel:t.scale.getLabel(r),tickValue:e}}))}}return"category"===t.type?PS(t):ES(t)}function jS(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:DS(t,n)}:"category"===t.type?RS(t,e):{ticks:M["map"](t.scale.getTicks(),(function(t){return t.value}))}}function PS(t){var e=t.getLabelModel(),n=LS(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function LS(t,e){var n,r,i=NS(t,"labels"),o=oS(e),a=BS(i,o);return a||(M["isFunction"](o)?n=GS(t,o):(r="auto"===o?zS(t):o,n=WS(t,r)),FS(i,o,{labels:n,labelCategoryInterval:r}))}function RS(t,e){var n,r,i=NS(t,"ticks"),o=oS(e),a=BS(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),M["isFunction"](o))n=GS(t,o,!0);else if("auto"===o){var s=LS(t,t.getLabelModel());r=s.labelCategoryInterval,n=M["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=WS(t,r,!0);return FS(i,o,{ticks:n,tickCategoryInterval:r})}function ES(t){var e=t.scale.getTicks(),n=rS(t);return{labels:M["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function NS(t,e){return IS(t)[e]||(IS(t)[e]=[])}function BS(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function FS(t,e,n){return t.push({key:e,value:n}),n}function zS(t){var e=IS(t).autoInterval;return null!=e?e:IS(t).autoInterval=t.calculateCategoryInterval()}function VS(t){var e=HS(t),n=rS(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=Or(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var y=f/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),b=IS(t.model),x=t.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=a,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function HS(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 WS(t,e,n){var r=rS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=aS(t),f=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&d-l!==o[1]&&g(o[1]),s}function GS(t,e,n){var r=t.scale,i=rS(t),o=[];return M["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var US=[0,1],YS=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return gi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),qS(n,r.count())),ui(t,US,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),qS(n,r.count()));var i=ui(t,n,US,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=jS(this,e),r=n.ticks,i=Object(M["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return XS(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(M["map"])(n,(function(t){return Object(M["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return AS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return VS(this)},t}();function qS(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function XS(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(M["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=hi(t),e=hi(e),h?t>e:t<e}}var ZS=YS;function KS(t){var e=hh.extend(t);return hh.registerClass(e),e}function $S(t){var e=jd.extend(t);return jd.registerClass(e),e}function QS(t){var e=Dd.extend(t);return Dd.registerClass(e),e}function JS(t){var e=Qv.extend(t);return Qv.registerClass(e),e}var tO=2*Math.PI,eO=Va.CMD,nO=["top","right","bottom","left"];function rO(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function iO(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(r-i)%tO<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var f=r;r=Ya(i),i=Ya(f)}else r=Ya(r),i=Ya(i);r>i&&(i+=tO);var p=Math.atan2(s,a);if(p<0&&(p+=tO),p>=r&&p<=i||p+tO>=r&&p+tO<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function oO(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var p=l*c+u*h,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*c,v=a[1]=e+d*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function aO(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var sO=[];function lO(t,e,n){var r=aO(e.x,e.y,e.width,e.height,t.x,t.y,sO);return n.set(sO[0],sO[1]),r}function uO(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,f=t.y,p=0;p<c.length;){var d=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(d){case eO.M:s=c[p++],l=c[p++],o=s,a=l;break;case eO.L:g=oO(o,a,c[p],c[p+1],h,f,sO,!0),o=c[p++],a=c[p++];break;case eO.C:g=qe(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,f,sO),o=c[p++],a=c[p++];break;case eO.Q:g=tn(o,a,c[p++],c[p++],c[p],c[p+1],h,f,sO),o=c[p++],a=c[p++];break;case eO.A:var v=c[p++],y=c[p++],m=c[p++],_=c[p++],b=c[p++],x=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(b)*m+v,i=Math.sin(b)*_+y,p<=1&&(s=r,l=i);var S=(h-v)*_/m+v;g=iO(v,y,_,b,b+x,w,S,f,sO),o=Math.cos(b+x)*m+v,a=Math.sin(b+x)*_+y;break;case eO.R:s=o=c[p++],l=a=c[p++];var O=c[p++],M=c[p++];g=aO(s,l,O,M,h,f,sO);break;case eO.Z:g=oO(o,a,s,l,h,f,sO,!0),o=s,a=l;break}g<u&&(u=g,n.set(sO[0],sO[1]))}return u}var cO=new zt,hO=new zt,fO=new zt,pO=new zt,dO=new zt;function gO(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||nO,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&Nt([],c),f=e.get("length2")||0;u&&fO.copy(u);for(var p=0;p<a.length;p++){var d=a[p];rO(d,0,s,cO,pO),zt.scaleAndAdd(hO,cO,pO,f),hO.transform(h);var g=t.getBoundingRect(),v=u?u.distance(hO):t instanceof ps?uO(hO,t.path,fO):lO(hO,g,fO);v<l&&(l=v,hO.transform(c),fO.transform(c),fO.toArray(o[0]),hO.toArray(o[1]),cO.toArray(o[2]))}mO(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var vO=[],yO=new zt;function mO(t,e){if(e<=180&&e>0){e=e/180*Math.PI,cO.fromArray(t[0]),hO.fromArray(t[1]),fO.fromArray(t[2]),zt.sub(pO,cO,hO),zt.sub(dO,fO,hO);var n=pO.len(),r=dO.len();if(!(n<.001||r<.001)){pO.scale(1/n),dO.scale(1/r);var i=pO.dot(dO),o=Math.cos(e);if(o<i){var a=oO(hO.x,hO.y,fO.x,fO.y,cO.x,cO.y,vO,!1);yO.fromArray(vO),yO.scaleAndAdd(dO,a/Math.tan(Math.PI-e));var s=fO.x!==hO.x?(yO.x-hO.x)/(fO.x-hO.x):(yO.y-hO.y)/(fO.y-hO.y);if(isNaN(s))return;s<0?zt.copy(yO,hO):s>1&&zt.copy(yO,fO),yO.toArray(t[1])}}}}function _O(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,cO.fromArray(t[0]),hO.fromArray(t[1]),fO.fromArray(t[2]),zt.sub(pO,hO,cO),zt.sub(dO,fO,hO);var r=pO.len(),i=dO.len();if(!(r<.001||i<.001)){pO.scale(1/r),dO.scale(1/i);var o=pO.dot(e),a=Math.cos(n);if(o<a){var s=oO(hO.x,hO.y,fO.x,fO.y,cO.x,cO.y,vO,!1);yO.fromArray(vO);var l=Math.PI/2,u=Math.acos(dO.dot(e)),c=l+u-n;if(c>=l)zt.copy(yO,fO);else{yO.scaleAndAdd(dO,s/Math.tan(Math.PI/2-c));var h=fO.x!==hO.x?(yO.x-hO.x)/(fO.x-hO.x):(yO.y-hO.y)/(fO.y-hO.y);if(isNaN(h))return;h<0?zt.copy(yO,hO):h>1&&zt.copy(yO,fO)}yO.toArray(t[1])}}}}function bO(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function xO(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=W(r[0],r[1]),o=W(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=q([],r[1],r[0],a/i),l=q([],r[1],r[2],a/o),u=q([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function wO(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<ol.length;l++){var u=ol[l],c=e[u],h="normal"===u;if(c){var f=c.get("show"),p=h?s:Object(M["retrieve2"])(i.states[u]&&i.states[u].ignore,s);if(p||!Object(M["retrieve2"])(f,a)){var d=h?r:r&&r.states[u];d&&(d.ignore=!0),r&&bO(r,!0,u,c);continue}r||(r=new Eg,t.setTextGuideLine(r),h||!s&&a||bO(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),bO(r,!1,u,c)}}if(r){Object(M["defaults"])(r.style,n),r.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=xO}}else r&&t.removeTextGuideLine()}function SO(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<il.length;r++){var i=il[r];n[i]=t.getModel([i,e])}return n}function OO(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new lv(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function MO(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,f=0;f<a;f++){var p=t[f],d=p.rect;s=d[e]-l,s<0&&(d[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=d[e]+d[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return b(),v<0&&S(-v,.8),y<0&&S(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&O(-v),y<0&&O(y),u}function b(){v=m.rect[e]-r,y=i-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var f=o[l]*h;w(f,0,l+1)}else for(l=a-1;l>0;l--){f=o[l-1]*h;w(-f,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function TO(t,e,n,r){return MO(t,"x","width",e,n,r)}function CO(t,e,n,r){return MO(t,"y","height",e,n,r)}function kO(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Kt(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,f=!1,p=0;p<e.length;p++){var d=e[p];if(n.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new lv(d.localRect,d.transform)),h||(h=new lv(s,l)),h.intersect(d.obb)){f=!0;break}}}f?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function IO(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function DO(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:IO(r&&r.shape.points)}}var AO=["align","verticalAlign","width","height","fontSize"],jO=new mr,PO=ro(),LO=ro();function RO(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var EO=["x","y","rotation"],NO=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Kt.applyTransform(u,u,l),l?jO.setLocalTransform(l):(jO.x=jO.y=jO.rotation=jO.originX=jO.originY=0,jO.scaleX=jO.scaleY=1),jO.rotation=Ya(jO.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var f=h.getComputedTransform();Kt.applyTransform(c,c,f)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:jO.x,y:jO.y,scaleX:jO.scaleX,scaleY:jO.scaleY,rotation:jO.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(M["isFunction"])(r)||Object(M["keys"])(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Zs(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){gO(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Object(M["isFunction"])(o.layoutOption)?o.layoutOption(DO(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=ci(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=ci(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),h=!1)}var p=PO(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<AO.length;d++){var g=AO[d];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=OO(this._labelList),i=Object(M["filter"])(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(M["filter"])(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));TO(i,0,e),CO(o,0,n);var a=Object(M["filter"])(r,(function(t){return t.layoutOption.hideOverlap}));kO(a)},t.prototype.processLabelsOverall=function(){var t=this;Object(M["each"])(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=PO(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Zs(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");wO(t,SO(a),s),gO(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!fu(t))){var i=PO(n),o=i.oldLayout,a=Zs(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(Object(M["indexOf"])(c,"select")>=0&&n.attr(i.oldLayoutSelect),Object(M["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),cu(n,l,e,s)}else if(n.attr(l),!Au(n).valueAnimation){var h=Object(M["retrieve2"])(n.style.opacity,1);n.style.opacity=0,hu(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};RO(f,l,EO),RO(f,n.states.select,EO)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};RO(p,l,EO),RO(p,n.states.emphasis,EO)}ju(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=LO(r),o=i.oldLayout;var d={points:r.shape.points};o?(r.attr({shape:o}),cu(r,{shape:d},e)):(r.setShape(d),r.style.strokePercent=0,hu(r,{style:{strokePercent:1}},e)),i.oldLayout=d}},t}(),BO=NO,FO=ro();function zO(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=FO(e).labelManager;r||(r=FO(e).labelManager=new BO),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=FO(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function VO(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HO(n,t,e),n.seriesInvolved&&GO(n,t),n}function HO(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(M["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=$O(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(M["each"])(n.getAxes(),Object(M["curry"])(d,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&Object(M["each"])(p.baseAxes,Object(M["curry"])(d,!f||"cross",h)),f&&Object(M["each"])(p.otherAxes,Object(M["curry"])(d,"cross",!1))}}function d(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||KO(h))){null==s&&(s=h.get("triggerTooltip")),h=r?WO(u,c,i,e,r,s):h;var p=h.get("snap"),d=h.get("triggerEmphasis"),g=$O(u.model),v=s||p||"category"===u.type,y=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:d,involveSeries:v,snap:p,useHandle:KO(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=UO(o,u);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}function WO(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(M["each"])(s,(function(t){l[t]=Object(M["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(M["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Uu(l,n,r))}function GO(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(M["each"])(t.coordSysAxesInfo[$O(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function UO(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(YO(o[r+"AxisId"],n.id)||YO(o[r+"AxisIndex"],n.componentIndex)||YO(o[r+"AxisName"],n.name))return i}}function YO(t,e){return"all"===t||Object(M["isArray"])(t)&&Object(M["indexOf"])(t,e)>=0||t===e}function qO(t){var e=XO(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=KO(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function XO(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[$O(t)]}function ZO(t){var e=XO(t);return e&&e.axisPointerModel}function KO(t){return!!t.get(["handle","show"])}function $O(t){return t.type+"||"+t.id}Kb(zO);var QO={},JO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&qO(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=ZO(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){QO[t]=e},e.getAxisPointerClass=function(t){return t&&QO[t]},e.type="axis",e}(jd),tM=JO,eM=ro(),nM=M["clone"],rM=M["bind"],iM=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=M["curry"](oM,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ur,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);uM(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=XO(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=eM(t).pointerEl=new a[i.type](nM(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=eM(t).labelEl=new Xs(nM(e.label));t.add(i),sM(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=eM(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=eM(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),sM(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Ev(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Mt(t.event)},onmousedown:rM(this._onHandleDragMove,this,0,0),drift:rM(this._onHandleDragMove,this),ondragend:rM(this._onHandleDragEnd,this)}),r.add(i)),uM(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");M["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,ry(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){oM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,lM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(lM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(lM(r)),eM(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),iy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function oM(t,e,n,r){aM(eM(n).lastProp,r)||(eM(n).lastProp=r,e?cu(n,r,t):(n.stopAnimation(),n.attr(r)))}function aM(t,e){if(M["isObject"](t)&&M["isObject"](e)){var n=!0;return M["each"](e,(function(e,r){n=n&&aM(t[r],e)})),!!n}return t===e}function sM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function uM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var cM=iM,hM=Math.PI,fM=function(){function t(t,e){this.group=new Ur,this.opt=e,this.axisModel=t,Object(M["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ur({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!pM[t]},t.prototype.add=function(t){pM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=bi(e-t);return xi(o)?(i=n>0?"top":"bottom",r="center"):xi(o-hM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<hM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},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}(),pM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(X(s,s,a),X(l,l,a));var c=Object(M["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new zg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Mv(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(null!=f){var p=e.get(["axisLine","symbolSize"]);Object(M["isString"])(f)&&(f=[f,f]),(Object(M["isString"])(p)||Object(M["isNumber"])(p))&&(p=[p,p]);var d=hm(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Object(M["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=cm(f[r],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=bM(n,r,e,t),o=wM(n,r,e,t);if(gM(e,o,i),xM(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=OO(Object(M["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));kO(a)}},axisName:function(t,e,n,r){var i=Object(M["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,p=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,mM(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*hM/180),mM(s)?o=fM.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=dM(t.rotation,s,d||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(M["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),_=new Xs({x:p[0],y:p[1],rotation:o.rotation,silent:fM.isLabelSilent(e),style:wu(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Vv({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var b=fM.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Zs(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function dM(t,e,n,r){var i,o,a=bi(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return xi(a-hM/2)?(o=l?"bottom":"top",i="center"):xi(a-1.5*hM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*hM&&a>hM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function gM(t,e,n){if(!aS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(vM(o),vM(u)):yM(o,a)&&(r?(vM(a),vM(c)):(vM(o),vM(u))),!1===i?(vM(s),vM(h)):yM(l,s)&&(i?(vM(l),vM(f)):(vM(s),vM(h)))}}function vM(t){t&&(t.ignore=!0)}function yM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=At([]);return Rt(i,i,-t.rotation),n.applyTransform(Pt([],i,t.getLocalTransform())),r.applyTransform(Pt([],i,e.getLocalTransform())),n.intersect(r)}}function mM(t){return"middle"===t||"center"===t}function _M(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(X(a,a,e),X(s,s,e));var c=new zg({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Mv(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function bM(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=_M(u,e.transform,l,Object(M["defaults"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function xM(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(M["defaults"])(s.getLineStyle(),Object(M["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=_M(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<h.length;f++)t.add(h[f])}}function wM(t,e,n,r){var i=n.axis,o=Object(M["retrieve"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Object(M["retrieve"])(r.labelRotate,a.get("rotate"))||0)*hM/180,c=fM.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],p=fM.isLabelSilent(n),d=n.get("triggerEvent");return Object(M["each"])(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,y=o.rawLabel,m=a;if(h&&h[g]){var _=h[g];Object(M["isObject"])(_)&&_.textStyle&&(m=new Uu(_.textStyle,a,n.ecModel))}var b=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(g),w=m.getShallow("align",!0)||c.textAlign,S=Object(M["retrieve2"])(m.getShallow("alignMinLabel",!0),w),O=Object(M["retrieve2"])(m.getShallow("alignMaxLabel",!0),w),T=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,C=Object(M["retrieve2"])(m.getShallow("verticalAlignMinLabel",!0),T),k=Object(M["retrieve2"])(m.getShallow("verticalAlignMaxLabel",!0),T),I=new Xs({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:wu(m,{text:v,align:0===u?S:u===l.length-1?O:w,verticalAlign:0===u?C:u===l.length-1?k:T,fill:Object(M["isFunction"])(b)?b("category"===i.type?y:"value"===i.type?g+"":g,u):b})});if(I.anid="label_"+g,d){var D=fM.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=y,D.tickIndex=u,"category"===i.type&&(D.dataIndex=g),Zs(I).eventData=D}e.add(I),I.updateTransform(),f.push(I),t.add(I),I.decomposeTransform()})),f}}var SM=fM;function OM(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function MM(t,e,n,r,i){var o=n.get("value"),a=CM(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Wc(s.get("padding")||0),u=s.getFont(),c=Or(a,u),h=i.position,f=c.width+l[1]+l[3],p=c.height+l[0]+l[2],d=i.align;"right"===d&&(h[0]-=f),"center"===d&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),TM(h,f,p,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:wu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function TM(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function CM(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:iS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M["each"](r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),M["isString"](a)?o=a.replace("{value}",o):M["isFunction"](a)&&(o=a(s))}return o}function kM(t,e,n){var r=Dt();return Rt(r,r,n.rotation),Lt(r,r,n.position),Iv([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function IM(t,e,n,r,i,o){var a=SM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),MM(e,r,i,o,{position:kM(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function DM(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function AM(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function jM(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[f[l]]:h[0],"x"===u?d[f[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[f[s]]-d[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),M["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}var PM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=LM(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=OM(r),h=RM[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=jM(a.model,n);IM(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=jM(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=kM(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=LM(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:f[l]}},e}(cM);function LM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var RM={line:function(t,e,n){var r=DM([e,n[0]],[e,n[1]],EM(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:AM([e-r/2,n[0]],[r,i],EM(t))}}};function EM(t){return"x"===t.dim?0:1}var NM=PM,BM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(hh),FM=BM,zM=ro(),VM=M["each"];function HM(t,e,n){if(!O["a"].node){var r=e.getZr();zM(r).records||(zM(r).records={}),WM(r,e);var i=zM(r).records[t]||(zM(r).records[t]={});i.handler=n}}function WM(t,e){function n(n,r){t.on(n,(function(n){var i=qM(e);VM(zM(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),GM(i.pendings,e)}))}zM(t).initialized||(zM(t).initialized=!0,n("click",M["curry"](YM,"click")),n("mousemove",M["curry"](YM,"mousemove")),n("globalout",UM))}function GM(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function UM(t,e,n){t.handler("leave",null,n)}function YM(t,e,n,r){e.handler(t,n,r)}function qM(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function XM(t,e){if(!O["a"].node){var n=e.getZr(),r=(zM(n).records||{})[t];r&&(zM(n).records[t]=null)}}var ZM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";HM("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){XM("axisPointer",e)},e.prototype.dispose=function(t,e){XM("axisPointer",e)},e.type="axisPointer",e}(jd),KM=ZM;function $M(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=no(o,t);if(null==a||a<0||M["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(f),g=[];g[p]=o.get(d,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(M["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var QM=ro();function JM(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(M["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){uT(i)&&(i=$M({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=uT(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||uT(i),f={},p={},d={list:[],map:{}},g={showPointer:Object(M["curry"])(nT,p),showTooltip:Object(M["curry"])(rT,d)};Object(M["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(M["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=sT(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&tT(t,a,g,!1,f)}}))}));var v={};return Object(M["each"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(M["each"])(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,lT(e),lT(t)))),v[t.key]=o}}))})),Object(M["each"])(v,(function(t,e){tT(c[e],t,g,!0,f)})),iT(p,c,f),oT(d,i,t,a),aT(c,a,n),f}}function tT(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=eT(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(M["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function eT(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(M["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,d=Math.abs(p);d<=a&&((d<a||p>=0&&s<0)&&(a=d,s=p,i=u,o.length=0),Object(M["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function nT(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function rT(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=$O(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function iT(t,e,n){var r=n.axesInfo=[];Object(M["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function oT(t,e,n,r){if(!uT(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function aT(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=QM(r)[i]||{},a=QM(r)[i]={};Object(M["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(M["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(M["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(M["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function sT(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function lT(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function uT(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function cT(t){tM.registerAxisPointerClass("CartesianAxisPointer",NM),t.registerComponentModel(FM),t.registerComponentView(KM),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(M["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=VO(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JM)}var hT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(hh),fT=hT;function pT(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function dT(t){if(O["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var gT=dT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),vT=dT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function yT(t,e){if(!t)return e;e=Hc(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function mT(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var _T=yT(vT,"transition"),bT=yT(gT,"transform"),xT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(O["a"].transform3dSupported?"will-change:transform;":"");function wT(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function ST(t,e,n){if(!Object(M["isString"])(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=$c(e);var o,a=wT(n),s=Math.max(1.5*Math.round(i),6),l="",u=bT+":";Object(M["indexOf"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+p+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function OT(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=O["a"].transformSupported?","+bT+r:",left"+r+",top"+r),_T+":"+i}function MT(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!O["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=O["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+bT+":"+a+";":[["top",0],["left",0],[gT,a]]}function TT(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(M["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function CT(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=dd(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(OT(i,n)),o&&r.push("background-color:"+o),Object(M["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Hc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(TT(c)),null!=h&&r.push("padding:"+Wc(h).join("px ")+"px"),r.join(";")+";"}function kT(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&st(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var IT=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,O["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(Object(M["isString"])(i)?document.querySelector(i):Object(M["isDom"])(i)?i:Object(M["isFunction"])(i)&&i(t.getDom()));kT(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();xt(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=mT(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=xT+CT(t,!this._firstShow,this._longHide)+MT(i[0],i[1],!0)+"border-color:"+$c(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(M["isString"])(i)&&"item"===n.get("trigger")&&!pT(n)&&(a=ST(n,r,i)),Object(M["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(M["isArray"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(M["isDom"])(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)}}}else o.innerHTML=""},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(kT(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=MT(n[0],n[1]);Object(M["each"])(i,(function(t){r[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",O["a"].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||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(M["bind"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),DT=IT,AT=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),LT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;M["isObject"](t)&&Gh(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Xs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:dd(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),M["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=PT(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;LT(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=jT(i.borderWidth||0),a=PT(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},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(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(M["bind"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function jT(t){return Math.max(0,t)}function PT(t){var e=jT(t.shadowBlur||0),n=jT(t.shadowOffsetX||0),r=jT(t.shadowOffsetY||0);return{left:jT(e-n),right:jT(e+n),top:jT(e-r),bottom:jT(e+r)}}function LT(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var RT=AT,ET=new Ds({shape:{x:-1,y:-1,width:2,height:2}}),NT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.prototype.init=function(t,e){if(!O["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=ho(n.get("renderMode"));this._tooltipContent="richText"===r?new RT(e):new DT(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!O["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?ry(this,"_updatePosition",50,"fixRate"):iy(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");HM("itemTooltip",this._api,Object(M["bind"])((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!O["a"].node&&n.getDom()){var i=FT(r,n);this._ticket="";var o=r.dataByCoordSys,a=GT(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=ET;l.x=r.x,l.y=r.y,l.update(),Zs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=$M(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(FT(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=BT([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a,s=Zs(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Ky(n,(function(t){return null!=Zs(t).dataIndex?(o=t,!0):null!=Zs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(M["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=BT([e.tooltipOption],r),a=this._renderMode,s=[],l=td("section",{blocks:[],noHeader:!0}),u=[],c=new gd;Object(M["each"])(t,(function(t){Object(M["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=CM(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=td("section",{header:o,noHeader:!Object(M["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(M["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,d=f.getDataParams(p);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=iS(e.axis,{value:i}),d.axisValueLabel=o,d.marker=c.makeTooltipMarker("item",$c(d.color),a);var g=vp(f.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=BT([f],r).get("valueFormatter");h.blocks.push(y?Object(M["extend"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),p=ad(l,c,a,f,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Zs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,p=BT([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),d=p.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),v=new gd;g.marker=v.makeTooltipMarker("item",$c(g.color),h);var y=vp(s.formatTooltip(l,!1,u)),m=p.get("order"),_=p.get("valueFormatter"),b=y.frag,x=b?ad(_?Object(M["extend"])({valueFormatter:_},b):b,v,h,m,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=Zs(e),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(M["isString"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=Object(M["clone"])(a),a.content=dt(a.content));var u=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:a.content});var h=t.positionDefault,f=BT(u,this._tooltipModel,h?{position:h}:null),p=f.get("content"),d=Math.random()+"",g=new gd;this._showOrMove(f,(function(){var n=Object(M["clone"])(f.get("formatterParams")||{});this._showTooltipContent(f,p,n,d,t.offsetX,t.offsetY,t.position,e,g)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(c)if(Object(M["isString"])(c)){var d=t.ecModel.get("useUTC"),g=Object(M["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=Sc(g.axisValue,h,d)),h=qc(h,n,!0)}else if(Object(M["isFunction"])(c)){var y=Object(M["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(M["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(M["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(M["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(M["isArray"])(e))n=ci(e[0],s),r=ci(e[1],l);else if(Object(M["isObject"])(e)){var p=e;p.width=u[0],p.height=u[1];var d=rh(p,{width:s,height:l});n=d.x,r=d.y,c=null,h=null}else if(Object(M["isString"])(e)&&a){var g=HT(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=zT(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=WT(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=WT(h)?u[1]/2:"bottom"===h?u[1]:0),pT(t)){g=VT(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(M["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(M["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(M["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(M["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!O["a"].node&&e.getDom()&&(iy(this,"_updatePosition"),this._tooltipContent.dispose(),XM("itemTooltip",e))},e.type="tooltip",e}(jd);function BT(t,e,n){var r,i=e.ecModel;n?(r=new Uu(n,i,i),r=new Uu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Uu&&(a=a.get("tooltip",!0)),Object(M["isString"])(a)&&(a={formatter:a}),a&&(r=new Uu(a,r,i)))}return r}function FT(t,e){return t.dispatchAction||Object(M["bind"])(e.dispatchAction,e)}function zT(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function VT(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function HT(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function WT(t){return"center"===t||"middle"===t}function GT(t,e,n){var r=ao(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=lo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Zs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var UT=NT;function YT(t){Kb(cT),t.registerComponentModel(fT),t.registerComponentView(UT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},M["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},M["noop"])}var qT=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},XT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return S(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),M["isArray"](e)&&M["each"](e,(function(t,r){M["isString"](t)&&(t={type:t}),e[r]=M["merge"](t,qT(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&Qi(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=M["createHashMap"](),o=M["map"](r,(function(t){return(M["isString"](t)||M["isNumber"](t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Uu(t,this,this.ecModel))}),this);this._data=M["filter"](o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;M["each"](r,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;M["each"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;M["each"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&M["indexOf"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(hh),ZT=XT;function KT(t,e){var n=Wc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Ds({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:r,silent:!0,z2:-1}),t}var $T=M["curry"],QT=M["each"],JT=Ur,tC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return S(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new JT),this.group.add(this._selectorGroup=new JT),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=rh(l,u,c),f=this.layoutInner(t,i,h,r,a,s),p=rh(M["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KT(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=M["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),QT(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new JT;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var p=f.getData(),d=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(f,a,o,i,e,t,d,v,g,u,r);y.on("click",$T(rC,a,null,r,c)).on("mouseover",$T(oC,f.name,null,r,c)).on("mouseout",$T(aC,f.name,null,r,c)),n.ssr&&y.eachChild((function(t){var e=Zs(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var f=h.indexOfName(a),p=h.getItemVisual(f,"style"),d=h.getItemVisual(f,"legendIcon"),g=Object(sn["parse"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=M["extend"](M["extend"]({},p),{fill:Object(sn["stringify"])(g,"rgba")}));var v=this._createItem(s,a,o,i,e,t,{},p,d,u,r);v.on("click",$T(rC,null,a,r,c)).on("mouseover",$T(oC,null,a,r,c)).on("mouseout",$T(aC,null,a,r,c)),n.ssr&&v.eachChild((function(t){var e=Zs(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();QT(t,(function(t){var r=t.type,i=new Xs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);bu(i,{normal:a,emphasis:s},{defaultText:t.title}),Xl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=eC(l,r,a,s,h,d,c),_=new JT,b=r.getModel("textStyle");if(!M["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(nC({itemWidth:f,itemHeight:p,icon:l,iconRotate:x,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:f,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?f+5:-5,S=o,O=i.get("formatter"),T=e;M["isString"](O)&&O?T=O.replace("{name}",null!=e?e:""):M["isFunction"](O)&&(T=O(e));var C=d?b.getTextColor():r.get("inactiveColor");_.add(new Xs({style:wu(b,{text:T,x:w,y:p/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var k=new Ds({shape:_.getBoundingRect(),style:{fill:"transparent"}}),I=r.getModel("tooltip");return I.get("show")&&Vv({el:k,componentModel:i,itemName:e,itemTooltipOption:I.option}),_.add(k),_.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(_),Xl(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();nh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){nh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,d=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[d]+f:u[p]+=c[d]+f,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+f+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(jd);function eC(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),QT(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Qm(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function nC(t){var e=t.icon||"roundRect",n=cm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function rC(t,e,n,r){aC(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),oC(t,e,n,r)}function iC(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function oC(t,e,n,r){iC(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function aC(t,e,n,r){iC(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var sC=tC;function lC(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function uC(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Object(M["each"])(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function cC(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(M["curry"])(uC,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(M["curry"])(uC,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(M["curry"])(uC,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(M["curry"])(uC,"select")),t.registerAction("legendUnSelect","legendunselected",Object(M["curry"])(uC,"unSelect"))}function hC(t){t.registerComponentModel(ZT),t.registerComponentView(sC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,lC),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),cC(t)}var fC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=ah(e);t.prototype.init.call(this,e,n,r),pC(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),pC(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ku(ZT.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(ZT);function pC(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,oh(e,n,{type:"box",ignoreSize:!!i})}var dC=fC,gC=Ur,vC=["width","height"],yC=["x","y"],mC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return S(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new gC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gC)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=M["isArray"](c)?c:[c,c];p("pagePrev",0);var f=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",o=Ev(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:M["bind"](l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new Xs({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=vC[s],u=yC[s],c=vC[1-s],h=yC[1-s];i&&nh("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),d=[-p.x,-p.y],g=M["clone"](n);i&&(g[l]=n[l]-p[l]-f);var v=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)d[s]+=v[l]+f;else{var y=p[l]+f;d[s]-=y,v[u]-=y}v[l]+=p[l]+f,d[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+d[1-s]),a.x=d[0],a.y=d[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;nh(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),nh("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),f=c.getBoundingRect(),p=this._showController=h[i]>n[i],d=[-h.x,-h.y];e||(d[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=M["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],p){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-y,0),b[o]=_[o],u.setClipPath(new Ds({shape:b})),u.__rectSize=b[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&cu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),_},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;M["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",M["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=vC[i],a=yC[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var p=m(u);f.contentPosition[i]=-p.s;for(var d=s+1,g=p,v=p,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+r||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(d=s-1,g=p,v=p,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i<v.i)||(v=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=y;return f;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(sC),_C=mC;function bC(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function xC(t){Kb(hC),t.registerComponentModel(dC),t.registerComponentView(_C),bC(t)}function wC(t){Kb(hC),Kb(xC)}var SC=2*Math.PI,OC=Math.PI/180;function MC(t,e){return rh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function TC(t,e){var n=MC(t,e),r=t.get("center"),i=t.get("radius");M["isArray"](i)||(i=[0,i]);var o,a,s=ci(n.width,e.getWidth()),l=ci(n.height,e.getHeight()),u=Math.min(s,l),c=ci(i[0],u/2),h=ci(i[1],u/2),f=t.coordinateSystem;if(f){var p=f.dataToPoint(r);o=p[0]||0,a=p[1]||0}else M["isArray"](r)||(r=[r,r]),o=ci(r[0],s)+n.x,a=ci(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function CC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=MC(t,n),o=TC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*OC,h=t.get("endAngle"),f=t.get("padAngle")*OC;h="auto"===h?c-SC:-h*OC;var p=t.get("minAngle")*OC,d=p+f,g=0;e.each(r,(function(t){!isNaN(t)&&g++}));var v=e.getSum(r),y=Math.PI/(v||g)*2,m=t.get("clockwise"),_=t.get("roseType"),b=t.get("stillShowZeroSum"),x=e.getDataExtent(r);x[0]=0;var w=m?1:-1,S=[c,h],O=w*f/2;Fa(S,!m),c=S[0],h=S[1];var M=kC(t);M.startAngle=c,M.endAngle=h,M.clockwise=m;var T=Math.abs(h-c),C=T,k=0,I=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===v&&b?y:t*y:T/g,r<d?(r=d,C-=d):k+=t;var i=I+w*r,o=0,c=0;f>r?(o=I+w*r/2,c=o):(o=I+O,c=i-O),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:_?ui(t,x,[u,l]):l}),I=i}})),C<SC&&g)if(C<=.001){var D=T/g;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=D;var i=0,o=0;D<f?(i=c+w*(n+.5)*D,o=i):(i=c+w*n*D+O,o=c+w*(n+1)*D-O),r.startAngle=i,r.endAngle=o}}))}else y=C/k,I=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===d?d:t*y,o=0,a=0;i<f?(o=I+w*i/2,a=o):(o=I+O,a=I+w*i-O),r.startAngle=o,r.endAngle=a,I+=w*i}}))}))}var kC=ro();function IC(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var DC=Math.PI/180;function AC(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var f=t[h].label.x-u;t[h].linePoints[1][0]+=f,t[h].label.x=u}CO(t,l,l+a)&&d(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,f=Math.sqrt((1-Math.abs(u*u/a))*h),p=e+(f+l.len2)*i,d=p-l.label.x,g=l.targetTextWidth-d*i;PC(l,g,!0),l.label.x=p}}function d(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,d=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;u.rB=d,u.maxY=c}u.list.push(l)}p(o),p(a)}}function jC(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;LC(t[f])||(p.x<e?(c=Math.min(c,p.x),l.push(t[f])):(h=Math.max(h,p.x),u.push(t[f])))}for(f=0;f<t.length;f++){var d=t[f];if(!LC(d)&&d.linePoints){if(null!=d.labelStyleWidth)continue;p=d.label;var g=d.linePoints,v=void 0;v="edge"===d.labelAlignTo?p.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+i-d.edgeDistance-g[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?p.x<e?c-a-d.bleedMargin:a+i-h-d.bleedMargin:p.x<e?p.x-a-d.bleedMargin:a+i-p.x-d.bleedMargin,d.targetTextWidth=v,PC(d,v)}}AC(u,e,n,r,1,i,o,a,s,h),AC(l,e,n,r,-1,i,o,a,s,c);for(f=0;f<t.length;f++){d=t[f];if(!LC(d)&&d.linePoints){p=d.label,g=d.linePoints;var y="edge"===d.labelAlignTo,m=p.style.padding,_=m?m[1]+m[3]:0,b=p.style.backgroundColor?0:_,x=d.rect.width+b,w=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+d.edgeDistance+x+d.labelDistance:g[2][0]=a+i-d.edgeDistance-x-d.labelDistance:(p.x<e?g[2][0]=p.x+d.labelDistance:g[2][0]=p.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function PC(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,d=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",d)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function LC(t){return"center"===t.position}function RC(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*DC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function p(t){t.ignore=!0}function d(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),b=y.get("alignTo"),x=ci(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),O=S.get("length");O=ci(O,u);var T=S.get("length2");if(T=ci(T,u),Math.abs(h.endAngle-h.startAngle)<a)return Object(M["each"])(f.states,p),f.ignore=!0,void(g&&(Object(M["each"])(g.states,p),g.ignore=!0));if(d(f)){var C,k,I,D,A=(h.startAngle+h.endAngle)/2,j=Math.cos(A),P=Math.sin(A);e=h.cx,n=h.cy;var L="inside"===m||"inner"===m;if("center"===m)C=h.cx,k=h.cy,D="center";else{var R=(L?(h.r+h.r0)/2*j:h.r*j)+e,E=(L?(h.r+h.r0)/2*P:h.r*P)+n;if(C=R+3*j,k=E+3*P,!L){var N=R+j*(O+l-h.r),B=E+P*(O+l-h.r),F=N+(j<0?-1:1)*T,z=B;C="edge"===b?j<0?c+x:c+u-x:F+(j<0?-_:_),k=z,I=[[R,E],[N,B],[F,z]]}D=L?"center":"edge"===b?j>0?"right":"left":j>0?"left":"right"}var V=Math.PI,H=0,W=y.get("rotate");if(Object(M["isNumber"])(W))H=W*(V/180);else if("center"===m)H=0;else if("radial"===W||!0===W){var G=j<0?-A+V:-A;H=G}else if("tangential"===W&&"outside"!==m&&"outer"!==m){var U=Math.atan2(j,P);U<0&&(U=2*V+U);var Y=P>0;Y&&(U=V+U),H=U-V}if(o=!!H,f.x=C,f.y=k,f.rotation=H,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:D});var q=f.states.select;q&&(q.x+=f.x,q.y+=f.y)}else{var X=f.getBoundingRect().clone();X.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,i.push({label:f,labelLine:g,position:m,len:O,len2:T,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new zt(j,P),linePoints:I,textAlign:D,labelDistance:_,labelAlignTo:b,edgeDistance:x,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&jC(i,e,n,l,u,f,c,h);for(var g=0;g<i.length;g++){var v=i[g],y=v.label,m=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(Object(M["each"])(y.states,p),y.ignore=!0);var b=y.states.select;b&&(b.x+=y.x,b.y+=y.y)}if(m){var x=v.linePoints;_||!x?(Object(M["each"])(m.states,p),m.ignore=!0):(mO(x,v.minTurnAngle),_O(x,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new zt(x[0][0],x[0][1])})}}}function EC(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(M["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(M["map"])(r,(function(t){return kr(t,i)}))}}var NC=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Xs;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return S(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Object(M["extend"])(EC(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(hu(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,hu(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),hu(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,cu(i,{shape:{endAngle:l.endAngle}},o,e))}else vu(i),cu(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),tu(i,a);var h=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),p=Math.cos(h)*f,d=Math.sin(h)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Object(M["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},EC(s.getModel("itemStyle"),l)),Object(M["extend"])(i.ensureState("select"),{x:p,y:d,shape:EC(a.getModel(["select","itemStyle"]),l)}),Object(M["extend"])(i.ensureState("blur"),{shape:EC(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&Object(M["extend"])(v.ensureState("select"),{x:p,y:d}),Object(M["extend"])(y.ensureState("select"),{x:p,y:d}),Kl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;bu(r,xu(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Eg,this.setTextGuideLine(h)),wO(this,SO(i),{stroke:s,opacity:Object(M["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},e}(Mg),BC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return S(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=kC(t),h=new Mg({shape:Object(M["extend"])(TC(t,n),c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(t){var e=new NC(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);gu(n,t,e)})).execute(),RC(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="pie",e}(Qv),FC=BC;function zC(t,e,n){e=Object(M["isArray"])(e)&&{coordDimensions:e}||Object(M["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=jx(r,e).dimensions,o=new Dx(i,t);return o.initData(r,n),o}var VC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),HC=VC,WC=ro(),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new HC(M["bind"](this.getData,this),M["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zC(this,{coordDimensions:["value"],encodeDefaulter:M["curry"](kh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=WC(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=yi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Bi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Dd),UC=GC;function YC(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(M["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function qC(t){t.registerChartView(FC),t.registerSeriesModel(UC),qy("pie",t.registerAction),t.registerLayout(Object(M["curry"])(CC,"pie")),t.registerProcessor(IC("pie")),t.registerProcessor(YC("pie"))}function XC(t,e,n){var r=br["c"].createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var ZC=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||rr,"string"===typeof e?i=XC(e,n,r):M["isObject"](e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(M["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return S(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=XC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Kt(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Kt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Kt(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var f=t.width*t.height,p=c.width*c.height,d=l.width*l.height,g=d-f-p;g<r&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new Kt(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var f=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&_e||!f)?h.getPrevPaintRect():null;p&&u(p);var d=f&&(h.__dirty&_e||!h.__isRendered)?h.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],f=h&&h.shouldBePainted(n,r,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(M["isGradientObject"](e)){var f=e.global||e.__width===r&&e.__height===o;a=f&&e.__canvasGradient||gm(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o}else M["isImagePatternObject"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Cm(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?f(0,0,o,a):n.length&&M["each"](n,(function(t){f(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(et),KC=ZC,$C=1e5,QC=314159,JC=.01,tk=.001;function ek(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function nk(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var rk=function(){function t(t,e,n,r){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=M["extend"]({},n||{}),this.dpr=n.devicePixelRatio||rr,this._singleCanvas=i,this.root=t;var o=t.style;o&&(M["disableUserSelect"](t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=t,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new KC(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[QC]=h,h.zlevel=QC,a.push(QC),this._domRoot=t}else{this._width=mm(t,0,n),this._height=mm(t,1,n);var f=this._domRoot=nk(this._width,this._height);t.appendChild(f)}}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();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?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 r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer($C)),r||(r=n.ctx,r.save()),qm(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer($C)},t.prototype.paintOne=function(t,e){Ym(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;ke((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(QC).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,f._width,f._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(d===l.__startIndex){var m=t[d];m.incremental&&m.notClear&&!n||l.clear(!1,y,p)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x<p.length;++x){var w=p[x];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},f=this,p=0;p<i.length;p++)h(p);return O["a"].wxa&&M["each"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(qm(a,t,i,o),t.setPrevPaintRect(s))}else qm(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=QC);var n=this._layers[t];return n||(n=new KC("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?M["merge"](n,this._layerConfig[t],!0):this._layerConfig[t-JC]&&M["merge"](n,this._layerConfig[t-JC],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&ek(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){r=t[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+tk,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?JC:0),this._needsManuallyCompositing),u.__builtin__||M["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&_e&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?M["merge"](n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+JC){var o=this._layers[i];M["merge"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(M["indexOf"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=mm(i,0,r),e=mm(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(QC).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[QC].dom;var e=new KC("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];qm(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),ik=rk;function ok(t){t.registerPainter("canvas",ik)}var ak=n("0c9b"),sk=n("b1a4");Kb([YT,wC,qC,ok,zO]);var lk={name:"Home",components:{countTo:x.a,echarts:p,ScrollTop:ak["a"],DatetimeSelect:sk["a"]},data:function(){return{showEmpty:!1,loadingCheck:!1,loadingDelete:!1,loading:!1,orderList:[],error:!1,toTopShow:!1,page:1,startVal:0,duration:3e3,statisOrder:{created:0,allotted:0,repairing:0,completed:0},gridata:{},finished:!1,videoShow:!1,videoUrl:"",checkShow:!1,checkFrom:{},statisRepair:{all:0,state0:0,state1:0,state2:0}}},created:function(){this.loadOrderList(),console.log("created")},activated:function(){var t=_["a"].get("updateOrderID");t>0&&(this.updateOrder(t),_["a"].del("updateOrderID")),console.log("activated")},deactivated:function(){console.log("deactivated")},beforeRouteEnter:function(t,e,n){n((function(t){t.$store.commit("keepAlive/add","Home"),console.log(t.$store.state.keepAlive.list)}))},beforeRouteLeave:function(t,e,n){["orderInfo","addVisit","editVisit","orderSuspend","orderIssue","orderAllot"].indexOf(t.name)<0&&(console.log("remove cache"),this.$store.commit("keepAlive/remove","Home")),n()},methods:{loadRepairStatis:function(){var t=this;Object(m["c"])().then((function(e){t.statisRepair=e.data}))},updateOrder:function(t){for(var e=this,n=-1,r=0;r<this.orderList.length;r++)this.orderList[r].id===parseInt(t)&&(n=r);if(n<0)return!1;Object(y["g"])({tab_index:-1,id:t}).then((function(t){t.data.length>0?e.orderList.splice(n,1,t.data[0]):e.orderList.splice(n,1)})),this.load},preview:function(t,e){Object(v["a"])({images:t,startPosition:e,closeable:!0})},handleDelete:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要删除工单吗?"}).then((function(){e.loadingDelete=!0,Object(y["e"])(t).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingDelete=!1})).catch((function(){e.loadingDelete=!1}))})).catch((function(t){console.log(t)}))},handleComplete:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要完结工单吗?"}).then((function(){e.loadingConfirm=!0,Object(y["d"])(t).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingConfirm=!1})).catch((function(){e.loadingConfirm=!1}))})).catch((function(t){console.log(t)}))},handleCheck:function(t){this.checkFrom={id:t},this.checkShow=!0},checkCheck:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要审核通过吗?"}).then((function(){e.loadingConfirm=!0,Object(y["c"])(t,e.checkFrom).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingConfirm=!1,e.checkShow=!1})).catch((function(){e.loadingConfirm=!1}))})).catch((function(t){console.log(t)}))},refresh:function(){return this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.orderList=[],this.loadOrderList(),!0},loadOrderList:function(){var t=this;this.loading=!0,Object(y["g"])({tab_index:-1,page:this.page++}).then((function(e){for(var n in t.loading=!1,e.data.length<t.$store.getters.setting.page_size&&(t.finished=!0),e.data)t.orderList.push(e.data[n]);0===t.orderList.length?t.showEmpty=!0:t.showEmpty=!1})).catch((function(){t.loading=!1,t.error=!0}))}}},uk=lk,ck=n("2877"),hk=Object(ck["a"])(uk,d,g,!1,null,null,null);e["default"]=hk.exports},ec1b:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){var r=n(4)(n(1),n(5),null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,r.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var e=t.split("."),n=e[0],r=e.length>1?this.decimal+e[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(n);)n=n.replace(i,"$1"+this.separator+"$2");return this.prefix+n+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=0,i="webkit moz ms o".split(" "),o=void 0,a=void 0;if("undefined"==typeof window)e.requestAnimationFrame=o=function(){},e.cancelAnimationFrame=a=function(){};else{e.requestAnimationFrame=o=window.requestAnimationFrame,e.cancelAnimationFrame=a=window.cancelAnimationFrame;for(var s=void 0,l=0;l<i.length&&(!o||!a);l++)s=i[l],e.requestAnimationFrame=o=o||window[s+"RequestAnimationFrame"],e.cancelAnimationFrame=a=a||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];o&&a||(e.requestAnimationFrame=o=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-r)),i=window.setTimeout((function(){t(e+n)}),n);return r=e+n,i},e.cancelAnimationFrame=a=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=o,e.cancelAnimationFrame=a},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(t){var e=r[t];l[t]=function(){return e}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]);
|