123456 |
- /*!
- * build: Vue Admin Plus
- * copyright: vue-admin-beautiful.com
- * time: 2025-01-13 14:51:57
- */
- "use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[918],{37589:function(t,e,i){i.d(e,{N:function(){return f}});var o=i(50029),n=i(83384),r=i(29445),a=i(36585),s=i(68806),l=i(21481),u=i(48093),p=i(9980),h=i(9054),c=i(95728),d=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="single",e}(r.Z);function f(t){(0,n.D)(p.N),h.Z.registerAxisPointerClass("SingleAxisPointer",c.Z),t.registerComponentView(d),t.registerComponentView(a.Z),t.registerComponentModel(l.Z),(0,s.Z)(t,"single",l.Z,l.Z.defaultOption),t.registerCoordinateSystem("single",u.Z)}},59024:function(t,e,i){i.d(e,{N:function(){return q}});var o=i(50029),n=i(78971),r=i(39471),a=i(41576),s=i(14442),l=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode="box",i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,i=e.data||[],o=e.axisType,n=this._names=[];"category"===o?(t=[],(0,a.S6)(i,(function(e,i){var o,r=(0,s.U5)((0,s.C4)(e),"");(0,a.Kn)(e)?(o=(0,a.d9)(e),o.value=i):o=i,t.push(o),n.push(r)}))):t=i;var l={category:"ordinal",time:"time",value:"number"}[o]||"number",u=this._data=new r.Z([{name:"value",type:l}],this);u.initData(t,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(n.Z),u=l,p=i(65846),h=i(61279),c=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="timeline.slider",e.defaultOption=(0,h.ZL)(u.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(u);(0,a.jB)(c,p.X.prototype);var d=c,f=i(82279),g=i(43582),v=i(62948),y=i(98626),m=i(4983),x=i(26926),_=i(87218),S=i(84606),M=i(29445),b=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="timeline",e}(M.Z),w=b,T=i(5862),C=function(t){function e(e,i,o,n){var r=t.call(this,e,i,o)||this;return r.type=n||"value",r}return(0,o.ZT)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(T.Z),I=C,k=i(28397),D=i(35038),L=i(54520),A=i(3191),Z=i(98370),z=i(45234),O=i(4920),V=i(3678),P=i(61465),H=Math.PI,B=(0,s.Yf)(),R=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,i),n=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){var e=s.scale.getLabel({value:t});return(0,P.TX)("nameValue",{noName:!0,value:e})},(0,a.S6)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](o,n,s,t)}),this),this._renderAxisLabel(o,r,s,t),this._position(o,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var i,o=t.get(["label","position"]),n=t.get("orient"),r=N(t,e);i=null==o||"auto"===o?"horizontal"===n?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":(0,a.HD)(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][o]:o;var s,l,u,p={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},h={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:H/2},d="vertical"===n?r.height:r.width,f=t.getModel("controlStyle"),g=f.get("show",!0),v=g?f.get("itemSize"):0,y=g?f.get("itemGap"):0,m=v+y,x=t.get(["label","rotate"])||0;x=x*H/180;var _=f.get("position",!0),S=g&&f.get("showPlayBtn",!0),M=g&&f.get("showPrevBtn",!0),b=g&&f.get("showNextBtn",!0),w=0,T=d;"left"===_||"bottom"===_?(S&&(s=[0,0],w+=m),M&&(l=[w,0],w+=m),b&&(u=[T-v,0],T-=m)):(S&&(s=[T-v,0],T-=m),M&&(l=[0,0],w+=m),b&&(u=[T-v,0],T-=m));var C=[w,T];return t.get("inverse")&&C.reverse(),{viewRect:r,mainLength:d,orient:n,rotation:c[n],labelRotation:x,labelPosOpt:i,labelAlign:t.get(["label","align"])||p[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[n],playPosition:s,prevBtnPosition:l,nextBtnPosition:u,axisExtent:C,controlSize:v,controlGap:y}},e.prototype._position=function(t,e){var i=this._mainGroup,o=this._labelGroup,n=t.viewRect;if("vertical"===t.orient){var r=g.Ue(),s=n.x,l=n.y+n.height;g.Iu(r,r,[-s,-l]),g.U1(r,r,-H/2),g.Iu(r,r,[s,l]),n=n.clone(),n.applyTransform(r)}var u=m(n),p=m(i.getBoundingRect()),h=m(o.getBoundingRect()),c=[i.x,i.y],d=[o.x,o.y];d[0]=c[0]=u[0][0];var f=t.labelPosOpt;if(null==f||(0,a.HD)(f)){var v="+"===f?0:1;x(c,p,u,1,v),x(d,h,u,1,1-v)}else{v=f>=0?0:1;x(c,p,u,1,v),d[1]=c[1]+f}function y(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,i,o,n){t[o]+=i[o][n]-e[o][n]}i.setPosition(c),o.setPosition(d),i.rotation=o.rotation=t.rotation,y(i),y(o)},e.prototype._createAxis=function(t,e){var i=e.getData(),o=e.get("axisType"),n=E(e,o);n.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var r=i.getDataExtent("value");n.setExtent(r[0],r[1]),n.calcNiceTicks();var a=new I("value",n,t.axisExtent,o);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new v.Z;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,o){var n=i.getExtent();if(o.get(["lineStyle","show"])){var r=new y.Z({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:(0,a.l7)({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(r);var s=this._progressLine=new y.Z({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:(0,a.ce)({lineCap:"round",lineWidth:r.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(s)}},e.prototype._renderAxisTick=function(t,e,i,o){var n=this,r=o.getData(),s=i.scale.getTicks();this._tickSymbols=[],(0,a.S6)(s,(function(t){var s=i.dataToCoord(t.value),l=r.getItemModel(t.value),u=l.getModel("itemStyle"),p=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),c={x:s,y:0,onclick:(0,a.ak)(n._changeTimeline,n,t.value)},d=X(l,u,e,c);d.ensureState("emphasis").style=p.getItemStyle(),d.ensureState("progress").style=h.getItemStyle(),(0,V.vF)(d);var f=(0,O.A)(d);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=o):f.dataIndex=f.dataModel=null,n._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,i,o){var n=this,r=i.getLabelModel();if(r.get("show")){var s=o.getData(),l=i.getViewLabels();this._tickLabels=[],(0,a.S6)(l,(function(o){var r=o.tickValue,l=s.getItemModel(r),u=l.getModel("label"),p=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),c=i.dataToCoord(o.tickValue),d=new m.ZP({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,a.ak)(n._changeTimeline,n,r),silent:!1,style:(0,_.Lr)(u,{text:o.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=(0,_.Lr)(p),d.ensureState("progress").style=(0,_.Lr)(h),e.add(d),(0,V.vF)(d),B(d).dataIndex=r,n._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,i,o){var n=t.controlSize,r=t.rotation,s=o.getModel("controlStyle").getItemStyle(),l=o.getModel(["emphasis","controlStyle"]).getItemStyle(),u=o.getPlayState(),p=o.get("inverse",!0);function h(t,i,u,p){if(t){var h=(0,z.GM)((0,a.pD)(o.get(["controlStyle",i+"BtnSize"]),n),n),c=[0,-h/2,h,h],d=F(o,i+"Icon",c,{x:t[0],y:t[1],originX:n/2,originY:0,rotation:p?-r:0,rectHover:!0,style:s,onclick:u});d.ensureState("emphasis").style=l,e.add(d),(0,V.vF)(d)}}h(t.nextBtnPosition,"next",(0,a.ak)(this._changeTimeline,this,p?"-":"+")),h(t.prevBtnPosition,"prev",(0,a.ak)(this._changeTimeline,this,p?"+":"-")),h(t.playPosition,u?"stop":"play",(0,a.ak)(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,i,o){var n=o.getData(),r=o.getCurrentIndex(),s=n.getItemModel(r).getModel("checkpointStyle"),l=this,u={onCreate:function(t){t.draggable=!0,t.drift=(0,a.ak)(l._handlePointerDrag,l),t.ondragend=(0,a.ak)(l._handlePointerDragend,l),G(t,l._progressLine,r,i,o,!0)},onUpdate:function(t){G(t,l._progressLine,r,i,o)}};this._currentPointer=X(s,s,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],o=this._axis,n=D.dt(o.getExtent().slice());i>n[1]&&(i=n[1]),i<n[0]&&(i=n[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=i,r.dirty());var a=this._findNearestTick(i),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return x.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,i=this.model.getData(),o=1/0,n=this._axis;return i.each(["value"],(function(i,r){var a=n.dataToCoord(i),s=Math.abs(a-t);s<o&&(o=s,e=r)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,i=this._tickLabels;if(e)for(var o=0;o<e.length;o++)e&&e[o]&&e[o].toggleState("progress",o<t);if(i)for(o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",B(i[o]).dataIndex<=t)},e.type="timeline.slider",e}(w);function E(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new L.Z({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new A.Z({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Z.Z}}function N(t,e){return S.ME(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function F(t,e,i,o){var n=o.style,r=x.createIcon(t.get(["controlStyle",e]),o||{},new f.Z(i[0],i[1],i[2],i[3]));return n&&r.setStyle(n),r}function X(t,e,i,o,n,r){var s=e.get("color");if(n)n.setColor(s),i.add(n),r&&r.onUpdate(n);else{var l=t.get("symbol");n=(0,k.th)(l,-1,-1,2,2,s),n.setStyle("strokeNoScale",!0),i.add(n),r&&r.onCreate(n)}var u=e.getItemStyle(["color"]);n.setStyle(u),o=(0,a.TS)({rectHover:!0,z2:100},o,!0);var p=(0,k.zp)(t.get("symbolSize"));o.scaleX=p[0]/2,o.scaleY=p[1]/2;var h=(0,k.Cq)(t.get("symbolOffset"),p);h&&(o.x=(o.x||0)+h[0],o.y=(o.y||0)+h[1]);var c=t.get("symbolRotate");return o.rotation=(c||0)*Math.PI/180||0,n.attr(o),n.updateTransform(),n}function G(t,e,i,o,n,r){if(!t.dragging){var a=n.getModel("checkpointStyle"),s=o.dataToCoord(n.getData().get("value",i));if(r||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var W=R;function U(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,i){var o=e.getComponent("timeline");return o&&null!=t.currentIndex&&(o.setCurrentIndex(t.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),(0,a.ce)({currentIndex:o.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}))}function Y(t){var e=t&&t.timeline;a.kJ(e)||(e=e?[e]:[]),a.S6(e,(function(t){t&&j(t)}))}function j(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),J(t),K(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});K(o,"position")||(o.position=t.controlPosition),"none"!==o.position||K(o,"show")||(o.show=!1,delete o.position),delete t.controlPosition}a.S6(t.data||[],(function(t){a.Kn(t)&&!a.kJ(t)&&(!K(t,"value")&&K(t,"name")&&(t.value=t.name),J(t))}))}function J(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),o=t.label||t.label||{},n=o.normal||(o.normal={}),r={normal:1,emphasis:1};a.S6(o,(function(t,e){r[e]||K(n,e)||(n[e]=t)})),i.label&&!K(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function K(t,e){return t.hasOwnProperty(e)}function q(t){t.registerComponentModel(d),t.registerComponentView(W),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),U(t),t.registerPreprocessor(Y)}},20665:function(t,e,i){i.d(e,{N:function(){return g}});var o=i(50029),n=i(41576),r=i(4983),a=i(41446),s=i(4920),l=i(87218),u=i(84606),p=i(78971),h=i(29445),c=i(63441),d=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return(0,o.ZT)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(p.Z),f=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.render=function(t,e,i){if(this.group.removeAll(),t.get("show")){var o=this.group,p=t.getModel("textStyle"),h=t.getModel("subtextStyle"),d=t.get("textAlign"),f=n.pD(t.get("textBaseline"),t.get("textVerticalAlign")),g=new r.ZP({style:(0,l.Lr)(p,{text:t.get("text"),fill:p.getTextColor()},{disableBox:!0}),z2:10}),v=g.getBoundingRect(),y=t.get("subtext"),m=new r.ZP({style:(0,l.Lr)(h,{text:y,fill:h.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=t.get("link"),_=t.get("sublink"),S=t.get("triggerEvent",!0);g.silent=!x&&!S,m.silent=!_&&!S,x&&g.on("click",(function(){(0,c.MI)(x,"_"+t.get("target"))})),_&&m.on("click",(function(){(0,c.MI)(_,"_"+t.get("subtarget"))})),(0,s.A)(g).eventData=(0,s.A)(m).eventData=S?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(g),y&&o.add(m);var M=o.getBoundingRect(),b=t.getBoxLayoutParams();b.width=M.width,b.height=M.height;var w=(0,u.ME)(b,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));d||(d=t.get("left")||t.get("right"),"middle"===d&&(d="center"),"right"===d?w.x+=w.width:"center"===d&&(w.x+=w.width/2)),f||(f=t.get("top")||t.get("bottom"),"center"===f&&(f="middle"),"bottom"===f?w.y+=w.height:"middle"===f&&(w.y+=w.height/2),f=f||"top"),o.x=w.x,o.y=w.y,o.markRedraw();var T={align:d,verticalAlign:f};g.setStyle(T),m.setStyle(T),M=o.getBoundingRect();var C=w.margin,I=t.getItemStyle(["color","opacity"]);I.fill=t.get("backgroundColor");var k=new a.Z({shape:{x:M.x-C[3],y:M.y-C[0],width:M.width+C[1]+C[3],height:M.height+C[0]+C[2],r:t.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});o.add(k)}},e.type="title",e}(h.Z);function g(t){t.registerComponentModel(d),t.registerComponentView(f)}},90975:function(t,e,i){var o=i(50029),n=i(41576),r=i(96454),a=["rect","polygon","lineX","lineY","keep","clear"],s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,o.ZT)(e,t),e.prototype.render=function(t,e,i){var o,r,a;e.eachComponent({mainType:"brush"},(function(t){o=t.brushType,r=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=o,this._brushMode=r,n.S6(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===o)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,i){this.render(t,e,i)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return n.S6(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},e.prototype.onclick=function(t,e,i){var o=this._brushType,n=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?o:o!==i&&i,brushMode:"keep"===i?"multiple"===n?"single":"multiple":n}})},e.getDefaultOption=function(t){var e={show:!0,type:a.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(r.f1);e["Z"]=s},96454:function(t,e,i){i.d(e,{Bm:function(){return a},f1:function(){return o},ls:function(){return r}});var o=function(){function t(){}return t}(),n={};function r(t,e){n[t]=e}function a(t){return n[t]}},19981:function(t,e,i){i.d(e,{N:function(){return pt}});var o=i(83384),n=i(59888),r=i(50029),a=i(41576),s=i(96454),l=i(78971),u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;a.S6(this.option.feature,(function(t,i){var o=s.Bm(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),a.TS(t,o.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(l.Z),p=u,h=i(45234),c=i(26926),d=i(3678),f=i(81842),g=i(83798),v=i(11859),y=i(29445),m=i(61279),x=i(4983),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,i,o){var n=this.group;if(n.removeAll(),t.get("show")){var r=+t.get("itemSize"),l="vertical"===t.get("orient"),u=t.get("feature")||{},p=this._features||(this._features={}),y=[];a.S6(u,(function(t,e){y.push(e)})),new g.Z(this._featureNames||[],y).add(_).update(_).remove(a.WA(_,null)).execute(),this._featureNames=y,v.b(n,t,i),n.add(v.l(n.getBoundingRect(),t)),l||n.eachChild((function(t){var e=t.__title,o=t.ensureState("emphasis"),s=o.textConfig||(o.textConfig={}),l=t.getTextContent(),u=l&&l.ensureState("emphasis");if(u&&!a.mf(u)&&e){var p=u.style||(u.style={}),c=h.lP(e,x.ZP.makeFont(p)),d=t.x+n.x,f=t.y+n.y+r,g=!1;f+c.height>i.getHeight()&&(s.position="top",g=!0);var v=g?-5-c.height:r+10;d+c.width/2>i.getWidth()?(s.position=["100%",v],p.align="right"):d-c.width/2<0&&(s.position=[0,v],p.align="left")}}))}function _(n,r){var a,l=y[n],h=y[r],c=u[l],g=new f.Z(c,t,t.ecModel);if(o&&null!=o.newTitle&&o.featureName===l&&(c.title=o.newTitle),l&&!h){if(S(l))a={onclick:g.option.onclick,featureName:l};else{var v=(0,s.Bm)(l);if(!v)return;a=new v}p[l]=a}else if(a=p[h],!a)return;a.uid=(0,m.Kr)("toolbox-feature"),a.model=g,a.ecModel=e,a.api=i;var x=a instanceof s.f1;l||!h?!g.get("show")||x&&a.unusable?x&&a.remove&&a.remove(e,i):(M(g,a,l),g.setIconStatus=function(t,e){var i=this.option,o=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,o[t]&&("emphasis"===e?d.fD:d.Mh)(o[t])},a instanceof s.f1&&a.render&&a.render(g,e,i,o)):x&&a.dispose&&a.dispose(e,i)}function M(o,u,p){var h,f,g=o.getModel("iconStyle"),v=o.getModel(["emphasis","iconStyle"]),y=u instanceof s.f1&&u.getIcons?u.getIcons():o.get("icon"),m=o.get("title")||{};a.HD(y)?(h={},h[p]=y):h=y,a.HD(m)?(f={},f[p]=m):f=m;var _=o.iconPaths={};a.S6(h,(function(s,p){var h=c.createIcon(s,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(g.getItemStyle());var y=h.ensureState("emphasis");y.style=v.getItemStyle();var m=new x.ZP({style:{text:f[p],align:v.get("textAlign"),borderRadius:v.get("textBorderRadius"),padding:v.get("textPadding"),fill:null},ignore:!0});h.setTextContent(m),c.setTooltipConfig({el:h,componentModel:t,itemName:p,formatterParamsExtra:{title:f[p]}}),h.__title=f[p],h.on("mouseover",(function(){var e=v.getItemStyle(),o=l?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";m.setStyle({fill:v.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:v.get("textBackgroundColor")}),h.setTextConfig({position:v.get("textPosition")||o}),m.ignore=!t.get("showTitle"),i.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==o.get(["iconStatus",p])&&i.leaveEmphasis(this),m.hide()})),("emphasis"===o.get(["iconStatus",p])?d.fD:d.Mh)(h),n.add(h),h.on("click",a.ak(u.onclick,u,e,i,p)),_[p]=h}))}},e.prototype.updateView=function(t,e,i,o){a.S6(this._features,(function(t){t instanceof s.f1&&t.updateView&&t.updateView(t.model,e,i,o)}))},e.prototype.remove=function(t,e){a.S6(this._features,(function(i){i instanceof s.f1&&i.remove&&i.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){a.S6(this._features,(function(i){i instanceof s.f1&&i.dispose&&i.dispose(t,e)}))},e.type="toolbox",e}(y.Z);function S(t){return 0===t.indexOf("my")}var M=_,b=i(70574),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){var i=this.model,o=i.get("name")||t.get("title.0.text")||"echarts",n="svg"===e.getZr().painter.getType(),r=n?"svg":i.get("type",!0)||"png",s=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=b.Z.browser;if((0,a.mf)(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=o+"."+r,u.target="_blank",u.href=s;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||n){var h=s.split(","),c=h[0].indexOf("base64")>-1,d=n?decodeURIComponent(h[1]):h[1];c&&(d=window.atob(d));var f=o+"."+r;if(window.navigator.msSaveOrOpenBlob){var g=d.length,v=new Uint8Array(g);while(g--)v[g]=d.charCodeAt(g);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var S=i.get("lang"),M='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',w=window.open();w.document.write(M),w.document.title=o}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(s.f1),T=w,C=i(96642),I=i(14442),k="__ec_magicType_stack__",D=[["line","bar"],["stack"]],L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a.S6(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,i){var o=this.model,n=o.get(["seriesIndex",i]);if(A[i]){var r,s={series:[]},l=function(t){var e=t.subType,n=t.id,r=A[i](e,n,t,o);r&&(a.ce(r,t.option),s.series.push(r));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var p=u.dim,h=p+"Axis",c=t.getReferringComponents(h,I.C6).models[0],d=c.componentIndex;s[h]=s[h]||[];for(var f=0;f<=d;f++)s[h][d]=s[h][d]||{};s[h][d].boundaryGap="bar"===i}}};a.S6(D,(function(t){a.cq(t,i)>=0&&a.S6(t,(function(t){o.setIconStatus(t,"normal")}))})),o.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},l);var u=i;"stack"===i&&(r=a.TS({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),"emphasis"!==o.get(["iconStatus",i])&&(u="tiled")),e.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:r,featureName:"magicType"})}},e}(s.f1),A={line:function(t,e,i,o){if("bar"===t)return a.TS({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(t,e,i,o){if("line"===t)return a.TS({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(t,e,i,o){var n=i.get("stack")===k;if("line"===t||"bar"===t)return o.setIconStatus("stack",n?"normal":"emphasis"),a.TS({id:e,stack:n?"":k},o.get(["option","stack"])||{},!0)}};C.zl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var Z=L,z=i(48043),O=new Array(60).join("-"),V="\t";function P(t){var e={},i=[],o=[];return t.eachRawSeries((function(t){var n=t.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)i.push(t);else{var r=n.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:n.getOtherAxis(r),series:[]},o.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:o}}function H(t){var e=[];return a.S6(t,(function(t,i){var o=t.categoryAxis,n=t.valueAxis,r=n.dim,s=[" "].concat(a.UI(t.series,(function(t){return t.name}))),l=[o.model.getCategories()];a.S6(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var u=[s.join(V)],p=0;p<l[0].length;p++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][p]);u.push(h.join(V))}e.push(u.join("\n"))})),e.join("\n\n"+O+"\n\n")}function B(t){return a.UI(t,(function(t){var e=t.getRawData(),i=[t.name],o=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,n=arguments[t-1],r=e.getName(n),a=0;a<t-1;a++)o[a]=arguments[a];i.push((r?r+V:"")+o.join(V))})),i.join("\n")})).join("\n\n"+O+"\n\n")}function R(t){var e=P(t);return{value:a.hX([H(e.seriesGroupByCategoryAxis),B(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+O+"\n\n"),meta:e.meta}}function E(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function N(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(V)>=0)return!0}var F=new RegExp("["+V+"]+","g");function X(t){for(var e=t.split(/\n+/g),i=E(e.shift()).split(F),o=[],n=a.UI(i,(function(t){return{name:t,data:[]}})),r=0;r<e.length;r++){var s=E(e[r]).split(F);o.push(s.shift());for(var l=0;l<s.length;l++)n[l]&&(n[l].data[r]=s[l])}return{series:n,categories:o}}function G(t){for(var e=t.split(/\n+/g),i=E(e.shift()),o=[],n=0;n<e.length;n++){var r=E(e[n]);if(r){var a=r.split(F),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),o[n]={name:s,value:[]},l=o[n].value):l=o[n]=[];for(var p=0;p<a.length;p++)l.push(+a[p]);1===l.length&&(u?o[n].value=l[0]:o[n]=l[0])}}return{name:i,data:o}}function W(t,e){var i=t.split(new RegExp("\n*"+O+"\n*","g")),o={series:[]};return a.S6(i,(function(t,i){if(N(t)){var n=X(t),r=e[i],a=r.axisDim+"Axis";r&&(o[a]=o[a]||[],o[a][r.axisIndex]={data:n.categories},o.series=o.series.concat(n.series))}else{n=G(t);o.series.push(n)}})),o}var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var i=e.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var n=document.createElement("div");n.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",n.style.backgroundColor=o.get("backgroundColor")||"#fff";var r=document.createElement("h4"),s=o.get("lang")||[];r.innerHTML=s[0]||o.get("title"),r.style.cssText="margin:10px 20px",r.style.color=o.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var p=o.get("optionToContent"),h=o.get("contentToOption"),c=R(t);if(a.mf(p)){var d=p(e.getOption());a.HD(d)?l.innerHTML=d:a.Mh(d)&&l.appendChild(d)}else{u.readOnly=o.get("readOnly");var f=u.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=o.get("textColor"),f.borderColor=o.get("textareaBorderColor"),f.backgroundColor=o.get("textareaColor"),u.value=c.value,l.appendChild(u)}var g=c.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+o.get("buttonColor"),y+=";color:"+o.get("buttonTextColor");var _=this;function S(){i.removeChild(n),_._dom=null}(0,z.Oo)(m,"click",S),(0,z.Oo)(x,"click",(function(){if(null==h&&null!=p||null!=h&&null==p)S();else{var t;try{t=a.mf(h)?h(l,e.getOption()):W(u.value,g)}catch(i){throw S(),new Error("Data view format error "+i)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()}})),m.innerHTML=s[1],x.innerHTML=s[2],x.style.cssText=m.style.cssText=y,!o.get("readOnly")&&v.appendChild(x),v.appendChild(m),n.appendChild(r),n.appendChild(l),n.appendChild(v),l.style.height=i.clientHeight-80+"px",i.appendChild(n),this._dom=n},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(s.f1);function Y(t,e){return a.UI(t,(function(t,i){var o=e&&e[i];if(a.Kn(o)&&!a.kJ(o)){var n=a.Kn(t)&&!a.kJ(t);n||(t={value:t});var r=null!=o.name&&null==t.name;return t=a.ce(t,o),r&&delete t.name,t}return t}))}C.zl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var i=[];a.S6(t.newOption.series,(function(t){var o=e.getSeriesByName(t.name)[0];if(o){var n=o.get("data");i.push({name:t.name,data:Y(t.data,n)})}else i.push(a.l7({type:"scatter"},t))})),e.mergeOption(a.ce({series:i},t.newOption))}));var j=U,J=i(47855),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){J.ZH(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(s.f1);C.zl({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var q=K,Q=i(59969),$=i(25316),tt=i(15245),et=i(61807),it=a.S6,ot=(0,I.g0)("toolbox-dataZoom_"),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,i,o){this._brushController||(this._brushController=new Q.Z(i.getZr()),this._brushController.on("brush",a.ak(this._onBrush,this)).mount()),lt(t,e,this,o,i),st(t,e)},e.prototype.onclick=function(t,e,i){rt[i].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var i={},o=this.ecModel;this._brushController.updateCovers([]);var n=new $.Z(at(this.model),o,{include:["grid"]});n.matchOutputRanges(e,o,(function(t,e,i){if("cartesian2d"===i.type){var o=t.brushType;"rect"===o?(r("x",i,e[0]),r("y",i,e[1])):r({lineX:"x",lineY:"y"}[o],i,e)}})),J.VF(o,i),this._dispatchZoomAction(i)}function r(t,e,n){var r=e.getAxis(t),s=r.model,l=a(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(n=(0,tt.Z)(0,n.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(i[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function a(t,e,i){var o;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var n=i.getAxisModel(t,e.componentIndex);n&&(o=i)})),o}},e.prototype._dispatchZoomAction=function(t){var e=[];it(t,(function(t,i){e.push(a.d9(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(s.f1),rt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(J.Sw(this.ecModel))}};function at(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function st(t,e){t.setIconStatus("back",J.QX(e)>1?"emphasis":"normal")}function lt(t,e,i,o,n){var r=i._isZoomActive;o&&"takeGlobalCursor"===o.type&&(r="dataZoomSelect"===o.key&&o.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var a=new $.Z(at(t),e,{include:["grid"]}),s=a.makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));i._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(0,et.f)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),i=["feature","dataZoom"];if(e&&null!=e.get(i)){var o=e.getModel(i),n=[],r=at(o),a=(0,I.pm)(t,r);return it(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),it(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),n}function s(t,e,i){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:ot+e+r};a[i]=r,n.push(a)}}));var ut=nt;function pt(t){t.registerComponentModel(p),t.registerComponentView(M),(0,s.ls)("saveAsImage",T),(0,s.ls)("magicType",Z),(0,s.ls)("dataView",j),(0,s.ls)("dataZoom",ut),(0,s.ls)("restore",q),(0,o.D)(n.N)}},46842:function(t,e,i){i.d(e,{N:function(){return ht}});var o=i(9980),n=i(83384),r=i(50029),a=i(78971),s=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,r.ZT)(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}(a.Z),l=s,u=i(41576),p=i(70574),h=i(48043),c=i(25516),d=i(63441);function f(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function g(t){if(p.Z.domSupported)for(var e=document.documentElement.style,i=0,o=t.length;i<o;i++)if(t[i]in e)return t[i]}var v=g(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),y=g(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function m(t,e){if(!t)return e;e=(0,d.zW)(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function x(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}var _=i(61465),S=m(y,"transition"),M=m(v,"transform"),b="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(p.Z.transform3dSupported?"will-change:transform;":"");function w(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function T(t,e,i){if(!(0,u.HD)(i)||"inside"===i)return"";var o=t.get("backgroundColor"),n=t.get("borderWidth");e=(0,d.Lz)(e);var r,a=w(i),s=Math.max(1.5*Math.round(n),6),l="",p=M+":";(0,u.cq)(["left","right"],a)>-1?(l+="top:50%",p+="translateY(-50%) rotate("+(r="left"===a?-225:-45)+"deg)"):(l+="left:50%",p+="translateX(-50%) rotate("+(r="top"===a?225:45)+"deg)");var h=r*Math.PI/180,c=s+n,f=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),g=Math.round(100*((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-c)/2))/100;l+=";"+a+":-"+g+"px";var v=e+" solid "+n+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+p+";","border-bottom:"+v,"border-right:"+v,"background-color:"+o+";"];return'<div style="'+y.join("")+'"></div>'}function C(t,e){var i="cubic-bezier(0.23,1,0.32,1)",o=" "+t/2+"s "+i,n="opacity"+o+",visibility"+o;return e||(o=" "+t+"s "+i,n+=p.Z.transformSupported?","+M+o:",left"+o+",top"+o),S+":"+n}function I(t,e,i){var o=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!p.Z.transformSupported)return i?"top:"+n+";left:"+o+";":[["top",n],["left",o]];var r=p.Z.transform3dSupported,a="translate"+(r?"3d":"")+"("+o+","+n+(r?",0":"")+")";return i?"top:0;left:0;"+M+":"+a+";":[["top",0],["left",0],[v,a]]}function k(t){var e=[],i=t.get("fontSize"),o=t.getTextColor();o&&e.push("color:"+o),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var n=t.get("textShadowColor"),r=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return n&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+n),(0,u.S6)(["decoration","align"],(function(i){var o=t.get(i);o&&e.push("text-"+i+":"+o)})),e.join(";")}function D(t,e,i){var o=[],n=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=(0,_.d_)(t,"html"),f=l+"px "+p+"px "+a+"px "+s;return o.push("box-shadow:"+f),e&&n&&o.push(C(n,i)),r&&o.push("background-color:"+r),(0,u.S6)(["width","color","radius"],(function(e){var i="border-"+e,n=(0,d.zW)(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))})),o.push(k(h)),null!=c&&o.push("padding:"+(0,d.MY)(c).join("px ")+"px"),o.join(";")+";"}function L(t,e,i,o,n){var r=e&&e.painter;if(i){var a=r&&r.getViewportRoot();a&&(0,c.YB)(t,a,document.body,o,n)}else{t[0]=o,t[1]=n;var s=r&&r.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var A=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,p.Z.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var n=this._zr=e.getZr(),r=this._appendToBody=i&&i.appendToBody;L(this._styleCoord,n,r,e.getWidth()/2,e.getHeight()/2),r?document.body.appendChild(o):t.appendChild(o),this._container=t;var a=this;o.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=n.handler,i=n.painter.getViewportRoot();(0,h.OD)(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=x(e,"position"),o=e.style;"absolute"!==o.position&&"absolute"!==i&&(o.position="relative");var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,n=this._styleCoord;i.innerHTML?o.cssText=b+D(t,!this._firstShow,this._longHide)+I(n[0],n[1],!0)+"border-color:"+(0,d.Lz)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,o,n){var r=this.el;if(null!=t){var a="";if((0,u.HD)(n)&&"item"===i.get("trigger")&&!f(i)&&(a=T(i,o,n)),(0,u.HD)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",(0,u.kJ)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,u.Mh)(t[s])&&t[s].parentNode!==r&&r.appendChild(t[s]);if(a&&r.childNodes.length){var l=document.createElement("div");l.innerHTML=a,r.appendChild(l)}}}else r.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 i=this._styleCoord;if(L(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var o=this.el.style,n=I(i[0],i[1]);(0,u.S6)(n,(function(t){o[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",p.Z.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((0,u.ak)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),Z=A,z=i(4983),O=i(23645),V=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),B(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,i,o,n){var r=this;u.Kn(t)&&(0,O._y)(""),this.el&&this._zr.remove(this.el);var a=i.getModel("textStyle");this.el=new z.ZP({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:(0,_.d_)(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),u.S6(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){r.el.style[t]=i.get(t)})),u.S6(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){r.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(),i=H(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var o=this._styleCoord;B(o,this._zr,t,e),t=o[0],e=o[1];var n=i.style,r=P(n.borderWidth||0),a=H(n);i.x=t+r+a.left,i.y=e+r+a.top,i.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(u.ak(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function P(t){return Math.max(0,t)}function H(t){var e=P(t.shadowBlur||0),i=P(t.shadowOffsetX||0),o=P(t.shadowOffsetY||0);return{left:P(e-i),right:P(e+i),top:P(e-o),bottom:P(e+o)}}function B(t,e,i,o){t[0]=i,t[1]=o,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var R=V,E=i(35038),N=i(41446),F=i(97790),X=i(84606),G=i(81842),W=i(94221),U=i(61073),Y=i(50720),j=i(14442),J=i(29445),K=i(28930),q=i(4920),Q=i(65846),$=i(67544),tt=i(79880),et=new N.Z({shape:{x:-1,y:-1,width:2,height:2}}),it=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){if(!p.Z.node&&e.getDom()){var i=t.getComponent("tooltip"),o=this._renderMode=(0,j.U9)(i.get("renderMode"));this._tooltipContent="richText"===o?new R(e):new Z(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,i){if(!p.Z.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i;var o=this._tooltipContent;o.update(t),o.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,tt.T9)(this,"_updatePosition",50,"fixRate"):(0,tt.ZH)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");W.z("itemTooltip",this._api,(0,u.ak)((function(t,i,o){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,o):"leave"===t&&this._hide(o))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,o=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,o){if(o.from!==this.uid&&!p.Z.node&&i.getDom()){var n=nt(o,i);this._ticket="";var r=o.dataByCoordSys,a=ut(o,e,i);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:o.position,positionDefault:"bottom"},n)}else if(o.tooltip&&null!=o.x&&null!=o.y){var l=et;l.x=o.x,l.y=o.y,l.update(),(0,q.A)(l).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:l},n)}else if(r)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:r,tooltipOption:o.tooltipOption},n);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,o))return;var u=(0,F.Z)(o,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:o.position,positionDefault:"bottom"},n)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},n))}},e.prototype.manuallyHideTip=function(t,e,i,o){var n=this._tooltipContent;this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(nt(o,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,o){var n=o.seriesIndex,r=o.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=r&&null!=a){var s=e.getSeriesByIndex(n);if(s){var l=s.getData(),u=ot([l.getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:r,position:o.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){var r,a;this._lastDataByCoordSys=null,(0,$.o)(i,(function(t){return null!=(0,q.A)(t).dataIndex?(r=t,!0):null!=(0,q.A)(t).tooltipConfig?(a=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=(0,u.ak)(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,o=this._tooltipModel,n=[e.offsetX,e.offsetY],r=ot([e.tooltipOption],o),a=this._renderMode,s=[],l=(0,_.TX)("section",{blocks:[],noHeader:!0}),p=[],h=new _.iv;(0,u.S6)(t,(function(t){(0,u.S6)(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=Y.gk(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),c=(0,_.TX)("section",{header:r,noHeader:!(0,u.fy)(r),sortBlocks:!0,blocks:[]});l.blocks.push(c),(0,u.S6)(t.seriesDataIndices,(function(l){var f=i.getSeriesByIndex(l.seriesIndex),g=l.dataIndexInside,v=f.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=U.DX(e.axis,{value:n}),v.axisValueLabel=r,v.marker=h.makeTooltipMarker("item",(0,d.Lz)(v.color),a);var y=(0,Q.f)(f.formatTooltip(g,!0,null)),m=y.frag;if(m){var x=ot([f],o).get("valueFormatter");c.blocks.push(x?(0,u.l7)({valueFormatter:x},m):m)}y.text&&p.push(y.text),s.push(v)}}))}}))})),l.blocks.reverse(),p.reverse();var c=e.position,f=r.get("order"),g=(0,_.BY)(l,h,a,f,i.get("useUTC"),r.get("textStyle"));g&&p.unshift(g);var v="richText"===a?"\n\n":"<br/>",y=p.join(v);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,c,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(r,y,s,Math.random()+"",n[0],n[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var o=this._ecModel,n=(0,q.A)(e),r=n.seriesIndex,a=o.getSeriesByIndex(r),s=n.dataModel||a,l=n.dataIndex,p=n.dataType,h=s.getData(p),c=this._renderMode,f=t.positionDefault,g=ot([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(l,p),m=new _.iv;y.marker=m.makeTooltipMarker("item",(0,d.Lz)(y.color),c);var x=(0,Q.f)(s.formatTooltip(l,!1,p)),S=g.get("order"),M=g.get("valueFormatter"),b=x.frag,w=b?(0,_.BY)(M?(0,u.l7)({valueFormatter:M},b):b,m,c,S,o.get("useUTC"),g.get("textStyle")):x.text,T="item_"+s.name+"_"+l;this._showOrMove(g,(function(){this._showTooltipContent(g,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var o=(0,q.A)(e),n=o.tooltipConfig,r=n.option||{};if((0,u.HD)(r)){var a=r;r={content:a,formatter:a}}var s=[r],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:r.content});var p=t.positionDefault,h=ot(s,this._tooltipModel,p?{position:p}:null),c=h.get("content"),d=Math.random()+"",f=new _.iv;this._showOrMove(h,(function(){var i=(0,u.d9)(h.get("formatterParams")||{});this._showTooltipContent(h,c,i,d,t.offsetX,t.offsetY,t.position,e,f)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,o,n,r,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,f=this._getNearestPoint([n,r],i,t.get("trigger"),t.get("borderColor")),g=f.color;if(h)if((0,u.HD)(h)){var v=t.ecModel.get("useUTC"),y=(0,u.kJ)(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=h,m&&(c=(0,K.WU)(y.axisValue,c,v)),c=(0,d.kF)(c,i,!0)}else if((0,u.mf)(h)){var x=(0,u.ak)((function(e,o){e===this._ticket&&(p.setContent(o,l,t,g,a),this._updatePosition(t,a,n,r,p,i,s))}),this);this._ticket=o,c=h(i,o,x)}else c=h;p.setContent(c,l,t,g,a),p.show(t,g),this._updatePosition(t,a,n,r,p,i,s)}},e.prototype._getNearestPoint=function(t,e,i,o){return"axis"===i||(0,u.kJ)(e)?{color:o||("html"===this._renderMode?"#fff":"none")}:(0,u.kJ)(e)?void 0:{color:o||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,o,n,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var p=n.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,u.mf)(e)&&(e=e([i,o],r,n.el,d,{viewSize:[s,l],contentSize:p.slice()})),(0,u.kJ)(e))i=(0,E.GM)(e[0],s),o=(0,E.GM)(e[1],l);else if((0,u.Kn)(e)){var g=e;g.width=p[0],g.height=p[1];var v=(0,X.ME)(g,{width:s,height:l});i=v.x,o=v.y,h=null,c=null}else if((0,u.HD)(e)&&a){var y=st(e,d,p,t.get("borderWidth"));i=y[0],o=y[1]}else{y=rt(i,o,n,s,l,h?null:20,c?null:20);i=y[0],o=y[1]}if(h&&(i-=lt(h)?p[0]/2:"right"===h?p[0]:0),c&&(o-=lt(c)?p[1]/2:"bottom"===c?p[1]:0),f(t)){y=at(i,o,n,s,l);i=y[0],o=y[1]}n.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,o=this._cbParamsList,n=!!i&&i.length===t.length;return n&&(0,u.S6)(i,(function(i,r){var a=i.dataByAxis||[],s=t[r]||{},l=s.dataByAxis||[];n=n&&a.length===l.length,n&&(0,u.S6)(a,(function(t,i){var r=l[i]||{},a=t.seriesDataIndices||[],s=r.seriesDataIndices||[];n=n&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===s.length,n&&(0,u.S6)(a,(function(t,e){var i=s[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),o&&(0,u.S6)(t.seriesDataIndices,(function(t){var i=t.seriesIndex,r=e[i],a=o[i];r&&a&&a.data!==r.data&&(n=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!p.Z.node&&e.getDom()&&((0,tt.ZH)(this,"_updatePosition"),this._tooltipContent.dispose(),W.E("itemTooltip",e))},e.type="tooltip",e}(J.Z);function ot(t,e,i){var o,n=e.ecModel;i?(o=new G.Z(i,n,n),o=new G.Z(e.option,o,n)):o=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof G.Z&&(a=a.get("tooltip",!0)),(0,u.HD)(a)&&(a={formatter:a}),a&&(o=new G.Z(a,o,n)))}return o}function nt(t,e){return t.dispatchAction||(0,u.ak)(e.dispatchAction,e)}function rt(t,e,i,o,n,r,a){var s=i.getSize(),l=s[0],u=s[1];return null!=r&&(t+l+r+2>o?t-=l+r:t+=r),null!=a&&(e+u+a>n?e-=u+a:e+=a),[t,e]}function at(t,e,i,o,n){var r=i.getSize(),a=r[0],s=r[1];return t=Math.min(t+a,o)-a,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function st(t,e,i,o){var n=i[0],r=i[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,l=0,u=e.width,p=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+p/2-r/2;break;case"top":s=e.x+u/2-n/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-n/2,l=e.y+p+a;break;case"left":s=e.x-n-a,l=e.y+p/2-r/2;break;case"right":s=e.x+u+a,l=e.y+p/2-r/2}return[s,l]}function lt(t){return"center"===t||"middle"===t}function ut(t,e,i){var o=(0,j.zH)(t).queryOptionMap,n=o.keys()[0];if(n&&"series"!==n){var r=(0,j.HZ)(e,n,o.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s,l=i.getViewOfComponentModel(a);return l.group.traverse((function(e){var i=(0,q.A)(e).tooltipConfig;if(i&&i.name===t.name)return s=e,!0})),s?{componentMainType:n,componentIndex:a.componentIndex,el:s}:void 0}}}var pt=it;function ht(t){(0,n.D)(o.N),t.registerComponentModel(l),t.registerComponentView(pt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},u.ZT),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},u.ZT)}},95018:function(t,e,i){i.d(e,{w:function(){return s}});var o=i(41576),n=i(61465),r=i(99812),a=i(14442);function s(t){var e,i,s,u,p=t.series,h=t.dataIndex,c=t.multipleSeries,d=p.getData(),f=d.mapDimensionsAll("defaultedTooltip"),g=f.length,v=p.getRawValue(h),y=(0,o.kJ)(v),m=(0,n.jT)(p,h);if(g>1||y&&!g){var x=l(v,p,h,f,m);e=x.inlineValues,i=x.inlineValueTypes,s=x.blocks,u=x.inlineValues[0]}else if(g){var _=d.getDimensionInfo(f[0]);u=e=(0,r.hk)(d,h,f[0]),i=_.type}else u=e=y?v[0]:v;var S=(0,a.yu)(p),M=S&&p.name||"",b=d.getName(h),w=c?M:b;return(0,n.TX)("section",{header:M,noHeader:c||!S,sortParam:u,blocks:[(0,n.TX)("nameValue",{markerType:"item",markerColor:m,name:w,noName:!(0,o.fy)(w),value:e,valueType:i})].concat(s||[])})}function l(t,e,i,a,s){var l=e.getData(),u=(0,o.u4)(t,(function(t,e,i){var o=l.getDimensionInfo(i);return t||o&&!1!==o.tooltip&&null!=o.displayName}),!1),p=[],h=[],c=[];function d(t,e){var i=l.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(u?c.push((0,n.TX)("nameValue",{markerType:"subItem",markerColor:s,name:i.displayName,value:t,valueType:i.type})):(p.push(t),h.push(i.type)))}return a.length?(0,o.S6)(a,(function(t){d((0,r.hk)(l,i,t),t)})):(0,o.S6)(t,d),{inlineValues:p,inlineValueTypes:h,blocks:c}}},61465:function(t,e,i){i.d(e,{BY:function(){return m},TX:function(){return c},d_:function(){return C},iv:function(){return I},jT:function(){return T}});var o=i(25516),n=i(63441),r=i(41576),a=i(23828),s=i(35038),l="line-height:1";function u(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,o.F1)(n+"")+"px;color:"+(0,o.F1)(i)+";font-weight:"+(0,o.F1)(r+""),valueStyle:"font-size:"+(0,o.F1)(s+"")+"px;color:"+(0,o.F1)(a)+";font-weight:"+(0,o.F1)(l+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var p=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function c(t,e){return e.type=t,e}function d(t){return"section"===t.type}function f(t){return d(t)?v:y}function g(t){if(d(t)){var e=0,i=t.blocks.length,o=i>1||i>0&&!t.noHeader;return(0,r.S6)(t.blocks,(function(t){var i=g(t);i>=e&&(e=i+ +(o&&(!i||d(t)&&!t.noHeader)))})),e}return 0}function v(t,e,i,s){var p=e.noHeader,h=x(g(e)),c=[],d=e.blocks||[];(0,r.hu)(!d||(0,r.kJ)(d)),d=d||[];var v=t.orderMode;if(e.sortBlocks&&v){d=d.slice();var y={valueAsc:"asc",valueDesc:"desc"};if((0,r.RI)(y,v)){var m=new a.ID(y[v],null);d.sort((function(t,e){return m.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&d.reverse()}(0,r.S6)(d,(function(i,o){var n=e.valueFormatter,a=f(i)(n?(0,r.l7)((0,r.l7)({},t),{valueFormatter:n}):t,i,o>0?h.html:0,s);null!=a&&c.push(a)}));var S="richText"===t.renderMode?c.join(h.richText):_(c.join(""),p?i:h.html);if(p)return S;var M=(0,n.uX)(e.header,"ordinal",t.useUTC),w=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?b(t,M,w)+h.richText+S:_('<div style="'+w+";"+l+';">'+(0,o.F1)(M)+"</div>"+S,i)}function y(t,e,i,o){var a=t.renderMode,s=e.noName,l=e.noValue,p=!e.markerType,h=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=(0,r.kJ)(t)?t:[t],(0,r.UI)(t,(function(t,e){return(0,n.uX)(t,(0,r.kJ)(v)?v[e]:v,c)}))};if(!s||!l){var f=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":(0,n.uX)(h,"ordinal",c),v=e.valueType,y=l?[]:d(e.value),m=!p||!s,x=!p&&s,T=u(o,a),C=T.nameStyle,I=T.valueStyle;return"richText"===a?(p?"":f)+(s?"":b(t,g,C))+(l?"":w(t,y,m,x,I)):_((p?"":f)+(s?"":S(g,!p,C))+(l?"":M(y,m,x,I)),i)}}function m(t,e,i,o,n,r){if(t){var a=f(t),s={useUTC:n,renderMode:i,orderMode:o,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,r)}}function x(t){return{html:p[t],richText:h[t]}}function _(t,e){var i='<div style="clear:both"></div>',o="margin: "+e+"px 0 0";return'<div style="'+o+";"+l+';">'+t+i+"</div>"}function S(t,e,i){var n=e?"margin-left:2px":"";return'<span style="'+i+";"+n+'">'+(0,o.F1)(t)+"</span>"}function M(t,e,i,n){var a=i?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,r.kJ)(t)?t:[t],'<span style="'+s+";"+n+'">'+(0,r.UI)(t,(function(t){return(0,o.F1)(t)})).join(" ")+"</span>"}function b(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function w(t,e,i,o,n){var a=[n],s=o?10:20;return i&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,r.kJ)(e)?e.join(" "):e,a)}function T(t,e){var i=t.getData().getItemVisual(e,"style"),o=i[t.visualDrawType];return(0,n.Lz)(o)}function C(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var I=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.jj)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var o="richText"===i?this._generateStyleName():null,a=(0,n.A0)({color:e,type:t,renderMode:i,markerId:o});return(0,r.HD)(a)?a:(this.richTextStyles[o]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};(0,r.kJ)(e)?(0,r.S6)(e,(function(t){return(0,r.l7)(i,t)})):(0,r.l7)(i,e);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+t+"}"},t}()},42633:function(t,e,i){i.d(e,{N:function(){return h}});var o=i(41033),n=i(41576),r=i(23645),a={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,a=(0,o.a)(t.config,{valueGetterAttrMap:(0,n.kW)({dimension:!0}),prepareGetValue:function(t){var e="",o=t.dimension;(0,n.RI)(t,"dimension")||(0,r._y)(e);var a=i.getDimensionInfo(o);return a||(0,r._y)(e),{dimIdx:a.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),s=[],l=0,u=i.count();l<u;l++)e=i.getRawDataItem(l),a.evaluate()&&s.push(e);return{data:s}}},s=i(49465),l=i(14442),u=i(23828);var p={type:"echarts:sort",transform:function(t){var e=t.upstream,i=t.config,o="",a=(0,l.kF)(i);a.length||(0,r._y)(o);var p=[];(0,n.S6)(a,(function(t){var i=t.dimension,n=t.order,a=t.parser,s=t.incomparable;if(null==i&&(0,r._y)(o),"asc"!==n&&"desc"!==n&&(0,r._y)(o),s&&"min"!==s&&"max"!==s){var l="";0,(0,r._y)(l)}if("asc"!==n&&"desc"!==n){var h="";0,(0,r._y)(h)}var c=e.getDimensionInfo(i);c||(0,r._y)(o);var d=a?(0,u.o2)(a):null;a&&!d&&(0,r._y)(o),p.push({dimIdx:c.index,parser:d,comparator:new u.ID(n,s)})}));var h=e.sourceFormat;h!==s.XD&&h!==s.qb&&(0,r._y)(o);for(var c=[],d=0,f=e.count();d<f;d++)c.push(e.getRawDataItem(d));return c.sort((function(t,i){for(var o=0;o<p.length;o++){var n=p[o],r=e.retrieveValueFromItem(t,n.dimIdx),a=e.retrieveValueFromItem(i,n.dimIdx);n.parser&&(r=n.parser(r),a=n.parser(a));var s=n.comparator.evaluate(r,a);if(0!==s)return s}return 0})),{data:c}}};function h(t){t.registerTransform(a),t.registerTransform(p)}},2616:function(t,e,i){var o=i(50029),n=i(41576),r=i(91641),a=i(28107),s=i(83586),l=i(14442),u=i(35038),p=i(78971),h=a.Z.mapVisual,c=a.Z.eachVisual,d=n.kJ,f=n.S6,g=u.dt,v=u.NU,y=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&s.jO(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=n.ak(t,this),this.controllerVisuals=s.qD(this.option.controller,e,t),this.targetVisuals=s.qD(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=l.kF(t),e},e.prototype.eachTargetSeries=function(t,e){n.S6(this.getTargetSeriesIndices(),(function(i){var o=this.ecModel.getSeriesByIndex(i);o&&t.call(e,o)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,i){var o,r=this.option,a=r.precision,s=this.dataBound,l=r.formatter;i=i||["<",">"],n.kJ(t)&&(t=t.slice(),o=!0);var u=e?t:o?[p(t[0]),p(t[1])]:p(t);return n.HD(l)?l.replace("{value}",o?u[0]:u).replace("{value2}",o?u[1]:u):n.mf(l)?o?l(t[0],t[1]):l(t):o?t[0]===s[0]?i[0]+" "+u[1]:t[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1]:u;function p(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var n=i[o],r=t.getDimensionInfo(n);if(!r.isCalculationCoord)return r.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},o=e.target||(e.target={}),s=e.controller||(e.controller={});n.TS(o,i),n.TS(s,i);var l=this.isCategory();function u(i){d(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function p(t,e,i){var o=t[e],n=t[i];o&&!n&&(n=t[i]={},f(o,(function(t,e){if(a.Z.isValidType(e)){var i=r.Z.get(e,"inactive",l);null!=i&&(n[e]=i,"color"!==e||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";f(this.stateList,(function(r){var s=this.itemSize,u=t[r];u||(u=t[r]={color:l?o:[o]}),null==u.symbol&&(u.symbol=e&&n.d9(e)||(l?a:[a])),null==u.symbolSize&&(u.symbolSize=i&&n.d9(i)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,(function(t){return"none"===t?a:t}));var p=u.symbolSize;if(null!=p){var d=-1/0;c(p,(function(t){t>d&&(d=t)})),u.symbolSize=h(p,(function(t){return v(t,[0,d],[0,s[0]],!0)}))}}),this)}u.call(this,o),u.call(this,s),p.call(this,o,"inRange","outOfRange"),g.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(p.Z);e["Z"]=y},2814:function(t,e,i){var o=i(50029),n=i(41576),r=i(41446),a=i(63441),s=i(84606),l=i(28107),u=i(29445),p=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,i,o){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,i,o):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,i=a.MY(e.get("padding")||0),o=t.getBoundingRect();t.add(new r.Z({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,i){i=i||{};var o=i.forceState,r=this.visualMapModel,a={};if("color"===e){var s=r.get("contentColor");a.color=s}function u(t){return a[t]}function p(t,e){a[t]=e}var h=r.controllerVisuals[o||r.getValueState(t)],c=l.Z.prepareVisualTypes(h);return n.S6(c,(function(o){var n=h[o];i.convertOpacityToAlpha&&"opacity"===o&&(o="colorAlpha",n=h.__alphaForOpacity),l.Z.dependsOn(o,e)&&n&&n.applyVisual(t,u,p)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,i=this.api;s.p$(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,e,i,o){},e.type="visualMap",e}(u.Z);e["Z"]=p},80130:function(t,e,i){i.d(e,{H:function(){return s},X:function(){return a}});var o=i(41576),n=i(84606),r=[["left","right","width"],["top","bottom","height"]];function a(t,e,i){var o=t.option,a=o.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},l="horizontal"===o.orient?1:0,u=r[l],p=[0,null,10],h={},c=0;c<3;c++)h[r[1-l][c]]=p[c],h[u[c]]=2===c?i[0]:o[u[c]];var d=[["x","width",3],["y","height",0]][l],f=(0,n.ME)(h,s,o.padding);return u[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return o.S6(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},3506:function(t,e,i){i.d(e,{N:function(){return a}});var o=i(83384),n=i(36435),r=i(95195);function a(t){(0,o.D)(n.N),(0,o.D)(r.N)}},70396:function(t,e,i){i.d(e,{Z:function(){return g}});var o={type:"selectDataRange",event:"dataRangeSelected",update:"update"},n=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},r=i(41576),a=i(83586),s=i(28107),l=i(10195),u=[{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var o=t.pipelineContext;!e.isTargetSeries(t)||o&&o.large||i.push(a.Z7(e.stateList,e.targetVisuals,r.ak(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),i}},{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),o=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var n=e.getVisualMeta(r.ak(p,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(i);a>=0&&(n.dimension=a,o.push(n))}})),t.getData().setVisual("visualMeta",o)}}];function p(t,e,i,o){for(var n=e.targetVisuals[o],r=s.Z.prepareVisualTypes(n),a={color:(0,l.UL)(t.getData(),"color")},u=0,p=r.length;u<p;u++){var h=r[u],c=n["opacity"===h?"__alphaForOpacity":h];c&&c.applyVisual(i,d,f)}return a.color;function d(t){return a[t]}function f(t,e){a[t]=e}}var h=r.S6;function c(t){var e=t&&t.visualMap;r.kJ(e)||(e=e?[e]:[]),h(e,(function(t){if(t){d(t,"splitList")&&!d(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.kJ(e)&&h(e,(function(t){r.Kn(t)&&(d(t,"start")&&!d(t,"min")&&(t.min=t.start),d(t,"end")&&!d(t,"max")&&(t.max=t.end))}))}}))}function d(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var f=!1;function g(t){f||(f=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(o,n),(0,r.S6)(u,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(c))}},36435:function(t,e,i){i.d(e,{N:function(){return X}});var o=i(50029),n=i(41576),r=i(2616),a=i(35038),s=i(61279),l=[20,140],u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=l[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=l[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.kJ(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),n.S6(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=a.dt((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(i){var o=[],n=i.getData();n.each(this.getDataDimensionIndex(n),(function(e,i){t[0]<=e&&e<=t[1]&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getVisualMeta=function(t){var e=p(this,"outOfRange",this.getExtent()),i=p(this,"inRange",this.option.range.slice()),o=[];function n(e,i){o.push({value:e,color:t(e,i)})}for(var r=0,a=0,s=i.length,l=e.length;a<l&&(!i.length||e[a]<=i[0]);a++)e[a]<i[r]&&n(e[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&o.length&&n(i[r],"outOfRange"),n(i[r],"inRange");for(u=1;a<l;a++)(!i.length||i[i.length-1]<e[a])&&(u&&(o.length&&n(o[o.length-1].value,"outOfRange"),u=0),n(e[a],"outOfRange"));var h=o.length;return{stops:o,outerColors:[h?o[0].color:"transparent",h?o[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,s.ZL)(r.Z.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(r.Z);function p(t,e,i){if(i[0]===i[1])return i.slice();for(var o=200,n=(i[1]-i[0])/o,r=i[0],a=[],s=0;s<=o&&r<i[1];s++)a.push(r),r+=n;return a.push(i[1]),a}var h=u,c=i(9029),d=i(48043),f=i(2814),g=i(4983),v=i(62948),y=i(41446),m=i(26926),x=i(88494),_=i(15245),S=i(80130),M=i(14442),b=i(45234),w=i(3678),T=i(28397),C=i(35404),I=i(4920),k=i(87218),D=i(67544),L=a.NU,A=n.S6,Z=Math.min,z=Math.max,O=12,V=6,P=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return(0,o.ZT)(e,t),e.prototype.doRender=function(t,e,i,o){this._api=i,o&&"selectDataRange"===o.type&&o.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,i){if(e){var o=e[1-i];o=null!=o?o+"":"";var n=this.visualMapModel,r=n.get("textGap"),a=n.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===i?-r:a[1]+r],s),u=this._applyTransform(0===i?"bottom":"top",s),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new g.ZP({style:(0,k.Lr)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===p?"middle":u,align:"horizontal"===p?u:"center",text:o})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,i=this._shapes,o=e.itemSize,r=this._orient,a=this._useHandle,s=S.X(e,this.api,o),l=i.mainGroup=this._createBarGroup(s),u=new v.Z;l.add(u),u.add(i.outOfRange=H()),u.add(i.inRange=H(null,a?E(this._orient):null,n.ak(this._dragHandle,this,"all",!1),n.ak(this._dragHandle,this,"all",!0))),u.setClipPath(new y.Z({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var p=e.textStyleModel.getTextRect("国"),h=z(p.width,p.height);a&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(e,l,0,o,h,r),this._createHandle(e,l,1,o,h,r)),this._createIndicator(e,l,o,h,r),t.add(l)},e.prototype._createHandle=function(t,e,i,o,r,a){var s=n.ak(this._dragHandle,this,i,!1),l=n.ak(this._dragHandle,this,i,!0),u=(0,b.GM)(t.get("handleSize"),o[0]),p=(0,T.th)(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=E(this._orient);p.attr({cursor:h,draggable:!0,drift:s,ondragend:l,onmousemove:function(t){d.sT(t.event)}}),p.x=o[0]/2,p.useStyle(t.getModel("handleStyle").getItemStyle()),p.setStyle({strokeNoScale:!0,strokeFirst:!0}),p.style.lineWidth*=2,p.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,w.Nj)(p,!0),e.add(p);var c=this.visualMapModel.textStyleModel,f=new g.ZP({cursor:h,draggable:!0,drift:s,onmousemove:function(t){d.sT(t.event)},ondragend:l,style:(0,k.Lr)(c,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var v=[u,0],y=this._shapes;y.handleThumbs[i]=p,y.handleLabelPoints[i]=v,y.handleLabels[i]=f},e.prototype._createIndicator=function(t,e,i,o,r){var a=(0,b.GM)(t.get("indicatorSize"),i[0]),s=(0,T.th)(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(s instanceof C.ZP){var u=s.style;s.useStyle(n.l7({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);e.add(s);var p=this.visualMapModel.textStyleModel,h=new g.ZP({silent:!0,invisible:!0,style:(0,k.Lr)(p,{x:0,y:0,text:""})});this.group.add(h);var c=[("horizontal"===r?o/2:V)+i[0]/2,0],d=this._shapes;d.indicator=s,d.indicatorLabel=h,d.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,i,o){if(this._useHandle){if(this._dragging=!e,!e){var n=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(t,n[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():R(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),o=[0,t.itemSize[1]];this._handleEnds=[L(e[0],i,o,!0),L(e[1],i,o,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var i=this.visualMapModel,o=this._handleEnds,n=[0,i.itemSize[1]];(0,_.Z)(e,o,n,t,0);var r=i.getExtent();this._dataInterval=[L(o[0],n,r,!0),L(o[1],n,r,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,i=e.getExtent(),o=this._shapes,n=[0,e.itemSize[1]],r=t?n:this._handleEnds,a=this._createBarVisual(this._dataInterval,i,r,"inRange"),s=this._createBarVisual(i,i,n,"outOfRange");o.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),o.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,a)},e.prototype._createBarVisual=function(t,e,i,o){var n={forceState:o,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,n),a=[this.getControllerVisual(t[0],"symbolSize",n),this.getControllerVisual(t[1],"symbolSize",n)],s=this._createBarPoints(i,a);return{barColor:new c.Z(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var i=100,o=[],n=(t[1]-t[0])/i;o.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<i;r++){var a=t[0]+n*r;if(a>t[1])break;o.push({color:this.getControllerVisual(a,"color",e),offset:r/i})}return o.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),o},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new v.Z("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,n=i.handleThumbs,r=i.handleLabels,a=o.itemSize,s=o.getExtent();A([0,1],(function(l){var u=n[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var p=L(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(p,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var c=m.applyTransform(i.handleLabelPoints[l],m.getTransform(u,this.group));r[l].setStyle({x:c[0],y:c[1],text:o.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,i,o){var n=this.visualMapModel,r=n.getExtent(),a=n.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",p),c=this.getControllerVisual(t,"symbolSize"),d=L(t,r,s,!0),f=a[0]-c/2,g={x:u.x,y:u.y};u.y=d,u.x=f;var v=m.applyTransform(l.indicatorLabelPoint,m.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var x=this._applyTransform("left",l.mainGroup),_=this._orient,S="horizontal"===_;y.setStyle({text:(i||"")+n.formatValueText(e),verticalAlign:S?x:"middle",align:S?"center":x});var M={x:f,y:d,style:{fill:h}},b={style:{x:v[0],y:v[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(M,w),y.animateTo(b,w)}else u.attr(M),y.attr(b);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var C=0;C<T.length;C++)this._api.enterBlur(T[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,o=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);o[1]=Z(z(0,o[1]),i[1]),t._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var n=[0,o[1]],r=i.getExtent();t=Z(z(n[0],t),n[1]);var a=B(i,r,n),s=[t-a,t+a],l=L(t,n,r,!0),u=[L(s[0],n,r,!0),L(s[1],n,r,!0)];s[0]<n[0]&&(u[0]=-1/0),s[1]>n[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var p=this._hoverLinkDataIndices,h=[];(e||R(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var c=M.XI(p,h);this._dispatchHighDown("downplay",S.H(c[0],i)),this._dispatchHighDown("highlight",S.H(c[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,D.o)(t.target,(function(t){var i=(0,I.A)(t);if(null!=i.dataIndex)return e=i,!0}),!0),e){var i=this.ecModel.getSeriesByIndex(e.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var n=i.getData(e.dataType),r=n.getStore().get(o.getDataDimensionIndex(n),e.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var i=0;i<e.length;i++)this._api.leaveBlur(e[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",S.H(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,i,o){var r=m.getTransform(e,o?null:this.group);return n.kJ(t)?m.applyTransform(t,r,i):m.transformDirection(t,r,i)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(f.Z);function H(t,e,i,o){return new x.Z({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){d.sT(t.event)},ondragend:o})}function B(t,e,i){var o=O/2,n=t.get("hoverLinkDataSize");return n&&(o=L(n,e,i,!0)/2),o}function R(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function E(t){return"vertical"===t?"ns-resize":"ew-resize"}var N=P,F=i(70396);function X(t){t.registerComponentModel(h),t.registerComponentView(N),(0,F.Z)(t)}},95195:function(t,e,i){i.d(e,{N:function(){return w}});var o=i(50029),n=i(41576),r=i(2616),a=i(28107),s=i(91641),l=i(35038),u=i(61279),p=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return(0,o.ZT)(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],h[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===o?(t.mappingMethod="category",t.categories=n.d9(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=n.UI(this._pieceList,(function(t){return t=n.d9(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,i={},o=a.Z.listVisualTypes(),r=this.isCategory();function l(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}n.S6(e.pieces,(function(t){n.S6(o,(function(e){t.hasOwnProperty(e)&&(i[e]=1)}))})),n.S6(i,(function(t,i){var o=!1;n.S6(this.stateList,(function(t){o=o||l(e,t,i)||l(e.target,t,i)}),this),!o&&n.S6(this.stateList,(function(t){(e[t]||(e[t]={}))[i]=s.Z.get(i,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var i=this.option,o=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,n.S6(o,(function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var a=!1;n.S6(o,(function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(a?r[i]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=n.d9(t)},e.prototype.getValueState=function(t){var e=a.Z.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries((function(o){var n=[],r=o.getData();r.each(this.getDataDimensionIndex(r),(function(e,o){var r=a.Z.findPieceIndex(e,i);r===t&&n.push(o)}),this),e.push({seriesId:o.id,dataIndex:n})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],o=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return n.S6(r,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(n,r){var a=o.getRepresentValue({interval:n});r||(r=o.getValueState(a));var s=t(a,r);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:e.push({value:n[0],color:s},{value:n[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,u.ZL)(r.Z.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(r.Z),h={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),o=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(o[1]-o[0])/r;while(+a.toFixed(i)!==a&&i<5)i++;e.precision=i,a=+a.toFixed(i),e.minOpen&&t.push({interval:[-1/0,o[0]],close:[0,0]});for(var s=0,u=o[0];s<r;u+=a,s++){var p=s===r-1?o[1]:u+a;t.push({interval:[u,p],close:[1,1]})}e.maxOpen&&t.push({interval:[o[1],1/0],close:[0,0]}),(0,l.nR)(t),n.S6(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;n.S6(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),c(e,t)},pieces:function(t){var e=this.option;n.S6(e.pieces,(function(e,i){n.Kn(e)||(e={value:e});var o={text:"",index:i};if(null!=e.label&&(o.text=e.label),e.hasOwnProperty("value")){var r=o.value=e.value;o.interval=[r,r],o.close=[1,1]}else{for(var s=o.interval=[],l=o.close=[0,0],u=[1,0,1],p=[-1/0,1/0],h=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&null==s[c];f++)s[c]=e[d[f]],l[c]=u[f],h[c]=2===f;null==s[c]&&(s[c]=p[c])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(o.value=s[0])}o.visual=a.Z.retrieveVisuals(e),t.push(o)}),this),c(e,t),(0,l.nR)(t),n.S6(t,(function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function c(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var d=p,f=i(2814),g=i(62948),v=i(4983),y=i(28397),m=i(84606),x=i(80130),_=i(87218),S=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),o=e.textStyleModel,r=o.getFont(),a=o.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),p=u.endsText,h=n.Jv(e.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],l,h,s),n.S6(u.viewPieceList,(function(o){var u=o.piece,p=new g.Z;p.onclick=n.ak(this._onItemClick,this,u),this._enableHoverLink(p,o.indexInModelPieceList);var c=e.getRepresentValue(u);if(this._createItemSymbol(p,c,[0,0,l[0],l[1]]),h){var d=this.visualMapModel.getValueState(c);p.add(new v.ZP({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(p)}),this),p&&this._renderEndsText(t,p[1],l,h,s),m.BZ(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",(function(){return o("highlight")})).on("mouseout",(function(){return o("downplay")}));var o=function(t){var o=i.visualMapModel;o.option.hoverLink&&i.api.dispatchAction({type:t,batch:x.H(o.findTargetDataIndices(e),o)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return x.X(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,o,n){if(e){var r=new g.Z,a=this.visualMapModel.textStyleModel;r.add(new v.ZP({style:(0,_.Lr)(a,{x:o?"right"===n?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?n:"center",text:e})})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=n.UI(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),o=t.get("orient"),r=t.get("inverse");return("horizontal"===o?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i){t.add((0,y.th)(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,o=i.selectedMode;if(o){var r=n.d9(i.selected),a=e.getSelectedMapKey(t);"single"===o||!0===o?(r[a]=!0,n.S6(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(f.Z),M=S,b=i(70396);function w(t){t.registerComponentModel(d),t.registerComponentView(M),(0,b.Z)(t)}}}]);
|