@ecan-bi/datav 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -7,4 +7,4 @@
7
7
  *
8
8
  * LICENSE
9
9
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
10
- */var Si=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new ze,o=n.renderer||"canvas";if(bi[o]||(o=at(bi)[0]),"production"!==process.env.NODE_ENV&&!bi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new bi[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l=A.node||A.worker||s?null:new _r(a.getViewportRoot(),a.root);this.handler=new Ae(i,a,l,a.root),this.animation=new rr({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Bn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Bn(e[i].color,1);return(n/=r)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=$n();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=$n();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _i&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete wi[t]},t}();function ki(t,e){var n=new Si(Y(),t,e);return wi[n.id]=n,n}var Ci=1e-4;function Mi(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Ti(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return pt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Ai(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ii(t){return t.sort((function(t,e){return t-e})),t}function Di(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Oi(t)}function Oi(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function Ei(t,e){var n=Math.max(Di(t),Di(e)),r=t+e;return n>20?r:Ai(r,n)}function Ni(t){var e=2*Math.PI;return(t%e+e)%e}function Li(t){return t>-1e-4&&t<Ci}var Pi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ri(t){if(t instanceof Date)return t;if(pt(t)){var e=Pi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Bi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Vi(t,e){var n=Bi(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function zi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function Fi(t){var e=parseFloat(t);return e==t&&(0!==e||!pt(t)||t.indexOf("x")<=0)?e:NaN}function Gi(t){return!isNaN(Fi(t))}function Ui(){return Math.round(9*Math.random())}function Wi(t,e){return 0===e?t:Wi(e,t%e)}function ji(t,e){return null==t?e:null==e?t:t*e/Wi(t,e)}var Hi={},Yi="undefined"!=typeof console&&console.warn&&console.log;function qi(t,e,n){if(Yi){if(n){if(Hi[e])return;Hi[e]=!0}console[t]("[ECharts] "+e)}}function Xi(t,e){qi("warn",t,e)}function Zi(t,e){qi("error",t,e)}function Ji(t){"production"!==process.env.NODE_ENV&&qi("warn","DEPRECATED: "+t,!0)}function Ki(t,e,n){"production"!==process.env.NODE_ENV&&Ji((n?"["+n+"]":"")+t+" is deprecated, use "+e+" instead.")}function Qi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if("production"!==process.env.NODE_ENV){var r=function(t){return void 0===t?"undefined":t===1/0?"Infinity":t===-1/0?"-Infinity":_t(t)?"NaN":t instanceof Date?"Date("+t.toISOString()+")":ct(t)?"function () { ... }":xt(t)?t+"":null};n=rt(t,(function(t){if(pt(t))return t;var e=r(t);if(null!=e)return e;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(t,(function(t,e){var n=r(e);return null==n?e:n}))}catch(t){return"?"}})).join(" ")}return n}function $i(t){throw new Error(t)}function to(t,e,n){return(e-t)*n+t}var eo="series\0";function no(t){return t instanceof Array?t:null==t?[]:[t]}function ro(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var io=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function oo(t){return!ft(t)||ut(t)||t instanceof Date?t:t.value}function ao(t){return ft(t)&&!(t instanceof Array)}function so(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Et();nt(e,(function(t,n){ft(t)?"production"!==process.env.NODE_ENV&&(null==t.id||ho(t.id)||po(t.id),null==t.name||ho(t.name)||po(t.name)):e[n]=null}));var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||go(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){nt(r,(function(i,o){if(i&&null!=i.id){var a=uo(i.id),s=n.get(a);if(null!=s){var l=t[s];Mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}(u,t,a,e),r&&function(t,e){nt(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!go(n)&&!go(o)&&lo("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(u,e),r||i?function(t,e,n){nt(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||go(r.existing)||r.existing&&null!=e.id&&!lo("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,e,i):o&&function(t,e){nt(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=Et(),nt(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),nt(s,(function(t){var e=t.newOption;Mt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),nt(s,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(ft(r)){if(i.name=null!=r.name?uo(r.name):n?n.name:eo+e,n)i.id=uo(n.id);else if(null!=r.id)i.id=uo(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}})),u}function lo(t,e,n){var r=co(e[t],null),i=co(n[t],null);return null!=r&&null!=i&&r===i}function uo(t){if("production"!==process.env.NODE_ENV&&null==t)throw new Error;return co(t,"")}function co(t,e){return null==t?e:pt(t)?t:dt(t)||ht(t)?t+"":e}function po(t){"production"!==process.env.NODE_ENV&&Xi("`"+t+"` is invalid id or name. Must be a string or number.")}function ho(t){return ht(t)||Gi(t)}function fo(t){var e=t.name;return!(!e||!e.indexOf(eo))}function go(t){return t&&null!=t.id&&0===uo(t.id).indexOf("\0_ec_\0")}function vo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?ut(e.dataIndex)?rt(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?ut(e.name)?rt(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function mo(){var t="__ec_inner_"+yo++;return function(e){return e[t]||(e[t]={})}}var yo=Ui();function xo(t,e,n){var r=_o(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=wo(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function _o(t,e){var n;if(pt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Et(),o={},a=!1;return nt(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&$(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var bo={useDefault:!0,enableAll:!1,enableNone:!1};function wo(t,e,n,r){r=r||bo;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Mt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Mt(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function So(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var ko="___EC__COMPONENT__CONTAINER___",Co="___EC__EXTENDED_CLASS___";function Mo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function To(t,e){t.$constructor=t,t.extend=function(t){"production"!==process.env.NODE_ENV&&nt(e,(function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")}));var n,r,i=this;return ct(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?n=function(t){function e(){return t.apply(this,arguments)||this}return k(e,t),e}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(n,this)),K(n.prototype,t),n[Co]=!0,n.extend=this.extend,n.superCall=Do,n.superApply=Oo,n.superClass=i,n}}function Ao(t,e){t.extend=e.extend}var Io=Math.round(10*Math.random());function Do(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Oo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Eo(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){Mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=Mo(r);if(i.sub){if(i.sub!==ko){var o=function(t){var n=e[t.main];n&&n[ko]||((n=e[t.main]={})[ko]=!0);return n}(i);o[i.sub]=t}}else"production"!==process.env.NODE_ENV&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[ko]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=Mo(t),r=[],i=e[n.main];return i&&i[ko]?nt(i,(function(t,e){e!==ko&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=Mo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return nt(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Mo(t),r=e[n.main];return r&&r[ko]}}function No(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&$(r,s)>=0||i&&$(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Lo=No([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Po=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Lo(this,t,e)},t}(),Ro=new yn(50);function Bo(t){if("string"==typeof t){var e=Ro.get(t);return e&&e.image}return t}function Vo(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Ro.get(t),a={hostEl:n,cb:r,cbPayload:i};if(o)!Fo(e=o.image)&&o.pending.push(a);else{var s=N.loadImage(t,zo,zo);s.__zrImageSrc=t,Ro.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function zo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Fo(t){return t&&t.width&&t.height}var Go=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Uo(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Wo(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=jo(o[a],i);return o.join("\n")}function Wo(t,e,n,r){var i=K({},r=r||{});i.font=e,n=wt(n,"..."),i.maxIterations=wt(r.maxIterations,2);var o=i.minChar=wt(r.minChar,0);i.cnCharWidth=ti("国",e);var a=i.ascCharWidth=ti("a",e);i.placeholder=wt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=ti(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function jo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=ti(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ho(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=ti(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function Ho(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Yo=function(){},qo=function(t){this.tokens=[],t&&(this.tokens=t)},Xo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Zo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,p=!1;if(r){var h=l.padding,d=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=ai(l.width,r.width)+d;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),p=!0),r.accumWidth=f}else{var g=Qo(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Yo;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:ti(m,c),v||p)u.push(new qo([y]));else{var x=(u[u.length-1]||(u[0]=new qo)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(m||!_||s)&&x.push(y)}}}var Jo=it(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ko(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&e<=383}(t)||!!Jo[t]}function Qo(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,p=0;p<t.length;p++){var h=t.charAt(p);if("\n"!==h){var d=ti(h,e),f=!r&&!Ko(h);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=d)):f?(o.push(l),a.push(u),l=h,u=d):(o.push(h),a.push(d)):(c+=d,f?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var $o="__zr_style_"+Math.round(10*Math.random()),ta={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ea={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ta[$o]=!0;var na=["z","z2","invisible"],ra=["invisible"],ia=function(t){function e(e){return t.call(this,e)||this}var n;return k(e,t),e.prototype._init=function(e){for(var n=at(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){oa.copy(t.getBoundingRect()),t.transform&&oa.applyTransform(t.transform);return aa.width=e,aa.height=n,!oa.intersect(aa)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Qr(0,0,0,0)),e?Qr.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Qr(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:K(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Nt(ta,t)},e.prototype.useStyle=function(t){t[$o]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[$o]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,na)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=at(u),p=0;p<c.length;p++){(d=c[p])in s&&(s[d]=s[d],this.style[d]=u[d])}var h=at(s);for(p=0;p<h.length;p++){var d=h[p];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?ra:na;for(p=0;p<f.length;p++){d=f[p];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return K(t,e),t},e.prototype.getAnimationStyleProps=function(){return ea},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(yi),oa=new Qr(0,0,0,0),aa=new Qr(0,0,0,0);var sa=ia,la=Math.min,ua=Math.max,ca=Math.sin,pa=Math.cos,ha=2*Math.PI,da=Vt(),fa=Vt(),ga=Vt();function va(t,e,n,r,i,o){i[0]=la(t,n),i[1]=la(e,r),o[0]=ua(t,n),o[1]=ua(e,r)}var ma=[],ya=[];function xa(t,e,n,r,i,o,a,s,l,u){var c=rn,p=tn,h=c(t,n,i,a,ma);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var f=p(t,n,i,a,ma[d]);l[0]=la(f,l[0]),u[0]=ua(f,u[0])}h=c(e,r,o,s,ya);for(d=0;d<h;d++){var g=p(e,r,o,s,ya[d]);l[1]=la(g,l[1]),u[1]=ua(g,u[1])}l[0]=la(t,l[0]),u[0]=ua(t,u[0]),l[0]=la(a,l[0]),u[0]=ua(a,u[0]),l[1]=la(e,l[1]),u[1]=ua(e,u[1]),l[1]=la(s,l[1]),u[1]=ua(s,u[1])}function _a(t,e,n,r,i,o,a,s){var l=un,u=sn,c=ua(la(l(t,n,i),1),0),p=ua(la(l(e,r,o),1),0),h=u(t,n,i,c),d=u(e,r,o,p);a[0]=la(t,i,h),a[1]=la(e,o,d),s[0]=ua(t,i,h),s[1]=ua(e,o,d)}function ba(t,e,n,r,i,o,a,s,l){var u=Zt,c=Jt,p=Math.abs(i-o);if(p%ha<1e-4&&p>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(da[0]=pa(i)*n+t,da[1]=ca(i)*r+e,fa[0]=pa(o)*n+t,fa[1]=ca(o)*r+e,u(s,da,fa),c(l,da,fa),(i%=ha)<0&&(i+=ha),(o%=ha)<0&&(o+=ha),i>o&&!a?o+=ha:i<o&&a&&(i+=ha),a){var h=o;o=i,i=h}for(var d=0;d<o;d+=Math.PI/2)d>i&&(ga[0]=pa(d)*n+t,ga[1]=ca(d)*r+e,u(s,ga,s),c(l,ga,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],ka=[],Ca=[],Ma=[],Ta=[],Aa=[],Ia=Math.min,Da=Math.max,Oa=Math.cos,Ea=Math.sin,Na=Math.abs,La=Math.PI,Pa=2*La,Ra="undefined"!=typeof Float32Array,Ba=[];function Va(t){return Math.round(t/La*1e8)/1e8%2*La}var za=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Na(n/wr/t)||0,this._uy=Na(n/wr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(wa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Na(t-this._xi),r=Na(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(wa.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ba[0]=r,Ba[1]=i,function(t,e){var n=Va(t[0]);n<0&&(n+=Pa);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Pa?i=n+Pa:e&&n-i>=Pa?i=n-Pa:!e&&n>i?i=n+(Pa-Va(n-i)):e&&n<i&&(i=n-(Pa-Va(i-n))),t[0]=n,t[1]=i}(Ba,o),r=Ba[0];var a=(i=Ba[1])-r;return this.addData(wa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Oa(i)*n+t,this._yi=Ea(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(wa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ra||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ra&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ra&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ca[0]=Ca[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Aa[0]=Aa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case wa.M:n=i=e[t++],r=o=e[t++],Ta[0]=i,Ta[1]=o,Aa[0]=i,Aa[1]=o;break;case wa.L:va(n,r,e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.C:xa(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.Q:_a(n,r,e[t++],e[t++],e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.A:var l=e[t++],u=e[t++],c=e[t++],p=e[t++],h=e[t++],d=e[t++]+h;t+=1;var f=!e[t++];s&&(i=Oa(h)*c+l,o=Ea(h)*p+u),ba(l,u,c,p,h,d,f,Ta,Aa),n=Oa(d)*c+l,r=Ea(d)*p+u;break;case wa.R:va(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],Ta,Aa);break;case wa.Z:n=i,r=o}Zt(Ca,Ca,Ta),Jt(Ma,Ma,Aa)}return 0===t&&(Ca[0]=Ca[1]=Ma[0]=Ma[1]=0),new Qr(Ca[0],Ca[1],Ma[0]-Ca[0],Ma[1]-Ca[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,p=0;p<e;){var h=t[p++],d=1===p;d&&(a=i=t[p],s=o=t[p+1]);var f=-1;switch(h){case wa.M:i=a=t[p++],o=s=t[p++];break;case wa.L:var g=t[p++],v=(x=t[p++])-o;(Na(I=g-i)>n||Na(v)>r||p===e-1)&&(f=Math.sqrt(I*I+v*v),i=g,o=x);break;case wa.C:var m=t[p++],y=t[p++],x=(g=t[p++],t[p++]),_=t[p++],b=t[p++];f=an(i,o,m,y,g,x,_,b,10),i=_,o=b;break;case wa.Q:f=pn(i,o,m=t[p++],y=t[p++],g=t[p++],x=t[p++],10),i=g,o=x;break;case wa.A:var w=t[p++],S=t[p++],k=t[p++],C=t[p++],M=t[p++],T=t[p++],A=T+M;p+=1,t[p++],d&&(a=Oa(M)*k+w,s=Ea(M)*C+S),f=Da(k,C)*Ia(Pa,Math.abs(T)),i=Oa(A)*k+w,o=Ea(A)*C+S;break;case wa.R:a=i=t[p++],s=o=t[p++],f=2*t[p++]+2*t[p++];break;case wa.Z:var I=a-i;v=s-o;f=Math.sqrt(I*I+v*v),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,p,h=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=h[_++],w=1===_;switch(w&&(n=i=h[_],r=o=h[_+1]),b!==wa.L&&x>0&&(t.lineTo(c,p),x=0),b){case wa.M:n=i=h[_++],r=o=h[_++],t.moveTo(i,o);break;case wa.L:a=h[_++],s=h[_++];var S=Na(a-i),k=Na(s-o);if(S>d||k>f){if(v){if(m+(X=l[y++])>u){var C=(u-m)/X;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=X}t.lineTo(a,s),i=a,o=s,x=0}else{var M=S*S+k*k;M>x&&(c=a,p=s,x=M)}break;case wa.C:var T=h[_++],A=h[_++],I=h[_++],D=h[_++],O=h[_++],E=h[_++];if(v){if(m+(X=l[y++])>u){on(i,T,I,O,C=(u-m)/X,Sa),on(o,A,D,E,C,ka),t.bezierCurveTo(Sa[1],ka[1],Sa[2],ka[2],Sa[3],ka[3]);break t}m+=X}t.bezierCurveTo(T,A,I,D,O,E),i=O,o=E;break;case wa.Q:T=h[_++],A=h[_++],I=h[_++],D=h[_++];if(v){if(m+(X=l[y++])>u){cn(i,T,I,C=(u-m)/X,Sa),cn(o,A,D,C,ka),t.quadraticCurveTo(Sa[1],ka[1],Sa[2],ka[2]);break t}m+=X}t.quadraticCurveTo(T,A,I,D),i=I,o=D;break;case wa.A:var N=h[_++],L=h[_++],P=h[_++],R=h[_++],B=h[_++],V=h[_++],z=h[_++],F=!h[_++],G=P>R?P:R,U=Na(P-R)>.001,W=B+V,j=!1;if(v)m+(X=l[y++])>u&&(W=B+V*(u-m)/X,j=!0),m+=X;if(U&&t.ellipse?t.ellipse(N,L,P,R,z,B,W,F):t.arc(N,L,G,B,W,F),j)break t;w&&(n=Oa(B)*P+N,r=Ea(B)*R+L),i=Oa(W)*P+N,o=Ea(W)*R+L;break;case wa.R:n=i=h[_],r=o=h[_+1],a=h[_++],s=h[_++];var H=h[_++],Y=h[_++];if(v){if(m+(X=l[y++])>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+Ia(q,H),s),(q-=H)>0&&t.lineTo(a+H,s+Ia(q,Y)),(q-=Y)>0&&t.lineTo(a+Da(H-q,0),s+Y),(q-=H)>0&&t.lineTo(a,s+Da(Y-q,0));break t}m+=X}t.rect(a,s,H,Y);break;case wa.Z:if(v){var X;if(m+(X=l[y++])>u){C=(u-m)/X;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=X}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=wa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Fa=za;function Ga(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Ua(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var p=l;if(c>e+p&&c>r+p&&c>o+p&&c>s+p||c<e-p&&c<r-p&&c<o-p&&c<s-p||u>t+p&&u>n+p&&u>i+p&&u>a+p||u<t-p&&u<n-p&&u<i-p&&u<a-p)return!1;var h=function(t,e,n,r,i,o,a,s,l,u,c){var p,h,d,f,g,v=.005,m=1/0;Ze[0]=l,Ze[1]=u;for(var y=0;y<1;y+=.05)Je[0]=tn(t,n,i,a,y),Je[1]=tn(e,r,o,s,y),(f=Yt(Ze,Je))<m&&(p=y,m=f);m=1/0;for(var x=0;x<32&&!(v<Ye);x++)h=p-v,d=p+v,Je[0]=tn(t,n,i,a,h),Je[1]=tn(e,r,o,s,h),f=Yt(Je,Ze),h>=0&&f<m?(p=h,m=f):(Ke[0]=tn(t,n,i,a,d),Ke[1]=tn(e,r,o,s,d),g=Yt(Ke,Ze),d<=1&&g<m?(p=d,m=g):v*=.5);return c&&(c[0]=tn(t,n,i,a,p),c[1]=tn(e,r,o,s,p)),je(m)}(t,e,n,r,i,o,a,s,u,c,null);return h<=p/2}function Wa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=function(t,e,n,r,i,o,a,s,l){var u,c=.005,p=1/0;Ze[0]=a,Ze[1]=s;for(var h=0;h<1;h+=.05)Je[0]=sn(t,n,i,h),Je[1]=sn(e,r,o,h),(v=Yt(Ze,Je))<p&&(u=h,p=v);p=1/0;for(var d=0;d<32&&!(c<Ye);d++){var f=u-c,g=u+c;Je[0]=sn(t,n,i,f),Je[1]=sn(e,r,o,f);var v=Yt(Je,Ze);if(f>=0&&v<p)u=f,p=v;else{Ke[0]=sn(t,n,i,g),Ke[1]=sn(e,r,o,g);var m=Yt(Ke,Ze);g<=1&&m<p?(u=g,p=m):c*=.5}}return l&&(l[0]=sn(t,n,i,u),l[1]=sn(e,r,o,u)),je(p)}(t,e,n,r,i,o,s,l,null);return c<=u/2}var ja=2*Math.PI;function Ha(t){return(t%=ja)<0&&(t+=ja),t}var Ya=2*Math.PI;function qa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Ya<1e-4)return!0;if(o){var p=r;r=Ha(i),i=Ha(p)}else r=Ha(r),i=Ha(i);r>i&&(i+=Ya);var h=Math.atan2(l,s);return h<0&&(h+=Ya),h>=r&&h<=i||h+Ya>=r&&h+Ya<=i}function Xa(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Za=Fa.CMD,Ja=2*Math.PI;var Ka=[-1,-1,-1],Qa=[-1,-1];function $a(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c,p=nn(e,r,o,s,u,Ka);if(0===p)return 0;for(var h=0,d=-1,f=void 0,g=void 0,v=0;v<p;v++){var m=Ka[v],y=0===m||1===m?.5:1;tn(t,n,i,a,m)<l||(d<0&&(d=rn(e,r,o,s,Qa),Qa[1]<Qa[0]&&d>1&&(c=void 0,c=Qa[0],Qa[0]=Qa[1],Qa[1]=c),f=tn(e,r,o,s,Qa[0]),d>1&&(g=tn(e,r,o,s,Qa[1]))),2===d?m<Qa[0]?h+=f<e?y:-y:m<Qa[1]?h+=g<f?y:-y:h+=s<g?y:-y:m<Qa[0]?h+=f<e?y:-y:h+=s<f?y:-y)}return h}function ts(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Qe(o))$e(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Qe(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,p=je(u),h=(-a-p)/(2*o);(c=(-a+p)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(e,r,o,s,Ka);if(0===l)return 0;var u=un(e,r,o);if(u>=0&&u<=1){for(var c=0,p=sn(e,r,o,u),h=0;h<l;h++){var d=0===Ka[h]||1===Ka[h]?.5:1;sn(t,n,i,Ka[h])<a||(Ka[h]<u?c+=p<e?d:-d:c+=o<p?d:-d)}return c}d=0===Ka[0]||1===Ka[0]?.5:1;return sn(t,n,i,Ka[0])<a?0:o<e?d:-d}function es(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ka[0]=-l,Ka[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ja-1e-4){r=0,i=Ja;var c=o?1:-1;return a>=Ka[0]+t&&a<=Ka[1]+t?c:0}if(r>i){var p=r;r=i,i=p}r<0&&(r+=Ja,i+=Ja);for(var h=0,d=0;d<2;d++){var f=Ka[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ja+g),(g>=r&&g<=i||g+Ja>=r&&g+Ja<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function ns(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),p=0,h=0,d=0,f=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===Za.M&&v>1&&(n||(p+=Xa(h,d,f,g,r,i))),y&&(f=h=u[v],g=d=u[v+1]),m){case Za.M:h=f=u[v++],d=g=u[v++];break;case Za.L:if(n){if(Ga(h,d,u[v],u[v+1],e,r,i))return!0}else p+=Xa(h,d,u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.C:if(n){if(Ua(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else p+=$a(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.Q:if(n){if(Wa(h,d,u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else p+=ts(h,d,u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],k=u[v++];v+=1;var C=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,y?(f=o,g=a):p+=Xa(h,d,o,a,r,i);var M=(r-x)*w/b+x;if(n){if(qa(x,_,w,S,S+k,C,e,M,i))return!0}else p+=es(x,_,w,S,S+k,C,M,i);h=Math.cos(S+k)*b+x,d=Math.sin(S+k)*w+_;break;case Za.R:if(f=h=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(Ga(f,g,o,g,e,r,i)||Ga(o,g,o,a,e,r,i)||Ga(o,a,f,a,e,r,i)||Ga(f,a,f,g,e,r,i))return!0}else p+=Xa(o,g,o,a,r,i),p+=Xa(f,a,f,g,r,i);break;case Za.Z:if(n){if(Ga(h,d,f,g,e,r,i))return!0}else p+=Xa(h,d,f,g,r,i);h=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(p+=Xa(h,d,f,g,r,i)||0),0!==p}var rs=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ta),is={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ea.style)},os=Fr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(t){function e(e){return t.call(this,e)||this}var n;return k(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<os.length;++s)i[os[s]]=this[os[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=at(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?K(this.style,a):this.useStyle(a):"shape"===o?K(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(pt(t)){var e=Bn(t,0);return e>.5?Sr:e>.2?"#eee":kr}if(t)return kr}return Sr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(pt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Bn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Fa(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return ns(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ns(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:K(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Nt(rs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=K({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=K({},r.shape),K(s,n.shape)):(s=K({},i?this.shape:r.shape),K(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=K({},this.shape);for(var u={},c=at(s),p=0;p<c.length;p++){var h=c[p];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return is},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return k(n,e),n.prototype.getDefaultStyle=function(){return X(t.style)},n.prototype.getDefaultShape=function(){return X(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(sa),ss=as,ls=Q({strokeFirst:!0,font:I,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rs),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Nt(ls,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ni(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(sa);us.prototype.type="tspan";var cs=us,ps=Q({x:0,y:0},ta),hs={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ea.style)};var ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.createStyle=function(t){return Nt(ps,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return hs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Qr(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sa);ds.prototype.type="image";var fs=ds;var gs=Math.round;function vs(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(gs(2*r)===gs(2*i)&&(t.x1=t.x2=ys(r,s,!0)),gs(2*o)===gs(2*a)&&(t.y1=t.y2=ys(o,s,!0)),t):t}}function ms(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ys(r,s,!0),t.y=ys(i,s,!0),t.width=Math.max(ys(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ys(i+a,s,!1)-t.y,0===a?0:1),t):t}}function ys(t,e,n){if(!e)return t;var r=gs(2*t);return(r+gs(e))%2==0?r/2:(r+(n?1:-1))/2}var xs=function(){this.x=0,this.y=0,this.width=0,this.height=0},_s={},bs=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new xs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ms(_s,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,p=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof p?n=r=i=o=p:p instanceof Array?1===p.length?n=r=i=o=p[0]:2===p.length?(n=i=p[0],r=o=p[1]):3===p.length?(n=p[0],r=o=p[1],i=p[2]):(n=p[0],r=p[1],i=p[2],o=p[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ss);bs.prototype.type="rect";var ws=bs,Ss={fill:"#000"},ks={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ea.style)},Cs=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ss,n.attr(e),n}return k(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function(t){Os(t),nt(t.rich,Os)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Qr(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ss},e.prototype.setTextContent=function(t){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return K(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=at(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},K(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return ks},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||I,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=oi(o),l=wt(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,p=e.width,h=(n=null==p||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Qo(t,e.font,p,"breakAll"===r,0).lines:[]).length*l,d=wt(e.height,h);if(h>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=p)for(var g=Wo(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=jo(n[v],g);var m=d,y=0;for(v=0;v<n.length;v++)y=Math.max(ti(n[v],o),y);null==p&&(p=y);var x=y;return i&&(m+=i[0]+i[2],x+=i[1]+i[3],p+=i[1]+i[3]),u&&(x=p),{lines:n,height:d,outerWidth:x,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:p}}(Ps(t),t),i=Rs(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,p=this._defaultStyle,h=t.x||0,d=t.y||0,f=t.align||p.align||"left",g=t.verticalAlign||p.verticalAlign||"top",v=h,m=ii(d,r.contentHeight,g);if(i||n){var y=ri(h,s,f),x=ii(d,a,g);i&&this._renderBackground(t,t,y,x,s,a)}m+=c/2,n&&(v=Ls(h,f,n),"top"===g?m+=n[0]:"bottom"===g&&(m-=n[2]));for(var _=0,b=!1,w=(Ns("fill"in t?t.fill:(b=!0,p.fill))),S=(Es("stroke"in t?t.stroke:o||p.autoStroke&&!b?null:(_=2,p.stroke))),k=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(cs),D=A.createStyle();A.useStyle(D),D.text=u[T],D.x=v,D.y=m,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,k&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=t.lineWidth||_,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Ds(D,t),m+=c,C&&A.setBoundingRect(new Qr(ri(D.x,t.width,D.textAlign),ii(D.y,M,D.textBaseline),l,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Xo;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Go.lastIndex=0;null!=(r=Go.exec(t));){var u=r.index;u>l&&Zo(n,t.substring(l,u),e,s),Zo(n,r[2],e,s,r[1]),l=Go.lastIndex}l<t.length&&Zo(n,t.substring(l,t.length),e,s);var c=[],p=0,h=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,p+=n,h=Math.max(h,e)}t:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],x=0,_=0,b=0;b<y.tokens.length;b++){var w=(E=y.tokens[b]).styleName&&e.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||e.font;E.contentHeight=oi(C);var M=wt(w.height,E.contentHeight);if(E.innerHeight=M,S&&(M+=S[0]+S[2]),E.height=M,E.lineHeight=St(w.lineHeight,e.lineHeight,M),E.align=w&&w.align||e.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&p+E.lineHeight>o){b>0?(y.tokens=y.tokens.slice(0,b),v(y,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))E.percentWidth=T,c.push(E),E.contentWidth=ti(E.text,C);else{if(A){var I=w.backgroundColor,D=I&&I.image;D&&Fo(D=Bo(D))&&(E.width=Math.max(E.width,D.width*M/D.height))}var O=f&&null!=i?i-_:null;null!=O&&O<E.width?!A||O<k?(E.text="",E.width=E.contentWidth=0):(E.text=Uo(E.text,O-k,C,e.ellipsis,{minChar:e.truncateMinChar}),E.width=E.contentWidth=ti(E.text,C)):E.contentWidth=ti(E.text,C)}E.width+=k,_+=E.width,w&&(x=Math.max(x,E.lineHeight))}v(y,_,x)}for(n.outerWidth=n.width=wt(i,h),n.outerHeight=n.height=wt(o,p),n.contentHeight=p,n.contentWidth=h,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),m=0;m<c.length;m++){var E,N=(E=c[m]).percentWidth;E.width=parseInt(N,10)/100*n.width}return n}(Ps(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,p=ri(a,r,u),h=ii(s,i,c),d=p,f=h;o&&(d+=o[3],f+=o[0]);var g=d+n;Rs(t)&&this._renderBackground(t,t,p,h,r,i);for(var v=!!t.backgroundColor,m=0;m<e.lines.length;m++){for(var y=e.lines[m],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,k=d,C=g,M=_-1,T=void 0;S<_&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,k,"left",v),w-=T.width,k+=T.width,S++;for(;M>=0&&"right"===(T=x[M]).align;)this._placeToken(T,t,b,f,C,"right",v),w-=T.width,C-=T.width,M--;for(k+=(n-(k-d)-(g-C)-w)/2;S<=M;)T=x[S],this._placeToken(T,t,b,f,k+T.width/2,"center",v),k+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&Rs(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(i=Ls(i,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var h=this._getOrCreateChild(cs),d=h.createStyle();h.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=Ns("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=Es("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||I,d.opacity=St(s.opacity,e.opacity,1),Ds(d,s),y&&(d.lineWidth=St(s.lineWidth,e.lineWidth,v),d.lineDash=wt(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=y),m&&(d.fill=m);var _=t.contentWidth,b=t.contentHeight;h.setBoundingRect(new Qr(ri(d.x,_,d.textAlign),ii(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,h=u&&u.image,d=u&&!h,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&p){(a=this._getOrCreateChild(ws)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=r,v.width=i,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=wt(t.fillOpacity,1);else if(h){(s=this._getOrCreateChild(fs)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=r,m.width=i,m.height=o}c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=wt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=St(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,Is(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Tt(e)||t.textFont||t.font},e}(sa),Ms={left:!0,right:1,center:1},Ts={top:1,bottom:1,middle:1},As=["fontStyle","fontWeight","fontSize","fontFamily"];function Is(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Ds(t,e){for(var n=0;n<As.length;n++){var r=As[n],i=e[r];null!=i&&(t[r]=i)}}function Os(t){if(t){t.font=Cs.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ms[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ts[n]?n:"top",t.padding&&(t.padding=Ct(t.padding))}}function Es(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ns(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ls(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ps(t){var e=t.text;return null!=e&&(e+=""),e}function Rs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Bs=Cs,Vs=mo(),zs=1,Fs={},Gs=mo(),Us=mo(),Ws=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],Hs="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Js(t){return null!=t&&"none"!==t}var Ks=new yn(100);function Qs(t){if(pt(t)){var e=Ks.get(t);return e||(e=Nn(t,-.1),Ks.put(t,e)),e}if(yt(t)){var n=K({},t);return n.colorStops=rt(t.colorStops,(function(t){return{offset:t.offset,color:Nn(t.color,-.1)}})),n}return t}function $s(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tl(t){$s(t,"emphasis",2)}function el(t){2===t.hoverState&&$s(t,"normal",0)}function nl(t){$s(t,"blur",1)}function rl(t){1===t.hoverState&&$s(t,"normal",0)}function il(t){t.selected=!0}function ol(t){t.selected=!1}function al(t,e,n){e(t,n)}function sl(t,e,n){al(t,e,n),t.isGroup&&t.traverse((function(t){al(t,e,n)}))}function ll(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ul(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&$(n,"select")>=0,o=!1;if(t instanceof ss){var a=Gs(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Js(s)||Js(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=K({},r),(u=K({},u)).fill=s):!Js(u.fill)&&Js(s)?(o=!0,r=K({},r),(u=K({},u)).fill=Qs(s)):!Js(u.stroke)&&Js(l)&&(o||(r=K({},r),u=K({},u)),u.stroke=Qs(l)),r.style=u}}if(r&&null==r.z2){o||(r=K({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:10)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=$(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=K({},n),a=K({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=K({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function cl(t){t.stateProxy=ul;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ul),n&&(n.stateProxy=ul)}function pl(t,e){!yl(t,e)&&!t.__highByOuter&&sl(t,tl)}function hl(t,e){!yl(t,e)&&!t.__highByOuter&&sl(t,el)}function dl(t,e){t.__highByOuter|=1<<(e||0),sl(t,tl)}function fl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&sl(t,el)}function gl(t){sl(t,rl)}function vl(t){sl(t,il)}function ml(t){sl(t,ol)}function yl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function xl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Us(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){rl(t)})),a&&n.push(i)),o.isBlured=!1})),nt(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function _l(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&gl(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){nl(t)})),et(e))o(t.getData(),e);else if(ft(e))for(var c=at(e),p=0;p<c.length;p++)o(t.getData(c[p]),e[c[p]]);l.push(t),Us(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function bl(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Us(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){nl(t)}))}}}function wl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||Ol(l[u])||Zi("param should be highDownDispatcher"),"self"===Vs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Sl(t){nt(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?vl(e):ml(e)}))}))}function kl(t){var e=[];return t.eachSeries((function(t){nt(t.getAllData(),(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Cl(t,e,n){Dl(t,!0),sl(t,cl),function(t,e,n){var r=Vs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}(t,e,n)}function Ml(t,e,n,r){r?function(t){Dl(t,!1)}(t):Cl(t,e,n)}var Tl=["emphasis","blur","select"],Al={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Il(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Tl.length;i++){var o=Tl[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[Al[n]]()}}function Dl(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ol(t){return!(!t||!t.__highDownDispatcher)}function El(t){var e=t.type;return e===qs||e===Xs||e===Zs}function Nl(t){var e=t.type;return e===Hs||e===Ys}var Ll=Fa.CMD,Pl=[[],[],[]],Rl=Math.sqrt,Bl=Math.atan2;var Vl=Math.sqrt,zl=Math.sin,Fl=Math.cos,Gl=Math.PI;function Ul(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Wl(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ul(t)*Ul(e))}function jl(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Wl(t,e))}function Hl(t,e,n,r,i,o,a,s,l,u,c){var p=l*(Gl/180),h=Fl(p)*(t-n)/2+zl(p)*(e-r)/2,d=-1*zl(p)*(t-n)/2+Fl(p)*(e-r)/2,f=h*h/(a*a)+d*d/(s*s);f>1&&(a*=Vl(f),s*=Vl(f));var g=(i===o?-1:1)*Vl((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,v=g*a*d/s,m=g*-s*h/a,y=(t+n)/2+Fl(p)*v-zl(p)*m,x=(e+r)/2+zl(p)*v+Fl(p)*m,_=jl([1,0],[(h-v)/a,(d-m)/s]),b=[(h-v)/a,(d-m)/s],w=[(-1*h-v)/a,(-1*d-m)/s],S=jl(b,w);if(Wl(b,w)<=-1&&(S=Gl),Wl(b,w)>=1&&(S=0),S<0){var k=Math.round(S/Gl*1e6)/1e6;S=2*Gl+k%2*Gl}c.addData(u,y,x,a,s,_,S,p,o)}var Yl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ql=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.applyTransform=function(t){},e}(ss);function Zl(t){return null!=t.setData}function Jl(t,e){var n=function(t){var e=new Fa;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Fa.CMD,l=t.match(Yl);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],p=c.charAt(0),h=void 0,d=c.match(ql)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=r,C=i,M=void 0,T=void 0;switch(p){case"l":r+=d[v++],i+=d[v++],h=s.L,e.addData(h,r,i);break;case"L":r=d[v++],i=d[v++],h=s.L,e.addData(h,r,i);break;case"m":r+=d[v++],i+=d[v++],h=s.M,e.addData(h,r,i),o=r,a=i,p="l";break;case"M":r=d[v++],i=d[v++],h=s.M,e.addData(h,r,i),o=r,a=i,p="L";break;case"h":r+=d[v++],h=s.L,e.addData(h,r,i);break;case"H":r=d[v++],h=s.L,e.addData(h,r,i);break;case"v":i+=d[v++],h=s.L,e.addData(h,r,i);break;case"V":i=d[v++],h=s.L,e.addData(h,r,i);break;case"C":h=s.C,e.addData(h,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),r=d[v-2],i=d[v-1];break;case"c":h=s.C,e.addData(h,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i),r+=d[v-2],i+=d[v-1];break;case"S":m=r,y=i,M=e.len(),T=e.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=d[v++],C=d[v++],r=d[v++],i=d[v++],e.addData(h,m,y,k,C,r,i);break;case"s":m=r,y=i,M=e.len(),T=e.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=r+d[v++],C=i+d[v++],r+=d[v++],i+=d[v++],e.addData(h,m,y,k,C,r,i);break;case"Q":k=d[v++],C=d[v++],r=d[v++],i=d[v++],h=s.Q,e.addData(h,k,C,r,i);break;case"q":k=d[v++]+r,C=d[v++]+i,r+=d[v++],i+=d[v++],h=s.Q,e.addData(h,k,C,r,i);break;case"T":m=r,y=i,M=e.len(),T=e.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r=d[v++],i=d[v++],h=s.Q,e.addData(h,m,y,r,i);break;case"t":m=r,y=i,M=e.len(),T=e.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r+=d[v++],i+=d[v++],h=s.Q,e.addData(h,m,y,r,i);break;case"A":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r=d[v++],i=d[v++],w,S,x,_,b,h=s.A,e);break;case"a":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r+=d[v++],i+=d[v++],w,S,x,_,b,h=s.A,e)}}"z"!==p&&"Z"!==p||(h=s.Z,e.addData(h),r=o,i=a),n=h}return e.toStatic(),e}(t),r=K({},e);return r.buildPath=function(t){if(Zl(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){!function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Ll.M,p=Ll.C,h=Ll.L,d=Ll.R,f=Ll.A,g=Ll.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case p:r=3;break;case g:r=2;break;case f:var v=e[4],m=e[5],y=Rl(e[0]*e[0]+e[1]*e[1]),x=Rl(e[2]*e[2]+e[3]*e[3]),_=Bl(-e[1]/x,e[0]/y);l[i]*=y,l[i++]+=v,l[i]*=x,l[i++]+=m,l[i++]*=y,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case d:s[0]=l[i++],s[1]=l[i++],Xt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Xt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Pl[a];b[0]=l[i++],b[1]=l[i++],Xt(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},r}function Kl(t,e){return new Xl(Jl(t,e))}var Ql=function(){this.cx=0,this.cy=0,this.r=0},$l=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new Ql},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ss);$l.prototype.type="circle";var tu=$l,eu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},nu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new eu},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(ss);nu.prototype.type="ellipse";var ru=nu,iu=Math.PI,ou=2*iu,au=Math.sin,su=Math.cos,lu=Math.acos,uu=Math.atan2,cu=Math.abs,pu=Math.sqrt,hu=Math.max,du=Math.min,fu=1e-4;function gu(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/pu(s*s+l*l),c=u*l,p=-u*s,h=t+c,d=e+p,f=n+c,g=r+p,v=(h+f)/2,m=(d+g)/2,y=f-h,x=g-d,_=y*y+x*x,b=i-o,w=h*g-f*d,S=(x<0?-1:1)*pu(hu(0,b*b*_-w*w)),k=(w*x-y*S)/_,C=(-w*y-x*S)/_,M=(w*x+y*S)/_,T=(-w*y+x*S)/_,A=k-v,I=C-m,D=M-v,O=T-m;return A*A+I*I>D*D+O*O&&(k=M,C=T),{cx:k,cy:C,x0:-c,y0:-p,x1:k*(i/b-1),y1:C*(i/b-1)}}function vu(t,e){var n,r=hu(e.r,0),i=hu(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,p=!!e.clockwise,h=cu(l-s),d=h>ou&&h%ou;if(d>fu&&(h=d),r>fu)if(h>ou-fu)t.moveTo(u+r*su(s),c+r*au(s)),t.arc(u,c,r,s,l,!p),i>fu&&(t.moveTo(u+i*su(l),c+i*au(l)),t.arc(u,c,i,l,s,p));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=void 0,C=void 0,M=void 0,T=void 0,A=void 0,I=void 0,D=r*su(s),O=r*au(s),E=i*su(l),N=i*au(l),L=h>fu;if(L){var P=e.cornerRadius;P&&(n=function(t){var e;if(ut(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(P),f=n[0],g=n[1],v=n[2],m=n[3]);var R=cu(r-i)/2;if(y=du(R,v),x=du(R,m),_=du(R,f),b=du(R,g),k=w=hu(y,x),C=S=hu(_,b),(w>fu||S>fu)&&(M=r*su(l),T=r*au(l),A=i*su(s),I=i*au(s),h<iu)){var B=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,p=s-o,h=p*l-c*u;if(!(h*h<fu))return[t+(h=(c*(e-o)-p*(t-i))/h)*l,e+h*u]}(D,O,A,I,M,T,E,N);if(B){var V=D-B[0],z=O-B[1],F=M-B[0],G=T-B[1],U=1/au(lu((V*F+z*G)/(pu(V*V+z*z)*pu(F*F+G*G)))/2),W=pu(B[0]*B[0]+B[1]*B[1]);k=du(w,(r-W)/(U+1)),C=du(S,(i-W)/(U-1))}}}if(L)if(k>fu){var j=du(v,k),H=du(m,k),Y=gu(A,I,D,O,r,j,p),q=gu(M,T,E,N,r,H,p);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),k<w&&j===H?t.arc(u+Y.cx,c+Y.cy,k,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(j>0&&t.arc(u+Y.cx,c+Y.cy,j,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),t.arc(u,c,r,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),!p),H>0&&t.arc(u+q.cx,c+q.cy,H,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else t.moveTo(u+D,c+O),t.arc(u,c,r,s,l,!p);else t.moveTo(u+D,c+O);if(i>fu&&L)if(C>fu){j=du(f,C),Y=gu(E,N,M,T,i,-(H=du(g,C)),p),q=gu(D,O,A,I,i,-j,p);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<S&&j===H?t.arc(u+Y.cx,c+Y.cy,C,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(H>0&&t.arc(u+Y.cx,c+Y.cy,H,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),t.arc(u,c,i,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),p),j>0&&t.arc(u+q.cx,c+q.cy,j,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else t.lineTo(u+E,c+N),t.arc(u,c,i,l,s,p);else t.lineTo(u+E,c+N)}else t.moveTo(u,c);t.closePath()}}}var mu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},yu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new mu},e.prototype.buildPath=function(t,e){vu(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ss);yu.prototype.type="sector";var xu=yu,_u=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new _u},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ss);bu.prototype.type="ring";var wu=bu;function Su(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],p=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)Zt(a,a,t[h]),Jt(s,s,t[h]);Zt(a,a,r[0]),Jt(s,s,r[1])}for(h=0,d=t.length;h<d;h++){var f=t[h];if(n)i=t[h?h-1:d-1],o=t[(h+1)%d];else{if(0===h||h===d-1){l.push(zt(t[h]));continue}i=t[h-1],o=t[h+1]}Gt(u,o,i),Ut(u,u,e);var g=jt(f,i),v=jt(f,o),m=g+v;0!==m&&(g/=m,v/=m),Ut(c,u,-g),Ut(p,u,v);var y=Ft([],f,c),x=Ft([],f,p);r&&(Jt(y,y,a),Zt(y,y,s),Jt(x,x,a),Zt(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var p=i.length;s<p;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var ku=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new ku},e.prototype.buildPath=function(t,e){Su(t,e,!0)},e}(ss);Cu.prototype.type="polygon";var Mu=Cu,Tu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Au=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tu},e.prototype.buildPath=function(t,e){Su(t,e,!1)},e}(ss);Au.prototype.type="polyline";var Iu=Au,Du={},Ou=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Eu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ou},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=vs(Du,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ss);Eu.prototype.type="line";var Nu=Eu,Lu=[],Pu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ru(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?en:tn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?en:tn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ln:sn)(t.x1,t.cpx1,t.x2,e),(n?ln:sn)(t.y1,t.cpy1,t.y2,e)]}var Bu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Pu},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(cn(n,a,i,c,Lu),a=Lu[1],i=Lu[2],cn(r,s,o,c,Lu),s=Lu[1],o=Lu[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(on(n,a,l,i,c,Lu),a=Lu[1],l=Lu[2],i=Lu[3],on(r,s,u,o,c,Lu),s=Lu[1],u=Lu[2],o=Lu[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Ru(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Ru(this.shape,t,!0);return Wt(e,e)},e}(ss);Bu.prototype.type="bezier-curve";var Vu=Bu,zu=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zu},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(ss);Fu.prototype.type="arc";var Gu=Fu,Uu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return k(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ss.prototype.getBoundingRect.call(this)},e}(ss),Wu=Uu,ju=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Hu=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return k(e,t),e}(ju),Yu=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return k(e,t),e}(ju),qu=[0,0],Xu=[0,0],Zu=new Ur,Ju=new Ur,Ku=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ur;for(n=0;n<2;n++)this._axes[n]=new Ur;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Ur.sub(r[0],n[1],n[0]),Ur.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return Zu.set(1/0,1/0),Ju.set(0,0),!this._intersectCheckOneSide(this,t,Zu,Ju,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,Zu,Ju,r,-1)&&(n=!1,r)||r||Ur.copy(e,n?Zu:Ju),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,qu),this._getProjMinMaxOnAxis(s,e._corners,Xu),qu[1]<Xu[0]||qu[0]>Xu[1]){if(a=!1,i)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>r.len()&&(u<c?Ur.scale(r,l,-u*o):Ur.scale(r,l,c*o))}else if(n){u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)<n.len()&&(u<c?Ur.scale(n,l,u*o):Ur.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Qu=Ku,$u=[],tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return k(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Qr(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($u)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(sa),ec=tc,nc=mo();function rc(t,e,n,r,i,o,a){var s,l=!1;ct(i)?(a=o,o=i,i=null):ft(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=wt(r.duration,200),u=wt(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),ct(c)&&(c=c(n,i)),ct(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var p={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ic(t,e,n,r,i,o){rc("update",t,e,n,r,i,o)}function oc(t,e,n,r,i,o){rc("enter",t,e,n,r,i,o)}function ac(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function sc(t,e,n,r,i,o){ac(t)||rc("leave",t,e,n,r,i,o)}function lc(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),sc(t,{style:{opacity:0}},e,n,r)}function uc(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||lc(t,e,n,r)})):lc(t,e,n,r)}function cc(t){nc(t).oldStyle=t.style}var pc=Math.max,hc=Math.min,dc={};var fc=function(t,e){var n=Jl(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return k(e,t),e}(Xl)};function gc(t,e){dc[t]=e}function vc(t,e,n,r){var i=Kl(t,e);return n&&("center"===r&&(n=yc(n,i.getBoundingRect())),_c(i,n)),i}function mc(t,e,n){var r=new fs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(yc(e,i))}}});return r}function yc(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var xc=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ss(e);return a.createPathProxy(),a.buildPath=function(t){if(Zl(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function _c(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var bc=ys;function wc(t,e){for(var n=Cr([]);t&&t!==e;)Tr(n,t.getLocalTransform(),n),t=t.parent;return n}function Sc(t,e,n){return e&&!et(e)&&(e=zr.getLocalTransform(e)),n&&(e=Or([],e)),Xt([],t,e)}function kc(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Sc(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cc(t){return!t.isGroup}function Mc(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){Cc(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(Cc(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),ic(t,r,n,Vs(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=K({},t.shape)),e}}function Tc(t,e,n){var r=K({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Q(i,n),new fs(r)):vc(t.replace("path://",""),r,n,"center")}function Ac(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,p=a-i,h=s-o,d=Ic(p,h,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,v=Ic(f,g,u,c)/d;if(v<0||v>1)return!1;var m=Ic(f,g,p,h)/d;return!(m<0||m>1)}function Ic(t,e,n,r){return t*r-n*e}function Dc(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=pt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&nt(at(l),(function(t){Pt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Vs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Q({content:r,formatterParams:s},i)}}function Oc(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ec(t,e){if(t)if(ut(t))for(var n=0;n<t.length;n++)Oc(t[n],e);else Oc(t,e)}gc("circle",tu),gc("ellipse",ru),gc("sector",xu),gc("ring",wu),gc("polygon",Mu),gc("polyline",Iu),gc("rect",ws),gc("line",Nu),gc("bezierCurve",Vu),gc("arc",Gu);var Nc=Object.freeze({__proto__:null,updateProps:ic,initProps:oc,removeElement:sc,removeElementWithFadeOut:uc,isElementRemoved:ac,extendShape:function(t){return ss.extend(t)},extendPath:function(t,e){return fc(t,e)},registerShape:gc,getShapeClass:function(t){if(dc.hasOwnProperty(t))return dc[t]},makePath:vc,makeImage:mc,mergePath:xc,resizePath:_c,subPixelOptimizeLine:function(t){return vs(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return ms(t.shape,t.shape,t.style),t},subPixelOptimize:bc,getTransform:wc,applyTransform:Sc,transformDirection:kc,groupTransition:Mc,clipPointsByRect:function(t,e){return rt(t,(function(t){var n=t[0];n=pc(n,e.x),n=hc(n,e.x+e.width);var r=t[1];return r=pc(r,e.y),[n,r=hc(r,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=pc(t.x,e.x),r=hc(t.x+t.width,e.x+e.width),i=pc(t.y,e.y),o=hc(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:Tc,linePolygonIntersect:function(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ac(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:Ac,setTooltipConfig:Dc,traverseElements:Ec,Group:_i,Image:fs,Text:Bs,Circle:tu,Ellipse:ru,Sector:xu,Ring:wu,Polygon:Mu,Polyline:Iu,Rect:ws,Line:Nu,BezierCurve:Vu,Arc:Gu,IncrementalDisplayable:ec,CompoundPath:Wu,LinearGradient:Hu,RadialGradient:Yu,BoundingRect:Qr,OrientedBoundingRect:Qu,Point:Ur,Path:ss}),Lc={};function Pc(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=ct(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Ws.length;u++){var c=Ws[u],p=e[c];l[c]=wt(i?i.getFormattedLabel(o,c,null,a,p&&p.get("formatter")):null,r)}return l}function Rc(t,e,n,r){n=n||Lc;for(var i=t instanceof Bs,o=!1,a=0;a<js.length;a++){if((h=e[js[a]])&&h.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Bs,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Pc(n,e),u=e.normal,c=!!u.getShallow("show"),p=Vc(u,r&&r.normal,n,!1,!i);p.text=l.normal,i||t.setTextConfig(zc(u,n,!1));for(a=0;a<Ws.length;a++){var h,d=Ws[a];if(h=e[d]){var f=s.ensureState(d),g=!!wt(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Vc(h,r&&r[d],n,!0,!i),f.style.text=l[d],!i)t.ensureState(d).textConfig=zc(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!c,s.useStyle(p),s.dirty(),n.enableTextSetter&&(jc(s).setLabelText=function(t){var r=Pc(n,e,t);!function(t,e){for(var n=0;n<Ws.length;n++){var r=Ws[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Bc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=t.getModel([i,e])}return n}function Vc(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Lc;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Lc).rich;if(n){e=e||{};for(var r=at(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Wc(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var h=e.get("minMargin");null!=h&&(t.margin=h);Wc(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&K(o,e),o}function zc(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=wt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Fc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Gc=["align","lineHeight","width","height","tag","verticalAlign"],Uc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wc(t,e,n,r,i,o,a,s){n=!i&&n||Lc;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),p=wt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&Ki("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&Ki("color: 'auto'","color: 'inherit'"),c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var h=wt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(t.lineWidth=h);var d=wt(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=wt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),i||null!=p||s||(p=r&&r.defaultOpacity),null!=p&&(t.opacity=p),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Fc.length;g++){var v=Fc[g];null!=(y=wt(e.getShallow(v),n[v]))&&(t[v]=y)}for(g=0;g<Gc.length;g++){v=Gc[g];null!=(y=e.getShallow(v))&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<Uc.length;g++){var y;v=Uc[g];null!=(y=e.getShallow(v))&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.backgroundColor&&Ki("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.borderColor&&Ki("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}var jc=mo();var Hc,Yc,qc=["textStyle","color"],Xc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zc=new Bs,Jc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(qc):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,n=e&&e.getModel("textStyle"),Tt([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xc.length;n++)e[Xc[n]]=this.getShallow(Xc[n]);return Zc.useStyle(e),Zc.update(),Zc.getBoundingRect()},t}(),Kc=Jc,Qc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$c=No(Qc),tp=function(){function t(){}return t.prototype.getLineStyle=function(t){return $c(this,t)},t}(),ep=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],np=No(ep),rp=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return np(this,t,e)},t}(),ip=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Z(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(X(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();To(ip),Hc=ip,Yc=["__\0is_clz",Io++].join("_"),Hc.prototype[Yc]=!0,"production"!==process.env.NODE_ENV&&Mt(!Hc.isInstance,'The method "is" can not be defined.'),Hc.isInstance=function(t){return!(!t||!t[Yc])},tt(ip,tp),tt(ip,rp),tt(ip,Po),tt(ip,Kc);var op=ip,ap=Math.round(10*Math.random());function sp(t){return[t||"",ap++].join("_")}function lp(t,e){return Z(Z({},t,!0),e,!0)}var up="ZH",cp="EN",pp=cp,hp={},dp={},fp=A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(up)>-1?up:pp;function gp(t,e){t=t.toUpperCase(),dp[t]=new op(e),hp[t]=e}gp(cp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gp(up,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var vp=1e3,mp=6e4,yp=36e5,xp=864e5,_p=31536e6,bp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wp="{yyyy}-{MM}-{dd}",Sp={year:"{yyyy}",month:"{yyyy}-{MM}",day:wp,hour:"{yyyy}-{MM}-{dd} "+bp.hour,minute:"{yyyy}-{MM}-{dd} "+bp.minute,second:"{yyyy}-{MM}-{dd} "+bp.second,millisecond:bp.none},kp=["year","month","day","hour","minute","second","millisecond"],Cp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mp(t,e){return"0000".substr(0,e-(t+="").length)+t}function Tp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Ap(t){return t===Tp(t)}function Ip(t,e,n,r){var i=Ri(t),o=i[Ep(n)](),a=i[Np(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Lp(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Pp(n)](),p=(c-1)%12+1,h=i[Rp(n)](),d=i[Bp(n)](),f=i[Vp(n)](),g=r instanceof op?r:function(t){return dp[t]}(r||fp)||dp.EN,v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Mp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Mp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Mp(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mp(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Mp(f,3)).replace(/{S}/g,f+"")}function Dp(t,e){var n=Ri(t),r=n[Np(e)]()+1,i=n[Lp(e)](),o=n[Pp(e)](),a=n[Rp(e)](),s=n[Bp(e)](),l=0===n[Vp(e)](),u=l&&0===s,c=u&&0===a,p=c&&0===o,h=p&&1===i;return h&&1===r?"year":h?"month":p?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Op(t,e,n){var r=dt(t)?Ri(t):t;switch(e=e||Dp(t,n)){case"year":return r[Ep(n)]();case"half-year":return r[Np(n)]()>=6?1:0;case"quarter":return Math.floor((r[Np(n)]()+1)/4);case"month":return r[Np(n)]();case"day":return r[Lp(n)]();case"half-day":return r[Pp(n)]()/24;case"hour":return r[Pp(n)]();case"minute":return r[Rp(n)]();case"second":return r[Bp(n)]();case"millisecond":return r[Vp(n)]()}}function Ep(t){return t?"getUTCFullYear":"getFullYear"}function Np(t){return t?"getUTCMonth":"getMonth"}function Lp(t){return t?"getUTCDate":"getDate"}function Pp(t){return t?"getUTCHours":"getHours"}function Rp(t){return t?"getUTCMinutes":"getMinutes"}function Bp(t){return t?"getUTCSeconds":"getSeconds"}function Vp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function zp(t){return t?"setUTCFullYear":"setFullYear"}function Fp(t){return t?"setUTCMonth":"setMonth"}function Gp(t){return t?"setUTCDate":"setDate"}function Up(t){return t?"setUTCHours":"setHours"}function Wp(t){return t?"setUTCMinutes":"setMinutes"}function jp(t){return t?"setUTCSeconds":"setSeconds"}function Hp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Yp(t){if(!Gi(t))return pt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qp(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Xp=Ct,Zp=/([&<>"'])/g,Jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kp(t){return null==t?"":(t+"").replace(Zp,(function(t,e){return Jp[e]}))}function Qp(t,e,n){function r(t){return t&&Tt(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Ri(t):t;if(!isNaN(+s))return Ip(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ht(t)?r(t):dt(t)&&i(t)?t+"":"-";var l=Fi(t);return i(l)?Yp(l):ht(t)?r(t):"boolean"==typeof t?t+"":"-"}var $p=["a","b","c","d","e","f","g"],th=function(t,e){return"{"+t+(null==e?"":e)+"}"};function eh(t,e,n){ut(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=$p[o];t=t.replace(th(a),th(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(th($p[l],s),n?Kp(u):u)}return t}function nh(t,e){return e=e||"transparent",pt(t)?t:ft(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function rh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ih=nt,oh=["left","right","top","bottom","width","height"],ah=[["width","left","right"],["height","top","bottom"]];function sh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,p,h=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(f?-f.y+h.y:0);(p=a+v)>i||l.newline?(o+=s+n,a=0,p=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=p+n)}))}var lh=sh;function uh(t,e,n){n=Xp(n||0);var r=e.width,i=e.height,o=Ti(t.left,r),a=Ti(t.top,i),s=Ti(t.right,r),l=Ti(t.bottom,i),u=Ti(t.width,r),c=Ti(t.height,i),p=n[2]+n[0],h=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-p-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-p),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-p}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-p-a-(l||0));var f=new Qr(o+n[3],a+n[0],u,c);return f.margin=n,f}function ch(t){var e=t.layoutMode||t.constructor.layoutMode;return ft(e)?e:e?{type:e}:null}function ph(t,e,n){var r=n&&n.ignoreSize;!ut(r)&&(r=[r,r]);var i=a(ah[0],0),o=a(ah[1],1);function a(n,i){var o={},a=0,u={},c=0;if(ih(n,(function(e){u[e]=t[e]})),ih(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var h=n[p];if(!s(o,h)&&s(t,h)){o[h]=t[h];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){ih(t,(function(t){e[t]=n[t]}))}u(ah[0],t,i),u(ah[1],t,o)}function hh(t){return function(t,e){return e&&t&&ih(oh,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}({},t)}lt(sh,"vertical"),lt(sh,"horizontal");var dh=mo(),fh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=sp("ec_cpt_model"),i}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{};Z(t,e.getTheme().get(this.mainType)),Z(t,this.getDefaultOption()),n&&ph(t,r,n)},e.prototype.mergeOption=function(t,e){Z(this.option,t,!0);var n=ch(this);n&&ph(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Co])}(t))return t.defaultOption;var e=dh(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Z(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return wo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(op);Ao(fh,op),Eo(fh),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Mo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Mo(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(fh),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return nt(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return nt(t,(function(t){$(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),nt(s,(function(t){$(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);$(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(nt(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),p=s[c],h=!!u[c];h&&(i.call(o,c,p.originalDeps.slice()),delete u[c]),nt(p.successor,h?f:d)}nt(u,(function(){var e="";throw"production"!==process.env.NODE_ENV&&(e=Qi("Circular dependency may exists: ",u,t,r)),new Error(e)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(fh,(function(t){var e=[];nt(fh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=rt(e,(function(t){return Mo(t).main})),"dataset"!==t&&$(e,"dataset")<=0&&e.unshift("dataset");return e}));var gh=fh,vh="";"undefined"!=typeof navigator&&(vh=navigator.platform||"");var mh="rgba(0, 0, 0, 0.2)",yh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xh=Et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),_h="original",bh="arrayRows",wh="objectRows",Sh="keyedColumns",kh="typedArray",Ch="unknown",Mh="column",Th="row",Ah=1,Ih=2,Dh=3,Oh=mo();function Eh(t,e,n){var r={},i=Lh(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Oh(u).datasetMap,p=i.uid+"_"+n.seriesLayoutBy;nt(t=t.slice(),(function(e,n){var i=ft(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var h=c.get(p)||c.set(p,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return nt(t,(function(t,e){var n=t.name,i=f(t);if(null==o){var a=h.valueWayDim;d(r[n],a,i),d(l,a,i),h.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{a=h.categoryWayDim;d(r[n],a,i),d(l,a,i),h.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Nh(t,e,n){var r={};if(!Lh(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==wh&&o!==Sh||nt(a,(function(t,e){"name"===(ft(t)?t.name:t)&&(i=e)}));var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Rh(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var p=c===Dh;if(p&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!p&&s[t.n]===Dh)&&(t.n=l),h(t)&&s[t.n]!==Dh)return t;p||(c===Ih&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function h(t){return null!=t.v&&null!=t.n}return h(t)?t:h(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Lh(t){if(!t.get("data",!0))return wo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},bo).models[0]}function Ph(t,e){return Rh(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Rh(t,e,n,r,i,o){var a,s,l;if(vt(t))return Dh;if(r){var u=r[o];ft(u)?(s=u.name,l=u.type):pt(u)&&(s=u)}if(null!=l)return"ordinal"===l?Ah:Dh;if(e===bh){var c=t;if(n===Th){for(var p=c[o],h=0;h<(p||[]).length&&h<5;h++)if(null!=(a=y(p[i+h])))return a}else for(h=0;h<c.length&&h<5;h++){var d=c[i+h];if(d&&null!=(a=y(d[o])))return a}}else if(e===wh){var f=t;if(!s)return Dh;for(h=0;h<f.length&&h<5;h++){if((v=f[h])&&null!=(a=y(v[s])))return a}}else if(e===Sh){if(!s)return Dh;if(!(p=t[s])||vt(p))return Dh;for(h=0;h<p.length&&h<5;h++)if(null!=(a=y(p[h])))return a}else if(e===_h){var g=t;for(h=0;h<g.length&&h<5;h++){var v,m=oo(v=g[h]);if(!ut(m))return Dh;if(null!=(a=y(m[o])))return a}}function y(t){var e=pt(t);return null!=t&&isFinite(t)&&""!==t?e?Ih:Dh:e&&"-"!==t?Ah:void 0}return Dh}var Bh=Et();var Vh=mo();mo();var zh,Fh,Gh,Uh=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=no(this.get("color",!0)),i=this.get("colorLayer",!0);return function(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if(!(c=c||n)||!c.length)return;var p=c[l];i&&(u[i]=p);return s.paletteIdx=(l+1)%c.length,p}(this,Vh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Vh)},t}();var Wh={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},jh={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hh={};var Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new op(r),this._locale=new op(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){"production"!==process.env.NODE_ENV&&(Mt(null!=t,"option is null/undefined"),Mt(1!==t["\0_ec_inner"],"please use chart.getOption()"));var r=Zh(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Zh(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);"production"!==process.env.NODE_ENV&&nt(i,(function(t,e){if(!gh.hasClass(e)){var n=Wh[e];n&&!Hh[n]&&(Zi("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Hh[n]=!0)}})),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Gh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&nt(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Et(),s=e&&e.replaceMergeMainTypeMap;Oh(this).datasetMap=Et(),nt(t,(function(t,e){null!=t&&(gh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?X(t):Z(n[e],t,!0))})),s&&s.each((function(t,e){gh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),gh.topologicalTravel(o,gh.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=Bh.get(e);if(!r)return n;var i=r(t);if(!i)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<i.length;o++)Mt(go(i[o]));return n.concat(i)}(this,e,no(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=so(a,o,l);(function(t,e,n){nt(t,(function(t){var r=t.newOption;ft(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))}))})(u,e,gh),n[e]=null,r.set(e,null),i.set(e,0);var c,p,h=[],d=[],f=0;nt(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=gh.getClass(e,t.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=t.keyInfo.subType,l=jh[s];Hh[s]||(Hh[s]=!0,Zi(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unkown series "+s))}return}if("tooltip"===e){if(c)return void("production"!==process.env.NODE_ENV&&(p||(Xi("Currently only one tooltip component is allowed."),p=!0)));c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=K({componentIndex:n},t.keyInfo);K(r=new a(i,this,this,u),u),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),f++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,f),"series"===e&&zh(this)}),this),this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=X(this.option);return nt(t,(function(e,n){if(gh.hasClass(n)){for(var r=no(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!go(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],nt(no(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?qh("id",i,a):null!=o?qh("name",o,a):ot(a,(function(t){return!!t})),Xh(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),u=l?this.queryComponents(l):ot(this._componentsMap.get(s),(function(t){return!!t}));return o=Xh(u,t),t.filter?ot(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(ct(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=pt(t)?r.get(t):ft(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=co(t,null);return ot(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ot(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return ot(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Fh(this),nt(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){nt(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Fh(this),nt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return nt(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Fh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Fh(this);var n=[];nt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Et(n)},e.prototype.restoreData=function(t){zh(this);var e=this._componentsMap,n=[];e.each((function(t,e){gh.hasClass(e)&&n.push(e)})),gh.topologicalTravel(n,gh.getAllClassMainTypes(),(function(n){nt(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(zh=function(t){var e=t._seriesIndices=[];nt(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Et(e)},Fh=function(t){if("production"!==process.env.NODE_ENV&&!t._seriesIndices)throw new Error("Option should contains series.")},void(Gh=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Et({series:[]}),t._componentsCount=Et();var n=e.aria;ft(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;nt(e,(function(e,r){"colorLayer"===r&&n||gh.hasClass(r)||("object"==typeof e?t[r]=t[r]?Z(t[r],e,!1):X(e):null==t[r]&&(t[r]=e))}))}(e,t._theme.option),Z(e,yh,!1),t._mergeOption(e,null)})),e}(op);function qh(t,e,n){if(ut(e)){var r=Et();return nt(e,(function(t){null!=t&&(null!=co(t,null)&&r.set(t,!0))})),ot(n,(function(e){return e&&r.get(e[t])}))}var i=co(e,null);return ot(n,(function(e){return e&&null!=i&&e[t]===i}))}function Xh(t,e){return e.hasOwnProperty("subType")?ot(t,(function(t){return t&&t.subType===e.subType})):t}function Zh(t){var e=Et();return t&&nt(no(t.replaceMerge),(function(t){"production"!==process.env.NODE_ENV&&Mt(gh.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)})),{replaceMergeMainTypeMap:e}}tt(Yh,Uh);var Jh=Yh,Kh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qh=function(t){nt(Kh,(function(e){this[e]=st(t[e],t)}),this)},$h={},td=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];nt($h,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){nt(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){$h[t]=e},t.get=function(t){return $h[t]},t}(),ed=/^(min|max)?(.+)$/,nd=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(nt(no(t.series),(function(t){t&&t.data&&vt(t.data)&&It(t.data)})),nt(no(t.dataset),(function(t){t&&t.source&&vt(t.source)&&It(t.source)}))),t=X(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,p=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((p||c)&&(t.options=t.media=null),i=t);c&&(ut(u)?nt(u,(function(t){"production"!==process.env.NODE_ENV&&t&&!t.option&&ft(t.query)&&ft(t.query.option)&&Zi("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),t&&t.option&&(t.query?o.push(t):r||(r=t))})):"production"!==process.env.NODE_ENV&&Zi("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function h(t){nt(e,(function(e){e(t,n)}))}return h(i),nt(l,(function(t){return h(t)})),nt(o,(function(t){return h(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],X(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=X(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)rd(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=rt(s,(function(t){return X(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function rd(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return nt(t,(function(t,e){var n=e.match(ed);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}})),i}var id=nd,od=nt,ad=ft,sd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ld(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=sd.length;n<r;n++){var i=sd[n],o=e.normal,a=e.emphasis;o&&o[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?Z(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?Z(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function ud(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&("production"!==process.env.NODE_ENV&&Ji("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Q(t[e],r)):t[e]=r),i&&("production"!==process.env.NODE_ENV&&Ji(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function cd(t){ud(t,"itemStyle"),ud(t,"lineStyle"),ud(t,"areaStyle"),ud(t,"label"),ud(t,"labelLine"),ud(t,"upperLabel"),ud(t,"edgeLabel")}function pd(t,e){var n=ad(t)&&t[e],r=ad(n)&&n.textStyle;if(r){"production"!==process.env.NODE_ENV&&Ji("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=io.length;i<o;i++){var a=io[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function hd(t){t&&(cd(t),pd(t,"label"),t.emphasis&&pd(t.emphasis,"label"))}function dd(t){return ut(t)?t:t?[t]:[]}function fd(t){return(ut(t)?t[0]:t)||{}}function gd(t,e){od(dd(t.series),(function(t){ad(t)&&function(t){if(ad(t)){ld(t),cd(t),pd(t,"label"),pd(t,"upperLabel"),pd(t,"edgeLabel"),t.emphasis&&(pd(t.emphasis,"label"),pd(t.emphasis,"upperLabel"),pd(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ld(e),hd(e));var n=t.markLine;n&&(ld(n),hd(n));var r=t.markArea;r&&hd(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!vt(o))for(var a=0;a<o.length;a++)hd(o[a]);nt(t.categories,(function(t){cd(t)}))}if(i&&!vt(i))for(a=0;a<i.length;a++)hd(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)hd(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)ut(l[a])?(hd(l[a][0]),hd(l[a][1])):hd(l[a])}"gauge"===t.type?(pd(t,"axisLabel"),pd(t,"title"),pd(t,"detail")):"treemap"===t.type?(ud(t.breadcrumb,"itemStyle"),nt(t.levels,(function(t){cd(t)}))):"tree"===t.type&&cd(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),od(n,(function(e){od(dd(t[e]),(function(t){t&&(pd(t,"axisLabel"),pd(t.axisPointer,"label"))}))})),od(dd(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;pd(e,"axisLabel"),pd(e&&e.axisPointer,"label")})),od(dd(t.calendar),(function(t){ud(t,"itemStyle"),pd(t,"dayLabel"),pd(t,"monthLabel"),pd(t,"yearLabel")})),od(dd(t.radar),(function(t){pd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name,"production"!==process.env.NODE_ENV&&Ji("name property in radar component has been changed to axisName")),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap,"production"!==process.env.NODE_ENV&&Ji("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&od(t.indicator,(function(t){t.text&&Ki("text","name","radar.indicator")}))})),od(dd(t.geo),(function(t){ad(t)&&(hd(t),od(dd(t.regions),(function(t){hd(t)})))})),od(dd(t.timeline),(function(t){hd(t),ud(t,"label"),ud(t,"itemStyle"),ud(t,"controlStyle",!0);var e=t.data;ut(e)&&nt(e,(function(t){ft(t)&&(ud(t,"label"),ud(t,"itemStyle"))}))})),od(dd(t.toolbox),(function(t){ud(t,"iconStyle"),od(t.feature,(function(t){ud(t,"iconStyle")}))})),pd(fd(t.axisPointer),"label"),pd(fd(t.tooltip).axisPointer,"label")}function vd(t){t&&nt(md,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var md=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _d(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<xd.length;n++){var r=xd[n][1],i=xd[n][0];null!=e[r]&&(e[i]=e[r],"production"!==process.env.NODE_ENV&&Ki(r,i))}}function bd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&("production"!==process.env.NODE_ENV&&Ki("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function wd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,"production"!==process.env.NODE_ENV&&Ki("downplay","blur","sunburst"))}function Sd(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Sd(t[n].children,e)}function kd(t,e){gd(t,e),t.series=no(t.series),nt(t.series,(function(t){if(ft(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow,"production"!==process.env.NODE_ENV&&Ki("clipOverflow","clip","line"));else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise,"production"!==process.env.NODE_ENV&&Ki("clockWise","clockwise")),bd(t.label),(i=t.data)&&!vt(i))for(var n=0;n<i.length;n++)bd(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&Ki("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(_d(t),_d(t.backgroundStyle),_d(t.emphasis),(i=t.data)&&!vt(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(_d(i[n]),_d(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o,"production"!==process.env.NODE_ENV&&Ki("highlightPolicy","emphasis.focus","sunburst"))),wd(t),Sd(t.data,wd)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&("production"!==process.env.NODE_ENV&&Ki("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&("production"!==process.env.NODE_ENV&&Ki("mapType","map","map"),t.map=t.mapType),t.mapLocation&&("production"!==process.env.NODE_ENV&&Ji("`mapLocation` is not used anymore."),Q(t,t.mapLocation)));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&("production"!==process.env.NODE_ENV&&Ki("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),vd(t)}})),t.dataRange&&(t.visualMap=t.dataRange),nt(yd,(function(e){var n=t[e];n&&(ut(n)||(n=[n]),nt(n,(function(t){vd(t)})))}))}function Cd(t){nt(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,(function(o,l,u){var c,p,h=a.get(e.stackedDimension,u);if(isNaN(h))return i;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var d=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&v>0||h<=0&&v<0){h=Ei(h,v),d=v;break}}}return r[0]=h,r[1]=d,r}))}))}var Md,Td,Ad,Id,Dd,Od=function(t){this.data=t.data||(t.sourceFormat===Sh?{}:[]),this.sourceFormat=t.sourceFormat||Ch,this.seriesLayoutBy=t.seriesLayoutBy||Mh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Ph(this,n)===Ah&&(r.type="ordinal")}};function Ed(t){return t instanceof Od}function Nd(t,e,n){n=n||Pd(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Rd(i),startIndex:a,dimensionsDetectedCount:o};if(e===bh){var s=t;"auto"===r||null==r?Bd((function(t){null!=t&&"-"!==t&&(pt(t)?null==a&&(a=1):a=0)}),n,s,10):a=dt(r)?r:r?1:0,i||1!==a||(i=[],Bd((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Th?s.length:s[0]?s[0].length:null}else if(e===wh)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var r=[];return nt(e,(function(t,e){r.push(e)})),r}}(t));else if(e===Sh)i||(i=[],nt(t,(function(t,e){i.push(e)})));else if(e===_h){var l=oo(t[0]);o=ut(l)&&l.length||1}else e===kh&&"production"!==process.env.NODE_ENV&&Mt(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:Rd(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new Od({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:X(e)})}function Ld(t){return new Od({data:t,sourceFormat:vt(t)?kh:_h})}function Pd(t){var e=Ch;if(vt(t))e=kh;else if(ut(t)){0===t.length&&(e=bh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(ut(i)){e=bh;break}if(ft(i)){e=wh;break}}}}else if(ft(t))for(var o in t)if(Pt(t,o)&&et(t[o])){e=Sh;break}return e}function Rd(t){if(t){var e=Et();return rt(t,(function(t,n){var r={name:(t=ft(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Bd(t,e,n,r){if(e===Th)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Vd(t){var e=t.sourceFormat;return e===wh||e===Sh}var zd=function(){function t(t,e){var n=Ed(t)?t:Ld(t);this._source=n;var r=this._data=n.data;if(n.sourceFormat===kh){if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=r}Dd(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Dd=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Id[Zd(a,s)];if("production"!==process.env.NODE_ENV&&Mt(c,"Invalide sourceFormat: "+a),K(t,c),a===kh)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=Ud(a,s);t.getItem=st(p,null,i,l,u);var h=Hd(a,s);t.count=st(h,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,p=n[a],h=0;h<c;h++){var d=i[h*o+a];p[t+h]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:i},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:i},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;nt(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t.original={appendData:i},t.typedArray={persistent:!1,pure:!0,appendData:function(t){"production"!==process.env.NODE_ENV&&Mt(vt(t),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Id=t}(),t}(),Fd=function(t,e,n,r){return t[r]},Gd=((Md={}).arrayRows_column=function(t,e,n,r){return t[r+e]},Md.arrayRows_row=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Md.objectRows=Fd,Md.keyedColumns=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=t[s];o[a]=l?l[r]:null}return o},Md.original=Fd,Md);function Ud(t,e){var n=Gd[Zd(t,e)];return"production"!==process.env.NODE_ENV&&Mt(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var Wd=function(t,e,n){return t.length},jd=((Td={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},Td.arrayRows_row=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Td.objectRows=Wd,Td.keyedColumns=function(t,e,n){var r=n[0].name;if("production"!==process.env.NODE_ENV&&null==r)throw new Error;var i=t[r];return i?i.length:0},Td.original=Wd,Td);function Hd(t,e){var n=jd[Zd(t,e)];return"production"!==process.env.NODE_ENV&&Mt(n,'Do not suppport count on "'+t+'", "'+e+'".'),n}var Yd=function(t,e,n){return t[e]},qd=((Ad={}).arrayRows=Yd,Ad.objectRows=function(t,e,n){return t[n]},Ad.keyedColumns=Yd,Ad.original=function(t,e,n){var r=oo(t);return r instanceof Array?r[e]:r},Ad.typedArray=Yd,Ad);function Xd(t){var e=qd[t];return"production"!==process.env.NODE_ENV&&Mt(e,'Do not suppport get value on "'+t+'".'),e}function Zd(t,e){return t===bh?t+"_"+e:t}function Jd(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Xd(o)(r,a,s)}var l=r;return o===_h&&(l=oo(r)),l}}}var Kd=/\{@(.+?)\}/g,Qd=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,p="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&ut(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return ct(i)?(s.status=e,s.dimensionIndex=r,i(s)):pt(i)?eh(i,s).replace(Kd,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1),"production"!==process.env.NODE_ENV&&isNaN(i)&&Zi("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=Jd(a,t,i);if(o&&ut(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Jd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function $d(t){var e,n;return ft(t)?t.type?n=t:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+Qi(t)):e=t,{text:e,frag:n}}function tf(t){return new ef(t)}var ef=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?("production"!==process.env.NODE_ENV&&Mt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&Mt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(o||h<d)){var f=this._progress;if(ut(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,d,l,u);else this._doProgress(f,h,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&Mt(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){nf.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:nf.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ut(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){"production"!==process.env.NODE_ENV&&Mt(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),nf=function(){var t,e,n,r,i,o={reset:function(l,u,c,p){e=l,t=u,n=c,r=p,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function rf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||dt(t)||null==t||"-"===t||(t=+Ri(t)),null==t||""===t?NaN:+t)}Et({number:function(t){return parseFloat(t)},time:function(t){return+Ri(t)},trim:function(t){return pt(t)?Tt(t):t}});var of=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=dt(t)?t:Fi(t),r=dt(e)?e:Fi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=pt(t),s=pt(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),af=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return rf(t,e)},t}();function sf(t){var e=t.sourceFormat;if(!df(e)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+e),$i(n)}return t.data}function lf(t){var e=t.sourceFormat,n=t.data;if(!df(e)){var r="";"production"!==process.env.NODE_ENV&&(r="`cloneRawData` is not supported in source format "+e),$i(r)}if(e===bh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===wh){for(i=[],o=0,a=n.length;o<a;o++)i.push(K({},n[o]));return i}}function uf(t,e,n){if(null!=n)return dt(n)||!isNaN(n)&&!Pt(e,n)?t[n]:Pt(e,n)?e[n]:void 0}function cf(t){return X(t)}var pf=Et();function hf(t,e,n,r){var i="";e.length||("production"!==process.env.NODE_ENV&&(i="Must have at least one upstream dataset."),$i(i)),ft(t)||("production"!==process.env.NODE_ENV&&(i="transform declaration must be an object rather than "+typeof t+"."),$i(i));var o=t.type,a=pf.get(o);a||("production"!==process.env.NODE_ENV&&(i='Can not find transform on type "'+o+'".'),$i(i));var s,l=rt(e,(function(t){return function(t,e){var n=new af,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Mh&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),$i(a));var s=[],l={},u=t.dimensionsDefine;if(u)nt(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Pt(l,n)&&("production"!==process.env.NODE_ENV&&(i='dimension name "'+n+'" duplicated.'),$i(i)),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var p=Ud(i,Mh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return p(r,o,s,t)},n.getRawData=st(sf,null,t)),n.cloneRawData=st(lf,null,t);var h=Hd(i,Mh);n.count=st(h,null,r,o,s);var d=Xd(i);n.retrieveValue=function(t,e){var n=p(r,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=st(uf,null,s,l),n.cloneAllDimensionInfo=st(cf,null,s),n}(t,a)})),u=no(a.transform({upstream:l[0],upstreamList:l,config:X(t.config)}));if("production"!==process.env.NODE_ENV&&t.print){var c=rt(u,(function(t){var e=null!=r?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+e+" ===","- transform result data:",Qi(t.data),"- transform result dimensions:",Qi(t.dimensions)].join("\n")})).join("\n");qi("log",c,s)}return rt(u,(function(t,n){var r,i="";ft(t)||("production"!==process.env.NODE_ENV&&(i="A transform should not return some empty results."),$i(i)),t.data||("production"!==process.env.NODE_ENV&&(i="Transform result data should be not be null or undefined"),$i(i)),df(Pd(t.data))||("production"!==process.env.NODE_ENV&&(i="Transform result data should be array rows or object rows."),$i(i));var o=e[0];if(o&&0===n&&!t.dimensions){var a=o.startIndex;a&&(t.data=o.data.slice(0,a).concat(t.data)),r={seriesLayoutBy:Mh,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Mh,sourceHeader:0,dimensions:t.dimensions};return Nd(t.data,r,null)}))}function df(t){return t===bh||t===wh}var ff,gf="undefined",vf=typeof Uint32Array===gf?Array:Uint32Array,mf=typeof Uint16Array===gf?Array:Uint16Array,yf=typeof Int32Array===gf?Array:Int32Array,xf=typeof Float64Array===gf?Array:Float64Array,_f={float:xf,int:yf,ordinal:Array,number:Array,time:xf};function bf(t){return t>65535?vf:mf}function wf(t,e,n,r,i){var o=_f[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Sf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Et()}return t.prototype.initData=function(t,e,n){"production"!==process.env.NODE_ENV&&Mt(ct(t.getItem)&&ct(t.count),"Inavlid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=ff[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=Vd(r);this._dimensions=rt(e,(function(t){return"production"!==process.env.NODE_ENV&&o&&Mt(null!=t.property),{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new _f[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){"production"!==process.env.NODE_ENV&&Mt(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){wf(n,l,(d=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var p=c-a,h=0;h<i;h++){var d=r[h],f=ff.arrayRows.call(this,t[p]||u,d.property,p,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=rt(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),wf(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var p=[],h=t;h<e;h++){p=r.getItem(h,p);for(var d=0;d<a;d++){var f=i[d],g=this._dimValueGetter(p,l[d],h,d);f[h]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],p=Math.abs(c);p<=n&&((p<o||p===o&&c>=0&&a<0)&&(o=p,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=bf(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(bf(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var p=void 0,h=n.getRawIndex(c);if(0===a)p=e(c);else if(1===a){p=e(u[l][h],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][h];o[d]=c,p=e.apply(null,o)}p&&(i[s++]=h)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=at(t),i=r.length;if(!i)return this;var o=e.count(),a=new(bf(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],p=e._chunks,h=!1;if(!e._indices){var d=0;if(1===i){for(var f=p[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=d),d++}h=!0}else if(2===i){f=p[r[0]];var v=p[r[1]],m=t[r[1]][0],y=t[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=v[g];(x>=u&&x<=c||isNaN(x))&&(_>=m&&_<=y||isNaN(_))&&(a[s++]=d),d++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=p[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var k=r[S];((x=p[k][b])<t[k][0]||x>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var p=t.getRawIndex(c),h=0;h<o;h++)s[h]=r[e[h]][p];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(i[0]=d,d=i);for(u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],m=r[f];m&&(m[p]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),p=new(bf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));p[l++]=c;for(var h=1;h<s-1;h+=u){for(var d=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+d)/2,v=0,m=d;m<f;m++){var y=a[C=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=f-d;var x=h,_=Math.min(h+u,s),b=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(m=x;m<_;m++){var C;y=a[C=this.getRawIndex(m)];isNaN(y)?(k++,S<0&&(S=C)):(r=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=r,i=C)}k>0&&k<_-x&&(p[l++]=Math.min(S,i),i=Math.max(S,i)),p[l++]=i,c=i}return p[l++]=this.getRawIndex(s-1),o._count=l,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],p=new(bf(this._rawCount))(Math.ceil(u/s)),h=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(d+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),p[h++]=m}return i._count=h,i._indices=p,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&it(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=X(this._extent),t._rawExtent=X(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return rf(t[r],this._dimensions[r])}ff={arrayRows:t,objectRows:function(t,e,n,r){return rf(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return rf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),kf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Mf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=vt(a=o.get("data",!0))?kh:_h,e=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=wt(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=wt(c.sourceHeader,p.sourceHeader),f=wt(c.dimensions,p.dimensions);t=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||f?[Nd(a,{seriesLayoutBy:h,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{t=[Nd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}"production"!==process.env.NODE_ENV&&Mt(t&&e),this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&Mt(null!=i||null!=r),null!=i){var o="";1!==t.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Tf(o))}var a,s=[],l=[];return nt(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+i),Tf(n)),s.push(e),l.push(t._getVersionSign())})),r?e=function(t,e,n){var r=no(t),i=r.length,o="";i||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),$i(o));for(var a=0,s=i;a<s;a++)e=hf(r[a],e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}(r,s,{datasetIndex:n.componentIndex}):null!=i&&(e=[(a=s[0],new Od({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:X(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){"production"!==process.env.NODE_ENV&&Mt(Mf(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Mf(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new Sf).initData(new zd(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mf(t)){var e=Lh(t);return e?[e.getSourceManager()]:[]}return rt(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?wo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},bo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(Mf(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Cf(t){t.option.transform&&It(t.option.transform)}function Mf(t){return"series"===t.mainType}function Tf(t){throw new Error(t)}function Af(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Kp(r+"")+"px;color:"+Kp(n)+";font-weight:"+Kp(i+""),valueStyle:"font-size:"+Kp(a+"")+"px;color:"+Kp(o)+";font-weight:"+Kp(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var If=[0,10,20,30],Df=["","\n","\n\n","\n\n\n"];function Of(t,e){return e.type=t,e}function Ef(t){return"section"===t.type}function Nf(t){return Ef(t)?Pf:Rf}function Lf(t){if(Ef(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return nt(t.blocks,(function(t){var n=Lf(t);n>=e&&(e=n+ +(r&&(!n||Ef(t)&&!t.noHeader)))})),e}return 0}function Pf(t,e,n,r){var i,o=e.noHeader,a=(i=Lf(e),{html:If[i],richText:Df[i]}),s=[],l=e.blocks||[];Mt(!l||ut(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Pt(c,u)){var p=new of(c[u],null);l.sort((function(t,e){return p.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}nt(l,(function(n,i){var o=e.valueFormatter,l=Nf(n)(o?K(K({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var h="richText"===t.renderMode?s.join(a.richText):Vf(s.join(""),o?n:a.html);if(o)return h;var d=Qp(e.header,"ordinal",t.useUTC),f=Af(r,t.renderMode).nameStyle;return"richText"===t.renderMode?zf(t,d,f)+a.richText+h:Vf('<div style="'+f+";"+'line-height:1;">'+Kp(d)+"</div>"+h,n)}function Rf(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return rt(t=ut(t)?t:[t],(function(t,e){return Qp(t,ut(d)?d[e]:d,u)}))};if(!o||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=o?"":Qp(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!o,v=!s&&o,m=Af(r,i),y=m.nameStyle,x=m.valueStyle;return"richText"===i?(s?"":p)+(o?"":zf(t,h,y))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ut(e)?e.join(" "):e,o)}(t,f,g,v,x)):Vf((s?"":p)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Kp(t)+"</span>"}(h,!s,y))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=ut(t)?t:[t],'<span style="'+o+";"+r+'">'+rt(t,(function(t){return Kp(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,x)),n)}}function Bf(t,e,n,r,i,o){if(t)return Nf(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Vf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+'line-height:1;">'+t+'<div style="clear:both"></div></div>'}function zf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ff(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Gf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ui()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=pt(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kp(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kp(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return pt(i)?i:("production"!==process.env.NODE_ENV&&Mt(r),this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};ut(e)?nt(e,(function(t){return K(n,t)})):K(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Uf(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,p=o.getRawValue(a),h=ut(p),d=function(t,e){return nh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(t,e,n,r,i){var o=e.getData(),a=it(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Of("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?nt(r,(function(t){c(Jd(o,n,t),t)})):nt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(p,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Jd(l,a,u[0]),n=g.type}else i=e=h?p[0]:p;var v=fo(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return Of("section",{header:m,noHeader:s||!v,sortParam:i,blocks:[Of("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Tt(x),value:e,valueType:n})].concat(r||[])})}var Wf=mo();function jf(t,e){return t.getName(e)||t.getId(e)}var Hf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return k(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=tf({count:qf,reset:Xf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Wf(this).sourceManager=new kf(this)).prepareSource();var r=this.getInitialData(t,n);Jf(r,this),this.dataTask.context.data=r,"production"!==process.env.NODE_ENV&&Mt(r,"getInitialData returned invalid data."),Wf(this).dataBeforeProcessed=r,Yf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{},i=this.subType;gh.hasClass(i)&&(i+="Series"),Z(t,e.getTheme().get(this.subType)),Z(t,this.getDefaultOption()),ro(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ph(t,r,n)},e.prototype.mergeOption=function(t,e){t=Z(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ch(this);n&&ph(this.option,t,n);var r=Wf(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Jf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Wf(this).dataBeforeProcessed=i,Yf(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!vt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ro(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Qf(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Wf(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Qf(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Wf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Et(t)},e.prototype.getSourceManager=function(){return Wf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Wf(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Uf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Uh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=jf(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=at(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[jf(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){ft(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[p=jf(t,u)]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],p=jf(t,c);i.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((r={})[p]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return gh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(gh);function Yf(t){var e=t.name;fo(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return nt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function qf(t){return t.model.getRawData().count()}function Xf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Zf}function Zf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Jf(t,e){nt(function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,lt(Kf,e))}))}function Kf(t,e){var n=Qf(t);return n&&n.setOutputEnd((e||this).count()),e}function Qf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}tt(Hf,Qd),tt(Hf,Uh),Ao(Hf,gh);var $f=Hf,tg=function(){function t(){this.group=new _i,this.uid=sp("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();To(tg),Eo(tg);var eg=tg;function ng(){var t=mo();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var rg=mo(),ig=ng(),og=function(){function t(){this.group=new _i,this.uid=sp("viewChart"),this.renderTask=tf({plan:lg,reset:ug}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?sg(i,r,"emphasis"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?sg(i,r,"normal"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Ec(this.group,t)},t.markUpdateMethod=function(t,e){rg(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function ag(t,e,n){t&&Ol(t)&&("emphasis"===e?dl:fl)(t,n)}function sg(t,e,n){var r=vo(t,e),i=e&&null!=e.highlightKey?function(t){var e=Fs[t];return null==e&&zs<=32&&(e=Fs[t]=zs++),e}(e.highlightKey):null;null!=r?nt(no(r),(function(e){ag(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){ag(t,n,i)}))}function lg(t){return ig(t.model)}function ug(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&rg(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),cg[l]}To(og,["dispose"]),Eo(og);var cg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pg=og,hg="\0__throttleOriginMethod",dg="\0__throttleRate",fg="\0__throttleType";function gg(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function p(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var h=function(){for(var t=[],h=0;h<arguments.length;h++)t[h]=arguments[h];r=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,i=r-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(p,d):i>=0?p():c=setTimeout(p,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(t){s=t},h}function vg(t,e,n,r){var i=t[e];if(i){var o=i[hg]||i,a=i[fg];if(i[dg]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=gg(o,n,"debounce"===r))[hg]=o,i[fg]=r,i[dg]=n}return i}}function mg(t,e){var n=t[e];n&&n[hg]&&(n.clear&&n.clear(),t[e]=n[hg])}var yg=mo(),xg={itemStyle:No(ep,!0),lineStyle:No(Qc,!0)},_g={lineStyle:"stroke",itemStyle:"fill"};function bg(t,e){var n=t.visualStyleMapper||xg[e];return n||(console.warn("Unkown style type '"+e+"'."),xg.itemStyle)}function wg(t,e){var n=t.visualDrawType||_g[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=bg(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=wg(t,r),l=o[s],u=ct(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=p,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ct(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||ct(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=K({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},kg=new op,Cg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=bg(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){kg.option=n[r];var a=i(kg);K(t.ensureUniqueItemVisual(e,"style"),a),kg.option.decal&&(t.setItemVisual(e,"decal",kg.option.decal),kg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Mg={performRawSeries:!0,overallReset:function(t){var e=Et();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),yg(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=yg(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=wg(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},Tg=Math.PI;var Ag=function(){function t(t,e,n,r){this._stageTaskMap=Et(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Et();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;nt(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),Mt(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}nt(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var p,h=c.agentStubMap;h.each((function(t){a(r,t)&&(t.dirty(),p=!0)})),p&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);h.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Et(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||tf({plan:Ng,reset:Lg,count:Bg}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||tf({reset:Ig});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Et(),l=t.seriesType,u=t.getTargetSeries,c=!0,p=!1,h="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(p=!0,tf({reset:Dg,onDirty:Eg})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}"production"!==process.env.NODE_ENV&&(h='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),Mt(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,nt(n.getSeries(),d)),p&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return ct(t)&&(t={overallReset:t,seriesType:Vg(t)}),t.uid=sp("stageHandler"),e&&(t.visualType=e),t},t}();function Ig(t){t.overallReset(t.ecModel,t.api,t.payload)}function Dg(t){return t.overallProgress&&Og}function Og(){this.agent.dirty(),this.getDownstream().dirty()}function Eg(){this.agent&&this.agent.dirty()}function Ng(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Lg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=no(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?rt(e,(function(t,e){return Rg(e)})):Pg}var Pg=Rg(0);function Rg(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Bg(t){return t.data.count()}function Vg(t){zg=null;try{t(Fg,Gg)}catch(t){}return zg}var zg,Fg={},Gg={};function Ug(t,e){for(var n in e.prototype)t[n]=Rt}Ug(Fg,Jh),Ug(Gg,Qh),Fg.eachSeriesByType=Fg.eachRawSeriesByType=function(t){zg=t},Fg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(zg=t.subType)};var Wg=Ag,jg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Hg={color:jg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jg]},Yg="#B9B8CE",qg="#100C2A",Xg=function(){return{axisLine:{lineStyle:{color:Yg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Zg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jg={darkMode:!0,color:Zg,backgroundColor:qg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yg}},textStyle:{color:Yg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yg}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yg},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yg}},timeline:{lineStyle:{color:Yg},label:{color:Yg},controlStyle:{color:Yg,borderColor:Yg}},calendar:{itemStyle:{color:qg},dayLabel:{color:Yg},monthLabel:{color:Yg},yearLabel:{color:Yg}},timeAxis:Xg(),logAxis:Xg(),valueAxis:Xg(),categoryAxis:Xg(),line:{symbol:"circle"},graph:{color:Zg},gauge:{title:{color:Yg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jg.categoryAxis.splitLine.show=!1;var Kg=Jg,Qg=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(pt(t)){var i=Mo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};nt(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var p=i.slice(0,c);"data"!==p&&(e.mainType=p,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$g=["symbol","symbolSize","symbolRotate","symbolOffset"],tv=$g.concat(["symbolKeepAspect"]),ev={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<$g.length;a++){var s=$g[a],l=t.get(s);ct(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(K({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=at(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},nv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<tv.length;r++){var i=tv[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function rv(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function iv(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+e)}}function ov(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}nt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=K({},e),"production"!==process.env.NODE_ENV&&Ki(e.type,t[1]),i.dispatchAction(K(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function av(t,e,n,r,i){var o=t+e;n.isSilent(o)||("production"!==process.env.NODE_ENV&&Ji("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=vo(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:ut(u)?l.getName(u[0]):l.getName(u),selected:pt(r)?r:K({},r)})}})))}function sv(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var lv=Math.round(9*Math.random()),uv="function"==typeof Object.defineProperty,cv=function(){function t(){this._id="__ec_inner_"+lv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return uv?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),pv=cv,hv=ss.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),dv=ss.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),fv=ss.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,p=Math.sin(u),h=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-p*d,l+s+h*d,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+p*d,l+s+h*d,n-c,l+s),t.closePath()}}),gv=ss.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),vv={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},mv={};nt({line:Nu,rect:ws,roundRect:ws,square:ws,circle:tu,diamond:dv,pin:fv,arrow:gv,triangle:hv},(function(t,e){mv[e]=new t}));var yv=ss.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=si(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=mv[r];i||(i=mv[r="rect"]),vv[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function xv(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function _v(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?mc(t.slice(8),new Qr(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?vc(t.slice(7),{},new Qr(e,n,r,i),a?"center":"cover"):new yv({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=xv,o&&s.setColor(o),s}function bv(t,e){if(null!=t)return ut(t)||(t=[t,t]),[Ti(t[0],e[0])||0,Ti(wt(t[1],t[0]),e[1])||0]}function wv(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Sv(t){return parseInt(t,10)}function kv(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Sv(s[r])||Sv(t.style[r]))-(Sv(s[o])||0)-(Sv(s[a])||0)|0}function Cv(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:dt(e)?[e]:ut(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=rt(i,(function(t){return t/a})),o/=a)}return[i,o]}var Mv=new Fa(!0);function Tv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Av(t){return"string"==typeof t&&"none"!==t}function Iv(t){var e=t.fill;return null!=e&&"none"!==e}function Dv(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ov(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Ev(t,e,n){var r=Vo(e.image,e.__image,n);if(Fo(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Bt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Nv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pv(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Vv(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ta.opacity:a}(r||e.blend!==n.blend)&&(o||(Vv(t,i),o=!0),t.globalCompositeOperation=e.blend||ta.blend);for(var s=0;s<Nv.length;s++){var l=Nv[s];(r||e[l]!==n[l])&&(o||(Vv(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Vv(t,i),o=!0),t.shadowColor=e.shadowColor||ta.shadowColor),o}function Rv(t,e,n,r,i){var o=zv(e,i.inHover),a=r?null:n&&zv(n,i.inHover)||{};if(o===a)return!1;var s=Pv(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Vv(t,i),s=!0),Av(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Vv(t,i),s=!0),Av(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Vv(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Vv(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<Lv.length;u++){var c=Lv[u],p=c[0];(r||o[p]!==a[p])&&(s||(Vv(t,i),s=!0),t[p]=o[p]||c[1])}return s}function Bv(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Vv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function zv(t,e){return e&&t.__hoverStyle||t.style}function Fv(t,e){Gv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gv(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Vv(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Vv(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Bv(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,p,h=e instanceof ss&&e.autoBatch&&function(t){var e=Iv(t),n=Tv(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,p=u.transform,c&&p?c[0]!==p[0]||c[1]!==p[1]||c[2]!==p[2]||c[3]!==p[3]||c[4]!==p[4]||c[5]!==p[5]:c||p)?(Vv(t,n),Bv(t,e)):h||Vv(t,n);var d=zv(e,n.inHover);e instanceof ss?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Rv(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=Tv(n),a=Iv(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Mv,p=e.__dirty;if(!r){var h=n.fill,d=n.stroke,f=a&&!!h.colorStops,g=o&&!!d.colorStops,v=a&&!!h.image,m=o&&!!d.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(y=p?wv(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(x=p?wv(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=p||!e.__canvasFillPattern?Ev(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(b=p||!e.__canvasStrokePattern?Ev(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:m&&(b?t.strokeStyle=b:o=!1)}var S,k,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=Cv(e))[0],k=i[1]);var M=!0;(u||4&p)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=k),r||(n.strokeFirst?(o&&Ov(t,n),a&&Dv(t,n)):(a&&Dv(t,n),o&&Ov(t,n))),S&&t.setLineDash([])}(t,e,d,h),h&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof cs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Rv(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||I,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=Cv(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Tv(n)&&t.strokeText(i,n.x,n.y),Iv(n)&&t.fillText(i,n.x,n.y)):(Iv(n)&&t.fillText(i,n.x,n.y),Tv(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,d)):e instanceof fs?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,r,i){Pv(t,zv(e,i.inHover),n&&zv(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Vo(n.image,e.__image,e,e.onload);if(r&&Fo(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var p=a-(u=n.sx),h=s-(c=n.sy);t.drawImage(r,u,c,p,h,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),h&&r&&Vv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Uv=new pv,Wv=new yn(100),jv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hv(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Uv.delete(t);var o=Uv.get(t);if(o)return o;var a=Q(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<jv.length;++l){var u=a[jv[l]];if(null!=u&&!ut(u)&&!pt(u)&&!dt(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Wv.get(e);c&&(i?t.svgElement=c:t.image=c)}var p,h=qv(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(dt(t)){var e=Math.ceil(t);return[e,e]}var n=rt(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=Yv(a.symbol),g=(_=h,rt(_,(function(t){return Xv(t)}))),v=Xv(d),m=!i&&N.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=ji(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=ji(r,f[e].length);t*=r;var i=v*g.length*f.length;if("production"!==process.env.NODE_ENV){var o=function(t){console.warn("Calculated decal size is greater than "+t+" due to decal option settings so "+t+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+t+" to be larger to avoid incontinuity.")};t>a.maxTileWidth&&o("maxTileWidth"),i>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d"));(function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-v,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(e=0;e<h[u].length;++e)w+=h[u][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][_]*S,C=o+d[s]*S,M=h[u][_]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;I(k,C,M,T,f[c][A])}g+=h[u][_],++b,++_===h[u].length&&(_=0)}++u===h.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function I(t,e,o,s,l){var u=i?1:n,c=_v(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&y.children.push(h)}else Fv(p,c)}})(),s&&Wv.put(e,m||y);t.image=m,t.svgElement=y,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Uv.set(t,s),t.dirty=!1,s}function Yv(t){if(!t||0===t.length)return[["rect"]];if(pt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!pt(t[n])){e=!1;break}if(e)return Yv([t]);var r=[];for(n=0;n<t.length;++n)pt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function qv(t){if(!t||0===t.length)return[[0,0]];if(dt(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!dt(t[n])){e=!1;break}if(e)return qv([t]);var r=[];for(n=0;n<t.length;++n)if(dt(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=rt(t[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function Xv(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Zv=new ee,Jv={};var Kv="undefined"!=typeof window,Qv=2e3,$v=4500,tm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Qv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:$v,ARIA:6e3,DECAL:7e3}},em=/^[a-zA-Z0-9_]+$/,nm="__connectUpdateStatus";function rm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return om(this,t,e);Im(this.id)}}function im(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return om(this,t,e)}}function om(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ee.prototype[e].apply(t,n)}var am,sm,lm,um,cm,pm,hm,dm,fm,gm,vm,mm,ym,xm,_m,bm,wm,Sm,km=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e}(ee),Cm=km.prototype;Cm.on=im("on"),Cm.off=im("off");var Mm=function(t){function e(e,n,r){var i=t.call(this,new Qg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},pt(n)&&(n=Pm[n]),i._dom=e;var o="canvas",a=!1;if("production"!==process.env.NODE_ENV){var s=Kv?window:global;o=s.__ECHARTS__DEFAULT__RENDERER__||o;var l=s.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;a=null==l?a:l}var u=i._zr=ki(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null==r.useDirtyRect?a:r.useDirtyRect});i._ssr=r.ssr,i._throttledZrFlush=gg(st(u.flush,u),17),(n=X(n))&&kd(n,!0),i._theme=n,i._locale=function(t){if(pt(t)){var e=hp[t.toUpperCase()]||{};return t===up||t===cp?X(e):Z(X(e),X(hp.EN),!1)}return Z(X(t),X(hp.EN),!1)}(r.locale||fp),i._coordSysMgr=new td;var c=i._api=_m(i);function p(t,e){return t.__prio-e.__prio}return Le(Lm,p),Le(Em,p),i._scheduler=new Wg(i,c,Em,Lm),i._messageCenter=new km,i._initEvents(),i.resize=st(i.resize,i),u.animation.on("frame",i._onframe,i),gm(u,i),vm(u,i),It(i),i}return k(e,t),e.prototype._onframe=function(){if(!this._disposed){Sm(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{am(this),um.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,dm.call(this,e),fm.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),pm(this,r),t.performVisualTasks(r),xm(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`setOption` should not be called during main process.");else if(this._disposed)Im(this.id);else{var r,i,o;if(ft(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new id(this._api),s=this._theme,l=this._model=new Jh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Nm);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{am(this),um.update.call(this,null,u)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},e.prototype.setTheme=function(){Ji("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Kv&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return"production"!==process.env.NODE_ENV&&Ki("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==e.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==e.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(A.svgSupported){var t=this._zr;return nt(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;nt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return nt(r,(function(t){t.group.ignore=!1})),o}Im(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Vm[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();nt(Bm,(function(o,p){if(o.group===n){var h=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(X(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:h,left:d.left,top:d.top})}}));var h=(l*=p)-(a*=p),d=(u*=p)-(s*=p),f=N.createCanvas(),g=ki(f,{renderer:e?"svg":"canvas"});if(g.resize({width:h,height:d}),e){var v="";return nt(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new ws({shape:{x:0,y:0,width:h,height:d},style:{fill:t.connectedBackgroundColor}})),nt(c,(function(t){var e=new fs({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Im(this.id)},e.prototype.convertToPixel=function(t,e){return cm(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return cm(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return nt(xo(this._model,t),(function(t,r){r.indexOf("Models")>=0&&nt(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n=n||o.containPoint(e,t):"production"!==process.env.NODE_ENV&&console.warn(r+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&console.warn(r+": containPoint is not supported")}),this)}),this),!!n;Im(this.id)},e.prototype.getVisual=function(t,e){var n=xo(this._model,t,{defaultMainType:"series"}),r=n.seriesModel;"production"!==process.env.NODE_ENV&&(r||console.warn("There is no specified seires model"));var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?rv(i,o,e):iv(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;nt(Am,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&sv(o,(function(t){var e=Vs(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=K({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];"production"!==process.env.NODE_ENV&&(a||u&&c||console.warn("model or view can not be found by params")),n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),nt(Om,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),nt(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(av("map","selectchanged",e,r,t),av("pie","selectchanged",e,r,t)):"select"===t.fromAction?(av("map","selected",e,r,t),av("pie","selected",e,r,t)):"unselect"===t.fromAction&&(av("map","unselected",e,r,t),av("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Im(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Im(this.id);else{this._disposed=!0,this.getDom()&&So(this.getDom(),Fm,"");var t=this,e=t._api,n=t._model;nt(t._componentsViews,(function(t){t.dispose(n,e)})),nt(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bm[t.id]}},e.prototype.resize=function(t){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`resize` should not be called during main process.");else if(this._disposed)Im(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&am(this),um.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Im(this.id);else if(ft(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rm[t]){var n=Rm[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}else"production"!==process.env.NODE_ENV&&console.warn("Loading effects "+t+" not exists.")},e.prototype.hideLoading=function(){this._disposed?Im(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=K({},t);return e.type=Om[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Im(this.id);else if(ft(e)||(e={silent:!!e}),Dm[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;hm.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&A.browser.weChat&&this._throttledZrFlush(),dm.call(this,n),fm.call(this,n)}},e.prototype.updateLabelLayout=function(){Zv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Im(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);"production"!==process.env.NODE_ENV&&Mt(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(t,e){e.eachRendered((function(t){if(!ac(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function o(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ac(t))return;if(t instanceof ss&&function(t){var e=Gs(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}am=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),sm(t,!0),sm(t,!1),e.plan()},sm=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var p=Mo(t.type),h=e?eg.getClass(p.main,p.sub):pg.getClass(p.sub);"production"!==process.env.NODE_ENV&&Mt(h,p.sub+" does not exist."),(c=new h).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},lm=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Et(),nt(no(u),(function(t){var e=co(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!==l.get(e.id)))if(Nl(n))if(e instanceof $f)n.type!==Hs||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=vo(i,e);o=(ut(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Vs(a);_l(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=c&&_l(r,c,p,n)}}else"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+e.dataType)}(e,n,t._api);else{var r=wl(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===Hs&&i&&!n.notBlur&&bl(e.mainType,e.componentIndex,t._api),o&&nt(o,(function(t){n.type===Hs?dl(t):fl(t)}))}else El(n)&&e instanceof $f&&(!function(t,e,n){if(El(e)){var r=e.dataType,i=vo(t.getData(r),e);ut(i)||(i=[i]),t[e.type===Zs?"toggleSelect":e.type===qs?"select":"unselect"](i,r)}}(e,n,t._api),Sl(e),wm(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!==l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else nt([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},um={prepareAndUpdate:function(t){am(this),um.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),pm(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),mm(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Zv.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Et();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),xm(this,r,i,e,{},a),Zv.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),mm(this,n,this._api,e,{}),Zv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),pg.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),Zv.trigger("afterupdate",r,this._api))},updateLayout:function(t){um.update.call(this,t)}},cm=function(t,e,n,r){if(t._disposed)Im(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=xo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}"production"!==process.env.NODE_ENV&&console.warn("No coordinate system that supports "+e+" found by the given finder.")}},pm=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},hm=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Dm[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Mo(l[0]);this.__flagInMainProcess=!0;var p=[t],h=!1;t.batch&&(h=!0,p=rt(t.batch,(function(e){return(e=Q(K({},e),t)).batch=null,e})));var d,f=[],g=El(t),v=Nl(t);if(v&&xl(this._api),nt(p,(function(e){if((d=(d=a.action(e,n._model,n._api))||K({},e)).type=s.event||d.type,f.push(d),v){var r=_o(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";lm(n,u,e,o),wm(n)}else g?(lm(n,u,e,"series"),wm(n)):c&&lm(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this.__pendingUpdate?(am(this),um.update.call(this,t),this.__pendingUpdate=null):um[u].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(d=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!e){var m=this._messageCenter;if(m.trigger(d.type,d),g){var y={type:"selectchanged",escapeConnect:o,selected:kl(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(y.type,y)}}},dm=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();hm.call(this,n,t)}},fm=function(t){!t&&this.trigger("updated")},gm=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},vm=function(t,e){t.on("mouseover",(function(t){var n=sv(t.target,Ol);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ol(t)||Zi("param should be highDownDispatcher");var r=Vs(t),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&bl(r.componentMainType,r.componentIndex,n),nt(o,(function(t){return pl(t,e)}))):(_l(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&bl(r.componentMainType,r.componentIndex,n),pl(t,e))}(n,t,e._api),wm(e))})).on("mouseout",(function(t){var n=sv(t.target,Ol);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ol(t)||Zi("param should be highDownDispatcher"),xl(n);var r=Vs(t),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?nt(i,(function(t){return hl(t,e)})):hl(t,e)}(n,t,e._api),wm(e))})).on("click",(function(t){var n=sv(t.target,(function(t){return null!=Vs(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Vs(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},mm=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);Le(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),nt(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(e),ym(t,e,n,r,i),nt(t._chartsViews,(function(t){t.__alive=!1})),xm(t,e,n,r,i),nt(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},ym=function(t,e,r,a,s,l){nt(l||t._componentsViews,(function(t){var s=t.__model;i(s,t),t.render(s,e,r,a),n(s,t),o(s,t)}))},xm=function(t,e,r,a,s,l){var u=t._scheduler;s=K(s||{},{updatedSeries:e.getSeries()}),Zv.trigger("series:beforeupdate",e,r,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),Sl(e)})),u.unfinished=c||u.unfinished,Zv.trigger("series:layoutlabels",e,r,s),Zv.trigger("series:transition",e,r,s),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),o(e,r)})),function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!A.node&&!A.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Zv.trigger("series:afterupdate",e,r,s)},wm=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Sm=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){ac(t)||e(t)})),t.__needsUpdateStatus=!1)},_m=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return k(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){dl(e,n),wm(t)},n.prototype.leaveEmphasis=function(e,n){fl(e,n),wm(t)},n.prototype.enterBlur=function(e){!function(t){sl(t,nl)}(e),wm(t)},n.prototype.leaveBlur=function(e){gl(e),wm(t)},n.prototype.enterSelect=function(e){vl(e),wm(t)},n.prototype.leaveSelect=function(e){ml(e),wm(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Qh))(t)},bm=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][nm]=e}}nt(Om,(function(n,r){t._messageCenter.on(r,(function(n){if(Vm[t.group]&&0!==t[nm]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];nt(Bm,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),nt(i,(function(t){1!==t[nm]&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(ee),Tm=Mm.prototype;Tm.on=rm("on"),Tm.off=rm("off"),Tm.one=function(t,e,n){var r=this;Ji("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var Am=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Im(t){"production"!==process.env.NODE_ENV&&console.warn("Instance "+t+" has been disposed")}var Dm={},Om={},Em=[],Nm=[],Lm=[],Pm={},Rm={},Bm={},Vm={},zm=+new Date-0,Fm="_echarts_instance_";function Gm(t,e,n){var r=!(n&&n.ssr);if(r){if("production"!==process.env.NODE_ENV&&!t)throw new Error("Initialize failed: invalid dom.");var i=function(t){return Bm[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Fm)]}(t);if(i)return"production"!==process.env.NODE_ENV&&console.warn("There is a chart instance already initialized on the dom."),i;"production"!==process.env.NODE_ENV&&(!mt(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||console.warn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."))}var o=new Mm(t,e,n);return o.id="ec_"+zm++,Bm[o.id]=o,r&&So(t,Fm,o.id),bm(o),Zv.trigger("afterinit",o),o}function Um(t,e){Pm[t]=e}function Wm(t){$(Nm,t)<0&&Nm.push(t)}function jm(t,e){Zm(Em,t,e,2e3)}function Hm(t,e){Zv.on(t,e)}function Ym(t,e,n){ct(e)&&(n=e,e="");var r=ft(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Om[e]||(Mt(em.test(r)&&em.test(e)),Dm[r]||(Dm[r]={action:n,actionInfo:t}),Om[e]=r)}function qm(t,e){Zm(Lm,t,e,3e3,"visual")}var Xm=[];function Zm(t,e,n,r,i){if((ct(e)||ft(e))&&(n=e,e=r),"production"!==process.env.NODE_ENV){if(isNaN(e)||null==e)throw new Error("Illegal priority");nt(t,(function(t){Mt(t.__raw!==n)}))}if(!($(Xm,n)>=0)){Xm.push(n);var o=Wg.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Jm(t,e){Rm[t]=e}function Km(t,e,n){var r,i=(r="registerMap","production"!==process.env.NODE_ENV&&(Jv[r]||Zi("Implementation of "+r+" doesn't exists.")),Jv[r]);i&&i(t,e,n)}var Qm=function(t){var e=(t=X(t)).type,n="";e||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),$i(n));var r=e.split(":");2!==r.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),$i(n));var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,pf.set(e,t)};function $m(t){return null==t?0:t.length||1}function ty(t){return t}qm(Qv,Sg),qm($v,Cg),qm($v,Mg),qm(Qv,ev),qm($v,nv),qm(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=Hv(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Hv(i,e)}}))})),Wm(kd),jm(900,(function(t){var e=Et();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(Cd)})),Jm("default",(function(t,e){Q(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,r=new ws({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Bs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ws({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Gu({shape:{startAngle:-Tg/2,endAngle:-Tg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Tg/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Tg/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Ym({type:Hs,event:Hs,update:Hs},Rt),Ym({type:Ys,event:Ys,update:Ys},Rt),Ym({type:qs,event:qs,update:qs},Rt),Ym({type:Xs,event:Xs,update:Xs},Rt),Ym({type:Zs,event:Zs,update:Zs},Rt),Um("light",Hg),Um("dark",Kg);var ey=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||ty,this._newKeyGetter=r||ty,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=$m(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=$m(l),p=$m(u);if(c>1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===p)this._update&&this._update(u,l),r[s]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=$m(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=$m(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),ny=ey,ry=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function iy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var oy=function(t){this.otherDims={},null!=t&&K(this,t)},ay=mo(),sy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ly=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=py(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return wt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Vd(this.source),n=!hy(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var p=this.getSourceDimension(o);p&&(s=e?p.name:null,l=p.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=sy[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function uy(t){return t instanceof ly}function cy(t){for(var e=Et(),n=0;n<(t||[]).length;n++){var r=t[n],i=ft(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function py(t){var e=ay(t);return e.dimNameMap||(e.dimNameMap=cy(t.dimensionsDefine))}function hy(t){return t>30}var dy,fy,gy,vy,my,yy,xy,_y=ft,by=rt,wy="undefined"==typeof Int32Array?Array:Int32Array,Sy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ky=["_approximateExtent"],Cy=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;uy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],p=pt(c)?new oy({name:c}):c instanceof oy?c:new oy(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),i[h]=p,null!=l[h]&&(s=!0),p.createInvertedIndices&&(a[h]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&Mt(r||p.storeDimIndex>=0),r&&(p.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Et();nt(o,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(dt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Unkown dimension "+t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Sf&&(r=t),!r){var o=this.dimensions,a=Ed(t)||et(t)?new zd(t,o.length):t;r=new Sf;var s=by(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=Et(),o=[],a=[],s={};nt(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&Mt(null==xh.get(u));var c=l.coordDimIndex;iy(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),iy(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}xh.each((function(t,e){var n=iy(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=rt(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var p=r.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new ry(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&xy(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==kh&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===_h&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ao(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=co(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=co(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)xy(this,a);dy(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){_y(t)?K(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=gy(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return fy(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return ut(t)?r.getValues(by(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var r=n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){ct(t)&&(n=e,e=t,t=[]);var r=n||this,i=by(vy(t),this._getStoreDimIndex,this);this._store.each(i,r?st(e,r):e)},t.prototype.filterSelf=function(t,e,n){ct(t)&&(n=e,e=t,t=[]);var r=n||this,i=by(vy(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?st(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return nt(at(t),(function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){ct(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=by(vy(t),this._getStoreDimIndex,this),a=yy(this);return a._store=this._store.map(o,i?st(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=this,o=n||r||this;"production"!==process.env.NODE_ENV&&nt(vy(t),(function(t){i.getDimensionInfo(t).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=by(vy(t),this._getStoreDimIndex,this);this._store.modify(a,o?st(e,o):e)},t.prototype.downSample=function(t,e,n,r){var i=yy(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=yy(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new op(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new ny(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return fy(t,e)}),(function(t){return fy(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},_y(t)?K(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(ut(i=this.getVisual(e))?i=i.slice():_y(i)&&(i=K({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,_y(e)?K(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){_y(t)?K(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?K(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,r){if(r){var i=Vs(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=Vs(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){nt(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:by(this.dimensions,this._getDimInfo,this),this.hostModel)),my(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];ct(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(kt(arguments)))})},t.internalField=(dy=function(t){var e=t._invertedIndicesMap;nt(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new wy(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},gy=function(t,e,n){return co(t._getCategory(e,n),null)},fy=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=gy(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},vy=function(t){return ut(t)||(t=null!=t?[t]:[]),t},yy=function(e){var n=new t(e._schema?e._schema:by(e.dimensions,e._getDimInfo,e),e.hostModel);return my(n,e),n},my=function(t,e){nt(Sy.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,nt(ky,(function(n){t[n]=X(e[n])})),t._calculationInfo=K({},e._calculationInfo)},void(xy=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=gy(t,i,e)),null==s&&null!=o&&(r[e]=s=gy(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}(),My=Cy;function Ty(t,e){Ed(t)||(t=Ld(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Et(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return nt(e,(function(t){var e;ft(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hy(a),l=r===t.dimensionsDefine,u=l?py(t):cy(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var p=Et(c),h=new yf(a),d=0;d<h.length;d++)h[d]=-1;function f(t){var e=h[t];if(e<0){var n=r[t],i=ft(n)?n:{name:n},a=new oy,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return h[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);p.each((function(t,e){var n=no(t).slice();if(1===n.length&&!pt(n[0])&&n[0]<0)p.set(e,!1);else{var r=p.set(e,[]);nt(n,(function(t,n){var i=pt(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(f(i),e,n))}))}}));var g=0;function v(t,e,n){null!=xh.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}nt(n,(function(t){var e,n,r,i;if(pt(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=K({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(e);if(!1!==s){if(!(s=no(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}nt(s,(function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),v(Q(a,i),e,o),null==a.name&&n){var s=n[o];!ft(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Q(a.otherDims,r)}))}}));var m=e.generateCoord,y=e.generateCoordCount,x=null!=y;y=m?y||1:0;var _=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)nt(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Ay(_,i,x),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||Ph(t,w)!==Ah&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Et(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new ly({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ay(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){for(var i=0;r.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}var Iy=function(t){this.coordSysDims=[],this.axisMap=Et(),this.categoryAxisMap=Et(),this.coordSysName=t};var Dy={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",bo).models[0],o=t.getReferringComponents("yAxis",bo).models[0];if("production"!==process.env.NODE_ENV){if(!i)throw new Error('xAxis "'+bt(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+bt(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Oy(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Oy(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",bo).models[0];if("production"!==process.env.NODE_ENV&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Oy(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",bo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Oy(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Oy(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();nt(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Oy(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Oy(t){return"category"===t.get("type")}function Ey(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!uy(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,p,h=!(!t||!t.get("stack"));if(nt(r,(function(t,e){pt(t)&&(r[e]=t={name:t}),h&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;nt(r,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(p,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:c}}function Ny(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ly(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Ld(t)):o=(r=i.getSource()).sourceFormat===_h;var a=function(t){var e=t.get("coordinateSystem"),n=new Iy(e),r=Dy[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=td.get(r);return e&&e.coordSysDims&&(n=rt(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=ct(l)?l:l?lt(Eh,s,e):null,c=Ty(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),p=function(t,e,n){var r,i;return n&&nt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(c),d=Ey(e,{schema:c,store:h}),f=new My(c,e);f.setCalculationInfo(d);var g=null!=p&&function(t){if(t.sourceFormat===_h){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!ut(oo(e))}}(r)?function(t,e,n,r){return r===p?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:h,null,g),f}var Py=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Eo(Py);var Ry=Py,By=0,Vy=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++By}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&rt(r,zy);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!pt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Et(this.categories))},t}();function zy(t){return ft(t)&&null!=t.value?t.value:t+""}var Fy=Vy;function Gy(t){return"interval"===t.type||"log"===t.type}function Uy(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Vi(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=jy(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Hy(t,0,e),Hy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Ai(Math.ceil(t[0]/a)*a,s),Ai(Math.floor(t[1]/a)*a,s)],t),i}function Wy(t){var e=Math.pow(10,Bi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ai(n*e)}function jy(t){return Di(t)+2}function Hy(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Yy(t,e){return t>=e[0]&&t<=e[1]}function qy(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Xy(t,e){return t*(e[1]-e[0])+e[0]}var Zy=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Fy({})),ut(r)&&(r=new Fy({categories:rt(r,(function(t){return ft(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return k(e,t),e.prototype.parse=function(t){return null==t?NaN:pt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Yy(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return qy(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Xy(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ry);Ry.registerClass(Zy);var Jy=Zy,Ky=Ai,Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return k(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Yy(t,this._extent)},e.prototype.normalize=function(t){return qy(t,this._extent)},e.prototype.scale=function(t){return Xy(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jy(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:Ky(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Ky(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:Ky(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Ky(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Di(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Yp(Ky(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Uy(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Ky(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Ky(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Ry);Ry.registerClass(Qy);var $y=Qy,tx="undefined"!=typeof Float32Array,ex=tx?Float32Array:Array;function nx(t){return ut(t)?tx?new Float32Array(t):t:new ex(t)}function rx(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ix(t){return t.dim+t.index}function ox(t,e){var n=[];return e.eachSeriesByType(t,(function(t){lx(t)&&n.push(t)})),n}function ax(t){var e=function(t){var e={};nt(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return nt(t,(function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var p=t.getData();r=Math.abs(o[1]-o[0])/p.count()}var h=Ti(t.get("barWidth"),r),d=Ti(t.get("barMaxWidth"),r),f=Ti(t.get("barMinWidth")||(ux(t)?.5:1),r),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:ix(i),stackId:rx(t)})})),function(t){var e={};nt(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var p=t.barGap;null!=p&&(o.gap=p);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return nt(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=at(r).length;o=Math.max(35-4*a,15)+"%"}var s=Ti(o,i),l=Ti(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,p=(u-s)/(c+(c-1)*l);p=Math.max(p,0),nt(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=p;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==p&&(t.width=r,u-=r+l*r,c--)}})),p=(u-s)/(c+(c-1)*l),p=Math.max(p,0);var h,d=0;nt(r,(function(t,e){t.width||(t.width=p),h=t,d+=t.width*(1+l)})),h&&(d-=h.width*l);var f=-d/2;nt(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}(n)}function sx(t,e){var n=ox(t,e),r=ax(n);nt(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=rx(t),o=r[ix(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function lx(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function ux(t){return t.pipelineContext&&t.pipelineContext.large}var cx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return k(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ip(t.value,Sp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Tp(this._minLevelUnit))]||Sp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(pt(n))o=n;else if(ct(n))o=n(t.value,e,{level:t.level});else{var a=K({},bp);if(t.level>0)for(var s=0;s<kp.length;++s)a[kp[s]]="{primary|"+a[kp[s]]+"}";var l=n?!1===n.inherit?n:Q(n,a):a,u=Dp(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Cp.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ut(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Ip(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=1e4,o=Cp,a=0;function s(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!function(t,e,n,r){var i=Ri(e),o=Ri(n),a=function(t){return Op(i,t,r)===Op(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},p=function(){return c()&&a("minute")},h=function(){return p()&&a("second")},d=function(){return h()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return p();case"second":return h();case"millisecond":return d()}}(Tp(t),r[0],r[1],n)){l&&(i=[{value:mx(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,p=i[u+1].value;if(c!==p){var h=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":h=Math.max(1,Math.round(e/xp/365)),d=Ep(n),f=zp(n);break;case"half-year":case"quarter":case"month":h=dx(e),d=Np(n),f=Fp(n);break;case"week":case"half-week":case"day":h=hx(e),d=Lp(n),f=Gp(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=fx(e),d=Pp(n),f=Up(n);break;case"minute":h=gx(e,!0),d=Rp(n),f=Wp(n);break;case"second":h=gx(e,!1),d=Bp(n),f=jp(n);break;case"millisecond":h=vx(e),d=Vp(n),f=Hp(n)}s(h,c,p,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],p=0,h=0,d=0;d<o.length&&a++<i;++d){var f=Tp(o[d]);if(Ap(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?Tp(o[d+1]):null)){if(c.length){h=p,c.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<c.length;++v){var m=c[v].value;0!==v&&c[v-1].value===m||(g.push(c[v]),m>=r[0]&&m<=r[1]&&p++)}var y=(r[1]-r[0])/e;if(p>1.5*y&&h>y/1.5)break;if(u.push(g),p>y||t===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=i&&Xi("Exceed safe limit.");var x=ot(rt(u,(function(t){return ot(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;d<x.length;++d)for(var w=x[d],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-d});_.sort((function(t,e){return t.value-e.value}));var k=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||k.push(_[d]);return k}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=xp,e[1]+=xp),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-xp}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=px.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(px,this._approxInterval,0,o),o-1);this._interval=px[a][1],this._minLevelUnit=px[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return dt(t)?t:+Ri(t)},e.prototype.contain=function(t){return Yy(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qy(this.parse(t),this._extent)},e.prototype.scale=function(t){return Xy(t,this._extent)},e.type="time",e}($y),px=[["second",vp],["minute",mp],["hour",yp],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",_p/2],["year",_p]];function hx(t,e){return(t/=xp)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dx(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function fx(t){return(t/=yp)>12?12:t>6?6:t>3.5?4:t>2?2:1}function gx(t,e){return(t/=e?mp:vp)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function vx(t){return Vi(t,!0)}function mx(t,e,n){var r=new Date(t);switch(Tp(e)){case"year":case"month":r[Fp(n)](0);case"day":r[Gp(n)](1);case"hour":r[Up(n)](0);case"minute":r[Wp(n)](0);case"second":r[jp(n)](0),r[Hp(n)](0)}return r.getTime()}Ry.registerClass(cx);var yx=cx,xx=Ry.prototype,_x=$y.prototype,bx=Ai,Sx=Math.floor,kx=Math.ceil,Cx=Math.pow,Mx=Math.log,Tx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new $y,e._interval=0,e}return k(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return rt(_x.getTicks.call(this,t),(function(t){var e=t.value,i=Ai(Cx(this.base,e));return i=e===n[0]&&this._fixMin?Ix(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?Ix(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=Mx(t)/Mx(n),e=Mx(e)/Mx(n),_x.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=xx.getExtent.call(this);e[0]=Cx(t,e[0]),e[1]=Cx(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=Ix(e[0],n[0])),this._fixMax&&(e[1]=Ix(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Mx(t[0])/Mx(e),t[1]=Mx(t[1])/Mx(e),xx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Bi(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Ai(kx(e[0]/i)*i),Ai(Sx(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){_x.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Yy(t=Mx(t)/Mx(this.base),this._extent)},e.prototype.normalize=function(t){return qy(t=Mx(t)/Mx(this.base),this._extent)},e.prototype.scale=function(t){return t=Xy(t,this._extent),Cx(this.base,t)},e.type="log",e}(Ry),Ax=Tx.prototype;function Ix(t,e){return bx(t,Di(e))}Ax.getMinorTicks=_x.getMinorTicks,Ax.getLabel=_x.getLabel,Ry.registerClass(Tx);var Dx=Tx,Ox=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);ct(i)?this._modelMinNum=Lx(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=Lx(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(ct(o)?this._modelMaxNum=Lx(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Lx(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=ut(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?("production"!==process.env.NODE_ENV&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[ai(s[0],1),ai(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=_t(a)||_t(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var p=this._determinedMin,h=this._determinedMax;return null!=p&&(a=p,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){"production"!==process.env.NODE_ENV&&Mt(!this.frozen),this[Nx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Ex[t];"production"!==process.env.NODE_ENV&&Mt(!this.frozen&&null==this[n]),this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Ex={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Lx(t,e){return null==e?null:_t(e)?NaN:t.parse(e)}function Px(t,e){var n=t.type,r=function(t,e,n){var r=t.rawExtentInfo;return r||(r=new Ox(t,e,n),t.rawExtentInfo=r,r)}(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=ox("bar",a),l=!1;if(nt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=ax(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(t,e,n){if(t&&e){var r=t[ix(e)];return null!=r&&null!=n?r[rx(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;nt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;nt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,p=c/(1-(s+l)/o)-c;return{min:t-=p*(s/u),max:e+=p*(l/u)}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Rx(t,e){var n=e,r=Px(t,n),i=r.extent,o=n.get("splitNumber");t instanceof Dx&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Bx(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):pt(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):ct(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(Vx(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Vx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function zx(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Qr(t.x,t.y,o,a)}function Fx(t){var e=t.get("interval");return null==e?"auto":e}function Gx(t){return"category"===t.type&&0===Fx(t.getLabelModel())}function Ux(t,e){var n={};return nt(t.mapDimensionsAll(e),(function(e){n[function(t,e){return Ny(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0})),at(n)}var Wx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),jx=[],Hx={registerPreprocessor:Wm,registerProcessor:jm,registerPostInit:function(t){Hm("afterinit",t)},registerPostUpdate:function(t){Hm("afterupdate",t)},registerUpdateLifecycle:Hm,registerAction:Ym,registerCoordinateSystem:function(t,e){td.register(t,e)},registerLayout:function(t,e){Zm(Lm,t,e,1e3,"layout")},registerVisual:qm,registerTransform:Qm,registerLoading:Jm,registerMap:Km,registerImpl:function(t,e){"production"!==process.env.NODE_ENV&&Jv[t]&&Zi("Already has an implementation of "+t+"."),Jv[t]=e},PRIORITY:tm,ComponentModel:gh,ComponentView:eg,SeriesModel:$f,ChartView:pg,registerComponentModel:function(t){gh.registerClass(t)},registerComponentView:function(t){eg.registerClass(t)},registerSeriesModel:function(t){$f.registerClass(t)},registerChartView:function(t){pg.registerClass(t)},registerSubTypeDefaulter:function(t,e){gh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,bi[t]=n}};function Yx(t){ut(t)?nt(t,(function(t){Yx(t)})):$(jx,t)>=0||(jx.push(t),ct(t)&&(t={install:t}),t.install(Hx))}function qx(t,e){return Math.abs(t-e)<1e-8}function Xx(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Xa(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return qx(i[0],s[0])&&qx(i[1],s[1])||(r+=Xa(i[0],i[1],s[0],s[1],e,n)),0!==r}var Zx=[];function Jx(t,e){for(var n=0;n<t.length;n++)Xt(t[n],t[n],e)}function Kx(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Zt(e,e,o),Jt(n,n,o))}}var Qx=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),$x=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},t_=function(t){this.type="linestring",this.points=t},e_=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return k(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0];return nt(this.geometries,(function(e){"polygon"===e.type?Kx(e.exterior,n,r,t):nt(e.points,(function(e){Kx(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Qr(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Xx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Xx(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Qr(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Jx(c.exterior,s),nt(c.interiors,(function(t){Jx(t,s)}))):nt(c.points,(function(t){Jx(t,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Qx),n_=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return k(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Cr(Zx),i=t;i&&!i.isGeoSVGGraphicRoot;)Tr(r,i.getLocalTransform(),r),i=i.parent;return Or(r,r),Xt(n,n,r),n},e}(Qx);function r_(t,e,n){for(var r=0;r<t.length;r++)t[r]=i_(t[r],e[r],n)}function i_(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function o_(t,e){return rt(ot((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),nt(e.features,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=i_(i,r,n);break;case"Polygon":case"MultiLineString":r_(i,r,n);break;case"MultiPolygon":nt(i,(function(t,e){return r_(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new $x(o[0],o.slice(1)));break;case"MultiPolygon":nt(r.coordinates,(function(t){t[0]&&i.push(new $x(t[0],t.slice(1)))}));break;case"LineString":i.push(new t_([r.coordinates]));break;case"MultiLineString":i.push(new t_(r.coordinates))}var a=new e_(n[e||"name"],i,n.cp);return a.properties=n,a}))}var a_=mo();function s_(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=u_(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bx(t);return{labels:rt(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function l_(t,e){return"category"===t.type?function(t,e){var n,r,i=c_(t,"ticks"),o=Fx(e),a=p_(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(ct(o))n=f_(t,o,!0);else if("auto"===o){var s=u_(t,t.getLabelModel());r=s.labelCategoryInterval,n=rt(s.labels,(function(t){return t.tickValue}))}else n=d_(t,r=o,!0);return h_(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:rt(t.scale.getTicks(),(function(t){return t.value}))}}function u_(t,e){var n,r,i=c_(t,"labels"),o=Fx(e),a=p_(i,o);return a||(ct(o)?n=f_(t,o):(r="auto"===o?function(t){var e=a_(t).autoInterval;return null!=e?e:a_(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=d_(t,r)),h_(i,o,{labels:n,labelCategoryInterval:r}))}function c_(t,e){return a_(t)[e]||(a_(t)[e]=[])}function p_(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function h_(t,e,n){return t.push({key:e,value:n}),n}function d_(t,e,n){var r=Bx(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Gx(t),h=a.get("showMinLabel")||p,d=a.get("showMaxLabel")||p;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function f_(t,e,n){var r=t.scale,i=Bx(t),o=[];return nt(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var g_=[0,1],v_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count()),Mi(t,g_,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count());var i=Mi(t,n,g_,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=rt(l_(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;nt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]});p(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&p(o.coord,s[1])&&e.push({coord:s[1]});function p(t,e){return t=Ai(t),e=Ai(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),rt(this.scale.getMinorTicks(t),(function(t){return rt(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return s_(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Bx(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),p=Math.abs(u*Math.sin(r)),h=0,d=0;l<=o[1];l+=s){var f,g,v=ni(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,h=Math.max(h,f,7),d=Math.max(d,g,7)}var m=h/c,y=d/p;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=a_(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function m_(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var y_=v_;function x_(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,p=r-e,h=Math.sqrt(c*c+p*p),d=(l*(c/=h)+u*(p/=h))/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var f=a[0]=t+d*c,g=a[1]=e+d*p;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}Fa.CMD;var __=new Ur,b_=new Ur,w_=new Ur,S_=new Ur,k_=new Ur,C_=[],M_=new Ur;function T_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,__.fromArray(t[0]),b_.fromArray(t[1]),w_.fromArray(t[2]),Ur.sub(S_,__,b_),Ur.sub(k_,w_,b_);var n=S_.len(),r=k_.len();if(!(n<.001||r<.001)){S_.scale(1/n),k_.scale(1/r);var i=S_.dot(k_);if(Math.cos(e)<i){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_),M_.scaleAndAdd(k_,o/Math.tan(Math.PI-e));var a=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(a))return;a<0?Ur.copy(M_,b_):a>1&&Ur.copy(M_,w_),M_.toArray(t[1])}}}}function A_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,__.fromArray(t[0]),b_.fromArray(t[1]),w_.fromArray(t[2]),Ur.sub(S_,b_,__),Ur.sub(k_,w_,b_);var r=S_.len(),i=k_.len();if(!(r<.001||i<.001))if(S_.scale(1/r),k_.scale(1/i),S_.dot(e)<Math.cos(n)){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_);var a=Math.PI/2,s=a+Math.acos(k_.dot(e))-n;if(s>=a)Ur.copy(M_,w_);else{M_.scaleAndAdd(k_,o/Math.tan(Math.PI/2-s));var l=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(l))return;l<0?Ur.copy(M_,b_):l>1&&Ur.copy(M_,w_)}M_.toArray(t[1])}}}function I_(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function D_(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ht(r[0],r[1]),o=Ht(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=qt([],r[1],r[0],a/i),l=qt([],r[1],r[2],a/o),u=qt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function O_(t,e,n,r){return function(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=0,p=0;p<a;p++){var h=t[p],d=h.rect;(s=d[e]-l)<0&&(d[e]-=s,h.label[e]-=s,u=!0),c+=Math.max(-s,0),l=d[e]+d[n]}c>0&&o&&_(-c/a,0,a);var f,g,v=t[0],m=t[a-1];return y(),f<0&&b(-f,.8),g<0&&b(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[e]-r,g=i-m.rect[e]-m.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){_(r*n,0,a);var i=r+t;i<0&&b(-i*n,1)}else b(-t*n,1)}}function _(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var p=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)_(o[l]*p,0,l+1);else for(l=a-1;l>0;l--)_(-o[l-1]*p,l,a)}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?_(n,0,r+1):_(-n,a-r-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,r)}var E_=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function N_(t,e){return n=Object.create(null),E_.forEach((function(r){n[r]=function(n){return function(){if(t.value||e(),!t.value)throw new Error("ECharts is not initialized yet.");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t.value[n].apply(t.value,i)}}(r)})),n;var n}function L_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P_={exports:{}},R_={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(R_);var B_={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports}(B_);var V_={exports:{}},z_={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports}(z_),function(t){var e=z_.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(V_);var F_={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(F_),function(t){var e=R_.exports,n=B_.exports,r=V_.exports,i=F_.exports;t.exports=function(t,o){return e(t)||n(t,o)||r(t,o)||i()},t.exports.__esModule=!0,t.exports.default=t.exports}(P_);var G_=L_(P_.exports);var U_={autoresize:Boolean};var W_={loading:Boolean,loadingOptions:Object};function j_(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}j_("x-vue-echarts{display:block;height:100%;width:100%}");var H_=/^on[^a-z]/,Y_=function(t){return H_.test(t)};var q_=e.defineComponent({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},U_),W_),inheritAttrs:!1,setup:function(t,r){var i=r.attrs,o=r.listeners,a=e.shallowRef(),s=e.shallowRef(),l=e.shallowRef(),u=e.inject("ecTheme",null),c=e.inject("ecInitOptions",null),p=e.inject("ecUpdateOptions",null),h=e.toRefs(t),d=h.autoresize,f=h.manualUpdate,g=h.loading,v=h.loadingOptions,m=e.computed((function(){return l.value||t.option||Object.create(null)})),y=e.computed((function(){return t.theme||e.unref(u)||{}})),x=e.computed((function(){return t.initOptions||e.unref(c)||{}})),_=e.computed((function(){return t.updateOptions||e.unref(p)||{}})),b=e.computed((function(){return function(t){var e={};for(var n in t)Y_(n)||(e[n]=t[n]);return e}(i)}));function w(n){if(!s.value&&a.value){var r=s.value=Gm(a.value,y.value,x.value);t.group&&(r.group=t.group);var l=o;l||(l={},Object.keys(i).filter((function(t){return 0===t.indexOf("on")&&t.length>2})).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);l[e]=i[t]}))),Object.keys(l).forEach((function(t){var e=l[t];e&&(0===t.indexOf("zr:")?r.getZr().on(t.slice(3).toLowerCase(),e):r.on(t.toLowerCase(),e))})),d.value?e.nextTick((function(){!function(){if(r&&!r.isDisposed())try{r.resize()}catch(t){if("Cannot read property 'get' of undefined"===t.message)return;throw t}}(),u()})):u()}function u(){r.setOption(n||m.value,_.value)}}function S(){s.value&&(s.value.dispose(),s.value=void 0)}var k=null;e.watch(f,(function(n){"function"==typeof k&&(k(),k=null),n||(k=e.watch((function(){return t.option}),(function(t){t&&(s.value?s.value.setOption(t,_.value):w())}),{deep:!0}))}),{immediate:!0}),e.watch([y,x],(function(){S(),w()}),{deep:!0}),e.watchEffect((function(){t.group&&s.value&&(s.value.group=t.group)}));var C=N_(s,w);return function(t,n,r){var i=e.inject("ecLoadingOptions",{}),o=e.computed((function(){return Object.assign(Object.assign({},e.unref(i)),null==r?void 0:r.value)}));e.watchEffect((function(){var e=t.value;e&&(n.value?e.showLoading(o.value):e.hideLoading())}))}(s,g,v),function(t,r,i){var o=null;e.watch([i,t,r],(function(t,e,r){var i=G_(t,3),a=i[0],s=i[1],l=i[2];a&&s&&l&&(o=gg((function(){s.resize()}),100),n.addListener(a,o)),r((function(){o&&a&&n.removeListener(a,o)}))}))}(s,d,a),e.onMounted((function(){t.option&&w()})),e.onUnmounted(S),Object.assign({chart:s,root:a,setOption:function(e,n){t.manualUpdate&&(l.value=e),s.value?s.value.setOption(e,n||{}):w(e)},nonEventAttrs:b},C)},render:function(){var t=Object.assign({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",e.h("x-vue-echarts",t)}});function X_(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function Z_(t){return t<=1?"".concat(100*Number(t),"%"):t}function J_(t){return 1===t.length?"0"+t:String(t)}function K_(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Q_(t){return $_(t)/255}function $_(t){return parseInt(t,16)}var tb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function eb(t){var e,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof t&&(t=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(tb[t])t=tb[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=ob.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ob.rgba.exec(t))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ob.hsl.exec(t))return{h:n[1],s:n[2],l:n[3]};if(n=ob.hsla.exec(t))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ob.hsv.exec(t))return{h:n[1],s:n[2],v:n[3]};if(n=ob.hsva.exec(t))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ob.hex8.exec(t))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),a:Q_(n[4]),format:e?"name":"hex8"};if(n=ob.hex6.exec(t))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),format:e?"name":"hex"};if(n=ob.hex4.exec(t))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),a:Q_(n[4]+n[4]),format:e?"name":"hex8"};if(n=ob.hex3.exec(t))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(ab(t.r)&&ab(t.g)&&ab(t.b)?(e=t.r,n=t.g,r=t.b,i={r:255*X_(e,255),g:255*X_(n,255),b:255*X_(r,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):ab(t.h)&&ab(t.s)&&ab(t.v)?(a=Z_(t.s),s=Z_(t.v),i=function(t,e,n){t=6*X_(t,360),e=X_(e,100),n=X_(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(t.h,a,s),u=!0,c="hsv"):ab(t.h)&&ab(t.s)&&ab(t.l)&&(a=Z_(t.s),l=Z_(t.l),i=function(t,e,n){var r,i,o;if(t=X_(t,360),e=X_(e,100),n=X_(n,100),0===e)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=K_(s,a,t+1/3),i=K_(s,a,t),o=K_(s,a,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,a,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(o=t.a)),o=function(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}(o),{ok:u,format:t.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var nb="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),rb="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ib="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ob={CSS_UNIT:new RegExp(nb),rgb:new RegExp("rgb"+rb),rgba:new RegExp("rgba"+ib),hsl:new RegExp("hsl"+rb),hsla:new RegExp("hsla"+ib),hsv:new RegExp("hsv"+rb),hsva:new RegExp("hsva"+ib),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ab(t){return Boolean(ob.CSS_UNIT.exec(String(t)))}var sb=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function lb(t){var e=function(t,e,n){t=X_(t,255),e=X_(e,255),n=X_(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4}o/=6}return{h:o,s:l,v:a}}(t.r,t.g,t.b);return{h:360*e.h,s:e.s,v:e.v}}function ub(t){var e=t.r,n=t.g,r=t.b;return"#".concat(function(t,e,n,r){var i=[J_(Math.round(t).toString(16)),J_(Math.round(e).toString(16)),J_(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(e,n,r,!1))}function cb(t,e,n){var r=n/100;return{r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b}}function pb(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r}function hb(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function db(t,e,n){var r;return(r=n?t.v+.05*e:t.v-.15*e)>1&&(r=1),Number(r.toFixed(2))}function fb(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=eb(t),i=5;i>0;i-=1){var o=lb(r),a=ub(eb({h:pb(o,i,!0),s:hb(o,i,!0),v:db(o,i,!0)}));n.push(a)}n.push(ub(r));for(var s=1;s<=4;s+=1){var l=lb(r),u=ub(eb({h:pb(l,s),s:hb(l,s),v:db(l,s)}));n.push(u)}return"dark"===e.theme?sb.map((function(t){var r=t.index,i=t.opacity;return ub(cb(eb(e.backgroundColor||"#141414"),eb(n[r]),100*i))})):n}var gb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vb={},mb={};Object.keys(gb).forEach((function(t){vb[t]=fb(gb[t]),vb[t].primary=vb[t][5],mb[t]=fb(gb[t],{theme:"dark",backgroundColor:"#141414"}),mb[t].primary=mb[t][5]})),vb.red,vb.volcano,vb.gold,vb.orange,vb.yellow,vb.lime,vb.green,vb.cyan,vb.blue,vb.geekblue,vb.purple,vb.magenta,vb.grey;var yb=[],xb=[];function _b(t,e){if(e=e||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,r=!0===e.prepend?"prepend":"append",i=void 0!==e.container?e.container:document.querySelector("head"),o=yb.indexOf(i);return-1===o&&(o=yb.push(i)-1,xb[o]={}),void 0!==xb[o]&&void 0!==xb[o][r]?n=xb[o][r]:(n=xb[o][r]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===r?i.insertBefore(n,i.childNodes[0]):i.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}function bb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){wb(t,e,n[e])}))}return t}function wb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sb(t,e){!function(t,e){"production"===process.env.NODE_ENV||t||void 0===console||console.error("Warning: ".concat(e))}(t,"[@ant-design/icons-vue] ".concat(e))}function kb(t){return"object"==typeof t&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"==typeof t.icon||"function"==typeof t.icon)}function Cb(t,n,r){return r?e.h(t.tag,bb({key:n},r,t.attrs),(t.children||[]).map((function(e,r){return Cb(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.h(t.tag,bb({key:n},t.attrs),(t.children||[]).map((function(e,r){return Cb(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Mb(t){return fb(t)[0]}function Tb(t){return t?Array.isArray(t)?t:[t]:[]}var Ab="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ib=!1,Db=["icon","primaryColor","secondaryColor"];function Ob(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Eb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nb(t,e,n[e])}))}return t}function Nb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lb={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Pb=function(t,n){var r=Eb({},t,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=Ob(r,Db),l=Lb;if(o&&(l={primaryColor:o,secondaryColor:a||Mb(o)}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ab;e.nextTick((function(){Ib||("undefined"!=typeof window&&window.document&&window.document.documentElement&&_b(t,{prepend:!0}),Ib=!0)}))}(),Sb(kb(i),"icon should be icon definiton, but got ".concat(i)),!kb(i))return null;var u=i;return u&&"function"==typeof u.icon&&(u=Eb({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),Cb(u.icon,"svg-".concat(u.name),Eb({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Pb.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Pb.inheritAttrs=!1,Pb.displayName="IconBase",Pb.getTwoToneColors=function(){return Eb({},Lb)},Pb.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;Lb.primaryColor=e,Lb.secondaryColor=n||Mb(e),Lb.calculated=!!n};var Rb=Pb;function Bb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vb(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zb(t){var e=Bb(Tb(t),2),n=e[0],r=e[1];return Rb.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Fb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Gb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ub(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ub(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ub(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){jb(t,e,n[e])}))}return t}function jb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hb(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}zb("#1890ff");var Yb=function(t,n){var r,i=Wb({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,p=i.onClick,h=Hb(i,Fb),d=(jb(r={anticon:!0},"anticon-".concat(a.name),Boolean(a.name)),jb(r,o,o),r),f=""===s||s||"loading"===a.name?"anticon-spin":"",g=u;void 0===g&&p&&(g=-1,h.tabindex=g);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=Gb(Tb(c),2),y=m[0],x=m[1];return e.createVNode("span",Wb({role:"img","aria-label":a.name},h,{onClick:p,class:d}),[e.createVNode(Rb,{class:f,icon:a,primaryColor:y,secondaryColor:x,style:v},null)])};Yb.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Yb.displayName="AntdIcon",Yb.inheritAttrs=!1,Yb.getTwoToneColor=function(){var t=Rb.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},Yb.setTwoToneColor=zb;var qb=Yb,Xb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Zb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Jb(t,e,n[e])}))}return t}function Jb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kb=function(t,n){var r=Zb({},t,n.attrs);return e.createVNode(qb,Zb({},r,{icon:Xb}),null)};Kb.displayName="LoadingOutlined",Kb.inheritAttrs=!1;var Qb=Kb,$b=e.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:r.Spin},setup:function(){return{indicator:e.h(Qb,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),tw={class:"spin-wrapper"};j_(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),$b.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",tw,[t.spinning?(e.openBlock(),e.createBlock(s,{key:0,class:"spin",spinning:t.spinning,indicator:t.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):e.renderSlot(t.$slots,"default",{key:1})])},$b.__file="src/common/spin/Spin.vue";var ew=e.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:r.Skeleton}});ew.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-skeleton");return e.openBlock(),e.createBlock(s,{active:"",loading:t.loading},{default:e.withCtx((function(){return[e.renderSlot(t.$slots,"default")]})),_:3},8,["loading"])},ew.__file="src/common/skeleton/Skeleton.vue";var nw={exports:{}},rw={exports:{}};!function(t){var e=z_.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(rw);var iw={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(iw);var ow={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(ow),function(t){var e=rw.exports,n=iw.exports,r=V_.exports,i=ow.exports;t.exports=function(t){return e(t)||n(t)||r(t)||i()},t.exports.__esModule=!0,t.exports.default=t.exports}(nw);var aw=L_(nw.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var sw=function(t,e){if(t.install=function(n){for(var r=0,i=[t].concat(aw(Object.values(null!=e?e:{})));r<i.length;r++){var o=i[r];n.component(o.name,o)}},e)for(var n=0,r=Object.entries(e);n<r.length;n++){var i=G_(r[n],2),o=i[0],a=i[1];t[o]=a}return t},lw={exports:{}};!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r=p;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(t,e,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",d="executing",f="completed",g={};function v(){}function m(){}function y(){}var x={};l(x,o,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(I([])));b&&b!==n&&r.call(b,o)&&(x=b);var w=y.prototype=v.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=c(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function I(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:e,done:!0}}return m.prototype=y,l(w,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(k.prototype),l(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(lw);var uw,cw,pw=lw.exports,hw={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:"",value:{id:"",prop:""}}],events:[],dataType:"static"},dw=function(t){return o.mapValues(t,(function(t){return null==t?{}:{type:t.constructor,default:t}}))},fw={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gw=dw(fw),vw=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],mw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=o.without.apply(void 0,[vw].concat(aw(n)));return e.computed((function(){return o.pick(t,r)}))},yw="EVENT_BUS",xw="GLOBAL_CONFIG",_w="GLOBAL_MODEL",bw="REQUEST_MODEL",ww=(null===(uw=null===window||void 0===window?void 0:window.config)||void 0===uw?void 0:uw.uploadPath)||"/api",Sw=(null===(cw=null===window||void 0===window?void 0:window.config)||void 0===cw?void 0:cw.baseUrl)||"./",kw="http://59.56.182.79:9192/api/",Cw=function(t,n){e.watch((function(){return t.id}),(function(t,r){var i=e.inject(yw,{onEvent:function(t,e){},offEvent:function(t){}});null!=r&&""!==r&&i.offEvent(r),null!=t&&""!==t&&i.onEvent(t,n)}),{immediate:!0})},Mw=function(t){var n=e.inject(yw,{emitEvent:function(t,e){}});return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments))),n){var i=n.emitEvent;t.forEach((function(t){if(e===t.on)try{i(t.target,t.emit)}catch(t){console.error(t)}}))}}}};function Tw(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Aw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Aw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Iw=function(t,e){var n=e||{},r=n.name,i=void 0===r?"name":r,o=n.value,a=void 0===o?"value":o,s=n.type,l=void 0===s?"type":s;i=null==i?void 0:i.trim(),a=null==a?void 0:a.trim(),l=null==l?void 0:l.trim();for(var u=new Set,c=new Map,p=t.length,h=0;h<p;h++){var d=t[h],f=d[i]||"",g=d[a]||"",v=d[l]||"";if(u.add(f),c.has(v)){var m=c.get(v);m.push(Object.assign({name:f,value:g},d)),c.set(v,m)}else c.set(v,[Object.assign({name:f,value:g},d)])}var y,x=Array.from(u),_=[],b=Tw(c);try{for(b.s();!(y=b.n()).done;){var w=G_(y.value,2),S=w[0],k=w[1];_.push({name:S,data:k})}}catch(t){b.e(t)}finally{b.f()}return{dimensions:x,dataset:_}},Dw={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Dw);var Ow=L_(Dw.exports),Ew=function(t){return t.replace(/\\n/g,"\n")},Nw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=parseFloat(t+"");return isNaN(n)||n<0?t:n.toFixed(e).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Lw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t+"";if(n.includes("%"))return t;var r=parseFloat(n);return isNaN(r)?t:"".concat((100*r).toFixed(e),"%")},Pw=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLocaleLowerCase().includes(e.toLocaleLowerCase())},Rw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=t.requestUrl,i=t.requestMethod,o=t.requestHeaders,a=t.requestParams,s=t.requestInterval,l=t.isOpenRequestTimer,u=e.inject(xw,{contextRequestUrl:"",pageMode:"normal"}),c=u.contextRequestUrl,p=u.pageMode,h=e.inject(_w,{getGlobalModel:function(t){}}),d=h.getGlobalModel,f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C(void 0,void 0,void 0,pw.mark((function s(){var l,u,h,f,g,v;return pw.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(r&&i&&o&&"design"!==e.unref(p)){s.next=2;break}return s.abrupt("return");case 2:return l={},a.forEach((function(t){var n=t.key,r=t.value;if("object"===Ow(r)&&r.id){var i=d(r.id)||{},o=r.prop,a=r.propKey,s=null!=i[o]?i[o]:{},u=["date","range"].some((function(t){return Pw(null==i?void 0:i.type,t)}));null==a||""===a||u||(s=i[o][a]);var c=e.unref(s);u&&null!=a&&""!==a&&(c=(null==c?void 0:c.format((null==a?void 0:a.trim())||i.format))||""),l[n]=c}else"string"==typeof r&&(l[n]=r)})),l=Object.assign(Object.assign({},l),t),u="",h=Object.keys(l),f=h.length-1,h.forEach((function(t,e){switch(e){case 0:u+="?".concat(t,"=").concat(l[t],"&");break;case f:u+="".concat(t,"=").concat(l[t]);break;default:u+="".concat(t,"=").concat(l[t],"&")}})),s.prev=9,g=["get","head"].includes(i),s.next=13,y.default({baseURL:e.unref(c),url:g?r+u:r,method:i,headers:o,data:g?{}:l});case 13:return v=s.sent,n(v),s.abrupt("return",v);case 18:s.prev=18,s.t0=s.catch(9),console.error(s.t0);case 21:case"end":return s.stop()}}),s,null,[[9,18]])})))},g=l&&setInterval(f,1e3*s);return e.onUnmounted((function(){clearInterval(g)})),f};function Bw(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Vw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zw=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},r=n.name,i=void 0===r?"name":r,o=n.types,a=void 0===o?[]:o;i=(null==i?void 0:i.trim())||i;var s=new Set,l=new Map,u=t.length,c=a.length;if(1===u){for(var p=[],h=0;h<c;h++){var d=a[h],f=d.label,g=d.value,v=t[0][g];s.add(f),p.push(v)}var m=t[0][i]||"";l.set(m,p)}else for(var y=0;y<u;y++){var x=t[y],_=x[i];s.add(_);for(var b=0;b<c;b++){var w=a[b],S=w.label,k=w.value,C=x[k];if(l.has(S)){var M=l.get(S);M.push(C),l.set(S,M)}else l.set(S,[C])}}var T,A=Array.from(s),I=[],D=Bw(l);try{for(D.s();!(T=D.n()).done;){var O=G_(T.value,2),E=O[0],N=O[1];I.push({name:E,data:N})}}catch(t){D.e(t)}finally{D.f()}return{dimensions:A,dataset:I}},Fw=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return t;var n="";return n=(null==t?void 0:t.includes("://"))?t:ww+t,e&&(n="url(".concat(n,")")),n},Gw=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null!==(e=window.config)&&void 0!==e?e:{};n=Object.assign(Object.assign({},r),n);var i=t.match(/\{.*?\}/g);if(null==i||0===i.length)return t;for(var o=0;o<i.length;o++){var a=i[o],s=a.slice(1,a.length-1),l=n[s];t=null!=l?t.replace(a,l):t.replace(a,"")}return t},Uw=y.default.create({});Uw.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),Uw.interceptors.response.use((function(t){var e,n,i;return 500==+(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.code)&&r.message.error({content:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.msg)||(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.message)||"服务器异常",key:"SERVER_ERROR"}),t}),(function(t){if(t.message.includes("timeout"))r.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{var e=t.response.status;e>=400&&e<500&&r.message.error({content:"请求异常",key:"REQUEST_ERROR"}),e>=500&&r.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(t)}));var Ww=function(t){var n=t.type,r=t.graphicConfig,i=e.inject(_w,{getGlobalModel:function(t){}}).getGlobalModel;function o(t){var e=[];return t.leftAxisList.forEach((function(n){var r=!1;t.leftAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:n.calcValue?n.calcValue:"SUM",order:null,location:"LEFT",show:r};"INDICATOR_LIB"===t.source&&(i.hrpIndexCode=n.indexCode),i=a(n,i),e.push(i)})),t.rightAxisList.forEach((function(n){var r=!1;t.rightAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:"SUM",order:null,location:"LEFT",show:r};i=a(n,i),"INDICATOR_LIB"===t.source&&(i.hrpIndexCode=n.indexCode),e.push(i)})),e}function a(t,e){var n=Object.assign({},e);return t.calcMethod?"FORMULA"===t.calcMethod?(t.formulafuc&&(n.formula=t.formulafuc),n.calcType="FORMULA"):(n.builtInFormula=t.calculmethod,n.calcType="BUILT_IN",t.comeFrom&&(n.builtInValueSource=t.comeFrom),t.accessPrinciple&&(n.builtInCalcWay=t.accessPrinciple)):n.calcType="COLUMN",n}function s(t){for(var e=[],n=t.relativeList,r=0;r<n.length;r++){var o={alias:n[r].keyName,fieldName:n[r].searchName,rule:n[r].searchType||"NONE",fieldValue:"",valueType:"",variateName:n[r].variateName},a=i(n[r].id)||{};"the_date"===n[r].searchName?o.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(n[r].searchName)&&(o.valueType="TEXT"),"ecanDatePicker"===a.type&&(o.dateFormat=a.format,o.fieldValue=a.value.value.format(a.format)),e.push(o)}return e}function l(t,e){var n=e.find((function(e){return e.name===t.label}));n.sort.type&&("CUSTOM"!==n.sort.type?t.sort={label:n.sort.label,columnName:n.sort.columnName,type:"NORMAL",order:n.sort.type}:t.sort={label:n.label,columnName:n.columnName,type:"CUSTOM",customOrderColumns:n.sort.customOrderColumns}),n.customGroup&&n.customGroup.groupList.length>1&&(t.customGroup={groupInfoMap:{},otherGroupName:""},n.customGroup.groupList.forEach((function(e,n){0!==n&&(t.customGroup.groupInfoMap[e.key]=e.value)})),t.customGroup.otherGroupName=n.customGroup.otherName||""),t.rangeIndexTypeGuid=n.typeGuid,t.customFilterSqlPart=n.filterSql||""}function u(t,e){for(var n=0;n<t.children.length;n++)if(t.children[n].children.length>0){var r="";r="and"===t.type?"&&":"||",e.push({conditions:[],join:r}),u(t.children[n],e[e.length-1].conditions)}else if(t.children[n].fieldName){var i="",o={fieldName:t.children[n].fieldName,fieldType:t.children[n].itemType,rule:t.children[n].rule,fieldValue:"",label:t.children[n].label,version:t.children[n].version?t.children[n].version:100,targetSource:t.children[n].targetSource?t.children[n].targetSource:""};if(i=JSON.parse(JSON.stringify(t.children[n].fieldValue)),"DATE"===t.children[n].itemType)o.dateFormat=t.children[n].format,o.dateCalcTypes=t.children[n].dateCalcTypes,o.calcWays=t.children[n].calcWays,"time"===t.children[n].selectType?t.children[n].absoluteBool&&(i="#######",o.calcWays=t.children[n].calcWays):"component"===t.children[n].selectType&&(i="${"+t.children[n].relateCompent+"}"),o.dateFormat=t.children[n].format,o.dateCalcTypes=t.children[n].dateCalcTypes,o.calcWays=t.children[n].calcWays;else if("[object Array]"===Object.prototype.toString.call(i)){for(var a=[],s=0;s<i.length;s++)"全选"!==i[s]&&a.push(i[s]);i=a.join(",")}o.fieldValue=i,t.children.length>1&&n!==t.children.length-1&&("and"===t.type?o.join="&&":o.join="||"),e.push(o)}}function c(t,e,n){if(t){var r=n[e].find((function(e){return e.name===t.label}));if(r){var i=[],o=r.filterList;if(o)for(var a=0;a<o.length;a++)o[a].children.length>0&&u(o[a],i);return i}}}return function(){return C(this,void 0,void 0,pw.mark((function t(){var e,i,a,u,p,h,d,f,g,v,m,y,x,_;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r||(r={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]}),e=r.classify,0!==[].concat(aw(r.leftAxis),aw(r.rightAxis)).length){t.next=5;break}return t.abrupt("return");case 5:for(i=o(r),r.series.length>0&&(u=r.seriesList.find((function(t){return t.name===r.series[0]||t.nameBak===r.series[0]})),a={label:u.name,columnName:u.label}),e.length>0&&(p={label:e[0],columnName:e[0]},h=r.classifyList.find((function(t){return t.name===e[0]||t.nameBak===e[0]}))||{},p.columnName=h.label,l(p,r.classifyList),p.conditions=c(p,"classifyList",r)||[]),a&&(l(a,r.seriesList),a.conditions=c(a,"seriesList",r)||[]),d=0;d<i.length;d++)"RIGHT"===i[d].location?i[d].conditions=c(i[d],"rightAxisList",r):i[d].conditions=c(i[d],"leftAxisList",r);return f=s(r),g="SQL_VIEW",v="",m="",y="","INDICATOR_LIB"===r.source&&(g="INDICATOR_LIB",v=r.fixedDimSql,m=r.dataSourceId,y=r.idxLibMode),x={ecanBar:"bar"},t.prev=17,t.next=20,Uw.get("".concat(kw,"/user/anonymous?username=admin"),{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});case 20:return _=t.sent,t.abrupt("return",Uw.post("".concat(kw,"/diagram"),{dataViewId:r.dataViewId,plugin:"1",layer:"2",chartType:x[n],classification:p,classifications:undefined,indicatorList:i,series:a,sqlConditions:f,source:g,fixedDimSql:v,dataSourceId:m,idxLibMode:y},{headers:{Authentication:_.data.data.token}}));case 24:t.prev=24,t.t0=t.catch(17),console.error(t.t0);case 27:case"end":return t.stop()}}),t,null,[[17,24]])})))}},jw=e.defineComponent({name:"EcanPageConfig",props:Object.assign({},gw),setup:function(t){var n,r=this,i=e.computed((function(){return{width:t.width,height:t.height,backgroundColor:t.backgroundColor,backgroundImage:Fw(t.backgroundImage,!0),backgroundSize:t.backgroundSize}})),a=e.ref(0),s=e.ref(0),l=e.ref(0),u=e.ref(0),c=e.ref(!1),p=e.ref(),h=function(){return new Promise((function(n){e.nextTick((function(){t.width&&t.height?(a.value=parseFloat(t.width),s.value=parseFloat(t.height)):(a.value=p.value.clientWidth,s.value=p.value.clientHeight),l.value&&u.value||(l.value=window.screen.width,u.value=window.screen.height),n()}))}))},d=function(){var t=document.body.clientWidth,e=document.body.clientHeight,n=t/(a.value||l.value),r=e/(s.value||u.value);p.value&&(p.value.style.transform="scale(".concat(n,", ").concat(r,")"))},f=function(){return C(r,void 0,void 0,pw.mark((function t(){return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h();case 2:d();case 3:case"end":return t.stop()}}),t)})))};return e.onMounted((function(){return C(r,void 0,void 0,pw.mark((function t(){return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.value=!1,t.next=3,h();case 3:a.value&&s.value?(p.value.style.width="".concat(a.value,"px"),p.value.style.height="".concat(s.value,"px")):(p.value.style.width="".concat(l.value,"px"),p.value.style.height="".concat(u.value,"px")),d(),window.addEventListener("resize",o.debounce(f,100)),e=void 0,e=window.MutationObserver,(n=new e(f)).observe(p.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),c.value=!0;case 8:case"end":return t.stop()}var e}),t)})))})),e.onUnmounted((function(){window.removeEventListener("resize",f),n&&(n.disconnect(),n.takeRecords(),n=null)})),{style:i,container:p,ready:c}}}),Hw={id:"container",ref:"container"};j_("#container[data-v-f2b96d90]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-f2b96d90]{background-size:cover;overflow:hidden;position:relative}"),jw.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",Hw,[t.ready?(e.openBlock(),e.createElementBlock("div",{key:0,class:"page-config",style:e.normalizeStyle(t.style)},[e.renderSlot(t.$slots,"default")],4)):e.createCommentVNode("v-if",!0)],512)},jw.__scopeId="data-v-f2b96d90",jw.__file="src/setting/page-config/PageConfig.vue";var Yw=sw(jw),qw={contextRequestUrl:"",pageMode:"normal",theme:"light"},Xw=dw(qw),Zw=e.defineComponent({name:"EcanProviderConfig",props:Object.assign({},Xw),setup:function(t,n){var r=this,i=n.expose,o=e.ref(),a=function(){o.value.setAttribute("datav-theme",t.theme)};e.watch((function(){return t.theme}),(function(){a()})),e.onMounted((function(){a()}));var s=e.computed((function(){return Gw(t.contextRequestUrl)})),l=e.computed((function(){return t.pageMode})),u=e.computed((function(){return t.theme}));e.provide(xw,{contextRequestUrl:s,pageMode:l,theme:u});var c=new Map;e.provide(_w,{getGlobalModel:function(t){return c.get(t)},setGlobalModel:function(t,e){c.set(t,e)}});var p=x.default();e.provide(yw,{onEvent:function(t,n){p.on(t,(function(t){return"[object Function]"===Object.prototype.toString.call(n[t])&&n[t]()})),e.onUnmounted((function(){p.off(t)}))},offEvent:function(t){p.off(t)},emitEvent:function(t,e){p.emit(t,e)}});var h=new Map,d=function(t){return new Promise((function(e,n){var r=t.map((function(t){return t()}));Promise.all(r).then((function(t){e(t)})).catch((function(t){n(t)}))}))},f=function(){return C(r,void 0,void 0,pw.mark((function t(){var e,n,r,i;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=Array.from(h)).sort((function(t,e){return e[0]-t[0]})),n=e.length,t.prev=3,r=0;case 5:if(!(r<n)){t.next=12;break}return i=e[r][1],t.next=9,d(i);case 9:r++,t.next=5;break;case 12:h.clear(),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),console.error(t.t0);case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))};return e.provide(bw,{setRequest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(h.has(e)){var n=h.get(e);null==n||n.push(t)}else h.set(e,[t])},touchRequest:f}),i({touchRequest:f}),{providerConfig:o}}}),Jw={id:"ProviderConfig",ref:"providerConfig"};Zw.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 请勿去除属性id "),e.createElementVNode("div",Jw,[e.renderSlot(t.$slots,"default")],512)],2112)},Zw.__file="src/setting/provider-config/ProviderConfig.vue";var Kw=sw(Zw),Qw=Object.assign(Object.assign({},hw),{name:"基础文本",type:"ecanText",width:"100px",height:"40px",text:"文字",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{}}),$w=dw(Qw),tS=["refreshData","click"],eS=e.defineComponent({name:"EcanText",components:{Skeleton:ew},props:Object.assign({},$w),setup:function(t){var n=this,r=mw(t),i=e.ref(t.data),o=e.computed((function(){var n=t.text,r=e.unref(i),o=n.match(/\{.*?\}/g);if(null==o||0===o.length)return n;for(var a=0;a<o.length;a++){var s=o[a],l=s.slice(1,s.length-1),u=null!=r[l]?r[l]:"0";n=null!=u?n.replace(s,'<span style="color:'.concat(t.variableColor,";font-size:").concat(t.variableFontSize,'">').concat(u,"</span>")):n.replace(s,"")}return"<span>".concat(n,"</span>")})),a=e.inject(xw,{pageMode:"normal"}).pageMode,s=Rw(t),l=e.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function t(){var n,r;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("design"!==e.unref(a)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,l.value=!0,t.next=6,s();case 6:r=t.sent,i.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data)||{},t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,l.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},c=function(){u()};Cw(t,{refreshData:c}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(u,t.requestSort),Cw(t,{refreshData:c});var p=Mw(t.events)("click",(function(){}));return{style:r,myText:o,loading:l,click:p}}}),nS=["innerHTML"];j_(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),eS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton");return t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:e.normalizeStyle(t.style)},[e.createVNode(s,{loading:t.loading},null,8,["loading"])],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ecan-text",style:e.normalizeStyle(t.style),innerHTML:t.myText,onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},null,12,nS))},eS.__scopeId="data-v-41a337b4",eS.__file="src/text/text/Text.vue";var rS=sw(eS),iS=e.defineComponent({name:"EcanScrollText",setup:function(){return{text:e.ref("基础文本")}}}),oS={class:"red"};j_(".red[data-v-0cbdffb5]{color:red}"),iS.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",oS,e.toDisplayString(t.text),1)},iS.__scopeId="data-v-0cbdffb5",iS.__file="src/text/scroll-text/ScrollText.vue";var aS=sw(iS),sS=Object.assign(Object.assign({},hw),{name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"}),lS=dw(sS),uS=e.defineComponent({name:"EcanTimeDisplay",props:Object.assign({},lS),setup:function(t){var n=mw(t),r=e.ref(_.default().format(t.format)),i=null,o=function(){clearInterval(i),i=null};return e.onMounted((function(){i&&o(),i=setInterval((function(){r.value=_.default().add(1,"s").format(t.format)}),1e3)})),e.onUnmounted((function(){o()})),{style:n,time:r}}});j_(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),uS.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"time-display",style:e.normalizeStyle(t.style)},e.toDisplayString(t.time),5)},uS.__scopeId="data-v-6cb314e1",uS.__file="src/text/time-display/TimeDisplay.vue";var cS=sw(uS),pS=Object.assign(Object.assign({},hw),{type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]}),hS=dw(pS),dS=["refreshData","click"],fS=e.defineComponent({name:"EcanList",components:{Skeleton:ew},props:Object.assign({},hS),setup:function(t){var n=this,r=e.ref(t.data),i=mw(t,["backgroundColor"]),o=e.computed((function(){return t.useRanking?{textAlign:"center"}:{textAlign:"left"}})),a=Rw(t),s=e.inject(xw,{pageMode:"normal"}).pageMode,l=e.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function n(){var i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,l.value=!0,n.next=6,a();case 6:o=n.sent,r.value=(null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.data.rows)||[],n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,l.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},c=Mw(t.events)("click",(function(){}));return Cw(t,{refreshData:function(){u()}}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(u,t.requestSort),{style:i,formatFn:function(t,e){return null==e||""===e?t:{money:Nw,percentage:Lw,contrast:Lw}[e](t)||""},columnStyle:o,contrastClass:function(t,e){var n=parseFloat(t+"");if("contrast"!==e)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},dataSource:r,loading:l,click:c}}});function gS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vS(Object(n),!0).forEach((function(e){gS(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var yS={key:0,class:"title"},xS={key:0,class:"ranking"},_S={key:1,class:"ecan-list-content"},bS={key:0,class:"ranking"},wS=function(t){return e.pushScopeId("data-v-2d6c92c6"),t=t(),e.popScopeId(),t}((function(){return e.createElementVNode("div",{class:"icon"},null,-1)})),SS={class:"sort"},kS={key:2,class:"empty"};j_('.ecan-list[data-v-2d6c92c6]{overflow:hidden}.ecan-list-content[data-v-2d6c92c6]{align-content:flex-start;display:flex;flex-wrap:wrap;height:100%;overflow:auto;width:100%}.title[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;position:absolute;width:100%;z-index:9}.title-inner[data-v-2d6c92c6]{display:flex;flex:1;height:100%;padding-left:28px;padding-right:20px}.title-placeholder[data-v-2d6c92c6]{height:32px;width:100%}.item[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;padding-left:28px;padding-right:20px;width:100%}.column[data-v-2d6c92c6],.ranking[data-v-2d6c92c6]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking[data-v-2d6c92c6]{align-items:center;display:flex;flex-shrink:0}.icon[data-v-2d6c92c6]{background:#21bef7;height:8px;margin-right:17px;opacity:.6;width:12px}.item:nth-child(2) .icon[data-v-2d6c92c6]{opacity:.8}.item:first-child .icon[data-v-2d6c92c6]{opacity:1}.sort[data-v-2d6c92c6]{font-weight:600}.goUp[data-v-2d6c92c6]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-2d6c92c6]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.empty[data-v-2d6c92c6]{margin-top:15%;text-align:center}');j_(".ecan-list ::-webkit-scrollbar-track{background-color:#fff}.ecan-list .ant-table-cell-scrollbar{box-shadow:0 1px 0 1px transparent}.ecan-list ::-webkit-scrollbar{height:6px;width:6px}.ecan-list ::-webkit-scrollbar-thumb{background-color:#c8c9ca;border-radius:6px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-list .empty{color:#fff}"),fS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton");return e.openBlock(),e.createElementBlock("div",{class:"ecan-list",style:e.normalizeStyle(t.style)},[e.createVNode(s,{loading:t.loading},{default:e.withCtx((function(){return[t.useTitle?(e.openBlock(),e.createElementBlock("div",yS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columnCount,(function(n){return e.openBlock(),e.createElementBlock("div",{class:"title-inner",style:e.normalizeStyle({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1,"/ ").concat(t.columnCount,")"),marginRight:n%t.columnCount!=0?t.itemColSpan:""}),key:n},[t.useRanking?(e.openBlock(),e.createElementBlock("div",xS)):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(function(n,r){return e.openBlock(),e.createElementBlock("div",{class:"column",key:n.key||r,style:e.normalizeStyle(mS({color:n.titleColor},t.columnStyle))},e.toDisplayString(n.title),5)})),128))],4)})),128))])):e.createCommentVNode("v-if",!0),t.dataSource.length>0?(e.openBlock(),e.createElementBlock("div",_S,[t.useTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title-placeholder",style:e.normalizeStyle({marginBottom:t.itemRowSpan})},null,4)):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSource.slice(0,t.sliceCount),(function(r,i){return e.openBlock(),e.createElementBlock("div",{class:"item",style:e.normalizeStyle({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1," / ").concat(t.columnCount,")"),marginRight:(i+1)%t.columnCount!=0?t.itemColSpan:"",marginBottom:t.itemRowSpan}),key:r.id||i,onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},[t.useRanking?(e.openBlock(),e.createElementBlock("div",bS,[wS,e.createElementVNode("div",SS," Top "+e.toDisplayString(i+1),1)])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(function(n){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["column",t.contrastClass(r[n.key],n.format)]),key:n.key,style:e.normalizeStyle(mS({fontSize:n.fontSize,color:""===t.contrastClass(r[n.key],n.format)?n.color:"",fontWeight:n.fontWeight},t.columnStyle))},e.toDisplayString((null!=n.format||""!==n.format)&&t.formatFn(r[n.key],n.format)),7)})),128))],4)})),128))])):(e.openBlock(),e.createElementBlock("div",kS," 暂无数据 "))]})),_:1},8,["loading"])],4)},fS.__scopeId="data-v-2d6c92c6",fS.__file="src/text/list/List.vue";var CS=sw(fS),MS=Object.assign(Object.assign({},hw),{name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px"}),TS=dw(MS),AS=["refreshData","click"],IS=e.defineComponent({name:"EcanProportion",components:{AProgress:r.Progress,Skeleton:ew},props:Object.assign({},TS),setup:function(t){var n=this,r=mw(t),i=e.computed((function(){var e=t.width;return parseFloat(e)})),o=e.ref(t.data),a=e.computed((function(){var t,n=e.unref(o);return null==n?0:100*(null!==(t=Object.values(n)[0])&&void 0!==t?t:0)})),s=e.computed((function(){var t=e.unref(o)||{};return Object.keys(t)[0]})),l=e.computed((function(){var n,r=t.text,i=e.unref(o),l=r.match(/\{.*?\}/g)||[];if(""===r)return e.unref(a)+"%";for(var u=0;u<l.length;u++){var c=l[u],p=c.slice(1,c.length-1),h="";r=null!=(h=e.unref(s)===p?e.unref(a).toFixed(2):null!==(n=i[p])&&void 0!==n?n:0)?r.replace(c,h):r.replace(c,"")}return r})),u=e.inject(xw,{pageMode:"normal"}).pageMode,c=Rw(t),p=e.ref(!1),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,c();case 6:i=n.sent,o.value=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))};Cw(t,{refreshData:function(){h()}});var d=Mw(t.events)("click",(function(){}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),{style:r,myWidth:i,text:l,value:a,loading:p,click:d}}});j_(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),IS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton"),l=e.resolveComponent("a-progress");return e.openBlock(),e.createElementBlock("div",{class:"ecan-proportion",style:e.normalizeStyle(t.style)},[e.createVNode(l,{class:"progress",percent:t.value,width:t.myWidth,type:t.strokeType,strokeColor:t.strokeColor,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,strokeWidth:t.strokeWidth,gapDegree:"dashboard"===t.strokeType?75:0,onClick:t.click},{format:e.withCtx((function(){return[t.loading?(e.openBlock(),e.createBlock(s,{key:0,loading:t.loading},null,8,["loading"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"format",style:e.normalizeStyle({width:t.strokeTextWidth,fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight,lineHeight:t.lineHeight})},e.toDisplayString(t.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)},IS.__scopeId="data-v-4a9dae06",IS.__file="src/text/proportion/Proportion.vue";var DS=sw(IS),OS=Object.assign(Object.assign({},hw),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),ES=dw(OS),NS=e.defineComponent({name:"EcanInput",components:{AInput:r.Input},props:Object.assign({},ES),setup:function(t){return{style:mw(t)}}});j_(".input[data-v-b714c8ac]{height:100%;width:100%}"),NS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",{class:"ecan-input",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"input",value:t.value,placeholder:t.placeholder},null,8,["value","placeholder"])],4)},NS.__scopeId="data-v-b714c8ac",NS.__file="src/control/input/Input.vue";var LS=sw(NS),PS=Object.assign(Object.assign({},hw),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:_.default().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),RS=dw(PS),BS=["dateChange"],VS=e.defineComponent({name:"EcanDatePicker",props:Object.assign({},RS),components:{ADatePicker:r.DatePicker},setup:function(t){var n=mw(t),r=e.ref(_.default(t.value));(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,format:t.format,value:r});var i=t.events,o=Mw(i)("dateChange",(function(){}));return Cw(t,{dateChange:o}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:r,locale:b.default,dateChange:o}}});j_(".date-picker[data-v-18740e6e]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-date-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .anticon-calendar,[datav-theme=light] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=darkBlue] .ecan-date-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-date-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-date-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#1890ff}"),VS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-date-picker");return e.openBlock(),e.createElementBlock("div",{class:"ecan-date-picker",style:e.normalizeStyle(t.style)},[e.createCommentVNode(" 宽度style有效,class无效 "),e.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),format:t.format,picker:t.picker,showTime:t.showTime,locale:t.locale,onChange:t.dateChange,getPopupContainer:t.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)},VS.__scopeId="data-v-18740e6e",VS.__file="src/control/date-picker/DatePicker.vue";var zS=sw(VS),FS=Object.assign(Object.assign({},hw),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),GS=dw(FS),US=["selectChange"],WS=e.defineComponent({name:"EcanSelect",components:{ASelect:r.Select},props:Object.assign({},GS),setup:function(t){var n=this,r=mw(t),i=Rw(t),o=e.inject(xw,{pageMode:"normal"}).pageMode,a=e.ref(t.data),s=e.ref(t.value||t.data[0]);(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,value:s});var l=t.events,u=Mw(l)("selectChange");return Cw(t,{selectChange:u}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)((function(){return C(n,void 0,void 0,pw.mark((function n(){var r,l,u,c;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(o)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,i();case 4:u=n.sent,a.value=(null===(l=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.data)||void 0===l?void 0:l.rows)||[],c=e.unref(a)[0],""===t.value&&null!=c&&(s.value=c[t.dataFieldNames.value]);case 8:case"end":return n.stop()}}),n)})))}),t.requestSort),{style:r,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:s,selectChange:u,options:a}}});j_(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");j_("[datav-theme=light] .ant-select:not(.ant-select-customize-input) .ant-select-selector{border:1px solid #d9d9d9}[datav-theme=light] .ant-select-dropdown{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85)}[datav-theme=light] .ant-empty-img-simple-g{stroke:#d9d9d9}[datav-theme=light] .ant-empty-img-simple-ellipse{fill:#f5f5f5}[datav-theme=light] .ant-empty-img-simple-path{fill:#f5f5f5;stroke:#d9d9d9}[datav-theme=light] .ant-empty-description{color:rgba(0,0,0,.25)}[datav-theme=light] .anticon-down{color:#333}[datav-theme=darkBlue] .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-select-dropdown{background-color:#05164c;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-empty-img-simple-g{stroke:#69befa}[datav-theme=darkBlue] .ant-empty-img-simple-ellipse{fill-opacity:0}[datav-theme=darkBlue] .ant-empty-img-simple-path{fill:#69befa;stroke:#69befa}[datav-theme=darkBlue] .ant-empty-description{color:#69befa}[datav-theme=darkBlue] .ant-select-item,[datav-theme=darkBlue] .anticon-down{color:#fff}[datav-theme=darkBlue] .ant-select-item-option-active,[datav-theme=darkBlue] .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:#1f63a3}"),WS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",{class:"ecan-select",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"select",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),options:t.options,getPopupContainer:t.getPopupContainer,"field-names":t.dataFieldNames,onChange:t.selectChange},null,8,["value","options","getPopupContainer","field-names","onChange"])],4)},WS.__scopeId="data-v-b6743858",WS.__file="src/control/select/Select.vue";var jS=sw(WS),HS=Object.assign(Object.assign({},hw),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),YS=dw(HS),qS=["dateChange"],XS=e.defineComponent({name:"EcanRangePicker",components:{ARangePicker:r.RangePicker},props:Object.assign({},YS),setup:function(t){var n=mw(t),r=t.startTime,i=t.endTime,o=e.ref([null,null]);e.watch((function(){return[r,i]}),(function(){o.value=r&&i?[_.default(r),_.default(i)]:[null,null]}),{immediate:!0});var a=e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel,s=e.computed((function(){return e.unref(o)[0]})),l=e.computed((function(){return e.unref(o)[1]}));a(t.id,{type:t.type,format:t.format,startTime:s,endTime:l});var u=t.events,c=Mw(u)("dateChange",(function(){}));return Cw(t,{dateChange:c}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:b.default,dateChange:c,myValue:o}}});j_(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-range-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .anticon-calendar,[datav-theme=light] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-separator .anticon{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-range-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-separator .anticon{color:#fff}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled .ant-picker-cell-inner{color:#999}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled:before{background:#333}"),XS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-range-picker");return e.openBlock(),e.createElementBlock("div",{class:"ecan-range-picker",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),format:t.format,picker:t.picker,locale:t.locale,getPopupContainer:t.getPopupContainer,onChange:t.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)},XS.__scopeId="data-v-9eb3e236",XS.__file="src/control/range-picker/RangePicker.vue";var ZS=sw(XS),JS=Object.assign(Object.assign({},hw),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),KS=dw(JS),QS=["click"],$S=e.defineComponent({name:"EcanButton",components:{AButton:r.Button},props:Object.assign({},KS),setup:function(t){var e=mw(t),n=t.events;return{style:e,click:Mw(n)("click")}}}),tk=e.createTextVNode(" 测试 ");j_(".button[data-v-34f909d8]{height:100%;width:100%}"),$S.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",{class:"ecan-input",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"button",block:"",onClick:t.click},{default:e.withCtx((function(){return[tk]})),_:1},8,["onClick"])],4)},$S.__scopeId="data-v-34f909d8",$S.__file="src/control/button/Button.vue";var ek=sw($S),nk=Object.assign(Object.assign({},hw),{type:"ecanTabs",name:"标签页",keyName:"标签页",width:"200px",tabFontSize:"14px",backgroundColor:"",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"0px",value:"",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}]}),rk=dw(nk),ik=["tabChange"],ok=e.defineComponent({name:"EcanTabs",props:Object.assign({},rk),setup:function(t){var n,r=mw(t),i=e.ref(0),o=e.ref(t.data),a=e.ref(t.value||e.unref(o)[0]&&(null===(n=e.unref(o)[0])||void 0===n?void 0:n.value)||""),s=t.events,l=Mw(s)("tabChange",(function(t,e){a.value=(null==t?void 0:t.value)||"",i.value=e}));return(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{value:a}),Cw(t,{tabChange:l}),{style:r,activeKey:i,isActive:function(t){return i.value===t},tabChange:l,myData:o,useImagePath:Fw}}}),ak=["onClick"];j_(".ecan-tabs[data-v-28df6758]{box-sizing:border-box;color:#333;display:flex}.tab[data-v-28df6758]{align-items:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;flex:1;justify-content:center}.tab[data-v-28df6758]:last-child{margin-right:0!important}"),ok.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"ecan-tabs",style:e.normalizeStyle(t.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.myData,(function(n,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tab"]),style:e.normalizeStyle({color:t.isActive(r)?t.activeTabColor:t.tabColor,backgroundImage:t.isActive(r)?t.useImagePath(t.activeTabBackgroundImage,!0):t.useImagePath(t.tabBackgroundImage,!0),marginRight:t.tabBarGutter,fontSize:t.tabFontSize}),key:r,onClick:function(e){return t.tabChange(n,r)}},e.toDisplayString(n.title),13,ak)})),128))],4)},ok.__scopeId="data-v-28df6758",ok.__file="src/control/tabs/Tabs.vue";var sk=sw(ok),lk=Object.assign(Object.assign({},hw),{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{b} : {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%"}),uk=dw(lk),ck=["click","refreshData"];function pk(t,e,n){var r=N.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var hk=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||wr,"string"==typeof e?i=pk(e,n,r):ft(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(Lt(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return k(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=pk("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Qr(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Qr(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var p=new Qr(0,0,0,0);p.copy(c),p.union(t),o[u]=p,n=!0;break}if(s){l.copy(t),l.union(c);var h=t.width*t.height,d=c.width*c.height,f=l.width*l.height-h-d;f<r&&(r=f,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new Qr(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(d=t[c]){var p=d.shouldBePainted(n,r,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!p)?d.getPrevPaintRect():null)&&u(f);var h=p&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;p=(d=e[c]).shouldBePainted(n,r,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var p=this.domBack;function h(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;yt(e)?(a=e.__canvasGradient||wv(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a):null!=e.image&&(a=Ev(i,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(p,t,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&nt(n,(function(t){h(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(ee),dk=hk,fk=1e5,gk=314159,vk=.01;var mk=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||wr,this._singleCanvas=i,this.root=t,t.style&&(Lt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new dk(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=gk,o.push(gk),this._domRoot=t}else{this._width=kv(t,0,n),this._height=kv(t,1,n);var p=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(fk)),r||(r=n.ctx).save(),Gv(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(fk)},t.prototype.paintOne=function(t,e){Fv(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Fe((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(gk).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,p=function(a){var s,l=i[a],p=l.ctx,d=o&&l.createRepaintRects(t,e,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,d);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=h.dpr,b=0;b<d.length;++b){var w=d[b];p.save(),p.beginPath(),p.rect(w.x*_,w.y*_,w.width*_,w.height*_),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,d=0;d<i.length;d++)p(d);return A.wxa&&nt(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Gv(a,t,i,o),t.setPrevPaintRect(s))}else Gv(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=gk);var n=this._layers[t];return n||((n=new dk("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Z(n,this._layerConfig[t],!0):this._layerConfig[t-vk]&&Z(n,this._layerConfig[t-vk],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(n[t])"production"!==process.env.NODE_ENV&&q("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else"production"!==process.env.NODE_ENV&&q("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?vk:0),this._needsManuallyCompositing),u.__builtin__||q("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,nt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Z(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+vk)Z(this._layers[i],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice($(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=kv(i,0,r),e=kv(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(gk).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new dk("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Gv(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),yk=mk;function xk(t){t.registerPainter("canvas",yk)}var _k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return k(e,t),e.prototype.getInitialData=function(t){if("production"!==process.env.NODE_ENV){var e=t.coordinateSystem;if("polar"!==e&&"cartesian2d"!==e)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new _i,n=_v("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=_v(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}($f),bk=_k;function wk(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Jd(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Jd(t,e,n[a]));return o.join(" ")}}function Sk(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ut(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var kk=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return k(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=_v(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Ck,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){dl(this.childAt(0))},e.prototype.downplay=function(){fl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(h=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):ic(h,p,a,n),cc(h)}if(this._updateCommon(t,n,s,r,i),l){var h=this.childAt(0);if(!u){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,oc(h,p,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,p,h,d,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,p=r.labelStatesModels,h=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),p=Bc(v),h=m.getShallow("scale"),d=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=bv(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof fs){var w=f.style;f.useStyle(K({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(K({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Rc(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):wk(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");if(M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var T=Math.max(dt(h)?h:1.1,3/this._sizeY);M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T}this.setSymbolScale(1),Ml(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Vs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&sc(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sc(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return ut(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e}(_i);function Ck(t,e){this.parent.drift(t,e)}var Mk=kk;function Tk(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Ak(t){return null==t||ft(t)||(t={isIgnore:t}),t||{}}function Ik(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Bc(e),cursorStyle:e.get("cursor")}}var Dk=function(){function t(t){this.group=new _i,this._SymbolCtor=t||Mk}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ak(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Ik(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(Tk(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,p){var h=i.getItemGraphicEl(p),d=u(c);if(Tk(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(t,c,s,l)).setPosition(d);else{h.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?h.attr(v):ic(h,v,r)}n.add(h),t.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ik(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Ak(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Tk(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Ec(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),Ok=Dk;function Ek(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:dt(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,p=rt(t.dimensions,(function(t){return e.mapDimension(t)})),h=!1,d=e.getCalculationInfo("stackResultDimension");return Ny(e,p[0])&&(h=!0,p[0]=d),Ny(e,p[1])&&(h=!0,p[1]=d),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Nk(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Lk=Math.min,Pk=Math.max;function Rk(t,e){return isNaN(t)||isNaN(e)}function Bk(t,e,n,r,i,o,a,s,l){for(var u,c,p,h,d,f,g=n,v=0;v<r;v++){var m=e[2*g],y=e[2*g+1];if(g>=i||g<0)break;if(Rk(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),p=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<r;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(m=e[2*g])-u,_=(y=e[2*g+1])-c;var k=v+1;if(l)for(;Rk(w,S)&&k<r;)k++,w=e[2*(b+=o)],S=e[2*b+1];var C=.5,M=0,T=0,A=void 0,I=void 0;if(k>=r||Rk(w,S))d=m,f=y;else{M=w-u,T=S-c;var D=m-u,O=w-m,E=y-c,N=S-y,L=void 0,P=void 0;if("x"===s){var R=M>0?1:-1;d=m-R*(L=Math.abs(D))*a,f=y,A=m+R*(P=Math.abs(O))*a,I=y}else if("y"===s){var B=T>0?1:-1;d=m,f=y-B*(L=Math.abs(E))*a,A=m,I=y+B*(P=Math.abs(N))*a}else L=Math.sqrt(D*D+E*E),d=m-M*a*(1-(C=(P=Math.sqrt(O*O+N*N))/(P+L))),f=y-T*a*(1-C),I=y+T*a*C,A=Lk(A=m+M*a*C,Pk(w,m)),I=Lk(I,Pk(S,y)),A=Pk(A,Lk(w,m)),f=y-(T=(I=Pk(I,Lk(S,y)))-y)*L/P,d=Lk(d=m-(M=A-m)*L/P,Pk(u,m)),f=Lk(f,Pk(c,y)),A=m+(M=m-(d=Pk(d,Lk(u,m))))*P/L,I=y+(T=y-(f=Pk(f,Lk(c,y))))*P/L}t.bezierCurveTo(p,h,d,f,m,y),p=A,h=I}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var Vk=function(){this.smooth=0,this.smoothConstraint=!0},zk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vk},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Rk(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Rk(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Bk(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Fa.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,p=void 0,h=void 0,d=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],p=i[l++],h=i[l++],d=i[l++],f=i[l++];var m=a?nn(n,u,p,d,t,s):nn(r,c,h,f,t,s);if(m>0)for(var y=0;y<m;y++){var x=s[y];if(x<=1&&x>=0){v=a?tn(r,c,h,f,x):tn(n,u,p,d,x);return a?[t,v]:[v,t]}}n=d,r=f}}},e}(ss),Fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e}(Vk),Gk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return k(e,t),e.prototype.getDefaultShape=function(){return new Fk},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Rk(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Rk(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Bk(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Bk(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(ss);function Uk(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var p=new ws({shape:{x:a,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),d=h.isHorizontal(),f=h.inverse;d?(f&&(p.shape.x+=l),p.shape.width=0):(f||(p.shape.y+=u),p.shape.height=0);var g=ct(i)?function(t){i(t,p)}:null;oc(p,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return p}function Wk(t,e,n){var r=t.getArea(),i=Ai(r.r0,1),o=Ai(r.r,1),a=new xu({shape:{cx:Ai(t.cx,1),cy:Ai(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,oc(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function jk(t,e){return t.type===e}function Hk(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Yk(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function qk(t,e){var n=Yk(t),r=n[0],i=n[1],o=Yk(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Xk(t){return dt(t)?t:t?.5:0}function Zk(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],p=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||p.push(t[s],t[s+1]);t=p}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,d=[];l[o]=d[o]=h,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Jk(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=On(e[i]),s=On(e[o]),l=r-i,u=Rn([_n(Cn(a[0],s[0],l)),_n(Cn(a[1],s[1],l)),_n(Cn(a[2],s[2],l)),bn(Cn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function Kk(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Mk.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return nt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Qk(t,e){return[t[2*e],t[2*e+1]]}function $k(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ws.length;e++)if(t.get([Ws[e],"endLabel","show"]))return!0;return!1}function tC(t,e,n,r){if(jk(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=$k(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Uk(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var p=c.shape,h=Math.max(p.width,p.height);u?(p.y-=h,p.height+=2*h):(p.x-=h,p.width+=2*h)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Wk(e,n,r)}var eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(){var t=new _i,e=new Ok;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,p=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=Ek(i,a,y),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=nx(2*r),o=0;o<r;o++){var a=Nk(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&Kk(t,a,i),k=this._data;k&&k.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))})),b||h.remove(),o.add(g);var C,M=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count())if("cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=rt(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,p=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),p.reverse());var h=Jk(u,"x"===i?n.getWidth():n.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?p[1]?p[1]:u[c-1].color:p[0]?p[0]:u[0].color;var f=h[0].coord-10,g=h[d-1].coord+10,v=g-f;if(v<.001)return"transparent";nt(h,(function(t){t.offset=(t.coord-f)/v})),h.push({offset:d?h[d-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:p[0]||"transparent"});var m=new Hu(0,0,0,0,h,!0);return m[i]=f,m[i+"2"]=g,m}"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style only support x or y dimension.")}else"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style is only supported on cartesian2d.")}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===i.type&&M===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,nh(T));var A=g.getClipPath();if(A)oc(A,{shape:tC(this,i,!1,t).shape},t);else g.setClipPath(tC(this,i,!0,t));b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Hk(this._stackedOnPoints,_)&&Hk(this._points,u)||(v?this._doUpdateAnimation(a,_,i,n,M,y,w):(M&&(u=Zk(u,i,M,w),_&&(_=Zk(_,i,M,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,i,C),M&&(u=Zk(u,i,M,w),_&&(_=Zk(_,i,M,w))),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),c||this._initOrUpdateEndLabel(t,i,nh(T)),g.setClipPath(tC(this,i,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),O=I.get("blurScope"),E=I.get("disabled");(d.useStyle(Q(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Il(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Vs(d).seriesIndex=t.seriesIndex,Ml(d,D,O,E);var N=Xk(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:L,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Q(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=Xk(P.get("smooth"))),f.setShape({smooth:N,stackedOnSmooth:R,smoothMonotone:L,connectNulls:w}),Il(f,t,"areaStyle"),Vs(f).seriesIndex=t.seriesIndex,Ml(f,D,O,E)}var B=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Vs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=vo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),p=t.get("z");(s=new Mk(i,o)).x=l,s.y=u,s.setZ(c,p);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=p,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pg.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=vo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pg.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;ll(this._polyline,t),e&&ll(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new zk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Gk({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");ct(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=ct(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var p=[t.x,t.y],h=void 0,d=void 0,f=void 0;if(n)if(i){var g=n,v=e.pointToCoord(p);r?(h=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(h=g.r0,d=g.r,f=v[0])}else{var m=n;r?(h=m.x,d=m.x+m.width,f=t.x):(h=m.y+m.height,d=m.y,f=t.y)}var y=d===h?0:(f-h)/(d-h);a&&(y=1-y);var x=ct(u)?u(o):l*y+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if($k(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Bs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&(Rc(o,Bc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Sk(i,n):wk(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,p=c.get("connectNulls"),h=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,y,b),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!p){var M=Qk(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),i&&(C=c.getRawValue(S[0]))}else{(M=l.getPointOn(y,b))&&s.attr({x:M[0]+x,y:M[1]+_});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(C=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(dt(r))return Ai(f=to(n||0,r,i),o?Math.max(Di(n||0),Di(r)):e);if(pt(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,d=l[c],f=to(h,d,i);a[c]=Ai(f,o?Math.max(Di(h),Di(d)):e)}}return a}(n,h,T,A,w.t))}r.lastFrameIndex=S[0]}else{var I=1===t||r.lastFrameIndex>0?S[0]:0;M=Qk(u,I);i&&(C=c.getRawValue(I)),s.attr({x:M[0]+x,y:M[1]+_})}i&&jc(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],p=[],h=[],d=[],f=[],g=[],v=Ek(i,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var k=m[w],C=m[w+1],M=y[S],T=y[S+1];(isNaN(k)||isNaN(C))&&(k=M,C=T),u.push(k,C),c.push(M,T),p.push(n[w],n[w+1]),h.push(r[S],r[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,I=v.dataDimsForPoint,D=i.dataToPoint([e.get(I[0],A),e.get(I[1],A)]);S=2*A,u.push(D[0],D[1]),c.push(y[S],y[S+1]);var O=Nk(v,i,e,A);p.push(O[0],O[1]),h.push(r[S],r[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(d.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var E=u.length,N=nx(E),L=nx(E),P=nx(E),R=nx(E),B=[];for(x=0;x<f.length;x++){var V=f[x],z=2*x,F=2*V;N[z]=u[F],N[z+1]=u[F+1],L[z]=c[F],L[z+1]=c[F+1],P[z]=p[F],P[z+1]=p[F+1],R[z]=h[F],R[z+1]=h[F+1],B[x]=d[V]}return{current:N,next:L,stackedOnCurrent:P,stackedOnNext:R,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),p=c.current,h=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(p=Zk(c.current,n,i,a),h=Zk(c.stackedOnCurrent,n,i,a),d=Zk(c.next,n,i,a),f=Zk(c.stackedOnNext,n,i,a)),qk(p,d)>3e3||l&&qk(h,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=p;var g={shape:{points:d}};c.current!==p&&(g.shape.__points=c.next),s.stopAnimation(),ic(s,g,u),l&&(l.setShape({points:p,stackedOnPoints:h}),l.stopAnimation(),ic(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){if("="===m[y].cmd){var x=t.getItemGraphicEl(m[y].idx1);x&&v.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pg),nC=eC;function rC(t,e){return{seriesType:t,plan:ng(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=rt(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ny(n,a[0])&&(a[0]=l),Ny(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&nx(n*s),a=[],l=[],h=t.start,d=0;h<t.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(p,h),f=r.dataToPoint(a,null,l);o?(i[d++]=f[0],i[d++]=f[1]):e.setItemLayout(h,f.slice())}o&&e.setLayout("points",i)}}}}}}var iC={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},oC=function(t){return Math.round(t.length/2)};function aC(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/p);if(isFinite(h)&&h>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var d=void 0;pt(i)?d=iC[i]:ct(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/h,d,oC))}}}}}function sC(t){t.registerChartView(nC),t.registerSeriesModel(bk),t.registerLayout(rC("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,aC("line"))}var lC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.getInitialData=function(t,e){return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}($f);$f.registerClass(lC);var uC=lC,cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.getInitialData=function(){return Ly(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=lp(uC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(uC),pC=cC,hC=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},dC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return k(e,t),e.prototype.getDefaultShape=function(){return new hC},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,p=2*Math.PI,h=c?u-l<p:l-u<p;h||(l=u-(c?p:-p));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);h?(t.moveTo(d*i+n,f*i+r),t.arc(d*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(ss),fC=dC;function gC(t,e,n){return e*Math.sin(t)*(n?-1:1)}function vC(t,e,n){return e*Math.cos(t)*(n?1:-1)}var mC=Math.max,yC=Math.min;var xC=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return k(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");"cartesian2d"===i||"polar"===i?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r)):"production"!==process.env.NODE_ENV&&Xi("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Ec(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,p=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==r.type&&Xi("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==e.type&&Xi("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);p&&this._enableRealtimeSort(p,a,n);var h=t.get("clip",!0)||p,d=function(t,e){var n=t.getArea&&t.getArea();if(jk(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=TC[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?xu:ws)({shape:LC(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=TC[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&MC[l.type](r)){var s=!1;h&&(s=_C[l.type](d,r));var v=bC[l.type](t,a,e,r,i,c,u.model,!1,f);p&&(v.forceLabelAnimation=!0),IC(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):p?wC(p,c,v,r,e,i,!1,!1):oc(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=TC[l.type](a,e,r);if(g){var k=void 0;0===x.length?k=w(n):((k=x[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&k.setShape("r",m),y[e]=k);var C=TC[l.type](a,e);ic(k,{shape:LC(i,C,l)},c,e)}var M=s.getItemGraphicEl(n);if(a.hasValue(e)&&MC[l.type](S)){var T=!1;if(h&&(T=_C[l.type](d,S))&&o.remove(M),M?cc(M):M=bC[l.type](t,a,e,S,i,c,u.model,!!M,f),p&&(M.forceLabelAnimation=!0),b){var A=M.getTextContent();if(A){var I=jc(A);null!=I.prevValue&&(I.prevValue=I.value)}}else IC(M,a,e,r,S,t,i,"polar"===l.type);_?M.attr({shape:S}):p?wC(p,c,M,S,e,i,!0,b):ic(M,{shape:S},t,e,null),a.setItemGraphicEl(e,M),M.ignore=T,o.add(M)}else o.remove(M)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&uc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new _i);S.removeAll();for(var k=0;k<y.length;++k)S.add(y[k]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),EC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),EC(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,r,i){return t?"polar"===t.type?Wk(t,e,n):"cartesian2d"===t.type?Uk(t,e,n,r,i):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:rt(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){uc(e,t,Vs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pg),_C={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=mC(e.x,t.x),s=yC(e.x+e.width,i),l=mC(e.y,t.y),u=yC(e.y+e.height,o),c=s<a,p=u<l;return e.x=c&&a>i?s:a,e.y=p&&l>o?u:l,e.width=c?0:s-a,e.height=p?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||p},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=yC(e.r,t.r),o=mC(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},bC={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new ws({shape:K({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?fC:xu,c=new u({shape:r,z2:1});c.name="item";var p,h,d=AC(i);if(c.calculateTextPosition=(p=d,h=({isRoundCap:u===fC}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return si(t,e,n);var i=p(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=h?Math.abs(u-c)/2:0,y=Math.cos,x=Math.sin,_=s+u*y(f),b=l+u*x(f),w="left",S="top";switch(i){case"startArc":_=s+(c-o)*y(v),b=l+(c-o)*x(v),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*y(v),b=l+(c+o)*x(v),w="center",S="bottom";break;case"startAngle":_=s+d*y(f)+gC(f,o+m,!1),b=l+d*x(f)+vC(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*y(f)+gC(f,-o+m,!1),b=l+d*x(f)+vC(f,-o+m,!1),w="left",S="middle";break;case"middle":_=s+d*y(v),b=l+d*x(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*y(v),b=l+(u+o)*x(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*y(v),b=l+(u-o)*x(v),w="center",S="top";break;case"endAngle":_=s+d*y(g)+gC(g,o+m,!0),b=l+d*x(g)+vC(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*y(g)+gC(g,-o+m,!0),b=l+d*x(g)+vC(g,-o+m,!0),w="right",S="middle";break;default:return si(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?0:r.startAngle,g[f]=r[f],(s?ic:oc)(c,{shape:g},o)}return c}};function wC(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?ic:oc)(n,{shape:l},e,i,null),(a?ic:oc)(n,{shape:u},e?t.baseAxis.model:null,i)}function SC(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var kC=["x","y","width","height"],CC=["cx","cy","r","startAngle","endAngle"],MC={cartesian2d:function(t){return!SC(t,kC)},polar:function(t){return!SC(t,CC)}},TC={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function AC(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function IC(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Bc(r);Rc(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:wk(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=t.getTextContent();if(s&&h){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,r){if(dt(r))t.setTextConfig({rotation:r});else if(ut(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===d?c:d,AC(a),r.get(["label","rotate"]))}!function(t,e,n,r){if(t){var i=jc(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}(h,p,o.getRawValue(n),(function(t){return Sk(e,t)}));var f=r.getModel(["emphasis"]);Ml(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Il(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",nt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var DC=function(){},OC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return k(e,t),e.prototype.getDefaultShape=function(){return new DC},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(ss);function EC(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new OC({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var p=new OC({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),Vs(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",NC),p.on("mousemove",NC)),n&&n.push(p)}var NC=gg((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,p=o.length/3;c<p;c++){var h=3*c;if(l[r]=u,l[i]=o[h+2],s[r]=o[h+r],s[i]=o[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Vs(this).dataIndex=e>=0?e:null}),30,!1);function LC(t,e,n){if(jk(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var PC=xC;function RC(t){t.registerChartView(PC),t.registerSeriesModel(pC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,lt(sx,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:ng(),reset:function(t){if(lx(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Ny(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),h=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),d=ux(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=d&&nx(3*i),u=d&&s&&nx(3*i),y=d&&nx(i),x=n.master.getRect(),_=p?x.width:x.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),k=b.get(a,r),C=h,M=void 0;c&&(M=+S-b.get(o,r));var T=void 0,A=void 0,I=void 0,D=void 0;if(p){var O=n.dataToPoint([S,k]);c&&(C=n.dataToPoint([M,k])[0]),T=C,A=O[1]+m,I=O[0]-C,D=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([k,S]),c&&(C=n.dataToPoint([k,M])[1]),T=O[0]+m,A=C,I=v,D=O[1]-C,Math.abs(D)<f&&(D=(D<=0?-1:1)*f);d?(l[w]=T,l[w+1]=A,l[w+2]=p?I:D,u&&(u[w]=p?x.x:T,u[w+1]=p?A:x.y,u[w+2]=_),y[r]=r):e.setItemLayout(r,{x:T,y:A,width:I,height:D}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:p})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,aC("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var BC=2*Math.PI,VC=Math.PI/180;function zC(t,e){return uh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function FC(t,e){var n=zC(t,e),r=t.get("center"),i=t.get("radius");ut(i)||(i=[0,i]),ut(r)||(r=[r,r]);var o=Ti(n.width,e.getWidth()),a=Ti(n.height,e.getHeight()),s=Math.min(o,a);return{cx:Ti(r[0],o)+n.x,cy:Ti(r[1],a)+n.y,r0:Ti(i[0],s/2),r:Ti(i[1],s/2)}}function GC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=zC(t,n),o=FC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*VC,p=t.get("minAngle")*VC,h=0;e.each(r,(function(t){!isNaN(t)&&h++}));var d=e.getSum(r),f=Math.PI/(d||h)*2,g=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),y=e.getDataExtent(r);y[0]=0;var x=BC,_=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===d&&m?f:t*f:BC/h)<p?(r=p,x-=p):_+=t;var i=b+w*r;e.setItemLayout(n,{angle:r,startAngle:b,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?Mi(t,y,[u,l]):l}),b=i}})),x<BC&&h)if(x<=.001){var S=BC/h;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else f=x/_,b=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===p?p:t*f;r.startAngle=b,r.endAngle=b+w*i,b+=w*i}}))}))}var UC=Math.PI/180;function WC(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,p=0;p<c;p++)if("outer"===t[p].position&&"labelLine"===t[p].labelAlignTo){var h=t[p].label.x-u;t[p].linePoints[1][0]+=h,t[p].label.x=u}O_(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-e-l.len2*i,h=r+l.len,f=Math.abs(p)<h?Math.sqrt(c*c/(1-p*p/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,p=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*p),d=e+(h+l.len2)*i,f=d-l.label.x;jC(l,l.targetTextWidth-f*i,!0),l.label.x=d}}}function jC(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var p=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-p)/2}}}function HC(t){return"center"===t.position}function YC(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*UC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,p=s.y,h=s.height;function d(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),p=s.shape,h=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(t),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=Ti(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Ti(S,u);var k=w.get("length2");if(k=Ti(k,u),Math.abs(p.endAngle-p.startAngle)<a)return nt(h.states,d),void(h.ignore=!0);if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(h)){var C,M,T,A,I=(p.startAngle+p.endAngle)/2,D=Math.cos(I),O=Math.sin(I);e=p.cx,n=p.cy;var E="inside"===m||"inner"===m;if("center"===m)C=p.cx,M=p.cy,A="center";else{var N=(E?(p.r+p.r0)/2*D:p.r*D)+e,L=(E?(p.r+p.r0)/2*O:p.r*O)+n;if(C=N+3*D,M=L+3*O,!E){var P=N+D*(S+l-p.r),R=L+O*(S+l-p.r),B=P+(D<0?-1:1)*k;C="edge"===x?D<0?c+_:c+u-_:B+(D<0?-y:y),M=R,T=[[N,L],[P,R],[B,R]]}A=E?"center":"edge"===x?D>0?"right":"left":D>0?"left":"right"}var V=Math.PI,z=0,F=v.get("rotate");if(dt(F))z=F*(V/180);else if("center"===m)z=0;else if("radial"===F||!0===F){z=D<0?-I+V:-I}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var G=Math.atan2(D,O);G<0&&(G=2*V+G),O>0&&(G=V+G),z=G-V}if(o=!!z,h.x=C,h.y=M,h.rotation=z,h.setStyle({verticalAlign:"middle"}),E){h.setStyle({align:A});var U=h.states.select;U&&(U.x+=h.x,U.y+=h.y)}else{var W=h.getBoundingRect().clone();W.applyTransform(h.getComputedTransform());var j=(h.style.margin||0)+2.1;W.y-=j/2,W.height+=j,i.push({label:h,labelLine:f,position:m,len:S,len2:k,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Ur(D,O),linePoints:T,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:E})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,p=-Number.MAX_VALUE,h=0;h<t.length;h++){var d=t[h].label;HC(t[h])||(d.x<e?(c=Math.min(c,d.x),l.push(t[h])):(p=Math.max(p,d.x),u.push(t[h])))}for(h=0;h<t.length;h++)if(!HC(v=t[h])&&v.linePoints){if(null!=v.labelStyleWidth)continue;d=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+i-p-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+i-d.x-v.bleedMargin,v.targetTextWidth=g,jC(v,g)}for(WC(u,e,n,r,1,0,o,0,s,p),WC(l,e,n,r,-1,0,o,0,s,c),h=0;h<t.length;h++){var v;if(!HC(v=t[h])&&v.linePoints){d=v.label,f=v.linePoints;var m="edge"===v.labelAlignTo,y=d.style.padding,x=y?y[1]+y[3]:0,_=d.style.backgroundColor?0:x,b=v.rect.width+_,w=f[1][0]-f[2][0];m?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+i-v.edgeDistance-b-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(i,e,n,l,u,h,c,p);for(var f=0;f<i.length;f++){var g=i[f],v=g.label,m=g.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),y&&(nt(v.states,d),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(m){var _=g.linePoints;y||!_?(nt(m.states,d),m.ignore=!0):(T_(_,g.minTurnAngle),A_(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new Ur(_[0][0],_[0][1])})}}}function qC(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;ut(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:rt(r,(function(t){return ai(t,i)}))}}var XC=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Bs;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return k(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=K(qC(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(oc(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,oc(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),oc(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,ic(i,{shape:{endAngle:l.endAngle}},o,e))}else cc(i),ic(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Il(i,a);var p=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),d=Math.cos(p)*h,f=Math.sin(p)*h,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=K({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},qC(s.getModel("itemStyle"),l)),K(i.ensureState("select"),{x:d,y:f,shape:qC(a.getModel(["select","itemStyle"]),l)}),K(i.ensureState("blur"),{shape:qC(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&K(v.ensureState("select"),{x:d,y:f}),K(m.ensureState("select"),{x:d,y:f}),Ml(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Rc(r,Bc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Iu,this.setTextGuideLine(p)),function(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<js.length;l++){var u=js[l],c=e[u],p="normal"===u;if(c){var h=c.get("show");if((p?s:wt(i.states[u]&&i.states[u].ignore,s))||!wt(h,a)){var d=p?r:r&&r.states[u];d&&(d.ignore=!0);continue}r||(r=new Iu,t.setTextGuideLine(r),p||!s&&a||I_(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),I_(r,!1,u,c)}}if(r){Q(r.style,n),r.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=D_}}else r&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=t.getModel([i,e])}return n}(i),{stroke:s,opacity:St(o.get(["lineStyle","opacity"]),l,1)})}},e}(xu),ZC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return k(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new xu({shape:FC(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new XC(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){uc(a.getItemGraphicEl(e),t,e)})).execute(),YC(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pg),JC=ZC;function KC(t,e,n){e=ut(e)&&{coordDimensions:e}||K({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ty(r,e).dimensions,o=new My(i,t);return o.initData(r,n),o}var QC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),$C=QC,tM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new $C(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return KC(this,{coordDimensions:["value"],encodeDefaulter:lt(Nh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=[];return n.each(n.mapDimension("value"),(function(t){i.push(t)})),r.percent=function(t,e,n){if(!t[e])return 0;var r=it(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var i=Math.pow(10,n),o=rt(t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=rt(o,(function(t){return Math.floor(t)})),l=it(s,(function(t,e){return t+e}),0),u=rt(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,p=null,h=0,d=u.length;h<d;++h)u[h]>c&&(c=u[h],p=h);++s[p],u[p]=0,++l}return s[e]/i}(i,e,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){ro(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}($f),eM=tM;var nM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return k(e,t),e.prototype.getInitialData=function(t,e){return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}($f),rM=nM,iM=function(){},oM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return k(e,t),e.prototype.getDefaultShape=function(){return new iM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],p=r[n++];isNaN(c)||isNaN(p)||(u&&!u.contain(c,p)||(a.x=c-i[0]/2,a.y=p-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var p=n[c++],h=n[c++];a=Math.min(p,a),l=Math.max(p,l),s=Math.min(h,s),u=Math.max(h,u)}t=this._rect=new Qr(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(ss),aM=function(){function t(){this.group=new _i}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new oM({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=_v(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Vs(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),sM=aM,lM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=rC("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new sM:new Ok,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pg),uM=lM,cM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(gh),pM=cM,hM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",bo).models[0]},e.type="cartesian2dAxis",e}(gh);tt(hM,Wx);var dM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fM=Z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dM),gM=Z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},dM),vM={category:fM,value:gM,time:Z({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gM),log:Q({logBase:10},gM)},mM={value:1,category:1,time:1,log:1};function yM(t,e,n,r){nt(mM,(function(i,o){var a=Z(Z({},vM[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return k(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{};Z(t,e.getTheme().get(o+"Axis")),Z(t,this.getDefaultOption()),t.type=xM(t),n&&ph(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Fy.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",xM)}function xM(t){return t.type||(t.data?"category":"value")}var _M=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return rt(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ot(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),bM=["x","y"];function wM(t){return"interval"===t.type||"time"===t.type}var SM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=bM,e}return k(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(wM(t)&&wM(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,p=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,p];this._invTransform=Or([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Xt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Xt(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new Qr(n,r,i,o)},e}(_M),kM=SM,CM=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return k(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(y_),MM=CM;function TM(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:p[0],"x"===u?f[h[l]]:p[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),bt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function AM(t){return"cartesian2d"===t.get("coordinateSystem")}function IM(t){var e={xAxisModel:null,yAxisModel:null};return nt(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,bo).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(i+' "'+St(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o})),e}var DM=Math.log;function OM(t,e,n){var r=$y.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Px(t,e),u=l.extent,c=l.fixMin,p=l.fixMax;if("log"===t.type){var h=DM(t.base);u=[DM(u[0])/h,DM(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:p});var d=r.getExtent.call(t);c&&(u[0]=d[0]),p&&(u[1]=d[1]);var f=r.getInterval.call(t),g=u[0],v=u[1];if(c&&p)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=Wy(f),v=u[0]+f*a;else if(p)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Wy(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Wy(f));var m=f*a;(g=Ai((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=Ai(m)):v>0&&u[1]<=0&&(v=0,g=-Ai(m))}var y,x,_,b=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,g+f*b,v+f*w),r.setInterval.call(t,f),(b||w)&&r.setNiceExtent.call(t,g+f,v-f),"production"!==process.env.NODE_ENV){var S=r.getTicks.call(t);S[1]&&(y=f,x=Math.pow(10,Bi(Math.abs(y))),0!==(_=Math.abs(y/x))&&1!==_&&2!==_&&3!==_&&5!==_||Oi(S[1].value)>Oi(f))&&Xi("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var EM=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bM,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=at(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Gy(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(Rx(l,s),Gy(l)&&(e=a))}i.length&&(e||Rx((e=i.pop()).scale,e.model),nt(i,(function(t){OM(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};nt(n.x,(function(t){LM(n,"y",t,i)})),nt(n.y,(function(t){LM(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=uh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){nt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)}))}s(),i&&(nt(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Jy?n.count():(r=n.getTicks()).length;var a,s=t.getLabelModel(),l=Bx(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var p=l(r?r[c]:{value:o[0]+c},c),h=zx(s.getTextRect(p),s.get("rotate")||0);a?a.union(h):a=h}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),nt(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}ft(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",bo).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",bo).models[0],a=t.gridModel,s=this._coordsList;if(r)$(s,e=r.coordinateSystem)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(NM(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new MM(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Jy({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ry.getClass(e)||$y)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,nt(a.x,(function(e,n){nt(a.y,(function(i,o){var a="x"+n+"y"+o,s=new kM(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){nt(Ux(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}nt(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(AM(t)){var r=IM(t),i=r.xAxisModel,o=r.yAxisModel;if(!NM(i,e)||!NM(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return nt(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);$(e,i)<0&&e.push(i),$(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(AM(t)){var e=IM(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!i)throw new Error('Grid "'+St(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=bM,t}();function NM(t,e){return t.getCoordSysModel()===e}function LM(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)PM(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&PM(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function PM(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var RM=EM,BM=Math.PI,VM=function(){function t(t,e){this.group=new _i,this.opt=e,this.axisModel=t,Q(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!zM[t]},t.prototype.add=function(t){zM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Ni(e-t);return Li(o)?(i=n>0?"top":"bottom",r="center"):Li(o-BM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<BM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),zM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Xt(s,s,a),Xt(l,l,a));var u=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Nu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var h=e.get(["axisLine","symbolSize"]);pt(p)&&(p=[p,p]),(pt(h)||dt(h))&&(h=[h,h]);var d=bv(e.get(["axisLine","symbolOffset"])||0,h),f=h[0],g=h[1];nt([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==p[r]&&null!=p[r]){var i=_v(p[r],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=WM(i.getTicksCoords(),e.transform,l,Q(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis;if(!bt(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(bt(r.labelRotate,o.get("rotate"))||0)*BM/180,u=VM.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),p=[],h=VM.isLabelSilent(n),d=n.get("triggerEvent");return nt(s,(function(s,l){var f="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,m=o;if(c&&c[f]){var y=c[f];ft(y)&&y.textStyle&&(m=new op(y.textStyle,o,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(f),b=new Bs({x:_,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:h,z2:10+(s.level||0),style:Vc(m,{text:g,align:m.getShallow("align",!0)||u.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,fill:ct(x)?x("category"===i.type?v:"value"===i.type?f+"":f,l):x})});if(b.anid="label_"+f,d){var w=VM.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===i.type&&(w.dataIndex=f),Vs(b).eventData=w}e.add(b),b.updateTransform(),p.push(b),t.add(b),b.decomposeTransform()})),p}(n,r,e,t);if(function(t,e,n){if(Gx(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],p=n[n.length-1],h=n[n.length-2];!1===r?(FM(o),FM(u)):GM(o,a)&&(r?(FM(a),FM(c)):(FM(o),FM(u)));!1===i?(FM(s),FM(p)):GM(l,s)&&(i?(FM(l),FM(h)):(FM(s),FM(p)))}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Q(s.getLineStyle(),Q(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=WM(a[c],e.transform,l,u,"minorticks_"+c),h=0;h<p.length;h++)t.add(p[h])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Qu(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}(rt(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));!function(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Qr(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=o.obb,h=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new Qu(f.localRect,f.transform)),p||(p=new Qu(s,l)),p.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}(a)}},axisName:function(t,e,n,r){var i=bt(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,p=e.axis.getExtent(),h=p[0]>p[1]?-1:1,d=["start"===s?p[0]-h*c:"end"===s?p[1]+h*c:(p[0]+p[1])/2,UM(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*BM/180),UM(s)?o=VM.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Ni(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Li(a-BM/2)?(o=l?"bottom":"top",i="center"):Li(a-1.5*BM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*BM&&a>BM/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,f||0,p),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=bt(t.nameTruncateMaxWidth,v.maxWidth,a),x=new Bs({x:d[0],y:d[1],rotation:o.rotation,silent:VM.isLabelSilent(e),style:Vc(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Dc({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=VM.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Vs(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function FM(t){t&&(t.ignore=!0)}function GM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Cr([]);return Ir(i,i,-t.rotation),n.applyTransform(Tr([],i,t.getLocalTransform())),r.applyTransform(Tr([],i,e.getLocalTransform())),n.intersect(r)}}function UM(t){return"middle"===t||"center"===t}function WM(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Xt(a,a,e),Xt(s,s,e));var c=new Nu({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var jM=VM;function HM(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];nt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=JM(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(nt(n.getAxes(),lt(d,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),p="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||p)&&nt(h.baseAxes,lt(d,!p||"cross",c)),p&&nt(h.otherAxes,lt(d,"cross",!1))}}function d(r,s,c){var p=c.model.getModel("axisPointer",i),h=p.get("show");if(h&&("auto"!==h||r||ZM(p))){null==s&&(s=p.get("triggerTooltip")),p=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};nt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=X(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Q(l,c.textStyle)}}return t.model.getModel("axisPointer",new op(s,n,r))}(c,u,i,e,r,s):p;var d=p.get("snap"),f=JM(c.model),g=s||d||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:p,triggerTooltip:s,involveSeries:g,snap:d,useHandle:ZM(p),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(YM(o[r+"AxisId"],n.id)||YM(o[r+"AxisIndex"],n.componentIndex)||YM(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[f]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&nt(t.coordSysAxesInfo[JM(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function YM(t,e){return"all"===t||ut(t)&&$(t,e)>=0||t===e}function qM(t){var e=XM(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=ZM(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function XM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[JM(t)]}function ZM(t){return!!t.get(["handle","show"])}function JM(t){return t.type+"||"+t.id}var KM={},QM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&qM(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=XM(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){if("production"!==process.env.NODE_ENV&&KM[t])throw new Error("axisPointer "+t+" exists");KM[t]=e},e.getAxisPointerClass=function(t){return t&&KM[t]},e.type="axis",e}(eg),$M=QM,tT=mo();var eT=["axisLine","axisTickLabel","axisName"],nT=["splitArea","splitLine","minorSplitLine"],rT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return k(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _i,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=TM(a,e),l=new jM(e,K({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Gy(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));nt(eT,l.add,l),this._axisGroup.add(l.getGroup()),nt(nT,(function(t){e.get([t,"show"])&&iT[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Mc(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){tT(this).splitAreaColors=null},e.type="cartesianAxis",e}($M),iT={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=ut(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,p=i.getTicksCoords({tickModel:o}),h=[],d=[],f=a.getLineStyle(),g=0;g<p.length;g++){var v=i.toGlobalCoord(p[g].coord);u?(h[0]=v,h[1]=l.y,d[0]=v,d[1]=l.y+l.height):(h[0]=l.x,h[1]=v,d[0]=l.x+l.width,d[1]=v);var m=c++%s.length,y=p[g].tickValue;e.add(new Nu({anid:null!=y?"line_"+p[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:Q({stroke:s[m]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],p=o.getLineStyle(),h=0;h<l.length;h++)for(var d=0;d<l[h].length;d++){var f=i.toGlobalCoord(l[h][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f),e.add(new Nu({anid:"minor_line_"+l[h][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:p,silent:!0}))}},splitArea:function(t,e,n,r){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,p=tT(t).splitAreaColors,h=Et(),d=0;if(p)for(var f=0;f<u.length;f++){var g=p.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=ut(s)?s:[s],f=1;f<u.length;f++){var y=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=v,_=l.y,b=y-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=y-_));var S=u[f-1].tickValue;null!=S&&h.set(S,d),e.add(new ws({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:Q({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}tT(t).splitAreaColors=h}}}(t,e,n,r)}},oT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.type="xAxis",e}(rT),aT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=oT.type,e}return k(e,t),e.type="yAxis",e}(rT),sT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return k(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ws({shape:t.coordinateSystem.getRect(),style:Q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(eg),lT={offset:0};function uT(t){t.registerComponentView(sT),t.registerComponentModel(pM),t.registerCoordinateSystem("cartesian2d",RM),yM(t,"x",hM,lT),yM(t,"y",hM,lT),t.registerComponentView(oT),t.registerComponentView(aT),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function cT(t){Yx(uT),t.registerSeriesModel(rM),t.registerChartView(uM),t.registerLayout(rC("scatter"))}var pT="\0_ec_interaction_mutex";function hT(t,e){return!!function(t){return t[pT]||(t[pT]={})}(t)[e]}Ym({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Rt);var dT=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=st(n._mousedownHandler,n),i=st(n._mousemoveHandler,n),o=st(n._mouseupHandler,n),a=st(n._mousewheelHandler,n),s=st(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Q(X(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return k(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ve(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&vT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!hT(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&ge(t.event),gT(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ve(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=vT("zoomOnMouseWheel",t,this._opt),n=vT("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;fT(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);fT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){hT(this._zr,"globalPan")||fT(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ee);function fT(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(ge(r.event),gT(t,e,n,r,i))}function gT(t,e,n,r,i){i.isAvailableBehavior=st(vT,null,n,r),t.trigger(e,i)}function vT(t,e,n){var r=n[t];return!t||r&&(!pt(r)||e.event[r+"Key"])}var mT=dT;var yT,xT={axisPointer:1,tooltip:1,brush:1};function _T(t){pt(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var bT={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},wT=at(bT),ST={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kT=at(ST),CT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=_T(t);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new _i;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),OT(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var p=PT(o);p.length>=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(u=FT(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var h=r;(r=new _i).add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new ws({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=yT[s];if(u&&Pt(yT,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(l=p)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var h=MT[s];if(h&&Pt(MT,s)){var d=h.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new cs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});IT(e,n),OT(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(yT={g:function(t,e){var n=new _i;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ws;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new tu;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Nu;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ru;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=DT(r));var i=new Mu({shape:{points:n||[]},silent:!0});return IT(e,i),OT(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=DT(r));var i=new Iu({shape:{points:n||[]},silent:!0});return IT(e,i),OT(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new fs;return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new _i;return IT(e,a),OT(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new _i;return IT(e,a),OT(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=Kl(t.getAttribute("d")||"");return IT(e,n),OT(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),MT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new Hu(e,n,r,i);return TT(t,o),AT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new Yu(e,n,r);return TT(t,i),AT(t,i),i}};function TT(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function AT(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};zT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function IT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,t.__inheritedStyle))}function DT(t){for(var e=PT(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function OT(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(RT,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=PT(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":Ar(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Dr(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ir(i,i,-parseFloat(l[0])*BT);break;case"skewX":Tr(i,[1,0,Math.tan(parseFloat(l[0])*BT),1,0,0],i);break;case"skewY":Tr(i,[1,Math.tan(parseFloat(l[0])*BT),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),zT(t,a,s),r||function(t,e,n){for(var r=0;r<wT.length;r++){var i=wT[r];null!=(o=t.getAttribute(i))&&(e[bT[i]]=o)}for(r=0;r<kT.length;r++){var o;i=kT[r];null!=(o=t.getAttribute(i))&&(n[ST[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=NT(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=NT(o,"stroke",a.stroke,n)),nt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),nt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=rt(PT(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var ET=/^url\(\s*#(.*?)\)/;function NT(t,e,n,r){var i=n&&n.match(ET);if(!i)return"none"===n&&(n=null),n;var o=Tt(i[1]);r.push([t,e,o])}var LT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PT(t){return t.match(LT)||[]}var RT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,BT=Math.PI/180;var VT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function zT(t,e,n){var r,i=t.getAttribute("style");if(i)for(VT.lastIndex=0;null!=(r=VT.exec(i));){var o=r[1],a=Pt(bT,o)?bT[o]:null;a&&(e[a]=r[2]);var s=Pt(ST,o)?ST[o]:null;s&&(n[s]=r[2])}}function FT(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var GT=Et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),UT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Et(),this._freedGraphics=[],this._mapName=t,this._parsedXML=_T(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Et();return nt(t,(function(t){if(null==t.namedFrom){var r=new n_(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{Mt(null!=(n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new CT).parse(r,i))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new _i;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,p=void 0,h=void 0,d=void 0;if(null!=a?(c=0,h=a):l&&(c=l.x,h=l.width),null!=s?(p=0,d=s):l&&(p=l.y,d=l.height),null==c||null==p){var f=n.getBoundingRect();null==c&&(c=f.x,h=f.width),null==p&&(p=f.y,d=f.height)}u=this._boundingRect=new Qr(c,p,h,d)}if(l){var g=FT(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new ws({shape:u.plain()}));var v=[];return nt(e.named,(function(t){var e;null!=GT.get(t.svgNodeTagLower)&&(v.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:v}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var WT=[126,25],jT="南海诸岛",HT=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],YT=0;YT<HT.length;YT++)for(var qT=0;qT<HT[YT].length;qT++)HT[YT][qT][0]/=10.5,HT[YT][qT][1]/=-14,HT[YT][qT][0]+=WT[0],HT[YT][qT][1]+=WT[1];var XT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var ZT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var JT=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=Et(),this._mapName=t,this._specialAreas=n,this._geoJSON=pt(r=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:KT(r)})}var i=Et(),o=[];return nt(n.regions,(function(e){var n=e.name;t&&Pt(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Qr(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?o_(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===jT)return;e.push(new e_(jT,rt(HT,(function(t){return{type:"polygon",exterior:t}})),WT))}}(n,e),nt(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=XT[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:ZT[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function KT(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var QT=Et(),$T=function(t,e,n){if(e.svg){var r=new UT(t,e.svg);QT.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new JT(t,i,n);QT.set(t,r)}},tA=function(t){return QT.get(t)},eA=function(t){var e=QT.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},nA=function(t,e,n){var r=QT.get(t);if(r)return r.load(e,n);"production"!==process.env.NODE_ENV&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.")},rA=["rect","circle","line","ellipse","polygon","polyline","path"],iA=Et(rA),oA=Et(rA.concat(["g"])),aA=Et(rA.concat(["g"])),sA=mo();function lA(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function uA(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var cA=function(){function t(t){var e=new _i;this.uid=sp("ec_map_draw"),this._controller=new mT(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new _i),e.add(this._svgGroup=new _i)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),p=c.raw,h=c.roam;!l.childAt(0)||i?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):ic(u,h,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Et(),n=Et(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function p(t){return{shape:{points:c(t)}}}r.removeAll(),nt(t.geo.regions,(function(i){var c=i.name,h=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;h||(h=e.set(c,new _i),r.add(h),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];nt(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=vA(e,l)),nt(e,(function(t){v.push(new Mu(p(t)))}))}else{var n=t.points;l&&(n=vA(n,l,!0)),nt(n,(function(t){m.push(new Iu(p(t)))}))}}));var y=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new Wu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});h.add(r),pA(t,r,f,g),hA(t,r,c,g,o,f,y),n&&(uA(r),nt(r.states,uA))}}x(v),x(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;dA(t,e,r,s,o,a),fA(t,e,r,s,o),gA(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=Et(),i=!1;nt(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=iA.get(s)&&l instanceof sa&&pA(t,l,u,c),l instanceof sa&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=aA.get(s)&&hA(t,l,n,c,o,u,null),dA(t,l,n,c,o,u),fA(t,l,n,c,o),null!=oA.get(s)&&("self"===gA(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){cl(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=tA(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=tA(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,function(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}(o,t.dx,t.dy),n.dispatchAction(K(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,function(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}(o,t.scale,t.originX,t.originY),n.dispatchAction(K(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!function(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!xT.hasOwnProperty(r.mainType)&&i&&i.model!==n}(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=sA(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function pA(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=lA(i),u=lA(o),c=lA(s),p=lA(a),h=t.data;if(h){var d=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=Hv(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=p,cl(e)}function hA(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var p=l?n:o,h=void 0;(!s||o>=0)&&(h=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Rc(e,Bc(r),{labelFetcher:h,labelDataIndex:p,defaultText:n},d);var f=e.getTextContent();if(f&&(sA(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function dA(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Vs(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function fA(t,e,n,r,i){t.data||Dc({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function gA(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ml(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=Vs(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function vA(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),nt(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var mA=cA,yA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new mA(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new tu({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),p=u.indexOfName(c),h=r.getItemModel(n),d=h.getModel("label"),f=u.getItemGraphicEl(p);Rc(l,Bc(h),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(p,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){ll(l,t)}}i.add(l)}}}))},e.type="map",e}(pg),xA=yA,_A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return k(e,t),e.prototype.getInitialData=function(t){for(var e=KC(this,{coordDimensions:["value"],encodeDefaulter:lt(Nh,this)}),n=Et(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}return nt(nA(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Of("section",{header:s.join(", "),noHeader:!s.length,blocks:[Of("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=_v(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}($f),bA=_A;function wA(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),nt(e,(function(t,e){for(var n,r,i,o=(n=rt(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},nt(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function SA(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};nt(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var kA=Xt,CA=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new zr,n._rawTransformable=new zr,n.name=e,n}return k(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new Qr(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new Qr(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Qr(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Xt([],r,t),n=Xt([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Mr(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Or(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new zr;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?kA(n,t,r):function(t,e){return t[0]=e[0],t[1]=e[1],t}(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?kA([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=MA(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=MA(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(zr);function MA(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var TA=CA,AA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},IA=["lng","lat"],DA=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=IA,i.type="geo",i._nameCoordMap=Et(),i.map=n;var o,a=r.projection,s=nA(n,r.nameMap,r.nameProperty),l=tA(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,p=AA[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&Xi("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||("production"!==process.env.NODE_ENV&&Xi("project and unproject must be both provided in the projeciton."),a=null)),i.projection=a,a)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:wt(r.aspectScale,p.aspectScale),i._invertLongitute=!a&&p.invertLongitute,i}return k(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Qr(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(pt(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=OA(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=OA(e);return r===this?r.pointToData(n):null},e}(TA);function OA(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",bo).models[0]||{}).coordinateSystem:null}tt(DA,TA);var EA=DA;function NA(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,p=o.project([t+s*c,e+l*c]);Zt(r,r,p),Jt(i,i,p)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var p,h,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),y=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(p=[Ti(g[0],m),Ti(g[1],y)],h=Ti(v,Math.min(m,y)),isNaN(p[0])||isNaN(p[1])||isNaN(h)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=h,d.height=h/x):(d.height=h,d.width=h*x),d.y=p[1]-d.height/2,d.x=p[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=uh(b,{width:m,height:y})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var LA=function(){function t(){this.dimensions=IA}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new EA(o+i,o,K({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=NA,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),nt(i,(function(t,i){var o=rt(t,(function(t){return t.get("nameMap")})),a=new EA(i,i,K({nameMap:J(o)},r(t[0])));a.zoomLimit=bt.apply(null,rt(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=NA,a.resize(t[0],e),nt(t,(function(t){t.coordinateSystem=a,function(t,e){nt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=Et(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return nt(nA(e,n,r).regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),PA=new LA,RA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.init=function(t,e,n){var r=tA(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),ro(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=PA.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=it(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new op(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),Et()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new op(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return ct(r)?(i.status=e,r(i)):pt(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(gh),BA=RA;function VA(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}var zA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return k(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new mA(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;sv(t.target,(function(t){return null!=(e=Vs(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Vs(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(eg),FA=zA;function GA(t,e,n){$T(t,e,n)}function UA(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),nt(n.coordinateSystem.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];nt(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",PA),t.registerComponentModel(BA),t.registerComponentView(FA),t.registerImpl("registerMap",GA),t.registerImpl("getMap",(function(t){return eA(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var i=function(t,e,n){var r=t.getZoom(),i=t.getCenter(),o=e.zoom,a=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(VA(t,a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}t.scaleX*=o,t.scaleY*=o;var u=(e.originX-t.x)*(o-1),c=(e.originY-t.y)*(o-1);t.x-=u,t.y-=c,t.updateTransform(),t.setCenter(VA(t,a)),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&nt(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)}))}}))}))}var WA=nt,jA=ft,HA=-1,YA=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=X(e);this.type=r,this.mappingMethod=n,this._normalizeData=nI[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(qA(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,nt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(WA(e,(function(t,e){n[t]=e})),!ut(r)){var i=[];ft(r)?WA(r,(function(t,e){var r=n[e];i[null!=r?r:HA]=t})):i[-1]=r,r=eI(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):qA(i,!0):(Mt("linear"!==n||i.dataExtent),qA(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return st(this._normalizeData,this)},t.listVisualTypes=function(){return at(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ft(t)?nt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=ut(e)?[]:ft(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&WA(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(ut(t))t=t.slice();else{if(!jA(t))return[];var e=[];WA(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||pt(s)&&s===t+"")return o;n&&p(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(rI(c[1],t,u[1]))return o}else if(u[1]===1/0){if(rI(c[0],u[0],t))return o}else if(rI(c[0],u[0],t)&&rI(c[1],t,u[1]))return o;n&&p(u[0],o),n&&p(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function p(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:JA("color"),getColorMapper:function(){var t=this.option;return st("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),KA.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Ln(e,t.parsedVisual,r),i?r:Rn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Rn(Ln(t,this.option.parsedVisual),"rgba")},category:KA,piecewise:function(t,e){var n=tI.call(this,e);return null==n&&(n=Rn(Ln(t,this.option.parsedVisual),"rgba")),n},fixed:QA}},colorHue:XA((function(t,e){return Pn(t,e)})),colorSaturation:XA((function(t,e){return Pn(t,null,e)})),colorLightness:XA((function(t,e){return Pn(t,null,null,e)})),colorAlpha:XA((function(t,e){return function(t,e){var n=On(t);if(n&&null!=e)return n[3]=bn(e),Rn(n,"rgba")}(t,e)})),decal:{applyVisual:JA("decal"),_normalizedToVisual:{linear:null,category:KA,piecewise:null,fixed:null}},opacity:{applyVisual:JA("opacity"),_normalizedToVisual:$A([0,1])},liftZ:{applyVisual:JA("liftZ"),_normalizedToVisual:{linear:QA,category:QA,piecewise:QA,fixed:QA}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:ZA,category:KA,piecewise:function(t,e){var n=tI.call(this,e);return null==n&&(n=ZA.call(this,t)),n},fixed:QA}},symbolSize:{applyVisual:JA("symbolSize"),_normalizedToVisual:$A([0,1])}},t}();function qA(t,e){var n=t.visual,r=[];ft(n)?WA(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),eI(t,r)}function XA(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:$A([0,1])}}function ZA(t){var e=this.option.visual;return e[Math.round(Mi(t,[0,1],[0,e.length-1],!0))]||{}}function JA(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function KA(t){var e=this.option.visual;return e[this.option.loop&&t!==HA?t%e.length:t]}function QA(){return this.option.visual[0]}function $A(t){return{linear:function(e){return Mi(e,t,this.option.visual,!0)},category:KA,piecewise:function(e,n){var r=tI.call(this,n);return null==r&&(r=Mi(e,t,this.option.visual,!0)),r},fixed:QA}}function tI(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[YA.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function eI(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=rt(e,(function(t){var e=On(t);return e||"production"===process.env.NODE_ENV||Xi("'"+t+"' is an illegal color, fallback to '#000000'",!0),e||[0,0,0,1]}))),e}var nI={linear:function(t){return Mi(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=YA.findPieceIndex(t,e,!0);if(null!=n)return Mi(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?HA:e},fixed:Rt};function rI(t,e,n){return t?e<=n:e<n}var iI=YA;function oI(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function aI(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var sI=mo(),lI=X,uI=st,cI=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var p=lt(pI,e,c);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,e)}else a=this._group=new _i,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);gI(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=XM(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=sI(t).pointerEl=new Nc[i.type](lI(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=sI(t).labelEl=new Bs(lI(e.label));t.add(i),dI(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=sI(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=sI(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),dI(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Tc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ge(t.event)},onmousedown:uI(this._onHandleDragMove,this,0,0),drift:uI(this._onHandleDragMove,this),ondragend:uI(this._onHandleDragEnd,this)}),r.add(i)),gI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ut(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,vg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){pI(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fI(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(fI(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(fI(r)),sI(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),mg(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function pI(t,e,n,r){hI(sI(n).lastProp,r)||(sI(n).lastProp=r,e?ic(n,r,t):(n.stopAnimation(),n.attr(r)))}function hI(t,e){if(ft(t)&&ft(e)){var n=!0;return nt(e,(function(e,r){n=n&&hI(t[r],e)})),!!n}return t===e}function dI(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fI(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function gI(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}function vI(t,e,n,r,i){var o=mI(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Xp(a.get("padding")||0),l=a.getFont(),u=ni(o,l),c=i.position,p=u.width+s[1]+s[3],h=u.height+s[0]+s[2],d=i.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,p,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Vc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function mI(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:Vx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};nt(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),pt(a)?o=a.replace("{value}",o):ct(a)&&(o=a(s))}return o}function yI(t,e,n){var r=[1,0,0,1,0,0];return Ir(r,r,n.rotation),Ar(r,r,n.position),Sc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var xI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=_I(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}(r),p=bI[s](o,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}!function(t,e,n,r,i,o){var a=jM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),vI(e,r,i,o,{position:yI(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,TM(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=TM(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=yI(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=_I(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,p=[c,c];p[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(cI);function _I(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var bI={line:function(t,e,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],i=[e,n[1]],o=wI(t),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(t,e,n){var r,i,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[e-a/2,n[0]],i=[a,s],o=wI(t),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function wI(t){return"x"===t.dim?0:1}var SI=xI,kI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(gh),CI=kI,MI=mo(),TI=nt;function AI(t,e,n){if(!A.node){var r=e.getZr();MI(r).records||(MI(r).records={}),function(t,e){if(MI(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);TI(MI(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}MI(t).initialized=!0,n("click",lt(DI,"click")),n("mousemove",lt(DI,"mousemove")),n("globalout",II)}(r,e),(MI(r).records[t]||(MI(r).records[t]={})).handler=n}}function II(t,e,n){t.handler("leave",null,n)}function DI(t,e,n,r){e.handler(t,n,r)}function OI(t,e){if(!A.node){var n=e.getZr();(MI(n).records||{})[t]&&(MI(n).records[t]=null)}}var EI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";AI("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){OI("axisPointer",e)},e.prototype.dispose=function(t,e){OI("axisPointer",e)},e.type="axisPointer",e}(eg),NI=EI;function LI(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=vo(o,t);if(null==a||a<0||ut(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,p=u.dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(p),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(rt(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var PI=mo();function RI(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||st(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){GI(i)&&(i=LI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=GI(i),u=o.axesInfo,c=s.axesInfo,p="leave"===r||GI(i),h={},d={},f={list:[],map:{}},g={showPointer:lt(VI,d),showTooltip:lt(zI,f)};nt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);nt(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!p&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&BI(t,a,g,!1,h)}}))}));var v={};return nt(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&nt(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,FI(e),FI(t)))),v[t.key]=o}}))})),nt(v,(function(t,e){BI(c[e],t,g,!0,h)})),function(t,e,n){var r=n.axesInfo=[];nt(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(d,c,h),function(t,e,n,r){if(GI(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=PI(r)[i]||{},a=PI(r)[i]={};nt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&nt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];nt(o,(function(t,e){!a[e]&&l.push(t)})),nt(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function BI(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return nt(e.seriesModels,(function(e,l){var u,c,p=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(p,t,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(p[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,i=u,o.length=0),nt(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&K(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function VI(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function zI(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=JM(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function FI(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function GI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function UI(t){$M.registerAxisPointerClass("CartesianAxisPointer",SI),t.registerComponentModel(CI),t.registerComponentView(NI),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ut(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=HM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},RI)}var WI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(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}(gh),jI=WI;function HI(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function YI(t){if(A.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var qI=YI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function XI(t,e){if(!t)return e;e=qp(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var ZI=XI(YI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),JI=XI(qI,"transform"),KI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(A.transform3dSupported?"will-change:transform;":"");function QI(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!A.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=A.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+JI+":"+a+";":[["top",0],["left",0],[qI,a]]}function $I(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Ff(t,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=A.transformSupported?","+JI+r:",left"+r+",top"+r),ZI+":"+i}(i,n)),o&&r.push("background-color:"+o),nt(["width","color","radius"],(function(e){var n="border-"+e,i=qp(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),nt(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=p&&r.push("padding:"+Xp(p).join("px ")+"px"),r.join(";")+";"}function tD(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){ae(oe,e,r,i,!0)&&ae(t,n,oe[0],oe[1])}(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var eD=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,A.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;tD(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;fe(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=function(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=KI+$I(t,!this._firstShow,this._longHide)+QI(i[0],i[1],!0)+"border-color:"+nh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(pt(i)&&"item"===n.get("trigger")&&!HI(n)&&(a=function(t,e,n){if(!pt(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=nh(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=JI+":";$(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,h=l+i,d=h*Math.abs(Math.cos(p))+h*Math.abs(Math.sin(p)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),pt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",ut(t)||(t=[t]);for(var s=0;s<t.length;s++)mt(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(tD(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;nt(QI(n[0],n[1]),(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),nD=eD,rD=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),aD(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;ft(t)&&$i("production"!==process.env.NODE_ENV?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Bs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ff(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),nt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),nt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=oD(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;aD(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=iD(i.borderWidth||0),a=oD(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function iD(t){return Math.max(0,t)}function oD(t){var e=iD(t.shadowBlur||0),n=iD(t.shadowOffsetX||0),r=iD(t.shadowOffsetY||0);return{left:iD(e-n),right:iD(e+n),top:iD(e-r),bottom:iD(e+r)}}function aD(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var sD=rD,lD=new ws({shape:{x:-1,y:-1,width:2,height:2}}),uD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.init=function(t,e){if(!A.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?A.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new sD(e):new nD(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?vg(this,"_updatePosition",50,"fixRate"):mg(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");AI("itemTooltip",this._api,st((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!A.node&&n.getDom()){var i=pD(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=_o(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=wo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=Vs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=lD;l.x=r.x,l.y=r.y,l.update(),Vs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=LI(r,e),c=u.point[0],p=u.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(pD(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===cD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;this._lastDataByCoordSys=null,sv(n,(function(t){return null!=Vs(t).dataIndex?(i=t,!0):null!=Vs(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=st(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=cD([e.tooltipOption],r),a=this._renderMode,s=[],l=Of("section",{blocks:[],noHeader:!0}),u=[],c=new Gf;nt(t,(function(t){nt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=mI(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=Of("section",{header:o,noHeader:!Tt(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),nt(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Vx(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",nh(f.color),a);var g=$d(h.formatTooltip(d,!0,null)),v=g.frag;if(v){var m=cD([h],r).get("valueFormatter");p.blocks.push(m?K({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var p=e.position,h=o.get("order"),d=Bf(l,c,a,h,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],p,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Vs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),p=this._renderMode,h=t.positionDefault,d=cD([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Gf;g.marker=v.makeTooltipMarker("item",nh(g.color),p);var m=$d(s.formatTooltip(l,!1,u)),y=d.get("order"),x=d.get("valueFormatter"),_=m.frag,b=_?Bf(x?K({valueFormatter:x},_):_,v,p,y,r.get("useUTC"),d.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Vs(e),i=r.tooltipConfig.option||{};if(pt(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,l=cD(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",p=new Gf;this._showOrMove(l,(function(){var n=X(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var p=e,h=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(pt(c)){var d=t.ecModel.get("useUTC"),f=ut(n)?n[0]:n;p=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=Ip(f.axisValue,p,d)),p=eh(p,n,!0)}else if(ct(c)){var g=st((function(e,r){e===this._ticket&&(u.setContent(r,l,t,h,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,p=c(n,r,g)}else p=c;u.setContent(p,l,t,h,a),u.show(t,h),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||ut(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:ut(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),p=t.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),ct(e)&&(e=e([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),ut(e))n=Ti(e[0],s),r=Ti(e[1],l);else if(ft(e)){var d=e;d.width=u[0],d.height=u[1];var f=uh(d,{width:s,height:l});n=f.x,r=f.y,c=null,p=null}else if(pt(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,h,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,l,c?null:20,p?null:20);n=g[0],r=g[1]}if(c&&(n-=hD(c)?u[0]/2:"right"===c?u[0]:0),p&&(r-=hD(p)?u[1]/2:"bottom"===p?u[1]:0),HI(t)){g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&nt(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&nt(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&nt(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&nt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!A.node&&e.getDom()&&(mg(this,"_updatePosition"),this._tooltipContent.dispose(),OI("itemTooltip",e))},e.type="tooltip",e}(eg);function cD(t,e,n){var r,i=e.ecModel;n?(r=new op(n,i,i),r=new op(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof op&&(a=a.get("tooltip",!0)),pt(a)&&(a={formatter:a}),a&&(r=new op(a,r,i)))}return r}function pD(t,e){return t.dispatchAction||st(e.dispatchAction,e)}function hD(t){return"center"===t||"middle"===t}var dD=uD;function fD(t){Yx(UI),t.registerComponentModel(jI),t.registerComponentView(dD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var gD=nt;function vD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function mD(t,e,n){var r={};return gD(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);gD(t[e],(function(t,r){if(iI.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new iI(i),"opacity"===r&&((i=X(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new iI(i))}}))})),r}function yD(t,e,n,r){var i={};return nt(t,(function(t){var n=iI.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return rv(o,s,t)}function u(t,e){!function(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}(o,s,t,e)}null!=r&&(a=o.getDimensionIndex(r));for(var c=o.getStore();null!=(s=t.next());){var p=o.getRawDataItem(s);if(!p||!1!==p.visualMap)for(var h=null!=r?c.get(a,s):s,d=n(h),f=e[d],g=i[d],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(h,l,u)}}}}}var xD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(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}(gh),_D=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=wt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Bs({style:Vc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),p=new Bs({style:Vc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!h&&!f,p.silent=!d&&!f,h&&l.on("click",(function(){rh(h,"_"+t.get("target"))})),d&&p.on("click",(function(){rh(d,"_"+t.get("subtarget"))})),Vs(l).eventData=Vs(p).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(p);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=uh(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),p.setStyle(y),g=r.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new ws({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(eg);function bD(t){t.registerComponentModel(xD),t.registerComponentView(_D)}var wD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),ut(e)&&nt(e,(function(t,r){pt(t)&&(t={type:t}),e[r]=Z(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&fo(r)&&e.push(r.name)})),this._availableNames=n;var r=rt(this.get("data")||e,(function(t){return(pt(t)||dt(t))&&(t={name:t}),new op(t,this,this.ecModel)}),this);this._data=r},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&nt(this._data,(function(t){e[t.get("name")]=!1}));e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;nt(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;nt(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&$(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(gh),SD=wD,kD=lt,CD=nt,MD=_i,TD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return k(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new MD),this.group.add(this._selectorGroup=new MD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),p=uh(l,u,c),h=this.layoutInner(t,i,p,r,a,s),d=uh(Q({width:h.width,height:h.height},l),u,c);this.group.x=d.x-h.x,this.group.y=d.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=Xp(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),new ws({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=Et(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),CD(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new MD;return p.newline=!0,void s.add(p)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var d=h.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(h,a,o,i,e,t,f,v,g,u).on("click",kD(AD,a,null,r,c)).on("mouseover",kD(DD,h.name,null,r,c)).on("mouseout",kD(OD,h.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),h=s.getItemVisual(p,"style"),d=s.getItemVisual(p,"legendIcon"),f=On(h.fill);f&&0===f[3]&&(f[3]=.2,h=K(K({},h),{fill:Rn(f,"rgba")})),this._createItem(n,a,o,i,e,t,{},h,d,u).on("click",kD(AD,null,a,r,c)).on("mouseover",kD(DD,null,a,r,c)).on("mouseout",kD(OD,null,a,r,c)),l.set(a,!0)}}),this);"production"!==process.env.NODE_ENV&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();CD(t,(function(t){var r=t.type,i=new Bs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Rc(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Cl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u){var c=t.visualDrawType,p=i.get("itemWidth"),h=i.get("itemHeight"),d=i.isSelected(e),f=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),CD(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);a(s,r);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),h=s[l];s.lineWidth="auto"===p?r.lineWidth>0&&h?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(l=v||l||"roundRect",r,a,s,c,d),y=new MD,x=r.getModel("textStyle");if(!ct(t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;y.add(function(t){var e=t.icon||"roundRect",n=_v(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:h,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}))}else y.add(t.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));var b="left"===o?p+5:-5,w=o,S=i.get("formatter"),k=e;pt(S)&&S?k=S.replace("{name}",null!=e?e:""):ct(S)&&(k=S(e));var C=r.get("inactiveColor");y.add(new Bs({style:Vc(x,{text:k,x:b,y:h/2,fill:d?x.getTextColor():C,align:w,verticalAlign:"middle"})}));var M=new ws({shape:y.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Dc({el:M,componentModel:i,itemName:e,itemTooltipOption:T.option}),y.add(M),y.eachChild((function(t){t.silent=!0})),M.silent=!u,this.getContentGroup().add(y),Cl(y),y.__legendDataIndex=n,y},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();lh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){lh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),p=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?p[d]+=l[f]+h:u[d]+=c[f]+h,p[1-d]+=l[g]/2-c[g]/2,s.x=p[0],s.y=p[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+p[1-d]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(eg);function AD(t,e,n,r){OD(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),DD(t,e,n,r)}function ID(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function DD(t,e,n,r){ID(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function OD(t,e,n,r){ID(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var ED=TD;function ND(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function LD(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name)),nt(n.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function PD(t){t.registerComponentModel(SD),t.registerComponentView(ED),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,ND),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",lt(LD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",lt(LD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",lt(LD,"inverseSelect")),t.registerAction("legendSelect","legendselected",lt(LD,"select")),t.registerAction("legendUnSelect","legendunselected",lt(LD,"unSelect"))}(t)}var RD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=hh(e);t.prototype.init.call(this,e,n,r),BD(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),BD(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lp(SD.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(SD);function BD(t,e,n){var r=[1,1];r[t.getOrient().index]=0,ph(e,n,{type:"box",ignoreSize:!!r})}var VD=RD,zD=_i,FD=["width","height"],GD=["x","y"],UD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return k(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new zD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new zD)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),p=ut(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=Tc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:st(l._pageGo,l,r,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,u.add(o)}u.add(new Bs({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=FD[s],u=GD[s],c=FD[1-s],p=GD[1-s];i&&lh("horizontal",a,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=X(n);i&&(g[l]=n[l]-d[l]-h);var v=this._layoutContentAndController(t,r,g,s,l,c,p,u);if(i){if("end"===o)f[s]+=v[l]+h;else{var m=d[l]+h;f[s]-=m,v[u]-=m}v[l]+=d[l]+h,f[1-s]+=v[p]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[p]=Math.min(v[p],d[p]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;lh(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),lh("horizontal",c,t.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),h=c.getBoundingRect(),d=this._showController=p[i]>n[i],f=[-p.x,-p.y];e||(f[r]=l[s]);var g=[0,0],v=[-h.x,-h.y],m=wt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[r]+=n[i]-h[i]:g[r]+=h[i]+m);v[1-r]+=p[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var y={x:0,y:0};if(y[i]=d?n[i]:p[i],y[o]=Math.max(p[o],h[o]),y[a]=Math.min(0,h[a]+v[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-m,0),x[o]=y[o],u.setClipPath(new ws({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&ic(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),y},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;nt(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",pt(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=FD[i],a=GD[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,p=c?1:0,h={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var d=y(u);h.contentPosition[i]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=c;++f)(!(m=y(l[f]))&&v.e>g.s+r||m&&!x(m,g.s))&&(g=v.i>g.i?v:m)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),v=m;for(f=s-1,g=d,v=d,m=null;f>=-1;--f)(m=y(l[f]))&&x(v,m.s)||!(g.i<v.i)||(v=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=m;return h;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(ED),WD=UD;function jD(t){Yx(PD),t.registerComponentModel(VD),t.registerComponentView(WD),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}function HD(t){Yx(PD),Yx(jD)}var YD={get:function(t,e,n){var r=X((qD[t]||{})[e]);return n&&ut(r)?r[r.length-1]:r}},qD={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},XD=YD,ZD=iI.mapVisual,JD=iI.eachVisual,KD=ut,QD=nt,$D=Ii,tO=Mi,eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&function(t,e,n){var r;nt(n,(function(t){e.hasOwnProperty(t)&&vD(e[t])&&(r=!0)})),r&&nt(n,(function(n){e.hasOwnProperty(n)&&vD(e[n])?t[n]=X(e[n]):delete t[n]}))}(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=st(t,this),this.controllerVisuals=mD(this.option.controller,e,t),this.targetVisuals=mD(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,n){e.push(n)})):e=no(t),e},e.prototype.eachTargetSeries=function(t,e){nt(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],ut(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return pt(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ct(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=$D([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 n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});Z(r,n),Z(i,n);var o=this.isCategory();function a(n){KD(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},QD(r,(function(t,e){if(iI.isValidType(e)){var n=XD.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";QD(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&X(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&X(n)||(o?s[0]:[s[0],s[0]])),l.symbol=ZD(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;JD(u,(function(t){t>c&&(c=t)})),l.symbolSize=ZD(u,(function(t){return tO(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},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}(gh),nO=eO,rO=[20,140],iO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.optionUpdated=function(e,n){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]=rO[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=rO[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):ut(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),nt(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=Ii((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,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=oO(this,"outOfRange",this.getExtent()),n=oO(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=lp(nO.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}(nO);function oO(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var aO=iO,sO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return k(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Xp(e.get("padding")||0),r=t.getBoundingRect();t.add(new ws({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)];return nt(iI.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),iI.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;!function(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Qr(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var p=uh(Q({width:a.width,height:a.height},e),n,r),h=s?p.x-a.x:0,d=l?p.y-a.y:0;"raw"===u?(o.x=h,o.y=d):(o.x+=h,o.y+=d),o===t&&t.markRedraw()}(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(eg),lO=sO,uO=[["left","right","width"],["top","bottom","height"]];function cO(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=uO[a],l=[0,null,10],u={},c=0;c<3;c++)u[uO[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var p=[["x","width",3],["y","height",0]][a],h=uh(u,o,r.padding);return s[(h.margin[p[2]]||0)+h[p[0]]+.5*h[p[1]]<.5*o[p[1]]?0:1]}function pO(t,e){return nt(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var hO=Mi,dO=nt,fO=Math.min,gO=Math.max,vO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return k(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.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 n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Bs({style:Vc(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=cO(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new _i;s.add(l),l.add(n.outOfRange=mO()),l.add(n.inRange=mO(null,o?xO(this._orient):null,st(this._dragHandle,this,"all",!1),st(this._dragHandle,this,"all",!0))),l.setClipPath(new ws({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=gO(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=st(this._dragHandle,this,n,!1),s=st(this._dragHandle,this,n,!0),l=ai(t.get("handleSize"),r[0]),u=_v(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=xO(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){ge(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Dl(u,!0),e.add(u);var p=this.visualMapModel.textStyleModel,h=new Bs({cursor:c,draggable:!0,drift:a,onmousemove:function(t){ge(t.event)},ondragend:s,style:Vc(p,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=h},e.prototype._createIndicator=function(t,e,n,r,i){var o=ai(t.get("indicatorSize"),n[0]),a=_v(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof fs){var l=a.style;a.useStyle(K({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new Bs({silent:!0,invisible:!0,style:Vc(u,{x:0,y:0,text:""})});this.group.add(c);var p=[("horizontal"===i?r/2:6)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=c,h.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[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():yO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[hO(e[0],n,r,!0),hO(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];!function(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=aI(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=aI(s,[0,a]),i=o=aI(s,[i,o]),r=0}e[0]=aI(e[0],n),e[1]=aI(e[1],n);var l=oI(e,r);e[r]+=t;var u,c=i||0,p=n.slice();l.sign<0?p[0]+=c:p[1]-=c,e[r]=aI(e[r],p),u=oI(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=oI(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o)}(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[hO(r[0],i,o,!0),hO(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Hu(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new _i("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{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 n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();dO([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=hO(t[l],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=p/a[0],u.x=a[0]-p/2;var h=Sc(n.handleLabelPoints[l],wc(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),h=hO(t,o,s,!0),d=a[0]-p/2,f={x:u.x,y:u.y};u.y=h,u.x=d;var g=Sc(l.indicatorLabelPoint,wc(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var x={x:d,y:h,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),v.animateTo(_,b)}else u.attr(x),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this._api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=fO(gO(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[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 n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=fO(gO(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=hO(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=hO(t,i,o,!0),u=[hO(s[0],i,o,!0),hO(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[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 c=this._hoverLinkDataIndices,p=[];(e||yO(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=co(t[r].seriesId,null);if(null==o)return;for(var a=no(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,p);this._dispatchHighDown("downplay",pO(h[0],n)),this._dispatchHighDown("highlight",pO(h[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=Vs(e).dataIndex){var r=Vs(e),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",pO(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,n,r){var i=wc(e,r?null:this.group);return ut(t)?Sc(t,i,n):kc(t,i,n)},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}(lO);function mO(t,e,n,r){return new Mu({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){ge(t.event)},ondragend:r})}function yO(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function xO(t){return"vertical"===t?"ns-resize":"ew-resize"}var _O=vO,bO={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wO=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},SO=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(yD(e.stateList,e.targetVisuals,st(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(st(kO,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function kO(t,e,n,r){for(var i=e.targetVisuals[r],o=iI.prepareVisualTypes(i),a={color:iv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,p,h)}return a.color;function p(t){return a[t]}function h(t,e){a[t]=e}}var CO=nt;function MO(t){var e=t&&t.visualMap;ut(e)||(e=e?[e]:[]),CO(e,(function(t){if(t){TO(t,"splitList")&&!TO(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&ut(e)&&CO(e,(function(t){ft(t)&&(TO(t,"start")&&!TO(t,"min")&&(t.min=t.start),TO(t,"end")&&!TO(t,"max")&&(t.max=t.end))}))}}))}function TO(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var AO=!1;function IO(t){AO||(AO=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(bO,wO),nt(SO,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(MO))}function DO(t){t.registerComponentModel(aO),t.registerComponentView(_O),IO(t)}var OO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return k(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],EO[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=X(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=rt(this._pieceList,(function(t){return t=X(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=iI.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}nt(e.pieces,(function(t){nt(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),nt(n,(function(t,n){var r=!1;nt(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&nt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=XD.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,nt(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;nt(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!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=X(t)},e.prototype.getValueState=function(t){var e=iI.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){iI.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),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 n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return nt(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=lp(nO.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}(nO),EO={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),zi(t),nt(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;nt(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),NO(e,t)},pieces:function(t){var e=this.option;nt(e.pieces,(function(e,n){ft(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==o[c];h++)o[c]=e[p[h]],a[c]=s[h],u[c]=2===h;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=iI.retrieveVisuals(e),t.push(r)}),this),NO(e,t),zi(t),nt(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function NO(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LO=OO,PO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=bt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),nt(l.viewPieceList,(function(r){var l=r.piece,u=new _i;u.onclick=st(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(p);u.add(new Bs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===h?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),lh(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:pO(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return cO(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new _i,a=this.visualMapModel.textStyleModel;o.add(new Bs({style:Vc(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=rt(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(_v(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=X(n.selected),i=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[i]=!0,nt(r,(function(t,e){r[e]=e===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},e.type="visualMap.piecewise",e}(lO),RO=PO;function BO(t){t.registerComponentModel(LO),t.registerComponentView(RO),IO(t)}var VO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return k(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new kf(this),Cf(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Cf(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Mh},e}(gh),zO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return k(e,t),e.type="dataset",e}(eg);function FO(t){t.registerComponentModel(VO),t.registerComponentView(zO)}Yx([xk,function(t){t.registerChartView(JC),t.registerSeriesModel(eM),ov("pie",t.registerAction),t.registerLayout(lt(GC,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(dt(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},bD,fD,HD]);var GO=e.defineComponent({name:"EcanPie",props:Object.assign({},uk),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){var n=(e.unref(i)[0]||{}).data,r=void 0===n?[]:n;if(Array.isArray(t.colors)){var o=t.isUseLabelColors,a=t.colors;r=r.map((function(t,e){return Object.assign({label:o?{color:a[e]}:{}},t)}))}return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},color:t.colors,series:[{data:r,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,label:{show:"center"!==t.labelPosition&&t.labelShow,color:t.labelColor,fontSize:t.labelFontSize,position:t.labelPosition,formatter:Ew(t.labelFormatter)},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),a=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=Iw(t,e),r=n.dataset;i.value=r};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=e.ref(!1),h=Rw(t),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,t.valueTypeDataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},f=Mw(t.events)("click",(function(e){var n=t.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){d()},click:f}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(d,t.requestSort),{option:o,style:r,click:f,loading:p}}});GO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},GO.__file="src/graph/pie/Pie.vue";var UO=sw(GO),WO=Object.assign(Object.assign({},hw),{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234},{name:"名称四",value:135},{name:"名称五",value:1548}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value"}),jO=dw(WO),HO=["click","refreshData"];Yx([xk,sC,bD,HD]);var YO=e.defineComponent({name:"EcanLine",props:Object.assign({},jO),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.ref([]),a=e.computed((function(){return{title:{text:t.titleText,subText:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,xAxis:{type:"category",data:e.unref(o),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:t.yAxisLabelFormatter},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft},series:e.unref(i)}})),s=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),l=s.getGlobalModel,u=s.setGlobalModel,c=e.inject(xw,{pageMode:"normal"}).pageMode,p=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var a=r?t.keyTypeDataFieldNames:null;e=zw(n,a)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}o.value=e.dimensions;for(var l=e.dataset,u=[],c=l.length,p=0;p<c;p++)u.push(Object.assign(Object.assign({type:"line"},l[p]),{symbolSize:t.symbolSize,smooth:t.smooth,lineStyle:{width:t.lineStyleWidth}}));i.value=u};e.watch((function(){return[t.data,t.symbolSize,t.smooth,t.lineStyleWidth]}),(function(n){var r=G_(n,1)[0];"static"!==t.dataType&&"design"!==e.unref(c)||p(r)}),{immediate:!0,deep:!0});var h=e.ref(!1),d=Rw(t),f=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(c)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,h.value=!0,n.next=6,d();case 6:o=n.sent,p(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,h.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},g=Mw(t.events)("click",(function(e){var n=t.id,r=l(n);u(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){f()},click:g}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),{option:a,style:r,click:g,loading:h}}});YO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},YO.__file="src/graph/line/Line.vue";var qO=sw(YO),XO=Object.assign(Object.assign({},hw),{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"0%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%",graphicConfig:void 0}),ZO=dw(XO),JO=["refreshData","click"];Yx([xk,RC,bD,HD,FO]);var KO=e.defineComponent({name:"EcanBar",props:Object.assign({},ZO),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){for(var n=e.unref(i),r=n.length,o=[],a=0;a<r;a++)o.push(Object.assign(Object.assign({},n[a]),{type:"bar",barWidth:t.barWidth}));return o})),a=e.ref([]),s=e.ref(!1),l=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,tooltip:{trigger:"axis",show:t.tooltipShow,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},xAxis:{type:"category",data:e.unref(a),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:t.yAxisLabelFormatter},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},series:e.unref(o)}})),u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var o=r?t.keyTypeDataFieldNames:null;e=zw(n,o)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}i.value=e.dataset,a.value=e.dimensions},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?e:null,o=zw(t,r);i.value=o.dataset,a.value=o.dimensions};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var h=Rw(t),d=Ww(t),f=function(){"design"!==e.unref(u)&&(C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,l,c,h;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("indicator"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,d();case 6:c=n.sent,(null===(o=null===(i=null===(r=null==c?void 0:c.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.columns)||void 0===o?void 0:o.length)>0&&(h={name:c.data.data.columns[0],types:c.data.data.columns.slice(1).map((function(t){return{label:t,value:t}}))}),p(null===(l=null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.data)||void 0===l?void 0:l.rows,h,!0),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),console.error(n.t0);case 14:return n.prev=14,s.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[2,11,14,17]])}))),C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,s.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])}))))},g=function(){f()},v=Mw(t.events),m=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),y=m.getGlobalModel,x=m.setGlobalModel,_=v("click",(function(e){var n=t.id,r=y(n);x(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),Cw(t,{refreshData:g,click:_}),{option:l,style:r,refreshData:g,click:_,loading:s}}});KO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},KO.__file="src/graph/bar/Bar.vue";var QO=sw(KO),$O=Object.assign(Object.assign({},hw),{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",dataFieldNames:{name:"name",value:"value"}}),tE=dw($O),eE=["click","refreshData"];Yx([xk,cT,bD,fD,HD]);var nE=e.defineComponent({name:"EcanScatter",props:Object.assign({},tE),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},color:t.colors,xAxis:{splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:function(e){var n,r,i=null!==(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.record)&&void 0!==r?r:{};return Gw(t.tooltipFormatter,i)},axisPointer:{type:"cross"}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft},series:[{data:e.unref(i),type:"scatter",symbolSize:t.symbolSize}]}})),a=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},r=n.name,o=void 0===r?"name":r,a=n.value,s=void 0===a?"value":a;i.value=t.map((function(t){return{value:[t[o],t[s]],record:t}})),console.log(t.map((function(t){return{value:[t[o],t[s]],record:t}})))};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=e.ref(!1),h=Rw(t),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return p.value=!0,n.prev=3,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,t.dataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[3,10,13,16]])})))},f=Mw(t.events)("click",(function(e){var n=t.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){d()},click:f}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(d,t.requestSort),{option:o,style:r,click:f,loading:p}}});nE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},nE.__file="src/graph/scatter/Scatter.vue";var rE=sw(nE),iE=Object.assign(Object.assign({},hw),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),oE=dw(iE),aE=e.defineComponent({name:"EcanCustomGraph",props:Object.assign({},oE),components:{Echarts:q_},setup:function(t){var n=mw(t),r=e.ref();return e.watch((function(){return t.optionCode}),(function(t){try{var e=eval;r.value=e(t)}catch(t){console.error(t)}}),{immediate:!0}),{style:n,myOption:r,echarts:w}}});aE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(s,{option:t.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},aE.__file="src/graph/custom-graph/CustomGraph.vue";var sE=sw(aE),lE=Object.assign(Object.assign({},hw),{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%"}),uE=dw(lE),cE=["refreshData","click"];Yx([xk,RC,sC,bD,HD,FO]);var pE=e.defineComponent({name:"EcanComboGraph",props:Object.assign({},uE),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.ref([]),a=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,tooltip:{trigger:"axis",show:t.tooltipShow,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},xAxis:{type:"category",data:e.unref(o),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:e.unref(u),series:e.unref(i)}})),s=e.inject(xw,{pageMode:"normal"}).pageMode,l=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var a=r?t.keyTypeDataFieldNames:null;e=zw(n,a)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}o.value=e.dimensions;for(var l=e.dataset,u=[],c=l.length,p=t.seriesTypes,h=0;h<c;h++){var d=p[h];u.push(Object.assign({type:null==d?void 0:d.type,yAxisIndex:null==d?void 0:d.axisIndex},l[h]))}i.value=u};e.watch((function(){return[t.data,t.seriesTypes]}),(function(n){var r=G_(n,1)[0];"static"!==t.dataType&&"design"!==e.unref(s)||l(r)}),{immediate:!0,deep:!0});var u=e.computed((function(){var e=t.yAxis;return null==e?void 0:e.map((function(e){return{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:e.axisLabelFormatter||"{value}"},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}}}))})),c=e.ref(!1),p=Rw(t),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,c.value=!0,n.next=6,p();case 6:o=n.sent,l(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,c.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},d=Mw(t.events),f=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),g=f.getGlobalModel,v=f.setGlobalModel,m=d("click",(function(e){var n=t.id,r=g(n);v(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),Cw(t,{refreshData:function(){h()},click:m}),{style:r,option:a,click:m,loading:c}}});pE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},pE.__file="src/graph/combo-graph/ComboGraph.vue";var hE=sw(pE),dE=Object.assign(Object.assign({},hw),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),fE=dw(dE),gE=["click"],vE=e.defineComponent({name:"EcanBorder",props:Object.assign({},fE),setup:function(t){var e=mw(t),n=Mw(t.events)("click",(function(){}));return Cw(t,{click:n}),{style:e,click:n}}}),mE=function(t){return e.pushScopeId("data-v-af8a0f90"),t=t(),e.popScopeId(),t},yE={key:0,class:"top-title"},xE={class:"title-item-wrapper"},_E={class:"title-item"},bE=mE((function(){return e.createElementVNode("img",{class:"title-decoration-left",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII="},null,-1)})),wE={class:"title"},SE=mE((function(){return e.createElementVNode("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),kE=mE((function(){return e.createElementVNode("div",{class:"top-left border-item"},null,-1)})),CE=mE((function(){return e.createElementVNode("div",{class:"top-right border-item"},null,-1)})),ME=mE((function(){return e.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),TE=mE((function(){return e.createElementVNode("div",{class:"bottom-right border-item"},null,-1)})),AE={key:1,class:"no-title"},IE=[mE((function(){return e.createElementVNode("div",{class:"top-left border-item"},null,-1)})),mE((function(){return e.createElementVNode("div",{class:"top-right border-item"},null,-1)})),mE((function(){return e.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),mE((function(){return e.createElementVNode("div",{class:"bottom-right border-item"},null,-1)}))],DE={key:2,class:"only-border"},OE={key:3,class:"left-title"},EE={class:"title"};j_('.no-title[data-v-af8a0f90],.top-title[data-v-af8a0f90]{background:rgba(7,22,85,.8);border:1px solid rgba(55,85,218,.3);box-sizing:border-box;height:100%;position:relative;width:100%}.no-title[data-v-af8a0f90] .border-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .border-item[data-v-af8a0f90]{border-color:#50fcfc;border-style:solid;height:11px;position:absolute;width:13px;z-index:2}.no-title[data-v-af8a0f90] .top-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-left[data-v-af8a0f90]{border-width:1px 0 0 1px;left:0;top:0}.no-title[data-v-af8a0f90] .top-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-right[data-v-af8a0f90]{border-width:1px 1px 0 0;right:-2px;top:0}.no-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90]{border-width:0 0 1px 1px;bottom:-2px;left:0}.no-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90]{border-width:0 1px 1px 0;bottom:-2px;right:-2px}.no-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcgAAAAsCAMAAADW3dj4AAAAVFBMVEUIKbkAAAAAqv8IL70AovwAnfAAlvEGQsUIOcEAkewGfuQGR8gAg+YIPMMFd+AEadkEXtQAi+sEYtcGTcsFcd4INL8DWdEGUc4EbNsAiOkHVdAIK7o5DngbAAAAHHRSTlNmAAVmCxAVWmEaK1YmXjA8RR5BUjRjSU84IkxfPwrt7wAABlFJREFUeNrMmQtW20AMRWlrJ9R8TCgJ0O5/nxVHIRrNRSgTZwJvJs4C7rnWx1f/FuXug6zXcpmbKn9cng/5e8jO5aHMo8+MvLznyefeZapzW+a1yIb57bJCxg8zhPkZ50eeq6PyK8q2yPX2usqdpYZ7Q7IVWKLdlWhLqhVYItUQqCUgCqZA6UKYJc5BrrIEw7ej/4QoR556uoI0kgTpUBKm5ygXJOkoQYLjowM5H0DKOYDUYxzlGkXhOBUU5RxAyjGQcgqKwlEetZU1TOE1gqOilOgTLC9rpA9J1oGRGchdaKShnE8wcpILIadjjNwUGKnkWCkpGNVIvVQywCi/9yO3A0hJKqRxhJI33kln5HO7kcZSzlFG3sNIU9IbqUmNlMM6KQ8aSYbBe5VC9gdJkj5nNPKBRhrG5Ube1oGQcY00lqMeC2skcUYs9fQCuZVbJFFSj2FsNnKXGzmfYOQkP18jqWRuJJWkkYMqORKiCUmWANgDJLrWhhK5TrrWBiPDpvUlN9JjzJtWi+MY1kgo+amQA3WUv65G5t1OKKRyPKORzsmga30Ka2Ri5OseJY303Y6ct4u21VEMu1aFSCkBsDPI/NXKCrnIyGT+MIypklNoJF+tkZGG09fIVd3qyPG9jglpMJnuNRIYkxrZ3cj5yDnSKUkjo5erF3LjjURGq5Fc7pBlTvBCr1YEPl7KyGxbxxcrlIzmjyKRjxZ0rXpcIKT8UCMV53cYP9Z36RzpnAxXdET5iBrpMc7NRhpHdjty4znSMVxspNFUhh2bnYaNQLJGN4jJii43Mt2f5zXSMCZG0smkad0fubGS5LhXUm+PGukCklzseIw0csEcaUJiikzmyHTX2mYkx0i0rTQyZmhKXmhpnjc7+L6VbHYW1MjFu1YLSMZdq651YOQKRoKi3+wMgZJyu4FsWLYCY2uNpJFWJJfMkdzs1CXSL1vjOZJGYknHQVJhxl1rsRD4NkbWHH0aulYvJDY7MFLTstmZ+BUrN/LtmpU2RcZG5kXSEKqUX7/ZSedIJ2QGctdopKRpsxMtzRuNxKdlGsntHHNRI9nrNH79oJLtRs5yTUnsWi1djFyha02NpJJIIWTM8oLTRzpHuqRGgmObkYWS06lG8utHlVGPyxH78sEYQsjuIHOSbFmh5Ek1kigtMNKy0Mh8jFSEEBJzZCqknyS7g8yX5oGQ5zVyxvQRGgmU5MjNjhwn5MZPkUaSLGkkv34Qoz47G7lN363xFAkfF9RItq3pHJkaic1OViJpJNqdgSsBGhm3rfL/9a/W/92c3UrDQBSEQUK8EJTSCvb9X9RgL8bli7M7dk8NDnmDw8ecn9k8o5Qkcvumz5ECUkQCSZRydI484SAJjzRABl3rkTyylkhaJIk0y1aWMSRy3b1HMnsFj+xldmSNtpbFVyxp7Pgh/X6OFJKTiLzeQSQTyuBxjEjcP0rHD++RYjII0aVz5HDS/DKfyHW1a3PV06foFiK5fSVESvGu1a9aXybMkW/wyHSzw1qyaxWRLKVwZM68Z5LL/vlDMD5w/JBApAvRBfdIEum61vwe2RaxTyTDV+KR2vNIdazWJP+5R7ZN6/ZhjIwTAkDSEenjkB7JfvBqYkDZ1NED6SMC93ukZDYCtmvVkg5I2s2OiPRPBijRGBG56SDjh5CESc4gUsIcOZTZkfxmB12rAZLXDyJJKBeD5BGanV7S/Byt6AyQzfEj3uzkRApI+CS7Vk+kFB8kS/PJkUmeR5fmRJJEqpSzPZJEZkjyGgkg26YVEYH6OfIdQNZ5pCdSKiaSQJq+1RBpm52Gwz9fCHCOfIhHfniPlGKPzInUdq4VcGRB+wnlioCAP2NJFR5JJH3TKiJf8WK5nxAwXasjktVEzJxrgVoik1xrEZF8jDXUtV6C64cqeWKwlXlIAunjkFrs3D4IR6zae2R/ISAVECkBSJNr5WbHB5Q9jwTSeSRXrQ7IJzWtFUR+L6QnEik6IWm61tQj30bukUTSlBLnyD6RQtIQSSxdHW9IFhKZeCQHyeldKyM7d75Y5hmLRArJ/c3OOpRP9pX8QvIQ90i+/ZCqdq30yB+B9JmdK7tWEcmuVTwKSUdke1NemNghkizk7D+YkT3C5z0RZctMkbMjSZQciJJIlLo/vaKW/Rc8IhJAtgsBp08PATOql6UCVwAAAABJRU5ErkJggg==");background-size:cover;display:grid;padding:5px 0;place-content:center;width:100%}.no-title[data-v-af8a0f90] .title-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item[data-v-af8a0f90]{align-items:center;display:flex}.no-title[data-v-af8a0f90] .title[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title[data-v-af8a0f90]{-webkit-text-fill-color:transparent;background:linear-gradient(0deg,#01aaff,#00eaff);-webkit-background-clip:text;color:#d5fdfd;padding:0 17px}.no-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.no-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90]{height:14px;width:58px}.left-title[data-v-af8a0f90],.only-border[data-v-af8a0f90]{border:2px solid #375a8899;border-radius:8px;height:100%;width:100%}.left-title[data-v-af8a0f90]{position:relative}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAADCCAMAAADw6ltxAAACr1BMVEUAAAAhVZMcU4ocU4ocU4kcU4ocU4gbUogcU4kcU4kcU4obU4ocU4kcVIocUoUcUYYcUogcVYwcU4kiXpAcU4ocUokcU4ocVIsbU4ocUYYcUokcU4klXo4cUYYcU4ocVIshVZgbUoccVIocVIwcU4kcVIscVIwdU4gcUYYcU4ocU4kcUokcVIwbUokcUYUbVIodU4scVIscWJEcUogdU4scU4scUogcU4kcUogcVIsdUokcUYccU4kcU4ocVIwcU4sbUogcUogcVIscUokbU4wcUYccU4ccU4ocVI0cUogcU4scVIscU4gcVIsdU4kcVIkbU4kcVYscVIwcVIwcVY0cUogcUogbUIQbUokcUYcdVYocUogcVYwcUoccVY0cVo4cU4kcVo4cU4kcUoYcVYwcUYYcT4McUoYcU4wcVIocUoobUogcVIwcVI0bUogcUYQrVZUeWY8cUogcVIscVIkdUoccVY4cVIwcVo4bVo8cVIwdVYwcVo4cVYsdVYscVY0dVowdWZUArM4Am7MeW5EeV48eVY4bUokeWpccUIUcU4gRWqYErc4dV44cUIYgV40cVIwdVY0eVowXV50cUogRWqYRWaYErc4RWqYgV40QWqYRWqYErc4QWqYeV40Drc8ZWpwErM0Ers0ZW58gYJMdTYQiYpQFrs4eWJAVWJ4iWIwVWZ4nbJsRWqYgWZIErc8Ers4fWo8hXZQSWqYRWaYQWqceU4oQWqUtdaMErc0Erc4iYZgeWJIgZ5gDrc4lZZgcUoUcV5AcU4gcUoccVIkcUIIcVYwcUIQcVo0cU4ocWJEcUYUcWZEdVYscVo4cV48cVIscUYIRWqYcVY4cWI8cVooErc4cU4scV5IcWZMcVYcdXJIeV4wgXJQeWZEcTYEeYJQhZpsgYZYfY5gfbJ4M+CoSAAAAwHRSTlMAD7fQ0qPm1820/KfVr/Dj2vDjCvrJvauW6cObDebAugfgy6j0rJuO7dzZxpWMhbGZ8/DwoIR8/d7Iu/LsxZKQgfXsuZ747tevkYj39/Xx7+nEwrSiivrp39XOv75z+/n48ZR4/fHr3X/eysKxpp6JDPbo5+Gg9/Glne/k/fjRq5k0DgP7mHxvK/iu8O/j3Nh5YFAR/fji39LRvqKAcmpbQzogGffw7qKLVyUf8+3QyMK3mZCJXUg+9vLx4tvPmG19FZIlAAALrUlEQVRYw4ST22pTQRiF01vvxBfoM+QRfAN9ACWP4J2XmqIUqogtPdCDPYFVxLPiWZkahskwe/6QmZ3szSYhhz6I65/pbhOQ5CfsPTBf1qw1K6lMzs5aZc6sbBzMI9rtj4vziPbW/VnEy9dA1veWZiDH223M9qtZMnvrQFY+z0KWt1hmZu7FT4zMzv1lA8hl7gf/0VvYaU/krj4+mJO7qq68mL7H3/Xp3DXV7f5aniQebR5O5b5qXXfw9c8k0ensLl3kXgAhbKtfvD+eJDpvj2JuJmqWbPevGj9fLYl9Rr7vx9ysoaS00g+H4t61c+ToXQdzUg+5mTB9srYorH1SFr+0y0g0DKd+NPLKSWWNufWwLP5wEwgb5rR+MCASzgkjiG6WxddPOqXhmrUkeIjIC1F7OmX4GwxXYUJrgY91pMHdXZsyXK9UBYm+1sZoHKSh1ftxMGmYCWP6QgDBgwnT66Go0nAk8kxjz0CGEY15s3xhGITGZLlhROgMhCBLd55VygEhBIjcCI831EymcYFcVEmwATZKSM2HFbl2NBib66slAXPYYoBEMJoLR6NhofSHa5HwPoSI+5pPwQUXwxHc/QxF1bCjQ1ZPiGWCVWdGPU5+G0WBYIAHBAxHPW+E45W7sQin5XgOpc8JcoSAwsmFC4LzRDc88ZKyzDkQuCkOGY4KBIX0UAuWQMRFH85YJAzDOkqJSBgQhSDoXAJhEDAQejAujLGWtfhrOg+h0SgqYsKZs7NhQU4Rd8aeY2iWtFHDjM+GA0FKWatsv4wlOLQVMQvqMt6qJJFS+egE/cKEshQI9AB9a2UDiFQUmyStQcBHjYiifQIBHSjhPNi0eAUCL9SQFyCaTSm9TxutbuLzTKWMRMJZNkOy1ZK+1/OJbKUqEyAw/L+1GCz5KSV+6cI6nCdAwFVyTqg0bSaKEWvIEsnT1Lk0TZLGKQipkDNNG00JISSxMP6PqbI7lhqGoXAHNEMPPEIVdEQL8EQRxlIce4zBmU0mMyaw/DTCJ3l34MzdO7vxZ0U+ku00NCcdLYYA0XKGGEMnYU0CMdqpY4SwGpEgRlhD+rLvOX21vshjFIiwrU70rhLCVkvO13X0G+VII8QYx7ZtEG+ahnUNIdSocWiUiGclhlpDIAZ5vBQAR0SCSfiLUtfNiA3ixYaWpQYZTiCmVwgQpkIsrhXCh1dXXRcj6iTuTlRCO7Gs/BHCEBgjJlCllIkw5nFYCD8fBN8FF+MkAHwlzrEWeyUB9fr0Rf9lYgQjC8RrVsYMzZ8wGzv+J/iIETyWtrMV6JAD3oFaCRGGKoTZIyXRabecmrqZqCJRI16+E3M90qOpl6YC8LROYqQ/3vKE7MmklKOlFsX0AFQh3t+XsJkjQhiTqqAnodQ23BcIq0w8ULqaElwsn0l8+Ha/P00rpTTryaJOCCTEx58s7kGQSoJg36j4SyCIcYxjIwqcPSu2eYllb2q9RM80DCO83CJAvZTOoGqBCEbQQK5ZS16FnCAbr21dSPWJwEQWbNSskRGk+U9YJxjiTsRKfRTi3/Dqqm624C1pnZynr7YnMCvORLmuaKWXct4+EeMfwVMBqdKa94y02+1mxPYk/KlhdSoo3hgRQBxwn61o/PCEyCdABCM2H1dswKQNQQRcr8uD2LynYrtyTlrhPR0IqRAWgkV4iMz5UKIwiOa/uRZ328qWf/zIuKlR3VOJRaenEPIgPqWzlLP3DhFqvIrngcSkPXGw77knVIQtLFczQiwcAomx7D+/g1jCvF4SxEtRfRCBKJq+f78wqrNQVtA6neyZzRj9++895h/0Ydd5DGmxk+6AcUD3P78+R2vVxKwR6xaiE+1QBNP2z9/28zxvFuTw3Rd1EpzPxGnslCNRTtviRJEA4ad2ewqi5C8Q3OYn1roLEERsONTwoPWW8+3GJZVPzwxNwpUSnynqVyC82Z04e+YZIkUfmztKzXgjmJu4UhjkdrTrUFBURAiPwbeWaAy/bq2H0WS8/nj6l8Y6xlkYhsEwvHv+75L9PwhTjpGRI3AixNAIIXWolI2z8NiFT6W06euosr+4kWxXOWmuM2n6IUTqoqOVnoa599vCxbOYs9pWb0gCoIOmac8OxrKmKkJ2M+IcsRzqrla+fwTTu6s0SJkPloeOdMAUVf6YCWyO88eBMwEI6biAxZgFyQwKoeOl0QghwBBMXWbGmVyNBcij3Zbqz30HreUtJomXw9facuNVRN/p1ddyRrYdcZ9tbnYURxL/PWb0VEQ8IlqLx+3WWuvH+xjbSZTGqAsEFXF9jzEuiPgL+rAwx7oVgmAYho9rBxMTxo4MXQmDA10ccBGhE6P+JuUCSBNOYg+bC/fh2Ivsh/ENwm94wvdxLD0mVh/xvff9sq6vZXk1j883VlsgGKrcX7HlCm+wu/VYyTPmiTGtSyV5Rc3jixHlTNrn8zCaSBPLuhSttYFIVUwoT0RTjBDakKGMEWKCSM3jB6BmjCkDGTOYocS/02iQOaX0DjFPM+J8qAHoMp8Rf3y+BW5FFQiKV4mFYxYxJgEh7nBnueICH1cKh4B4Qvw+axBWqbqsDUphYRTbdomu60CskiqEtpUuhIAJm7Td1lmIHWR3TsoWSSexSRkksvvmXBXIuXEc249/KsVet1kYCsOWgjADEhVSBiQzkCn2+i1G4lsYwhjahR91DjJTRJgaKXfQZs5N9Br7noOq0Ec+531tP/vDEYH6D+14OH58lAclXFmWRbFnoPA6YApAPzBYaE6nU7M/EVAaLBYwSuiyrIukgZBgNxQoTVLUTAHjcrnUy+OaacL3hFDCwJjSJknTJp2WkqR+PU2+X/sYJSrfv/jpgk9lovIERuxfr6xEEUoEaxFiHAyMKIqvccR8fi4lXqFEiJc5+2Nk8+/3TIaXrZgzuJQzWovdzjBaZzM7ZJYSz21rMY62w1OrxEZrOwyDBUg62lqnnbXaOactG8PX1/BCDGiomsBmlAiMoU8shrvRuGLQjBI7U1GrjHwxUsr73UgDcMNICWOsKlkByVT3O13lEyW2IajCsJMylF2H3nUST9gdBkZOxoLXAYRHh+jQzuK/t+b2bA8OGK+324aheHzT9vj6QAVn8cYZ9H2P6B/9JtjgBHgI0NhAAz2BXMPWWbzvFgJe4zhycud3GPm4y/N8t92O4xYg6fxwMfa8DcJgELYiMUSIyRKWiOQMlrMwdGGhElMYWPnYyNQxhSoLUjIxdcnP6S/sncFJm0f2+96dT86dzM/ni9jnC4jSlGlKActCnuZoFCQtUgLhQMJJLmJTkyRJE7KKoq4LOoBG09R1A/tJsBKMBgEOdiNFe2oa3WiN577H0ZDagwc2iNa9R6N0inUca140BhZi0sceBh4pqj15/4f3fPGN419oXbY01OaF47La1Uoxw8BtAQY3YtwWGrVWCrPdttsX2nZZgI23B8PgxWqJFEG0MERR5SXFPaocbNjIIrGW8Z3aVhWUtb5hrVV2HXcupWYFXDTPUpQIZjMrY5RRYagUlgchG6EZR2NMyAsoiDPQUuzCcRydczNwarz6bEQj8FyfijjbXaX47oKOJwu6bApIhgdHMEFI8ZNNmWea3OTqbjeKMsMf5ZMvT3kDJUUpxcfu4Nk9OLABD/XbxxgiVwhDUTRdQ0xEBQ4DTAxIwAaPxIDBpUsIgp9K+PXotgv46+tN4DUiM5zMTR7h5HKmpHF/pZROke4WU3jBWSqFPDHGCCP9p1nX1QgpMHPWCZEJR+YOxM+rH0aEs68jy7IRwT7WNOK84Iyx5buu6wZRqg4oB3bOwNvRAJUqdxAKpLhKmGcp04s8bZBA7gxfs+f/9DRorXMYxNL2XddjYT/RoO9hEO975/FKURTaGx2MwFKVJ0WgJINqSCGLjMDnVpZzSxQIGaHmZ/a0pzfPkYGaoSJgPmBEfDzJeABvxDW2mqYKa9s2MqKa6YKMmF87DcOAkBHDnwO4M1BzQLB3BuMva+8N1Oww7kleyR9E49oLoDfH+QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-weight:500;left:-33px;min-height:194px;padding-bottom:31px;padding-top:33px;position:absolute;text-align:center;top:-14px;width:33px}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90] span[data-v-af8a0f90]{-ms-writing-mode:tb-lr;writing-mode:vertical-lr}'),vE.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"ecan-border",style:e.normalizeStyle(t.style),onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},["top-title"===t.mode?(e.openBlock(),e.createElementBlock("div",yE,[e.createElementVNode("div",xE,[e.createElementVNode("div",_E,[bE,e.createElementVNode("div",wE,e.toDisplayString(t.title),1),SE])]),kE,CE,ME,TE])):e.createCommentVNode("v-if",!0),"no-title"===t.mode?(e.openBlock(),e.createElementBlock("div",AE,IE)):e.createCommentVNode("v-if",!0),"only-border"===t.mode?(e.openBlock(),e.createElementBlock("div",DE)):e.createCommentVNode("v-if",!0),"left-title"===t.mode?(e.openBlock(),e.createElementBlock("div",OE,[e.createElementVNode("div",EE,[e.createElementVNode("span",null,e.toDisplayString(t.title),1)])])):e.createCommentVNode("v-if",!0)],4)},vE.__scopeId="data-v-af8a0f90",vE.__file="src/container/border/Border.vue";var NE=sw(vE),LE={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!1,position:"default"},PE=dw(LE),RE=["showModal"],BE=e.defineComponent({name:"EcanModal",components:{AModal:r.Modal},props:Object.assign({},PE),setup:function(t){var n=e.computed((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[t.position]}})),r=t.width,i=t.height,o=t.originalWidth,a=t.originalHeight,s=e.computed((function(){return parseFloat(r)/parseFloat(o)})),l=e.computed((function(){return parseFloat(i)/parseFloat(a)})),u=e.computed((function(){return"".concat(100*e.unref(s),"%")})),c=e.computed((function(){return document.body.offsetWidth})),p=e.computed((function(){return document.body.offsetHeight})),h=e.computed((function(){return e.unref(c)*e.unref(s)})),d=e.computed((function(){return e.unref(p)*e.unref(l)})),f=e.computed((function(){return{width:"".concat(e.unref(h),"px"),height:"".concat(e.unref(d),"px")}})),g=mw(t),v=e.computed((function(){return Object.assign(Object.assign({},e.unref(g)),{backgroundImage:Fw(t.backgroundImage,!0),transform:"scale(".concat(e.unref(h)/parseFloat(r),",").concat(e.unref(d)/parseFloat(i),")")})})),m=e.computed((function(){return e.unref(s)>=1})),y=e.computed((function(){return t.fullModal})),x=e.computed((function(){var t="ecan-modal";return e.unref(m)&&(t+=" ecan-full-width-modal"),e.unref(y)&&(t+=" ecan-full-modal"),t})),_=e.ref(!1),b=e.ref(),w=e.inject(bw,{touchRequest:function(){}}).touchRequest,S=function(){_.value=!0,e.nextTick((function(){w()}))},k=function(){_.value=!1};return Cw(t,{showModal:S}),{contain:b,containStyle:f,contentStyle:v,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:n,modalWith:u,isFullModal:y,style:g,visible:_,showModal:S,onOk:function(){k()},onCancel:function(){k()},isFullWidth:m,wrapClassName:x}}});j_(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");j_(".ecan-modal .ant-modal-body{padding:0}.ecan-modal .ant-modal-header{background:none;border-bottom:none;padding:0}.ecan-full-width-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-width-modal .ant-modal-content{display:flex;flex-direction:column}.ecan-full-width-modal .ant-modal-body{flex:1}.ecan-full-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-modal .ant-modal-content{display:flex;flex-direction:column;height:100vh}.ecan-full-modal .ant-modal-body{flex:1}[datav-theme=darkBlue] .ecan-modal .anticon-close>svg>path{fill:#fff}"),BE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" centered + style 中的 verticalAlign 调整弹窗位置 "),e.createVNode(s,{getContainer:t.getContainer,wrapClassName:t.wrapClassName,centered:"",visible:t.visible,footer:null,width:t.isFullModal||t.isFullWidth?"100%":t.modalWith,destroyOnClose:t.destroyOnClose,style:e.normalizeStyle(t.modalStyle),bodyStyle:{background:"red"},onOk:t.onOk,onCancel:t.onCancel},e.createSlots({default:e.withCtx((function(){return[e.createElementVNode("div",{class:"contain",ref:"contain",style:e.normalizeStyle(t.containStyle)},[e.createElementVNode("div",{class:"content",style:e.normalizeStyle(t.contentStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.componentList,(function(t,n){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),e.mergeProps({key:t.id+n},t),null,16)})),128))],4)],4)]})),_:2},[t.title?{name:"title",fn:e.withCtx((function(){return[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:t.titleFontSize,color:t.titleColor,backgroundColor:t.backgroundColor,padding:"16px 24px"})},e.toDisplayString(t.title),5)]}))}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},BE.__scopeId="data-v-4efa8b94",BE.__file="src/container/modal/Modal.vue";var VE=sw(BE),zE=Object.assign(Object.assign({},hw),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),FE=dw(zE),GE=e.defineComponent({name:"EcanImage",props:Object.assign({},FE),setup:function(t){var n=mw(t),r=e.computed((function(){return Fw(t.imgUrl)})),i=e.inject(xw,{pageMode:"normal"}).pageMode;return{style:n,myImgUrl:r,onClick:function(){var n=t.linkPage,r=""!==n?function(t,e){var n="/preview?pageId=".concat(e),r="".concat(Sw).concat(e);return"preview"!==t?r:n}(e.unref(i),n):"",o=t.linkUrl,a=""!==o?o:r;""!==a&&window.open(a,t.linkMethod)}}}}),UE=["src"];j_(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),GE.render=function(t,n,r,i,o,a){return""!==t.myImgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,style:e.normalizeStyle(t.style),src:t.myImgUrl,onClick:n[0]||(n[0]=function(){return t.onClick&&t.onClick.apply(t,arguments)})},null,12,UE)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"image-placeholder",style:e.normalizeStyle(t.style)}," 请上传图片 ",4))},GE.__scopeId="data-v-5a006553",GE.__file="src/media/image/Image.vue";var WE=sw(GE),jE=Object.assign(Object.assign({},hw),{zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,size:"default",isUseSeq:!1,columnsFixedNum:0,scrollX:0,paginationShow:!0,simple:!1,headerCellBackgroundColor:"",cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:void 0}),HE=dw(jE),YE=["click","refreshData"],qE=e.defineComponent({name:"EcanTable",components:{Skeleton:ew,ATable:r.Table,ATableSummary:r.TableSummary,ATableSummaryRow:r.TableSummaryRow,ATableSummaryCell:r.TableSummaryCell},props:Object.assign({},HE),setup:function(t){var n=this,r=mw(t),i=e.computed((function(){if(t.paginationShow)switch(t.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(t.size){case"small":return 40;case"middle":return 47;default:return 55}})),o=e.computed((function(){return t.scrollX})),a=e.computed((function(){return parseFloat(t.height)-e.unref(i)})),s=e.computed((function(){var e=[];t.isUseSeq&&e.push({title:"序号",dataIndex:"SEQ"});for(var n=(e=e.concat(t.columns)).length,r=t.columnsFixedNum,i=function(n){var i=e[n];i.fixed=n<r&&"left";var o=i.headerCellAlign,a=void 0===o?"center":o,s=i.headerCellColor,l=i.cellAlign,u=void 0===l?"center":l,c=i.cellColor;i.customHeaderCell=function(){return{style:{textAlign:a,color:s,backgroundColor:t.headerCellBackgroundColor,borderBottomColor:t.borderColor}}},i.customCell=function(){return{style:{textAlign:u,color:c,backgroundColor:t.cellBackgroundColor,borderBottomColor:t.borderColor}}}},o=0;o<n;o++)i(o);return e})),l=e.ref(0),u=e.ref(1),c=e.computed((function(){return t.paginationPageSize})),p=e.ref(t.data);e.watch((function(){return[t.data,t.dataType]}),(function(t){var e=G_(t,2),n=e[0];"static"===e[1]&&(p.value=n)}));var h=Rw(t),d=e.ref(!1),f=e.computed((function(){var n=t.simple,r=[t.paginationPosition];return t.paginationShow&&{simple:n,position:r,total:e.unref(l),current:e.unref(u),pageSize:e.unref(c)}})),g=function(t){return 1==+t?"是":0==+t?"否":t},v=Mw(t.events),m=e.inject(xw,{pageMode:"normal"}).pageMode,y=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),x=y.getGlobalModel,_=y.setGlobalModel,b=e.ref([]),w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];b.value=t.map((function(t){return{title:t,dataIndex:t,key:t}})),p.value=e},S=Ww(t),k=function(){return C(n,void 0,void 0,pw.mark((function e(){var n,r,i,o,a;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("indicator"===t.dataType){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,d.value=!0,e.next=6,S();case 6:a=e.sent,w(null===(r=null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.columns,null===(o=null===(i=null==a?void 0:a.data)||void 0===i?void 0:i.data)||void 0===o?void 0:o.rows),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.error(e.t0);case 13:return e.prev=13,d.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},M=function(){"design"!==e.unref(m)&&(k(),C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,s,f,g;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,d.value=!0,n.next=6,h({pageNum:e.unref(u),pageSize:e.unref(c)});case 6:i=n.sent,o=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},a=o.rows,s=void 0===a?[]:a,f=o.total,g=void 0===f?0:f,l.value=g,p.value=s,n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),console.error(n.t0);case 15:return n.prev=15,d.value=!1,n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])}))))};Cw(t,{refreshData:function(){M()}});var T=e.computed((function(){for(var n=t.columns,r=t.isUseSeq?[{total:"小计"}]:[],i=0,o=0;o<n.length;o++){var a=n[o];a.isCalcTotal?(r.push(Object.assign(Object.assign({},a),{index:o,total:0})),i++):r.push(Object.assign({},a))}if(0===i)return[];for(var s=(e.unref(u)-1)*e.unref(c),l=s+e.unref(c),h=e.unref(p).slice(s,l),d=0;d<h.length;d++)for(var f=h[d],g=0;g<r.length;g++){var v=r[g],m=v.dataIndex,y=v.total,x=+f[m];Number.isNaN(x)||null==y||(v.total=x+y)}return r}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(M,t.requestSort),{x:o,y:a,myColumns:s,style:r,customRow:function(e){return{onClick:v("click",(function(){var n=t.id,r=x(n);_(n,Object.assign(Object.assign({},r),{RECORD:e}))}))}},pagination:f,formatFn:function(t,e){return null==e||""===e?t:{money:Nw,percentage:Lw,contrast:Lw,boolean:g}[e](t)||""},contrastClass:function(t,e){var n=parseFloat(t+"");if("contrast"!==e)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},tableChange:function(t,e,n){var r=t.current;u.value=r,k()},dataColumns:b,dataSource:p,summaryList:T,loading:d}}});j_('.table[data-v-21849ce3]{height:100%;width:100%}.goUp[data-v-21849ce3]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-21849ce3]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}');j_(".ecan-table ::-webkit-scrollbar{height:6px;width:6px}.ecan-table ::-webkit-scrollbar-thumb{background-color:#c8c9ca!important;border-radius:3px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.ecan-table ::-webkit-scrollbar-track{background-color:#fff}.ecan-table .ant-table-cell-scrollbar{box-shadow:0 1px 0 1px transparent}.ecan-table .ant-table{background:#fff;color:rgba(0,0,0,.65)}.ecan-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:rgba(0,0,0,.85)}.ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0}.ecan-table .ant-table-bordered .ant-table-container{border:1px solid #f0f0f0!important}.ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #f0f0f0!important}.ecan-table .ant-pagination-item-link{border:1px solid #d9d9d9!important}.ecan-table .anticon{color:rgba(0,0,0,.65)!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-table .ant-table{background:#071655;color:#e8e8e8}[datav-theme=darkBlue] .ecan-table .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table,[datav-theme=darkBlue] .ecan-table .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{border-top:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-thead>tr>th{background:#17338c;border-bottom:1px solid #3e8ee3;color:#cdd0f7}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #3e8ee3}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-container{border:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item-link{background:#17338c!important;border:1px solid #243c8e!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item{background:#17338c!important}[datav-theme=darkBlue] .ecan-table .anticon{color:hsla(0,0%,100%,.65)!important}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td{background:#225b98}"),qE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-table-summary-cell"),l=e.resolveComponent("a-table-summary-row"),u=e.resolveComponent("a-table-summary"),c=e.resolveComponent("a-table"),p=e.resolveComponent("skeleton");return e.openBlock(),e.createElementBlock("div",{class:"ecan-table",style:e.normalizeStyle(t.style)},[e.createVNode(p,{loading:t.loading},{default:e.withCtx((function(){return[e.createVNode(c,{class:"table",columns:t.dataColumns.length>0?t.dataColumns:t.myColumns,"data-source":t.dataSource,bordered:t.bordered,size:t.size,customRow:t.customRow,scroll:{x:t.x,y:t.y},pagination:t.pagination,onChange:t.tableChange},{bodyCell:e.withCtx((function(n){var r=n.column,i=n.index,o=n.text;return[e.createCommentVNode(" 序列配置 "),"SEQ"===r.dataIndex?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i+1),1)],2112)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.contrastClass(o,r.format)])},e.toDisplayString((null!=r.format||""!==r.format)&&t.formatFn(o,r.format)),3))]})),summary:e.withCtx((function(){return[t.summaryList.length>0?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx((function(){return[e.createVNode(l,null,{default:e.withCtx((function(){return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.summaryList,(function(n,r){return e.openBlock(),e.createBlock(s,{key:n.dataIndex+r,index:n.index,style:e.normalizeStyle({backgroundColor:t.cellBackgroundColor,textAlign:n.cellAlign||"center",color:n.cellColor,borderBottomColor:t.borderColor})},{default:e.withCtx((function(){return[e.createElementVNode("div",{class:e.normalizeClass([t.contrastClass(n.total,n.format)])},e.toDisplayString((null!=n.format||""!==n.format)&&t.formatFn(n.total,n.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):e.createCommentVNode("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},qE.__scopeId="data-v-21849ce3",qE.__file="src/table/table/Table.vue";var XE=sw(qE),ZE=Object.assign(Object.assign({},hw),{mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"}),JE=dw(ZE);Yx([xk,function(t){Yx(UA),t.registerChartView(xA),t.registerSeriesModel(bA),t.registerLayout(SA),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,wA),ov("map",t.registerAction)},cT,function(t){Yx(DO),Yx(BO)},fD]);var KE=e.defineComponent({name:"EcanMap",components:{Echarts:q_},props:Object.assign({},JE),setup:function(t){var n=this,r=mw(t,["backgroundImage"]),i=e.ref(),o=e.computed((function(){return Fw(t.geoBackgroundImage)})),a=e.ref(),s=e.computed((function(){return Fw(t.backgroundImage)})),l=e.computed((function(){return t.backgroundImage?{image:e.unref(a),repeat:"no-repeat",width:"auto"}:""})),u=e.computed((function(){return t.geoBackgroundImage?{image:e.unref(i),repeat:t.geoBackgroundImageRepeat}:t.geoItemStyleAreaColor})),c=e.computed((function(){var e=t.symbolImage;return t.symbolImage?"image://"+Fw(e):"circle"})),p=e.computed((function(){var e;return null===(e=t.geoCenter)||void 0===e?void 0:e.split(",")})),h=e.computed((function(){return{backgroundColor:e.unref(l),tooltip:{show:!0},geo:{zoom:t.geoZoom,roam:t.geoRoam,center:e.unref(p),map:"map",tooltip:{show:!1},label:{show:t.geoLabelShow,color:t.geoLabelColor,fontSize:t.geoLabelFontSize},itemStyle:{areaColor:e.unref(u),borderColor:t.geoItemStyleBorderColor,borderWidth:t.geoItemStyleBorderWidth,shadowColor:t.geoItemStyleShadowColor,shadowBlur:t.geoItemStyleShadowBlur,shadowOffsetX:t.geoItemStyleShadowOffsetX,shadowOffsetY:t.geoItemStyleShadowOffsetY},emphasis:{disabled:t.geoEmphasisDisabled,label:{color:t.geoEmphasisLabelColor},itemStyle:{areaColor:t.geoEmphasisItemStyleAreaColor,borderColor:t.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:t.itemStyleColor},symbol:e.unref(c),symbolSize:[t.symbolWidth,t.symbolHeight],label:{show:t.labelShow,fontSize:t.labelFontSize,formatter:t.labelFormatter,color:t.labelColor},tooltip:{show:t.tooltipShow,formatter:t.tooltipFormatter,textStyle:{color:t.tooltipTextStyleColor}},data:t.data}]}})),d=e.ref(!1);return e.watch((function(){return t.mapJson}),(function(){C(n,void 0,void 0,pw.mark((function e(){var n,r;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=t.mapJson)&&null!=n.path){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Uw(ww+n.path);case 5:Km("map",(null==(r=e.sent)?void 0:r.data)||{}),d.value=!0;case 8:case"end":return e.stop()}}),e)})))}),{immediate:!0}),{option:h,style:r,isLoadedData:d,myBackgroundImage:s,backgroundImageRef:a,geoBackgroundImageRef:i,myGeoBackgroundImage:o}}}),QE=["src"],$E=["src"];j_(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),KE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts");return e.openBlock(),e.createElementBlock("div",{class:"ecan-map",style:e.normalizeStyle(t.style)},[t.isLoadedData?(e.openBlock(),e.createBlock(s,{key:0,option:t.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createElementVNode("img",{ref:"geoBackgroundImageRef",src:t.myGeoBackgroundImage},null,8,QE),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("img",{ref:"backgroundImageRef",src:t.myBackgroundImage},null,8,$E),[[e.vShow,!1]])],4)},KE.__scopeId="data-v-7865460d",KE.__file="src/map/map/Map.vue";var tN=sw(KE),eN=Object.freeze({__proto__:null,pageConfig:fw,pageConfigComponentProps:gw,EcanPageConfig:Yw,providerConfig:qw,providerConfigComponentProps:Xw,EcanProviderConfig:Kw,textProps:Qw,textComponentProps:$w,textEvents:tS,EcanText:rS,EcanScrollText:aS,timeDisplayProps:sS,timeDisplayComponentProps:lS,EcanTimeDisplay:cS,listProps:pS,listComponentProps:hS,listEvents:dS,EcanList:CS,proportionProps:MS,proportionComponentProps:TS,proportionEvents:AS,EcanProportion:DS,inputProps:OS,inputComponentProps:ES,EcanInput:LS,datePickerProps:PS,datePickerComponentProps:RS,datePickerEvents:BS,EcanDatePicker:zS,selectProps:FS,selectComponentProps:GS,selectEvents:US,EcanSelect:jS,rangePickerProps:HS,rangePickerComponentProps:YS,rangePickerEvents:qS,EcanRangePicker:ZS,buttonProps:JS,buttonComponentProps:KS,buttonEvents:QS,EcanButton:ek,tabsProps:nk,tabsComponentProps:rk,tabsEvents:ik,EcanTabs:sk,pieProps:lk,pieComponentProps:uk,pieEvents:ck,EcanPie:UO,lineProps:WO,lineComponentProps:jO,lineEvents:HO,EcanLine:qO,barProps:XO,barComponentProps:ZO,barEvents:JO,EcanBar:QO,scatterProps:$O,scatterComponentProps:tE,scatterEvents:eE,EcanScatter:rE,customGraphProps:iE,customGraphComponentProps:oE,EcanCustomGraph:sE,comboGraphProps:lE,comboGraphComponentProps:uE,comboGraphEvents:cE,EcanComboGraph:hE,borderProps:dE,borderComponentProps:fE,borderEvents:gE,EcanBorder:NE,modalProps:LE,modalComponentProps:PE,modalEvents:RE,EcanModal:VE,imageProps:zE,imageComponentProps:FE,EcanImage:WE,tableProps:jE,tableComponentProps:HE,tableEvents:YE,EcanTable:XE,mapProps:ZE,mapComponentProps:JE,EcanMap:tN}),nN={install:function(t){Object.keys(eN).forEach((function(e){var n=eN[e];n.install&&t.use(n)}))}};t.EcanBar=QO,t.EcanBorder=NE,t.EcanButton=ek,t.EcanComboGraph=hE,t.EcanCustomGraph=sE,t.EcanDatePicker=zS,t.EcanImage=WE,t.EcanInput=LS,t.EcanLine=qO,t.EcanList=CS,t.EcanMap=tN,t.EcanModal=VE,t.EcanPageConfig=Yw,t.EcanPie=UO,t.EcanProportion=DS,t.EcanProviderConfig=Kw,t.EcanRangePicker=ZS,t.EcanScatter=rE,t.EcanScrollText=aS,t.EcanSelect=jS,t.EcanTable=XE,t.EcanTabs=sk,t.EcanText=rS,t.EcanTimeDisplay=cS,t.barComponentProps=ZO,t.barEvents=JO,t.barProps=XO,t.borderComponentProps=fE,t.borderEvents=gE,t.borderProps=dE,t.buttonComponentProps=KS,t.buttonEvents=QS,t.buttonProps=JS,t.comboGraphComponentProps=uE,t.comboGraphEvents=cE,t.comboGraphProps=lE,t.customGraphComponentProps=oE,t.customGraphProps=iE,t.datePickerComponentProps=RS,t.datePickerEvents=BS,t.datePickerProps=PS,t.default=nN,t.imageComponentProps=FE,t.imageProps=zE,t.inputComponentProps=ES,t.inputProps=OS,t.lineComponentProps=jO,t.lineEvents=HO,t.lineProps=WO,t.listComponentProps=hS,t.listEvents=dS,t.listProps=pS,t.mapComponentProps=JE,t.mapProps=ZE,t.modalComponentProps=PE,t.modalEvents=RE,t.modalProps=LE,t.pageConfig=fw,t.pageConfigComponentProps=gw,t.pieComponentProps=uk,t.pieEvents=ck,t.pieProps=lk,t.proportionComponentProps=TS,t.proportionEvents=AS,t.proportionProps=MS,t.providerConfig=qw,t.providerConfigComponentProps=Xw,t.rangePickerComponentProps=YS,t.rangePickerEvents=qS,t.rangePickerProps=HS,t.scatterComponentProps=tE,t.scatterEvents=eE,t.scatterProps=$O,t.selectComponentProps=GS,t.selectEvents=US,t.selectProps=FS,t.tableComponentProps=HE,t.tableEvents=YE,t.tableProps=jE,t.tabsComponentProps=rk,t.tabsEvents=ik,t.tabsProps=nk,t.textComponentProps=$w,t.textEvents=tS,t.textProps=Qw,t.timeDisplayComponentProps=lS,t.timeDisplayProps=sS,Object.defineProperty(t,"__esModule",{value:!0})}));
10
+ */var Si=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new ze,o=n.renderer||"canvas";if(bi[o]||(o=at(bi)[0]),"production"!==process.env.NODE_ENV&&!bi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new bi[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l=A.node||A.worker||s?null:new _r(a.getViewportRoot(),a.root);this.handler=new Ae(i,a,l,a.root),this.animation=new rr({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Bn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Bn(e[i].color,1);return(n/=r)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=$n();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=$n();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _i&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete wi[t]},t}();function ki(t,e){var n=new Si(Y(),t,e);return wi[n.id]=n,n}var Ci=1e-4;function Mi(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Ti(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return pt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Ai(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ii(t){return t.sort((function(t,e){return t-e})),t}function Di(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Oi(t)}function Oi(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function Ei(t,e){var n=Math.max(Di(t),Di(e)),r=t+e;return n>20?r:Ai(r,n)}function Ni(t){var e=2*Math.PI;return(t%e+e)%e}function Li(t){return t>-1e-4&&t<Ci}var Pi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ri(t){if(t instanceof Date)return t;if(pt(t)){var e=Pi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Bi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Vi(t,e){var n=Bi(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function zi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function Fi(t){var e=parseFloat(t);return e==t&&(0!==e||!pt(t)||t.indexOf("x")<=0)?e:NaN}function Gi(t){return!isNaN(Fi(t))}function Ui(){return Math.round(9*Math.random())}function Wi(t,e){return 0===e?t:Wi(e,t%e)}function ji(t,e){return null==t?e:null==e?t:t*e/Wi(t,e)}var Hi={},Yi="undefined"!=typeof console&&console.warn&&console.log;function qi(t,e,n){if(Yi){if(n){if(Hi[e])return;Hi[e]=!0}console[t]("[ECharts] "+e)}}function Xi(t,e){qi("warn",t,e)}function Zi(t,e){qi("error",t,e)}function Ji(t){"production"!==process.env.NODE_ENV&&qi("warn","DEPRECATED: "+t,!0)}function Ki(t,e,n){"production"!==process.env.NODE_ENV&&Ji((n?"["+n+"]":"")+t+" is deprecated, use "+e+" instead.")}function Qi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if("production"!==process.env.NODE_ENV){var r=function(t){return void 0===t?"undefined":t===1/0?"Infinity":t===-1/0?"-Infinity":_t(t)?"NaN":t instanceof Date?"Date("+t.toISOString()+")":ct(t)?"function () { ... }":xt(t)?t+"":null};n=rt(t,(function(t){if(pt(t))return t;var e=r(t);if(null!=e)return e;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(t,(function(t,e){var n=r(e);return null==n?e:n}))}catch(t){return"?"}})).join(" ")}return n}function $i(t){throw new Error(t)}function to(t,e,n){return(e-t)*n+t}var eo="series\0";function no(t){return t instanceof Array?t:null==t?[]:[t]}function ro(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var io=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function oo(t){return!ft(t)||ut(t)||t instanceof Date?t:t.value}function ao(t){return ft(t)&&!(t instanceof Array)}function so(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Et();nt(e,(function(t,n){ft(t)?"production"!==process.env.NODE_ENV&&(null==t.id||ho(t.id)||po(t.id),null==t.name||ho(t.name)||po(t.name)):e[n]=null}));var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||go(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){nt(r,(function(i,o){if(i&&null!=i.id){var a=uo(i.id),s=n.get(a);if(null!=s){var l=t[s];Mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}(u,t,a,e),r&&function(t,e){nt(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!go(n)&&!go(o)&&lo("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(u,e),r||i?function(t,e,n){nt(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||go(r.existing)||r.existing&&null!=e.id&&!lo("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,e,i):o&&function(t,e){nt(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=Et(),nt(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),nt(s,(function(t){var e=t.newOption;Mt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),nt(s,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(ft(r)){if(i.name=null!=r.name?uo(r.name):n?n.name:eo+e,n)i.id=uo(n.id);else if(null!=r.id)i.id=uo(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}})),u}function lo(t,e,n){var r=co(e[t],null),i=co(n[t],null);return null!=r&&null!=i&&r===i}function uo(t){if("production"!==process.env.NODE_ENV&&null==t)throw new Error;return co(t,"")}function co(t,e){return null==t?e:pt(t)?t:dt(t)||ht(t)?t+"":e}function po(t){"production"!==process.env.NODE_ENV&&Xi("`"+t+"` is invalid id or name. Must be a string or number.")}function ho(t){return ht(t)||Gi(t)}function fo(t){var e=t.name;return!(!e||!e.indexOf(eo))}function go(t){return t&&null!=t.id&&0===uo(t.id).indexOf("\0_ec_\0")}function vo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?ut(e.dataIndex)?rt(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?ut(e.name)?rt(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function mo(){var t="__ec_inner_"+yo++;return function(e){return e[t]||(e[t]={})}}var yo=Ui();function xo(t,e,n){var r=_o(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=wo(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function _o(t,e){var n;if(pt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Et(),o={},a=!1;return nt(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&$(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var bo={useDefault:!0,enableAll:!1,enableNone:!1};function wo(t,e,n,r){r=r||bo;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Mt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Mt(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function So(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var ko="___EC__COMPONENT__CONTAINER___",Co="___EC__EXTENDED_CLASS___";function Mo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function To(t,e){t.$constructor=t,t.extend=function(t){"production"!==process.env.NODE_ENV&&nt(e,(function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")}));var n,r,i=this;return ct(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?n=function(t){function e(){return t.apply(this,arguments)||this}return k(e,t),e}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(n,this)),K(n.prototype,t),n[Co]=!0,n.extend=this.extend,n.superCall=Do,n.superApply=Oo,n.superClass=i,n}}function Ao(t,e){t.extend=e.extend}var Io=Math.round(10*Math.random());function Do(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Oo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Eo(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){Mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=Mo(r);if(i.sub){if(i.sub!==ko){var o=function(t){var n=e[t.main];n&&n[ko]||((n=e[t.main]={})[ko]=!0);return n}(i);o[i.sub]=t}}else"production"!==process.env.NODE_ENV&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[ko]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=Mo(t),r=[],i=e[n.main];return i&&i[ko]?nt(i,(function(t,e){e!==ko&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=Mo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return nt(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Mo(t),r=e[n.main];return r&&r[ko]}}function No(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&$(r,s)>=0||i&&$(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Lo=No([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Po=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Lo(this,t,e)},t}(),Ro=new yn(50);function Bo(t){if("string"==typeof t){var e=Ro.get(t);return e&&e.image}return t}function Vo(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Ro.get(t),a={hostEl:n,cb:r,cbPayload:i};if(o)!Fo(e=o.image)&&o.pending.push(a);else{var s=N.loadImage(t,zo,zo);s.__zrImageSrc=t,Ro.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function zo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Fo(t){return t&&t.width&&t.height}var Go=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Uo(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Wo(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=jo(o[a],i);return o.join("\n")}function Wo(t,e,n,r){var i=K({},r=r||{});i.font=e,n=wt(n,"..."),i.maxIterations=wt(r.maxIterations,2);var o=i.minChar=wt(r.minChar,0);i.cnCharWidth=ti("国",e);var a=i.ascCharWidth=ti("a",e);i.placeholder=wt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=ti(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function jo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=ti(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ho(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=ti(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function Ho(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Yo=function(){},qo=function(t){this.tokens=[],t&&(this.tokens=t)},Xo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Zo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,p=!1;if(r){var h=l.padding,d=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=ai(l.width,r.width)+d;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),p=!0),r.accumWidth=f}else{var g=Qo(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Yo;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:ti(m,c),v||p)u.push(new qo([y]));else{var x=(u[u.length-1]||(u[0]=new qo)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(m||!_||s)&&x.push(y)}}}var Jo=it(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ko(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&e<=383}(t)||!!Jo[t]}function Qo(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,p=0;p<t.length;p++){var h=t.charAt(p);if("\n"!==h){var d=ti(h,e),f=!r&&!Ko(h);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=d)):f?(o.push(l),a.push(u),l=h,u=d):(o.push(h),a.push(d)):(c+=d,f?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var $o="__zr_style_"+Math.round(10*Math.random()),ta={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ea={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ta[$o]=!0;var na=["z","z2","invisible"],ra=["invisible"],ia=function(t){function e(e){return t.call(this,e)||this}var n;return k(e,t),e.prototype._init=function(e){for(var n=at(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){oa.copy(t.getBoundingRect()),t.transform&&oa.applyTransform(t.transform);return aa.width=e,aa.height=n,!oa.intersect(aa)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Qr(0,0,0,0)),e?Qr.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Qr(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:K(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Nt(ta,t)},e.prototype.useStyle=function(t){t[$o]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[$o]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,na)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=at(u),p=0;p<c.length;p++){(d=c[p])in s&&(s[d]=s[d],this.style[d]=u[d])}var h=at(s);for(p=0;p<h.length;p++){var d=h[p];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?ra:na;for(p=0;p<f.length;p++){d=f[p];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return K(t,e),t},e.prototype.getAnimationStyleProps=function(){return ea},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(yi),oa=new Qr(0,0,0,0),aa=new Qr(0,0,0,0);var sa=ia,la=Math.min,ua=Math.max,ca=Math.sin,pa=Math.cos,ha=2*Math.PI,da=Vt(),fa=Vt(),ga=Vt();function va(t,e,n,r,i,o){i[0]=la(t,n),i[1]=la(e,r),o[0]=ua(t,n),o[1]=ua(e,r)}var ma=[],ya=[];function xa(t,e,n,r,i,o,a,s,l,u){var c=rn,p=tn,h=c(t,n,i,a,ma);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var f=p(t,n,i,a,ma[d]);l[0]=la(f,l[0]),u[0]=ua(f,u[0])}h=c(e,r,o,s,ya);for(d=0;d<h;d++){var g=p(e,r,o,s,ya[d]);l[1]=la(g,l[1]),u[1]=ua(g,u[1])}l[0]=la(t,l[0]),u[0]=ua(t,u[0]),l[0]=la(a,l[0]),u[0]=ua(a,u[0]),l[1]=la(e,l[1]),u[1]=ua(e,u[1]),l[1]=la(s,l[1]),u[1]=ua(s,u[1])}function _a(t,e,n,r,i,o,a,s){var l=un,u=sn,c=ua(la(l(t,n,i),1),0),p=ua(la(l(e,r,o),1),0),h=u(t,n,i,c),d=u(e,r,o,p);a[0]=la(t,i,h),a[1]=la(e,o,d),s[0]=ua(t,i,h),s[1]=ua(e,o,d)}function ba(t,e,n,r,i,o,a,s,l){var u=Zt,c=Jt,p=Math.abs(i-o);if(p%ha<1e-4&&p>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(da[0]=pa(i)*n+t,da[1]=ca(i)*r+e,fa[0]=pa(o)*n+t,fa[1]=ca(o)*r+e,u(s,da,fa),c(l,da,fa),(i%=ha)<0&&(i+=ha),(o%=ha)<0&&(o+=ha),i>o&&!a?o+=ha:i<o&&a&&(i+=ha),a){var h=o;o=i,i=h}for(var d=0;d<o;d+=Math.PI/2)d>i&&(ga[0]=pa(d)*n+t,ga[1]=ca(d)*r+e,u(s,ga,s),c(l,ga,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],ka=[],Ca=[],Ma=[],Ta=[],Aa=[],Ia=Math.min,Da=Math.max,Oa=Math.cos,Ea=Math.sin,Na=Math.abs,La=Math.PI,Pa=2*La,Ra="undefined"!=typeof Float32Array,Ba=[];function Va(t){return Math.round(t/La*1e8)/1e8%2*La}var za=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Na(n/wr/t)||0,this._uy=Na(n/wr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(wa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Na(t-this._xi),r=Na(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(wa.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ba[0]=r,Ba[1]=i,function(t,e){var n=Va(t[0]);n<0&&(n+=Pa);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Pa?i=n+Pa:e&&n-i>=Pa?i=n-Pa:!e&&n>i?i=n+(Pa-Va(n-i)):e&&n<i&&(i=n-(Pa-Va(i-n))),t[0]=n,t[1]=i}(Ba,o),r=Ba[0];var a=(i=Ba[1])-r;return this.addData(wa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Oa(i)*n+t,this._yi=Ea(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(wa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ra||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ra&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ra&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ca[0]=Ca[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Aa[0]=Aa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case wa.M:n=i=e[t++],r=o=e[t++],Ta[0]=i,Ta[1]=o,Aa[0]=i,Aa[1]=o;break;case wa.L:va(n,r,e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.C:xa(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.Q:_a(n,r,e[t++],e[t++],e[t],e[t+1],Ta,Aa),n=e[t++],r=e[t++];break;case wa.A:var l=e[t++],u=e[t++],c=e[t++],p=e[t++],h=e[t++],d=e[t++]+h;t+=1;var f=!e[t++];s&&(i=Oa(h)*c+l,o=Ea(h)*p+u),ba(l,u,c,p,h,d,f,Ta,Aa),n=Oa(d)*c+l,r=Ea(d)*p+u;break;case wa.R:va(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],Ta,Aa);break;case wa.Z:n=i,r=o}Zt(Ca,Ca,Ta),Jt(Ma,Ma,Aa)}return 0===t&&(Ca[0]=Ca[1]=Ma[0]=Ma[1]=0),new Qr(Ca[0],Ca[1],Ma[0]-Ca[0],Ma[1]-Ca[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,p=0;p<e;){var h=t[p++],d=1===p;d&&(a=i=t[p],s=o=t[p+1]);var f=-1;switch(h){case wa.M:i=a=t[p++],o=s=t[p++];break;case wa.L:var g=t[p++],v=(x=t[p++])-o;(Na(I=g-i)>n||Na(v)>r||p===e-1)&&(f=Math.sqrt(I*I+v*v),i=g,o=x);break;case wa.C:var m=t[p++],y=t[p++],x=(g=t[p++],t[p++]),_=t[p++],b=t[p++];f=an(i,o,m,y,g,x,_,b,10),i=_,o=b;break;case wa.Q:f=pn(i,o,m=t[p++],y=t[p++],g=t[p++],x=t[p++],10),i=g,o=x;break;case wa.A:var w=t[p++],S=t[p++],k=t[p++],C=t[p++],M=t[p++],T=t[p++],A=T+M;p+=1,t[p++],d&&(a=Oa(M)*k+w,s=Ea(M)*C+S),f=Da(k,C)*Ia(Pa,Math.abs(T)),i=Oa(A)*k+w,o=Ea(A)*C+S;break;case wa.R:a=i=t[p++],s=o=t[p++],f=2*t[p++]+2*t[p++];break;case wa.Z:var I=a-i;v=s-o;f=Math.sqrt(I*I+v*v),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,p,h=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=h[_++],w=1===_;switch(w&&(n=i=h[_],r=o=h[_+1]),b!==wa.L&&x>0&&(t.lineTo(c,p),x=0),b){case wa.M:n=i=h[_++],r=o=h[_++],t.moveTo(i,o);break;case wa.L:a=h[_++],s=h[_++];var S=Na(a-i),k=Na(s-o);if(S>d||k>f){if(v){if(m+(X=l[y++])>u){var C=(u-m)/X;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=X}t.lineTo(a,s),i=a,o=s,x=0}else{var M=S*S+k*k;M>x&&(c=a,p=s,x=M)}break;case wa.C:var T=h[_++],A=h[_++],I=h[_++],D=h[_++],O=h[_++],E=h[_++];if(v){if(m+(X=l[y++])>u){on(i,T,I,O,C=(u-m)/X,Sa),on(o,A,D,E,C,ka),t.bezierCurveTo(Sa[1],ka[1],Sa[2],ka[2],Sa[3],ka[3]);break t}m+=X}t.bezierCurveTo(T,A,I,D,O,E),i=O,o=E;break;case wa.Q:T=h[_++],A=h[_++],I=h[_++],D=h[_++];if(v){if(m+(X=l[y++])>u){cn(i,T,I,C=(u-m)/X,Sa),cn(o,A,D,C,ka),t.quadraticCurveTo(Sa[1],ka[1],Sa[2],ka[2]);break t}m+=X}t.quadraticCurveTo(T,A,I,D),i=I,o=D;break;case wa.A:var N=h[_++],L=h[_++],P=h[_++],R=h[_++],B=h[_++],V=h[_++],z=h[_++],F=!h[_++],G=P>R?P:R,U=Na(P-R)>.001,W=B+V,j=!1;if(v)m+(X=l[y++])>u&&(W=B+V*(u-m)/X,j=!0),m+=X;if(U&&t.ellipse?t.ellipse(N,L,P,R,z,B,W,F):t.arc(N,L,G,B,W,F),j)break t;w&&(n=Oa(B)*P+N,r=Ea(B)*R+L),i=Oa(W)*P+N,o=Ea(W)*R+L;break;case wa.R:n=i=h[_],r=o=h[_+1],a=h[_++],s=h[_++];var H=h[_++],Y=h[_++];if(v){if(m+(X=l[y++])>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+Ia(q,H),s),(q-=H)>0&&t.lineTo(a+H,s+Ia(q,Y)),(q-=Y)>0&&t.lineTo(a+Da(H-q,0),s+Y),(q-=H)>0&&t.lineTo(a,s+Da(Y-q,0));break t}m+=X}t.rect(a,s,H,Y);break;case wa.Z:if(v){var X;if(m+(X=l[y++])>u){C=(u-m)/X;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=X}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=wa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Fa=za;function Ga(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Ua(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var p=l;if(c>e+p&&c>r+p&&c>o+p&&c>s+p||c<e-p&&c<r-p&&c<o-p&&c<s-p||u>t+p&&u>n+p&&u>i+p&&u>a+p||u<t-p&&u<n-p&&u<i-p&&u<a-p)return!1;var h=function(t,e,n,r,i,o,a,s,l,u,c){var p,h,d,f,g,v=.005,m=1/0;Ze[0]=l,Ze[1]=u;for(var y=0;y<1;y+=.05)Je[0]=tn(t,n,i,a,y),Je[1]=tn(e,r,o,s,y),(f=Yt(Ze,Je))<m&&(p=y,m=f);m=1/0;for(var x=0;x<32&&!(v<Ye);x++)h=p-v,d=p+v,Je[0]=tn(t,n,i,a,h),Je[1]=tn(e,r,o,s,h),f=Yt(Je,Ze),h>=0&&f<m?(p=h,m=f):(Ke[0]=tn(t,n,i,a,d),Ke[1]=tn(e,r,o,s,d),g=Yt(Ke,Ze),d<=1&&g<m?(p=d,m=g):v*=.5);return c&&(c[0]=tn(t,n,i,a,p),c[1]=tn(e,r,o,s,p)),je(m)}(t,e,n,r,i,o,a,s,u,c,null);return h<=p/2}function Wa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=function(t,e,n,r,i,o,a,s,l){var u,c=.005,p=1/0;Ze[0]=a,Ze[1]=s;for(var h=0;h<1;h+=.05)Je[0]=sn(t,n,i,h),Je[1]=sn(e,r,o,h),(v=Yt(Ze,Je))<p&&(u=h,p=v);p=1/0;for(var d=0;d<32&&!(c<Ye);d++){var f=u-c,g=u+c;Je[0]=sn(t,n,i,f),Je[1]=sn(e,r,o,f);var v=Yt(Je,Ze);if(f>=0&&v<p)u=f,p=v;else{Ke[0]=sn(t,n,i,g),Ke[1]=sn(e,r,o,g);var m=Yt(Ke,Ze);g<=1&&m<p?(u=g,p=m):c*=.5}}return l&&(l[0]=sn(t,n,i,u),l[1]=sn(e,r,o,u)),je(p)}(t,e,n,r,i,o,s,l,null);return c<=u/2}var ja=2*Math.PI;function Ha(t){return(t%=ja)<0&&(t+=ja),t}var Ya=2*Math.PI;function qa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Ya<1e-4)return!0;if(o){var p=r;r=Ha(i),i=Ha(p)}else r=Ha(r),i=Ha(i);r>i&&(i+=Ya);var h=Math.atan2(l,s);return h<0&&(h+=Ya),h>=r&&h<=i||h+Ya>=r&&h+Ya<=i}function Xa(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Za=Fa.CMD,Ja=2*Math.PI;var Ka=[-1,-1,-1],Qa=[-1,-1];function $a(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c,p=nn(e,r,o,s,u,Ka);if(0===p)return 0;for(var h=0,d=-1,f=void 0,g=void 0,v=0;v<p;v++){var m=Ka[v],y=0===m||1===m?.5:1;tn(t,n,i,a,m)<l||(d<0&&(d=rn(e,r,o,s,Qa),Qa[1]<Qa[0]&&d>1&&(c=void 0,c=Qa[0],Qa[0]=Qa[1],Qa[1]=c),f=tn(e,r,o,s,Qa[0]),d>1&&(g=tn(e,r,o,s,Qa[1]))),2===d?m<Qa[0]?h+=f<e?y:-y:m<Qa[1]?h+=g<f?y:-y:h+=s<g?y:-y:m<Qa[0]?h+=f<e?y:-y:h+=s<f?y:-y)}return h}function ts(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Qe(o))$e(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Qe(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,p=je(u),h=(-a-p)/(2*o);(c=(-a+p)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(e,r,o,s,Ka);if(0===l)return 0;var u=un(e,r,o);if(u>=0&&u<=1){for(var c=0,p=sn(e,r,o,u),h=0;h<l;h++){var d=0===Ka[h]||1===Ka[h]?.5:1;sn(t,n,i,Ka[h])<a||(Ka[h]<u?c+=p<e?d:-d:c+=o<p?d:-d)}return c}d=0===Ka[0]||1===Ka[0]?.5:1;return sn(t,n,i,Ka[0])<a?0:o<e?d:-d}function es(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ka[0]=-l,Ka[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ja-1e-4){r=0,i=Ja;var c=o?1:-1;return a>=Ka[0]+t&&a<=Ka[1]+t?c:0}if(r>i){var p=r;r=i,i=p}r<0&&(r+=Ja,i+=Ja);for(var h=0,d=0;d<2;d++){var f=Ka[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ja+g),(g>=r&&g<=i||g+Ja>=r&&g+Ja<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function ns(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),p=0,h=0,d=0,f=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===Za.M&&v>1&&(n||(p+=Xa(h,d,f,g,r,i))),y&&(f=h=u[v],g=d=u[v+1]),m){case Za.M:h=f=u[v++],d=g=u[v++];break;case Za.L:if(n){if(Ga(h,d,u[v],u[v+1],e,r,i))return!0}else p+=Xa(h,d,u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.C:if(n){if(Ua(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else p+=$a(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.Q:if(n){if(Wa(h,d,u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else p+=ts(h,d,u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],k=u[v++];v+=1;var C=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,y?(f=o,g=a):p+=Xa(h,d,o,a,r,i);var M=(r-x)*w/b+x;if(n){if(qa(x,_,w,S,S+k,C,e,M,i))return!0}else p+=es(x,_,w,S,S+k,C,M,i);h=Math.cos(S+k)*b+x,d=Math.sin(S+k)*w+_;break;case Za.R:if(f=h=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(Ga(f,g,o,g,e,r,i)||Ga(o,g,o,a,e,r,i)||Ga(o,a,f,a,e,r,i)||Ga(f,a,f,g,e,r,i))return!0}else p+=Xa(o,g,o,a,r,i),p+=Xa(f,a,f,g,r,i);break;case Za.Z:if(n){if(Ga(h,d,f,g,e,r,i))return!0}else p+=Xa(h,d,f,g,r,i);h=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(p+=Xa(h,d,f,g,r,i)||0),0!==p}var rs=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ta),is={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ea.style)},os=Fr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(t){function e(e){return t.call(this,e)||this}var n;return k(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<os.length;++s)i[os[s]]=this[os[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=at(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?K(this.style,a):this.useStyle(a):"shape"===o?K(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(pt(t)){var e=Bn(t,0);return e>.5?Sr:e>.2?"#eee":kr}if(t)return kr}return Sr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(pt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Bn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Fa(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return ns(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ns(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:K(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Nt(rs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=K({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=K({},r.shape),K(s,n.shape)):(s=K({},i?this.shape:r.shape),K(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=K({},this.shape);for(var u={},c=at(s),p=0;p<c.length;p++){var h=c[p];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return is},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return k(n,e),n.prototype.getDefaultStyle=function(){return X(t.style)},n.prototype.getDefaultShape=function(){return X(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(sa),ss=as,ls=Q({strokeFirst:!0,font:I,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rs),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Nt(ls,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ni(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(sa);us.prototype.type="tspan";var cs=us,ps=Q({x:0,y:0},ta),hs={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ea.style)};var ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.createStyle=function(t){return Nt(ps,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return hs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Qr(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sa);ds.prototype.type="image";var fs=ds;var gs=Math.round;function vs(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(gs(2*r)===gs(2*i)&&(t.x1=t.x2=ys(r,s,!0)),gs(2*o)===gs(2*a)&&(t.y1=t.y2=ys(o,s,!0)),t):t}}function ms(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ys(r,s,!0),t.y=ys(i,s,!0),t.width=Math.max(ys(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ys(i+a,s,!1)-t.y,0===a?0:1),t):t}}function ys(t,e,n){if(!e)return t;var r=gs(2*t);return(r+gs(e))%2==0?r/2:(r+(n?1:-1))/2}var xs=function(){this.x=0,this.y=0,this.width=0,this.height=0},_s={},bs=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new xs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ms(_s,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,p=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof p?n=r=i=o=p:p instanceof Array?1===p.length?n=r=i=o=p[0]:2===p.length?(n=i=p[0],r=o=p[1]):3===p.length?(n=p[0],r=o=p[1],i=p[2]):(n=p[0],r=p[1],i=p[2],o=p[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ss);bs.prototype.type="rect";var ws=bs,Ss={fill:"#000"},ks={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ea.style)},Cs=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ss,n.attr(e),n}return k(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function(t){Os(t),nt(t.rich,Os)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Qr(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ss},e.prototype.setTextContent=function(t){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return K(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=at(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},K(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return ks},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||I,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=oi(o),l=wt(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,p=e.width,h=(n=null==p||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Qo(t,e.font,p,"breakAll"===r,0).lines:[]).length*l,d=wt(e.height,h);if(h>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=p)for(var g=Wo(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=jo(n[v],g);var m=d,y=0;for(v=0;v<n.length;v++)y=Math.max(ti(n[v],o),y);null==p&&(p=y);var x=y;return i&&(m+=i[0]+i[2],x+=i[1]+i[3],p+=i[1]+i[3]),u&&(x=p),{lines:n,height:d,outerWidth:x,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:p}}(Ps(t),t),i=Rs(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,p=this._defaultStyle,h=t.x||0,d=t.y||0,f=t.align||p.align||"left",g=t.verticalAlign||p.verticalAlign||"top",v=h,m=ii(d,r.contentHeight,g);if(i||n){var y=ri(h,s,f),x=ii(d,a,g);i&&this._renderBackground(t,t,y,x,s,a)}m+=c/2,n&&(v=Ls(h,f,n),"top"===g?m+=n[0]:"bottom"===g&&(m-=n[2]));for(var _=0,b=!1,w=(Ns("fill"in t?t.fill:(b=!0,p.fill))),S=(Es("stroke"in t?t.stroke:o||p.autoStroke&&!b?null:(_=2,p.stroke))),k=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(cs),D=A.createStyle();A.useStyle(D),D.text=u[T],D.x=v,D.y=m,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,k&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=t.lineWidth||_,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Ds(D,t),m+=c,C&&A.setBoundingRect(new Qr(ri(D.x,t.width,D.textAlign),ii(D.y,M,D.textBaseline),l,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Xo;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Go.lastIndex=0;null!=(r=Go.exec(t));){var u=r.index;u>l&&Zo(n,t.substring(l,u),e,s),Zo(n,r[2],e,s,r[1]),l=Go.lastIndex}l<t.length&&Zo(n,t.substring(l,t.length),e,s);var c=[],p=0,h=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,p+=n,h=Math.max(h,e)}t:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],x=0,_=0,b=0;b<y.tokens.length;b++){var w=(E=y.tokens[b]).styleName&&e.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||e.font;E.contentHeight=oi(C);var M=wt(w.height,E.contentHeight);if(E.innerHeight=M,S&&(M+=S[0]+S[2]),E.height=M,E.lineHeight=St(w.lineHeight,e.lineHeight,M),E.align=w&&w.align||e.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&p+E.lineHeight>o){b>0?(y.tokens=y.tokens.slice(0,b),v(y,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))E.percentWidth=T,c.push(E),E.contentWidth=ti(E.text,C);else{if(A){var I=w.backgroundColor,D=I&&I.image;D&&Fo(D=Bo(D))&&(E.width=Math.max(E.width,D.width*M/D.height))}var O=f&&null!=i?i-_:null;null!=O&&O<E.width?!A||O<k?(E.text="",E.width=E.contentWidth=0):(E.text=Uo(E.text,O-k,C,e.ellipsis,{minChar:e.truncateMinChar}),E.width=E.contentWidth=ti(E.text,C)):E.contentWidth=ti(E.text,C)}E.width+=k,_+=E.width,w&&(x=Math.max(x,E.lineHeight))}v(y,_,x)}for(n.outerWidth=n.width=wt(i,h),n.outerHeight=n.height=wt(o,p),n.contentHeight=p,n.contentWidth=h,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),m=0;m<c.length;m++){var E,N=(E=c[m]).percentWidth;E.width=parseInt(N,10)/100*n.width}return n}(Ps(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,p=ri(a,r,u),h=ii(s,i,c),d=p,f=h;o&&(d+=o[3],f+=o[0]);var g=d+n;Rs(t)&&this._renderBackground(t,t,p,h,r,i);for(var v=!!t.backgroundColor,m=0;m<e.lines.length;m++){for(var y=e.lines[m],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,k=d,C=g,M=_-1,T=void 0;S<_&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,k,"left",v),w-=T.width,k+=T.width,S++;for(;M>=0&&"right"===(T=x[M]).align;)this._placeToken(T,t,b,f,C,"right",v),w-=T.width,C-=T.width,M--;for(k+=(n-(k-d)-(g-C)-w)/2;S<=M;)T=x[S],this._placeToken(T,t,b,f,k+T.width/2,"center",v),k+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&Rs(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(i=Ls(i,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var h=this._getOrCreateChild(cs),d=h.createStyle();h.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=Ns("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=Es("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||I,d.opacity=St(s.opacity,e.opacity,1),Ds(d,s),y&&(d.lineWidth=St(s.lineWidth,e.lineWidth,v),d.lineDash=wt(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=y),m&&(d.fill=m);var _=t.contentWidth,b=t.contentHeight;h.setBoundingRect(new Qr(ri(d.x,_,d.textAlign),ii(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,h=u&&u.image,d=u&&!h,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&p){(a=this._getOrCreateChild(ws)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=r,v.width=i,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=wt(t.fillOpacity,1);else if(h){(s=this._getOrCreateChild(fs)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=r,m.width=i,m.height=o}c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=wt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=St(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,Is(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Tt(e)||t.textFont||t.font},e}(sa),Ms={left:!0,right:1,center:1},Ts={top:1,bottom:1,middle:1},As=["fontStyle","fontWeight","fontSize","fontFamily"];function Is(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Ds(t,e){for(var n=0;n<As.length;n++){var r=As[n],i=e[r];null!=i&&(t[r]=i)}}function Os(t){if(t){t.font=Cs.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ms[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ts[n]?n:"top",t.padding&&(t.padding=Ct(t.padding))}}function Es(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ns(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ls(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ps(t){var e=t.text;return null!=e&&(e+=""),e}function Rs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Bs=Cs,Vs=mo(),zs=1,Fs={},Gs=mo(),Us=mo(),Ws=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],Hs="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Js(t){return null!=t&&"none"!==t}var Ks=new yn(100);function Qs(t){if(pt(t)){var e=Ks.get(t);return e||(e=Nn(t,-.1),Ks.put(t,e)),e}if(yt(t)){var n=K({},t);return n.colorStops=rt(t.colorStops,(function(t){return{offset:t.offset,color:Nn(t.color,-.1)}})),n}return t}function $s(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tl(t){$s(t,"emphasis",2)}function el(t){2===t.hoverState&&$s(t,"normal",0)}function nl(t){$s(t,"blur",1)}function rl(t){1===t.hoverState&&$s(t,"normal",0)}function il(t){t.selected=!0}function ol(t){t.selected=!1}function al(t,e,n){e(t,n)}function sl(t,e,n){al(t,e,n),t.isGroup&&t.traverse((function(t){al(t,e,n)}))}function ll(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ul(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&$(n,"select")>=0,o=!1;if(t instanceof ss){var a=Gs(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Js(s)||Js(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=K({},r),(u=K({},u)).fill=s):!Js(u.fill)&&Js(s)?(o=!0,r=K({},r),(u=K({},u)).fill=Qs(s)):!Js(u.stroke)&&Js(l)&&(o||(r=K({},r),u=K({},u)),u.stroke=Qs(l)),r.style=u}}if(r&&null==r.z2){o||(r=K({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:10)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=$(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=K({},n),a=K({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=K({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function cl(t){t.stateProxy=ul;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ul),n&&(n.stateProxy=ul)}function pl(t,e){!yl(t,e)&&!t.__highByOuter&&sl(t,tl)}function hl(t,e){!yl(t,e)&&!t.__highByOuter&&sl(t,el)}function dl(t,e){t.__highByOuter|=1<<(e||0),sl(t,tl)}function fl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&sl(t,el)}function gl(t){sl(t,rl)}function vl(t){sl(t,il)}function ml(t){sl(t,ol)}function yl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function xl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Us(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){rl(t)})),a&&n.push(i)),o.isBlured=!1})),nt(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function _l(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&gl(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){nl(t)})),et(e))o(t.getData(),e);else if(ft(e))for(var c=at(e),p=0;p<c.length;p++)o(t.getData(c[p]),e[c[p]]);l.push(t),Us(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function bl(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Us(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){nl(t)}))}}}function wl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||Ol(l[u])||Zi("param should be highDownDispatcher"),"self"===Vs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Sl(t){nt(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?vl(e):ml(e)}))}))}function kl(t){var e=[];return t.eachSeries((function(t){nt(t.getAllData(),(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Cl(t,e,n){Dl(t,!0),sl(t,cl),function(t,e,n){var r=Vs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}(t,e,n)}function Ml(t,e,n,r){r?function(t){Dl(t,!1)}(t):Cl(t,e,n)}var Tl=["emphasis","blur","select"],Al={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Il(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Tl.length;i++){var o=Tl[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[Al[n]]()}}function Dl(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ol(t){return!(!t||!t.__highDownDispatcher)}function El(t){var e=t.type;return e===qs||e===Xs||e===Zs}function Nl(t){var e=t.type;return e===Hs||e===Ys}var Ll=Fa.CMD,Pl=[[],[],[]],Rl=Math.sqrt,Bl=Math.atan2;var Vl=Math.sqrt,zl=Math.sin,Fl=Math.cos,Gl=Math.PI;function Ul(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Wl(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ul(t)*Ul(e))}function jl(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Wl(t,e))}function Hl(t,e,n,r,i,o,a,s,l,u,c){var p=l*(Gl/180),h=Fl(p)*(t-n)/2+zl(p)*(e-r)/2,d=-1*zl(p)*(t-n)/2+Fl(p)*(e-r)/2,f=h*h/(a*a)+d*d/(s*s);f>1&&(a*=Vl(f),s*=Vl(f));var g=(i===o?-1:1)*Vl((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,v=g*a*d/s,m=g*-s*h/a,y=(t+n)/2+Fl(p)*v-zl(p)*m,x=(e+r)/2+zl(p)*v+Fl(p)*m,_=jl([1,0],[(h-v)/a,(d-m)/s]),b=[(h-v)/a,(d-m)/s],w=[(-1*h-v)/a,(-1*d-m)/s],S=jl(b,w);if(Wl(b,w)<=-1&&(S=Gl),Wl(b,w)>=1&&(S=0),S<0){var k=Math.round(S/Gl*1e6)/1e6;S=2*Gl+k%2*Gl}c.addData(u,y,x,a,s,_,S,p,o)}var Yl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ql=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.applyTransform=function(t){},e}(ss);function Zl(t){return null!=t.setData}function Jl(t,e){var n=function(t){var e=new Fa;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Fa.CMD,l=t.match(Yl);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],p=c.charAt(0),h=void 0,d=c.match(ql)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=r,C=i,M=void 0,T=void 0;switch(p){case"l":r+=d[v++],i+=d[v++],h=s.L,e.addData(h,r,i);break;case"L":r=d[v++],i=d[v++],h=s.L,e.addData(h,r,i);break;case"m":r+=d[v++],i+=d[v++],h=s.M,e.addData(h,r,i),o=r,a=i,p="l";break;case"M":r=d[v++],i=d[v++],h=s.M,e.addData(h,r,i),o=r,a=i,p="L";break;case"h":r+=d[v++],h=s.L,e.addData(h,r,i);break;case"H":r=d[v++],h=s.L,e.addData(h,r,i);break;case"v":i+=d[v++],h=s.L,e.addData(h,r,i);break;case"V":i=d[v++],h=s.L,e.addData(h,r,i);break;case"C":h=s.C,e.addData(h,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),r=d[v-2],i=d[v-1];break;case"c":h=s.C,e.addData(h,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i),r+=d[v-2],i+=d[v-1];break;case"S":m=r,y=i,M=e.len(),T=e.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=d[v++],C=d[v++],r=d[v++],i=d[v++],e.addData(h,m,y,k,C,r,i);break;case"s":m=r,y=i,M=e.len(),T=e.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=r+d[v++],C=i+d[v++],r+=d[v++],i+=d[v++],e.addData(h,m,y,k,C,r,i);break;case"Q":k=d[v++],C=d[v++],r=d[v++],i=d[v++],h=s.Q,e.addData(h,k,C,r,i);break;case"q":k=d[v++]+r,C=d[v++]+i,r+=d[v++],i+=d[v++],h=s.Q,e.addData(h,k,C,r,i);break;case"T":m=r,y=i,M=e.len(),T=e.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r=d[v++],i=d[v++],h=s.Q,e.addData(h,m,y,r,i);break;case"t":m=r,y=i,M=e.len(),T=e.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r+=d[v++],i+=d[v++],h=s.Q,e.addData(h,m,y,r,i);break;case"A":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r=d[v++],i=d[v++],w,S,x,_,b,h=s.A,e);break;case"a":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r+=d[v++],i+=d[v++],w,S,x,_,b,h=s.A,e)}}"z"!==p&&"Z"!==p||(h=s.Z,e.addData(h),r=o,i=a),n=h}return e.toStatic(),e}(t),r=K({},e);return r.buildPath=function(t){if(Zl(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){!function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Ll.M,p=Ll.C,h=Ll.L,d=Ll.R,f=Ll.A,g=Ll.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case p:r=3;break;case g:r=2;break;case f:var v=e[4],m=e[5],y=Rl(e[0]*e[0]+e[1]*e[1]),x=Rl(e[2]*e[2]+e[3]*e[3]),_=Bl(-e[1]/x,e[0]/y);l[i]*=y,l[i++]+=v,l[i]*=x,l[i++]+=m,l[i++]*=y,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case d:s[0]=l[i++],s[1]=l[i++],Xt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Xt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Pl[a];b[0]=l[i++],b[1]=l[i++],Xt(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},r}function Kl(t,e){return new Xl(Jl(t,e))}var Ql=function(){this.cx=0,this.cy=0,this.r=0},$l=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new Ql},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ss);$l.prototype.type="circle";var tu=$l,eu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},nu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new eu},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(ss);nu.prototype.type="ellipse";var ru=nu,iu=Math.PI,ou=2*iu,au=Math.sin,su=Math.cos,lu=Math.acos,uu=Math.atan2,cu=Math.abs,pu=Math.sqrt,hu=Math.max,du=Math.min,fu=1e-4;function gu(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/pu(s*s+l*l),c=u*l,p=-u*s,h=t+c,d=e+p,f=n+c,g=r+p,v=(h+f)/2,m=(d+g)/2,y=f-h,x=g-d,_=y*y+x*x,b=i-o,w=h*g-f*d,S=(x<0?-1:1)*pu(hu(0,b*b*_-w*w)),k=(w*x-y*S)/_,C=(-w*y-x*S)/_,M=(w*x+y*S)/_,T=(-w*y+x*S)/_,A=k-v,I=C-m,D=M-v,O=T-m;return A*A+I*I>D*D+O*O&&(k=M,C=T),{cx:k,cy:C,x0:-c,y0:-p,x1:k*(i/b-1),y1:C*(i/b-1)}}function vu(t,e){var n,r=hu(e.r,0),i=hu(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,p=!!e.clockwise,h=cu(l-s),d=h>ou&&h%ou;if(d>fu&&(h=d),r>fu)if(h>ou-fu)t.moveTo(u+r*su(s),c+r*au(s)),t.arc(u,c,r,s,l,!p),i>fu&&(t.moveTo(u+i*su(l),c+i*au(l)),t.arc(u,c,i,l,s,p));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=void 0,C=void 0,M=void 0,T=void 0,A=void 0,I=void 0,D=r*su(s),O=r*au(s),E=i*su(l),N=i*au(l),L=h>fu;if(L){var P=e.cornerRadius;P&&(n=function(t){var e;if(ut(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(P),f=n[0],g=n[1],v=n[2],m=n[3]);var R=cu(r-i)/2;if(y=du(R,v),x=du(R,m),_=du(R,f),b=du(R,g),k=w=hu(y,x),C=S=hu(_,b),(w>fu||S>fu)&&(M=r*su(l),T=r*au(l),A=i*su(s),I=i*au(s),h<iu)){var B=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,p=s-o,h=p*l-c*u;if(!(h*h<fu))return[t+(h=(c*(e-o)-p*(t-i))/h)*l,e+h*u]}(D,O,A,I,M,T,E,N);if(B){var V=D-B[0],z=O-B[1],F=M-B[0],G=T-B[1],U=1/au(lu((V*F+z*G)/(pu(V*V+z*z)*pu(F*F+G*G)))/2),W=pu(B[0]*B[0]+B[1]*B[1]);k=du(w,(r-W)/(U+1)),C=du(S,(i-W)/(U-1))}}}if(L)if(k>fu){var j=du(v,k),H=du(m,k),Y=gu(A,I,D,O,r,j,p),q=gu(M,T,E,N,r,H,p);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),k<w&&j===H?t.arc(u+Y.cx,c+Y.cy,k,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(j>0&&t.arc(u+Y.cx,c+Y.cy,j,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),t.arc(u,c,r,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),!p),H>0&&t.arc(u+q.cx,c+q.cy,H,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else t.moveTo(u+D,c+O),t.arc(u,c,r,s,l,!p);else t.moveTo(u+D,c+O);if(i>fu&&L)if(C>fu){j=du(f,C),Y=gu(E,N,M,T,i,-(H=du(g,C)),p),q=gu(D,O,A,I,i,-j,p);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<S&&j===H?t.arc(u+Y.cx,c+Y.cy,C,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(H>0&&t.arc(u+Y.cx,c+Y.cy,H,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),t.arc(u,c,i,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),p),j>0&&t.arc(u+q.cx,c+q.cy,j,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else t.lineTo(u+E,c+N),t.arc(u,c,i,l,s,p);else t.lineTo(u+E,c+N)}else t.moveTo(u,c);t.closePath()}}}var mu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},yu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new mu},e.prototype.buildPath=function(t,e){vu(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ss);yu.prototype.type="sector";var xu=yu,_u=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new _u},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ss);bu.prototype.type="ring";var wu=bu;function Su(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],p=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)Zt(a,a,t[h]),Jt(s,s,t[h]);Zt(a,a,r[0]),Jt(s,s,r[1])}for(h=0,d=t.length;h<d;h++){var f=t[h];if(n)i=t[h?h-1:d-1],o=t[(h+1)%d];else{if(0===h||h===d-1){l.push(zt(t[h]));continue}i=t[h-1],o=t[h+1]}Gt(u,o,i),Ut(u,u,e);var g=jt(f,i),v=jt(f,o),m=g+v;0!==m&&(g/=m,v/=m),Ut(c,u,-g),Ut(p,u,v);var y=Ft([],f,c),x=Ft([],f,p);r&&(Jt(y,y,a),Zt(y,y,s),Jt(x,x,a),Zt(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var p=i.length;s<p;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var ku=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultShape=function(){return new ku},e.prototype.buildPath=function(t,e){Su(t,e,!0)},e}(ss);Cu.prototype.type="polygon";var Mu=Cu,Tu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Au=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tu},e.prototype.buildPath=function(t,e){Su(t,e,!1)},e}(ss);Au.prototype.type="polyline";var Iu=Au,Du={},Ou=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Eu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ou},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=vs(Du,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ss);Eu.prototype.type="line";var Nu=Eu,Lu=[],Pu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ru(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?en:tn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?en:tn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ln:sn)(t.x1,t.cpx1,t.x2,e),(n?ln:sn)(t.y1,t.cpy1,t.y2,e)]}var Bu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Pu},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(cn(n,a,i,c,Lu),a=Lu[1],i=Lu[2],cn(r,s,o,c,Lu),s=Lu[1],o=Lu[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(on(n,a,l,i,c,Lu),a=Lu[1],l=Lu[2],i=Lu[3],on(r,s,u,o,c,Lu),s=Lu[1],u=Lu[2],o=Lu[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Ru(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Ru(this.shape,t,!0);return Wt(e,e)},e}(ss);Bu.prototype.type="bezier-curve";var Vu=Bu,zu=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fu=function(t){function e(e){return t.call(this,e)||this}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zu},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(ss);Fu.prototype.type="arc";var Gu=Fu,Uu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return k(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ss.prototype.getBoundingRect.call(this)},e}(ss),Wu=Uu,ju=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Hu=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return k(e,t),e}(ju),Yu=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return k(e,t),e}(ju),qu=[0,0],Xu=[0,0],Zu=new Ur,Ju=new Ur,Ku=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ur;for(n=0;n<2;n++)this._axes[n]=new Ur;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Ur.sub(r[0],n[1],n[0]),Ur.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return Zu.set(1/0,1/0),Ju.set(0,0),!this._intersectCheckOneSide(this,t,Zu,Ju,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,Zu,Ju,r,-1)&&(n=!1,r)||r||Ur.copy(e,n?Zu:Ju),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,qu),this._getProjMinMaxOnAxis(s,e._corners,Xu),qu[1]<Xu[0]||qu[0]>Xu[1]){if(a=!1,i)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>r.len()&&(u<c?Ur.scale(r,l,-u*o):Ur.scale(r,l,c*o))}else if(n){u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)<n.len()&&(u<c?Ur.scale(n,l,u*o):Ur.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Qu=Ku,$u=[],tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return k(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Qr(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($u)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(sa),ec=tc,nc=mo();function rc(t,e,n,r,i,o,a){var s,l=!1;ct(i)?(a=o,o=i,i=null):ft(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=wt(r.duration,200),u=wt(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),ct(c)&&(c=c(n,i)),ct(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var p={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ic(t,e,n,r,i,o){rc("update",t,e,n,r,i,o)}function oc(t,e,n,r,i,o){rc("enter",t,e,n,r,i,o)}function ac(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function sc(t,e,n,r,i,o){ac(t)||rc("leave",t,e,n,r,i,o)}function lc(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),sc(t,{style:{opacity:0}},e,n,r)}function uc(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||lc(t,e,n,r)})):lc(t,e,n,r)}function cc(t){nc(t).oldStyle=t.style}var pc=Math.max,hc=Math.min,dc={};var fc=function(t,e){var n=Jl(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return k(e,t),e}(Xl)};function gc(t,e){dc[t]=e}function vc(t,e,n,r){var i=Kl(t,e);return n&&("center"===r&&(n=yc(n,i.getBoundingRect())),_c(i,n)),i}function mc(t,e,n){var r=new fs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(yc(e,i))}}});return r}function yc(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var xc=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ss(e);return a.createPathProxy(),a.buildPath=function(t){if(Zl(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function _c(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var bc=ys;function wc(t,e){for(var n=Cr([]);t&&t!==e;)Tr(n,t.getLocalTransform(),n),t=t.parent;return n}function Sc(t,e,n){return e&&!et(e)&&(e=zr.getLocalTransform(e)),n&&(e=Or([],e)),Xt([],t,e)}function kc(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Sc(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cc(t){return!t.isGroup}function Mc(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){Cc(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(Cc(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),ic(t,r,n,Vs(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=K({},t.shape)),e}}function Tc(t,e,n){var r=K({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Q(i,n),new fs(r)):vc(t.replace("path://",""),r,n,"center")}function Ac(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,p=a-i,h=s-o,d=Ic(p,h,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,v=Ic(f,g,u,c)/d;if(v<0||v>1)return!1;var m=Ic(f,g,p,h)/d;return!(m<0||m>1)}function Ic(t,e,n,r){return t*r-n*e}function Dc(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=pt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&nt(at(l),(function(t){Pt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Vs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Q({content:r,formatterParams:s},i)}}function Oc(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ec(t,e){if(t)if(ut(t))for(var n=0;n<t.length;n++)Oc(t[n],e);else Oc(t,e)}gc("circle",tu),gc("ellipse",ru),gc("sector",xu),gc("ring",wu),gc("polygon",Mu),gc("polyline",Iu),gc("rect",ws),gc("line",Nu),gc("bezierCurve",Vu),gc("arc",Gu);var Nc=Object.freeze({__proto__:null,updateProps:ic,initProps:oc,removeElement:sc,removeElementWithFadeOut:uc,isElementRemoved:ac,extendShape:function(t){return ss.extend(t)},extendPath:function(t,e){return fc(t,e)},registerShape:gc,getShapeClass:function(t){if(dc.hasOwnProperty(t))return dc[t]},makePath:vc,makeImage:mc,mergePath:xc,resizePath:_c,subPixelOptimizeLine:function(t){return vs(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return ms(t.shape,t.shape,t.style),t},subPixelOptimize:bc,getTransform:wc,applyTransform:Sc,transformDirection:kc,groupTransition:Mc,clipPointsByRect:function(t,e){return rt(t,(function(t){var n=t[0];n=pc(n,e.x),n=hc(n,e.x+e.width);var r=t[1];return r=pc(r,e.y),[n,r=hc(r,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=pc(t.x,e.x),r=hc(t.x+t.width,e.x+e.width),i=pc(t.y,e.y),o=hc(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:Tc,linePolygonIntersect:function(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ac(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:Ac,setTooltipConfig:Dc,traverseElements:Ec,Group:_i,Image:fs,Text:Bs,Circle:tu,Ellipse:ru,Sector:xu,Ring:wu,Polygon:Mu,Polyline:Iu,Rect:ws,Line:Nu,BezierCurve:Vu,Arc:Gu,IncrementalDisplayable:ec,CompoundPath:Wu,LinearGradient:Hu,RadialGradient:Yu,BoundingRect:Qr,OrientedBoundingRect:Qu,Point:Ur,Path:ss}),Lc={};function Pc(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=ct(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Ws.length;u++){var c=Ws[u],p=e[c];l[c]=wt(i?i.getFormattedLabel(o,c,null,a,p&&p.get("formatter")):null,r)}return l}function Rc(t,e,n,r){n=n||Lc;for(var i=t instanceof Bs,o=!1,a=0;a<js.length;a++){if((h=e[js[a]])&&h.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Bs,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Pc(n,e),u=e.normal,c=!!u.getShallow("show"),p=Vc(u,r&&r.normal,n,!1,!i);p.text=l.normal,i||t.setTextConfig(zc(u,n,!1));for(a=0;a<Ws.length;a++){var h,d=Ws[a];if(h=e[d]){var f=s.ensureState(d),g=!!wt(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Vc(h,r&&r[d],n,!0,!i),f.style.text=l[d],!i)t.ensureState(d).textConfig=zc(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!c,s.useStyle(p),s.dirty(),n.enableTextSetter&&(jc(s).setLabelText=function(t){var r=Pc(n,e,t);!function(t,e){for(var n=0;n<Ws.length;n++){var r=Ws[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Bc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=t.getModel([i,e])}return n}function Vc(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Lc;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Lc).rich;if(n){e=e||{};for(var r=at(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Wc(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var h=e.get("minMargin");null!=h&&(t.margin=h);Wc(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&K(o,e),o}function zc(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=wt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Fc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Gc=["align","lineHeight","width","height","tag","verticalAlign"],Uc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wc(t,e,n,r,i,o,a,s){n=!i&&n||Lc;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),p=wt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&Ki("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&Ki("color: 'auto'","color: 'inherit'"),c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var h=wt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(t.lineWidth=h);var d=wt(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=wt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),i||null!=p||s||(p=r&&r.defaultOpacity),null!=p&&(t.opacity=p),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Fc.length;g++){var v=Fc[g];null!=(y=wt(e.getShallow(v),n[v]))&&(t[v]=y)}for(g=0;g<Gc.length;g++){v=Gc[g];null!=(y=e.getShallow(v))&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<Uc.length;g++){var y;v=Uc[g];null!=(y=e.getShallow(v))&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.backgroundColor&&Ki("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.borderColor&&Ki("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}var jc=mo();var Hc,Yc,qc=["textStyle","color"],Xc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zc=new Bs,Jc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(qc):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,n=e&&e.getModel("textStyle"),Tt([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xc.length;n++)e[Xc[n]]=this.getShallow(Xc[n]);return Zc.useStyle(e),Zc.update(),Zc.getBoundingRect()},t}(),Kc=Jc,Qc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$c=No(Qc),tp=function(){function t(){}return t.prototype.getLineStyle=function(t){return $c(this,t)},t}(),ep=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],np=No(ep),rp=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return np(this,t,e)},t}(),ip=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Z(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(X(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();To(ip),Hc=ip,Yc=["__\0is_clz",Io++].join("_"),Hc.prototype[Yc]=!0,"production"!==process.env.NODE_ENV&&Mt(!Hc.isInstance,'The method "is" can not be defined.'),Hc.isInstance=function(t){return!(!t||!t[Yc])},tt(ip,tp),tt(ip,rp),tt(ip,Po),tt(ip,Kc);var op=ip,ap=Math.round(10*Math.random());function sp(t){return[t||"",ap++].join("_")}function lp(t,e){return Z(Z({},t,!0),e,!0)}var up="ZH",cp="EN",pp=cp,hp={},dp={},fp=A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(up)>-1?up:pp;function gp(t,e){t=t.toUpperCase(),dp[t]=new op(e),hp[t]=e}gp(cp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gp(up,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var vp=1e3,mp=6e4,yp=36e5,xp=864e5,_p=31536e6,bp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wp="{yyyy}-{MM}-{dd}",Sp={year:"{yyyy}",month:"{yyyy}-{MM}",day:wp,hour:"{yyyy}-{MM}-{dd} "+bp.hour,minute:"{yyyy}-{MM}-{dd} "+bp.minute,second:"{yyyy}-{MM}-{dd} "+bp.second,millisecond:bp.none},kp=["year","month","day","hour","minute","second","millisecond"],Cp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mp(t,e){return"0000".substr(0,e-(t+="").length)+t}function Tp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Ap(t){return t===Tp(t)}function Ip(t,e,n,r){var i=Ri(t),o=i[Ep(n)](),a=i[Np(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Lp(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Pp(n)](),p=(c-1)%12+1,h=i[Rp(n)](),d=i[Bp(n)](),f=i[Vp(n)](),g=r instanceof op?r:function(t){return dp[t]}(r||fp)||dp.EN,v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Mp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Mp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Mp(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mp(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Mp(f,3)).replace(/{S}/g,f+"")}function Dp(t,e){var n=Ri(t),r=n[Np(e)]()+1,i=n[Lp(e)](),o=n[Pp(e)](),a=n[Rp(e)](),s=n[Bp(e)](),l=0===n[Vp(e)](),u=l&&0===s,c=u&&0===a,p=c&&0===o,h=p&&1===i;return h&&1===r?"year":h?"month":p?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Op(t,e,n){var r=dt(t)?Ri(t):t;switch(e=e||Dp(t,n)){case"year":return r[Ep(n)]();case"half-year":return r[Np(n)]()>=6?1:0;case"quarter":return Math.floor((r[Np(n)]()+1)/4);case"month":return r[Np(n)]();case"day":return r[Lp(n)]();case"half-day":return r[Pp(n)]()/24;case"hour":return r[Pp(n)]();case"minute":return r[Rp(n)]();case"second":return r[Bp(n)]();case"millisecond":return r[Vp(n)]()}}function Ep(t){return t?"getUTCFullYear":"getFullYear"}function Np(t){return t?"getUTCMonth":"getMonth"}function Lp(t){return t?"getUTCDate":"getDate"}function Pp(t){return t?"getUTCHours":"getHours"}function Rp(t){return t?"getUTCMinutes":"getMinutes"}function Bp(t){return t?"getUTCSeconds":"getSeconds"}function Vp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function zp(t){return t?"setUTCFullYear":"setFullYear"}function Fp(t){return t?"setUTCMonth":"setMonth"}function Gp(t){return t?"setUTCDate":"setDate"}function Up(t){return t?"setUTCHours":"setHours"}function Wp(t){return t?"setUTCMinutes":"setMinutes"}function jp(t){return t?"setUTCSeconds":"setSeconds"}function Hp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Yp(t){if(!Gi(t))return pt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qp(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Xp=Ct,Zp=/([&<>"'])/g,Jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kp(t){return null==t?"":(t+"").replace(Zp,(function(t,e){return Jp[e]}))}function Qp(t,e,n){function r(t){return t&&Tt(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Ri(t):t;if(!isNaN(+s))return Ip(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ht(t)?r(t):dt(t)&&i(t)?t+"":"-";var l=Fi(t);return i(l)?Yp(l):ht(t)?r(t):"boolean"==typeof t?t+"":"-"}var $p=["a","b","c","d","e","f","g"],th=function(t,e){return"{"+t+(null==e?"":e)+"}"};function eh(t,e,n){ut(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=$p[o];t=t.replace(th(a),th(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(th($p[l],s),n?Kp(u):u)}return t}function nh(t,e){return e=e||"transparent",pt(t)?t:ft(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function rh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ih=nt,oh=["left","right","top","bottom","width","height"],ah=[["width","left","right"],["height","top","bottom"]];function sh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,p,h=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(f?-f.y+h.y:0);(p=a+v)>i||l.newline?(o+=s+n,a=0,p=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=p+n)}))}var lh=sh;function uh(t,e,n){n=Xp(n||0);var r=e.width,i=e.height,o=Ti(t.left,r),a=Ti(t.top,i),s=Ti(t.right,r),l=Ti(t.bottom,i),u=Ti(t.width,r),c=Ti(t.height,i),p=n[2]+n[0],h=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-p-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-p),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-p}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-p-a-(l||0));var f=new Qr(o+n[3],a+n[0],u,c);return f.margin=n,f}function ch(t){var e=t.layoutMode||t.constructor.layoutMode;return ft(e)?e:e?{type:e}:null}function ph(t,e,n){var r=n&&n.ignoreSize;!ut(r)&&(r=[r,r]);var i=a(ah[0],0),o=a(ah[1],1);function a(n,i){var o={},a=0,u={},c=0;if(ih(n,(function(e){u[e]=t[e]})),ih(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var h=n[p];if(!s(o,h)&&s(t,h)){o[h]=t[h];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){ih(t,(function(t){e[t]=n[t]}))}u(ah[0],t,i),u(ah[1],t,o)}function hh(t){return function(t,e){return e&&t&&ih(oh,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}({},t)}lt(sh,"vertical"),lt(sh,"horizontal");var dh=mo(),fh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=sp("ec_cpt_model"),i}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{};Z(t,e.getTheme().get(this.mainType)),Z(t,this.getDefaultOption()),n&&ph(t,r,n)},e.prototype.mergeOption=function(t,e){Z(this.option,t,!0);var n=ch(this);n&&ph(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Co])}(t))return t.defaultOption;var e=dh(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Z(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return wo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(op);Ao(fh,op),Eo(fh),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Mo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Mo(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(fh),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return nt(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return nt(t,(function(t){$(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),nt(s,(function(t){$(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);$(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(nt(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),p=s[c],h=!!u[c];h&&(i.call(o,c,p.originalDeps.slice()),delete u[c]),nt(p.successor,h?f:d)}nt(u,(function(){var e="";throw"production"!==process.env.NODE_ENV&&(e=Qi("Circular dependency may exists: ",u,t,r)),new Error(e)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(fh,(function(t){var e=[];nt(fh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=rt(e,(function(t){return Mo(t).main})),"dataset"!==t&&$(e,"dataset")<=0&&e.unshift("dataset");return e}));var gh=fh,vh="";"undefined"!=typeof navigator&&(vh=navigator.platform||"");var mh="rgba(0, 0, 0, 0.2)",yh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xh=Et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),_h="original",bh="arrayRows",wh="objectRows",Sh="keyedColumns",kh="typedArray",Ch="unknown",Mh="column",Th="row",Ah=1,Ih=2,Dh=3,Oh=mo();function Eh(t,e,n){var r={},i=Lh(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Oh(u).datasetMap,p=i.uid+"_"+n.seriesLayoutBy;nt(t=t.slice(),(function(e,n){var i=ft(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var h=c.get(p)||c.set(p,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return nt(t,(function(t,e){var n=t.name,i=f(t);if(null==o){var a=h.valueWayDim;d(r[n],a,i),d(l,a,i),h.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{a=h.categoryWayDim;d(r[n],a,i),d(l,a,i),h.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Nh(t,e,n){var r={};if(!Lh(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==wh&&o!==Sh||nt(a,(function(t,e){"name"===(ft(t)?t.name:t)&&(i=e)}));var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Rh(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var p=c===Dh;if(p&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!p&&s[t.n]===Dh)&&(t.n=l),h(t)&&s[t.n]!==Dh)return t;p||(c===Ih&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function h(t){return null!=t.v&&null!=t.n}return h(t)?t:h(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Lh(t){if(!t.get("data",!0))return wo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},bo).models[0]}function Ph(t,e){return Rh(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Rh(t,e,n,r,i,o){var a,s,l;if(vt(t))return Dh;if(r){var u=r[o];ft(u)?(s=u.name,l=u.type):pt(u)&&(s=u)}if(null!=l)return"ordinal"===l?Ah:Dh;if(e===bh){var c=t;if(n===Th){for(var p=c[o],h=0;h<(p||[]).length&&h<5;h++)if(null!=(a=y(p[i+h])))return a}else for(h=0;h<c.length&&h<5;h++){var d=c[i+h];if(d&&null!=(a=y(d[o])))return a}}else if(e===wh){var f=t;if(!s)return Dh;for(h=0;h<f.length&&h<5;h++){if((v=f[h])&&null!=(a=y(v[s])))return a}}else if(e===Sh){if(!s)return Dh;if(!(p=t[s])||vt(p))return Dh;for(h=0;h<p.length&&h<5;h++)if(null!=(a=y(p[h])))return a}else if(e===_h){var g=t;for(h=0;h<g.length&&h<5;h++){var v,m=oo(v=g[h]);if(!ut(m))return Dh;if(null!=(a=y(m[o])))return a}}function y(t){var e=pt(t);return null!=t&&isFinite(t)&&""!==t?e?Ih:Dh:e&&"-"!==t?Ah:void 0}return Dh}var Bh=Et();var Vh=mo();mo();var zh,Fh,Gh,Uh=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=no(this.get("color",!0)),i=this.get("colorLayer",!0);return function(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if(!(c=c||n)||!c.length)return;var p=c[l];i&&(u[i]=p);return s.paletteIdx=(l+1)%c.length,p}(this,Vh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Vh)},t}();var Wh={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},jh={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hh={};var Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new op(r),this._locale=new op(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){"production"!==process.env.NODE_ENV&&(Mt(null!=t,"option is null/undefined"),Mt(1!==t["\0_ec_inner"],"please use chart.getOption()"));var r=Zh(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Zh(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);"production"!==process.env.NODE_ENV&&nt(i,(function(t,e){if(!gh.hasClass(e)){var n=Wh[e];n&&!Hh[n]&&(Zi("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Hh[n]=!0)}})),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Gh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&nt(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Et(),s=e&&e.replaceMergeMainTypeMap;Oh(this).datasetMap=Et(),nt(t,(function(t,e){null!=t&&(gh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?X(t):Z(n[e],t,!0))})),s&&s.each((function(t,e){gh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),gh.topologicalTravel(o,gh.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=Bh.get(e);if(!r)return n;var i=r(t);if(!i)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<i.length;o++)Mt(go(i[o]));return n.concat(i)}(this,e,no(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=so(a,o,l);(function(t,e,n){nt(t,(function(t){var r=t.newOption;ft(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))}))})(u,e,gh),n[e]=null,r.set(e,null),i.set(e,0);var c,p,h=[],d=[],f=0;nt(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=gh.getClass(e,t.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=t.keyInfo.subType,l=jh[s];Hh[s]||(Hh[s]=!0,Zi(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unkown series "+s))}return}if("tooltip"===e){if(c)return void("production"!==process.env.NODE_ENV&&(p||(Xi("Currently only one tooltip component is allowed."),p=!0)));c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=K({componentIndex:n},t.keyInfo);K(r=new a(i,this,this,u),u),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),f++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,f),"series"===e&&zh(this)}),this),this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=X(this.option);return nt(t,(function(e,n){if(gh.hasClass(n)){for(var r=no(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!go(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],nt(no(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?qh("id",i,a):null!=o?qh("name",o,a):ot(a,(function(t){return!!t})),Xh(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),u=l?this.queryComponents(l):ot(this._componentsMap.get(s),(function(t){return!!t}));return o=Xh(u,t),t.filter?ot(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(ct(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=pt(t)?r.get(t):ft(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=co(t,null);return ot(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ot(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return ot(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Fh(this),nt(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){nt(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Fh(this),nt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return nt(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Fh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Fh(this);var n=[];nt(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Et(n)},e.prototype.restoreData=function(t){zh(this);var e=this._componentsMap,n=[];e.each((function(t,e){gh.hasClass(e)&&n.push(e)})),gh.topologicalTravel(n,gh.getAllClassMainTypes(),(function(n){nt(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(zh=function(t){var e=t._seriesIndices=[];nt(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Et(e)},Fh=function(t){if("production"!==process.env.NODE_ENV&&!t._seriesIndices)throw new Error("Option should contains series.")},void(Gh=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Et({series:[]}),t._componentsCount=Et();var n=e.aria;ft(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;nt(e,(function(e,r){"colorLayer"===r&&n||gh.hasClass(r)||("object"==typeof e?t[r]=t[r]?Z(t[r],e,!1):X(e):null==t[r]&&(t[r]=e))}))}(e,t._theme.option),Z(e,yh,!1),t._mergeOption(e,null)})),e}(op);function qh(t,e,n){if(ut(e)){var r=Et();return nt(e,(function(t){null!=t&&(null!=co(t,null)&&r.set(t,!0))})),ot(n,(function(e){return e&&r.get(e[t])}))}var i=co(e,null);return ot(n,(function(e){return e&&null!=i&&e[t]===i}))}function Xh(t,e){return e.hasOwnProperty("subType")?ot(t,(function(t){return t&&t.subType===e.subType})):t}function Zh(t){var e=Et();return t&&nt(no(t.replaceMerge),(function(t){"production"!==process.env.NODE_ENV&&Mt(gh.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)})),{replaceMergeMainTypeMap:e}}tt(Yh,Uh);var Jh=Yh,Kh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qh=function(t){nt(Kh,(function(e){this[e]=st(t[e],t)}),this)},$h={},td=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];nt($h,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){nt(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){$h[t]=e},t.get=function(t){return $h[t]},t}(),ed=/^(min|max)?(.+)$/,nd=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(nt(no(t.series),(function(t){t&&t.data&&vt(t.data)&&It(t.data)})),nt(no(t.dataset),(function(t){t&&t.source&&vt(t.source)&&It(t.source)}))),t=X(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,p=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((p||c)&&(t.options=t.media=null),i=t);c&&(ut(u)?nt(u,(function(t){"production"!==process.env.NODE_ENV&&t&&!t.option&&ft(t.query)&&ft(t.query.option)&&Zi("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),t&&t.option&&(t.query?o.push(t):r||(r=t))})):"production"!==process.env.NODE_ENV&&Zi("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function h(t){nt(e,(function(e){e(t,n)}))}return h(i),nt(l,(function(t){return h(t)})),nt(o,(function(t){return h(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],X(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=X(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)rd(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=rt(s,(function(t){return X(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function rd(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return nt(t,(function(t,e){var n=e.match(ed);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}})),i}var id=nd,od=nt,ad=ft,sd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ld(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=sd.length;n<r;n++){var i=sd[n],o=e.normal,a=e.emphasis;o&&o[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?Z(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?Z(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function ud(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&("production"!==process.env.NODE_ENV&&Ji("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Q(t[e],r)):t[e]=r),i&&("production"!==process.env.NODE_ENV&&Ji(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function cd(t){ud(t,"itemStyle"),ud(t,"lineStyle"),ud(t,"areaStyle"),ud(t,"label"),ud(t,"labelLine"),ud(t,"upperLabel"),ud(t,"edgeLabel")}function pd(t,e){var n=ad(t)&&t[e],r=ad(n)&&n.textStyle;if(r){"production"!==process.env.NODE_ENV&&Ji("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=io.length;i<o;i++){var a=io[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function hd(t){t&&(cd(t),pd(t,"label"),t.emphasis&&pd(t.emphasis,"label"))}function dd(t){return ut(t)?t:t?[t]:[]}function fd(t){return(ut(t)?t[0]:t)||{}}function gd(t,e){od(dd(t.series),(function(t){ad(t)&&function(t){if(ad(t)){ld(t),cd(t),pd(t,"label"),pd(t,"upperLabel"),pd(t,"edgeLabel"),t.emphasis&&(pd(t.emphasis,"label"),pd(t.emphasis,"upperLabel"),pd(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ld(e),hd(e));var n=t.markLine;n&&(ld(n),hd(n));var r=t.markArea;r&&hd(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!vt(o))for(var a=0;a<o.length;a++)hd(o[a]);nt(t.categories,(function(t){cd(t)}))}if(i&&!vt(i))for(a=0;a<i.length;a++)hd(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)hd(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)ut(l[a])?(hd(l[a][0]),hd(l[a][1])):hd(l[a])}"gauge"===t.type?(pd(t,"axisLabel"),pd(t,"title"),pd(t,"detail")):"treemap"===t.type?(ud(t.breadcrumb,"itemStyle"),nt(t.levels,(function(t){cd(t)}))):"tree"===t.type&&cd(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),od(n,(function(e){od(dd(t[e]),(function(t){t&&(pd(t,"axisLabel"),pd(t.axisPointer,"label"))}))})),od(dd(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;pd(e,"axisLabel"),pd(e&&e.axisPointer,"label")})),od(dd(t.calendar),(function(t){ud(t,"itemStyle"),pd(t,"dayLabel"),pd(t,"monthLabel"),pd(t,"yearLabel")})),od(dd(t.radar),(function(t){pd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name,"production"!==process.env.NODE_ENV&&Ji("name property in radar component has been changed to axisName")),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap,"production"!==process.env.NODE_ENV&&Ji("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&od(t.indicator,(function(t){t.text&&Ki("text","name","radar.indicator")}))})),od(dd(t.geo),(function(t){ad(t)&&(hd(t),od(dd(t.regions),(function(t){hd(t)})))})),od(dd(t.timeline),(function(t){hd(t),ud(t,"label"),ud(t,"itemStyle"),ud(t,"controlStyle",!0);var e=t.data;ut(e)&&nt(e,(function(t){ft(t)&&(ud(t,"label"),ud(t,"itemStyle"))}))})),od(dd(t.toolbox),(function(t){ud(t,"iconStyle"),od(t.feature,(function(t){ud(t,"iconStyle")}))})),pd(fd(t.axisPointer),"label"),pd(fd(t.tooltip).axisPointer,"label")}function vd(t){t&&nt(md,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var md=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _d(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<xd.length;n++){var r=xd[n][1],i=xd[n][0];null!=e[r]&&(e[i]=e[r],"production"!==process.env.NODE_ENV&&Ki(r,i))}}function bd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&("production"!==process.env.NODE_ENV&&Ki("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function wd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,"production"!==process.env.NODE_ENV&&Ki("downplay","blur","sunburst"))}function Sd(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Sd(t[n].children,e)}function kd(t,e){gd(t,e),t.series=no(t.series),nt(t.series,(function(t){if(ft(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow,"production"!==process.env.NODE_ENV&&Ki("clipOverflow","clip","line"));else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise,"production"!==process.env.NODE_ENV&&Ki("clockWise","clockwise")),bd(t.label),(i=t.data)&&!vt(i))for(var n=0;n<i.length;n++)bd(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&Ki("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(_d(t),_d(t.backgroundStyle),_d(t.emphasis),(i=t.data)&&!vt(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(_d(i[n]),_d(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o,"production"!==process.env.NODE_ENV&&Ki("highlightPolicy","emphasis.focus","sunburst"))),wd(t),Sd(t.data,wd)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&("production"!==process.env.NODE_ENV&&Ki("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&("production"!==process.env.NODE_ENV&&Ki("mapType","map","map"),t.map=t.mapType),t.mapLocation&&("production"!==process.env.NODE_ENV&&Ji("`mapLocation` is not used anymore."),Q(t,t.mapLocation)));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&("production"!==process.env.NODE_ENV&&Ki("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),vd(t)}})),t.dataRange&&(t.visualMap=t.dataRange),nt(yd,(function(e){var n=t[e];n&&(ut(n)||(n=[n]),nt(n,(function(t){vd(t)})))}))}function Cd(t){nt(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,(function(o,l,u){var c,p,h=a.get(e.stackedDimension,u);if(isNaN(h))return i;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var d=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&v>0||h<=0&&v<0){h=Ei(h,v),d=v;break}}}return r[0]=h,r[1]=d,r}))}))}var Md,Td,Ad,Id,Dd,Od=function(t){this.data=t.data||(t.sourceFormat===Sh?{}:[]),this.sourceFormat=t.sourceFormat||Ch,this.seriesLayoutBy=t.seriesLayoutBy||Mh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Ph(this,n)===Ah&&(r.type="ordinal")}};function Ed(t){return t instanceof Od}function Nd(t,e,n){n=n||Pd(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Rd(i),startIndex:a,dimensionsDetectedCount:o};if(e===bh){var s=t;"auto"===r||null==r?Bd((function(t){null!=t&&"-"!==t&&(pt(t)?null==a&&(a=1):a=0)}),n,s,10):a=dt(r)?r:r?1:0,i||1!==a||(i=[],Bd((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Th?s.length:s[0]?s[0].length:null}else if(e===wh)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var r=[];return nt(e,(function(t,e){r.push(e)})),r}}(t));else if(e===Sh)i||(i=[],nt(t,(function(t,e){i.push(e)})));else if(e===_h){var l=oo(t[0]);o=ut(l)&&l.length||1}else e===kh&&"production"!==process.env.NODE_ENV&&Mt(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:Rd(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new Od({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:X(e)})}function Ld(t){return new Od({data:t,sourceFormat:vt(t)?kh:_h})}function Pd(t){var e=Ch;if(vt(t))e=kh;else if(ut(t)){0===t.length&&(e=bh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(ut(i)){e=bh;break}if(ft(i)){e=wh;break}}}}else if(ft(t))for(var o in t)if(Pt(t,o)&&et(t[o])){e=Sh;break}return e}function Rd(t){if(t){var e=Et();return rt(t,(function(t,n){var r={name:(t=ft(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Bd(t,e,n,r){if(e===Th)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Vd(t){var e=t.sourceFormat;return e===wh||e===Sh}var zd=function(){function t(t,e){var n=Ed(t)?t:Ld(t);this._source=n;var r=this._data=n.data;if(n.sourceFormat===kh){if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=r}Dd(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Dd=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Id[Zd(a,s)];if("production"!==process.env.NODE_ENV&&Mt(c,"Invalide sourceFormat: "+a),K(t,c),a===kh)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=Ud(a,s);t.getItem=st(p,null,i,l,u);var h=Hd(a,s);t.count=st(h,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,p=n[a],h=0;h<c;h++){var d=i[h*o+a];p[t+h]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:i},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:i},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;nt(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t.original={appendData:i},t.typedArray={persistent:!1,pure:!0,appendData:function(t){"production"!==process.env.NODE_ENV&&Mt(vt(t),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Id=t}(),t}(),Fd=function(t,e,n,r){return t[r]},Gd=((Md={}).arrayRows_column=function(t,e,n,r){return t[r+e]},Md.arrayRows_row=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Md.objectRows=Fd,Md.keyedColumns=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=t[s];o[a]=l?l[r]:null}return o},Md.original=Fd,Md);function Ud(t,e){var n=Gd[Zd(t,e)];return"production"!==process.env.NODE_ENV&&Mt(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var Wd=function(t,e,n){return t.length},jd=((Td={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},Td.arrayRows_row=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Td.objectRows=Wd,Td.keyedColumns=function(t,e,n){var r=n[0].name;if("production"!==process.env.NODE_ENV&&null==r)throw new Error;var i=t[r];return i?i.length:0},Td.original=Wd,Td);function Hd(t,e){var n=jd[Zd(t,e)];return"production"!==process.env.NODE_ENV&&Mt(n,'Do not suppport count on "'+t+'", "'+e+'".'),n}var Yd=function(t,e,n){return t[e]},qd=((Ad={}).arrayRows=Yd,Ad.objectRows=function(t,e,n){return t[n]},Ad.keyedColumns=Yd,Ad.original=function(t,e,n){var r=oo(t);return r instanceof Array?r[e]:r},Ad.typedArray=Yd,Ad);function Xd(t){var e=qd[t];return"production"!==process.env.NODE_ENV&&Mt(e,'Do not suppport get value on "'+t+'".'),e}function Zd(t,e){return t===bh?t+"_"+e:t}function Jd(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Xd(o)(r,a,s)}var l=r;return o===_h&&(l=oo(r)),l}}}var Kd=/\{@(.+?)\}/g,Qd=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,p="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&ut(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return ct(i)?(s.status=e,s.dimensionIndex=r,i(s)):pt(i)?eh(i,s).replace(Kd,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1),"production"!==process.env.NODE_ENV&&isNaN(i)&&Zi("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=Jd(a,t,i);if(o&&ut(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Jd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function $d(t){var e,n;return ft(t)?t.type?n=t:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+Qi(t)):e=t,{text:e,frag:n}}function tf(t){return new ef(t)}var ef=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?("production"!==process.env.NODE_ENV&&Mt(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&Mt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(o||h<d)){var f=this._progress;if(ut(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,d,l,u);else this._doProgress(f,h,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&Mt(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){nf.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:nf.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ut(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){"production"!==process.env.NODE_ENV&&Mt(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),nf=function(){var t,e,n,r,i,o={reset:function(l,u,c,p){e=l,t=u,n=c,r=p,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function rf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||dt(t)||null==t||"-"===t||(t=+Ri(t)),null==t||""===t?NaN:+t)}Et({number:function(t){return parseFloat(t)},time:function(t){return+Ri(t)},trim:function(t){return pt(t)?Tt(t):t}});var of=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=dt(t)?t:Fi(t),r=dt(e)?e:Fi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=pt(t),s=pt(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),af=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return rf(t,e)},t}();function sf(t){var e=t.sourceFormat;if(!df(e)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+e),$i(n)}return t.data}function lf(t){var e=t.sourceFormat,n=t.data;if(!df(e)){var r="";"production"!==process.env.NODE_ENV&&(r="`cloneRawData` is not supported in source format "+e),$i(r)}if(e===bh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===wh){for(i=[],o=0,a=n.length;o<a;o++)i.push(K({},n[o]));return i}}function uf(t,e,n){if(null!=n)return dt(n)||!isNaN(n)&&!Pt(e,n)?t[n]:Pt(e,n)?e[n]:void 0}function cf(t){return X(t)}var pf=Et();function hf(t,e,n,r){var i="";e.length||("production"!==process.env.NODE_ENV&&(i="Must have at least one upstream dataset."),$i(i)),ft(t)||("production"!==process.env.NODE_ENV&&(i="transform declaration must be an object rather than "+typeof t+"."),$i(i));var o=t.type,a=pf.get(o);a||("production"!==process.env.NODE_ENV&&(i='Can not find transform on type "'+o+'".'),$i(i));var s,l=rt(e,(function(t){return function(t,e){var n=new af,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Mh&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),$i(a));var s=[],l={},u=t.dimensionsDefine;if(u)nt(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Pt(l,n)&&("production"!==process.env.NODE_ENV&&(i='dimension name "'+n+'" duplicated.'),$i(i)),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var p=Ud(i,Mh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return p(r,o,s,t)},n.getRawData=st(sf,null,t)),n.cloneRawData=st(lf,null,t);var h=Hd(i,Mh);n.count=st(h,null,r,o,s);var d=Xd(i);n.retrieveValue=function(t,e){var n=p(r,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=st(uf,null,s,l),n.cloneAllDimensionInfo=st(cf,null,s),n}(t,a)})),u=no(a.transform({upstream:l[0],upstreamList:l,config:X(t.config)}));if("production"!==process.env.NODE_ENV&&t.print){var c=rt(u,(function(t){var e=null!=r?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+e+" ===","- transform result data:",Qi(t.data),"- transform result dimensions:",Qi(t.dimensions)].join("\n")})).join("\n");qi("log",c,s)}return rt(u,(function(t,n){var r,i="";ft(t)||("production"!==process.env.NODE_ENV&&(i="A transform should not return some empty results."),$i(i)),t.data||("production"!==process.env.NODE_ENV&&(i="Transform result data should be not be null or undefined"),$i(i)),df(Pd(t.data))||("production"!==process.env.NODE_ENV&&(i="Transform result data should be array rows or object rows."),$i(i));var o=e[0];if(o&&0===n&&!t.dimensions){var a=o.startIndex;a&&(t.data=o.data.slice(0,a).concat(t.data)),r={seriesLayoutBy:Mh,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Mh,sourceHeader:0,dimensions:t.dimensions};return Nd(t.data,r,null)}))}function df(t){return t===bh||t===wh}var ff,gf="undefined",vf=typeof Uint32Array===gf?Array:Uint32Array,mf=typeof Uint16Array===gf?Array:Uint16Array,yf=typeof Int32Array===gf?Array:Int32Array,xf=typeof Float64Array===gf?Array:Float64Array,_f={float:xf,int:yf,ordinal:Array,number:Array,time:xf};function bf(t){return t>65535?vf:mf}function wf(t,e,n,r,i){var o=_f[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Sf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Et()}return t.prototype.initData=function(t,e,n){"production"!==process.env.NODE_ENV&&Mt(ct(t.getItem)&&ct(t.count),"Inavlid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=ff[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=Vd(r);this._dimensions=rt(e,(function(t){return"production"!==process.env.NODE_ENV&&o&&Mt(null!=t.property),{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new _f[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){"production"!==process.env.NODE_ENV&&Mt(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){wf(n,l,(d=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var p=c-a,h=0;h<i;h++){var d=r[h],f=ff.arrayRows.call(this,t[p]||u,d.property,p,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=rt(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),wf(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var p=[],h=t;h<e;h++){p=r.getItem(h,p);for(var d=0;d<a;d++){var f=i[d],g=this._dimValueGetter(p,l[d],h,d);f[h]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],p=Math.abs(c);p<=n&&((p<o||p===o&&c>=0&&a<0)&&(o=p,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=bf(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(bf(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var p=void 0,h=n.getRawIndex(c);if(0===a)p=e(c);else if(1===a){p=e(u[l][h],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][h];o[d]=c,p=e.apply(null,o)}p&&(i[s++]=h)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=at(t),i=r.length;if(!i)return this;var o=e.count(),a=new(bf(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],p=e._chunks,h=!1;if(!e._indices){var d=0;if(1===i){for(var f=p[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=d),d++}h=!0}else if(2===i){f=p[r[0]];var v=p[r[1]],m=t[r[1]][0],y=t[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=v[g];(x>=u&&x<=c||isNaN(x))&&(_>=m&&_<=y||isNaN(_))&&(a[s++]=d),d++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=p[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var k=r[S];((x=p[k][b])<t[k][0]||x>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var p=t.getRawIndex(c),h=0;h<o;h++)s[h]=r[e[h]][p];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(i[0]=d,d=i);for(u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],m=r[f];m&&(m[p]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),p=new(bf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));p[l++]=c;for(var h=1;h<s-1;h+=u){for(var d=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+d)/2,v=0,m=d;m<f;m++){var y=a[C=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=f-d;var x=h,_=Math.min(h+u,s),b=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(m=x;m<_;m++){var C;y=a[C=this.getRawIndex(m)];isNaN(y)?(k++,S<0&&(S=C)):(r=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=r,i=C)}k>0&&k<_-x&&(p[l++]=Math.min(S,i),i=Math.max(S,i)),p[l++]=i,c=i}return p[l++]=this.getRawIndex(s-1),o._count=l,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],p=new(bf(this._rawCount))(Math.ceil(u/s)),h=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(d+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),p[h++]=m}return i._count=h,i._indices=p,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&it(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=X(this._extent),t._rawExtent=X(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return rf(t[r],this._dimensions[r])}ff={arrayRows:t,objectRows:function(t,e,n,r){return rf(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return rf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),kf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Mf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=vt(a=o.get("data",!0))?kh:_h,e=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=wt(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=wt(c.sourceHeader,p.sourceHeader),f=wt(c.dimensions,p.dimensions);t=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||f?[Nd(a,{seriesLayoutBy:h,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{t=[Nd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}"production"!==process.env.NODE_ENV&&Mt(t&&e),this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&Mt(null!=i||null!=r),null!=i){var o="";1!==t.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Tf(o))}var a,s=[],l=[];return nt(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+i),Tf(n)),s.push(e),l.push(t._getVersionSign())})),r?e=function(t,e,n){var r=no(t),i=r.length,o="";i||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),$i(o));for(var a=0,s=i;a<s;a++)e=hf(r[a],e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}(r,s,{datasetIndex:n.componentIndex}):null!=i&&(e=[(a=s[0],new Od({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:X(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){"production"!==process.env.NODE_ENV&&Mt(Mf(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Mf(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new Sf).initData(new zd(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mf(t)){var e=Lh(t);return e?[e.getSourceManager()]:[]}return rt(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?wo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},bo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(Mf(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Cf(t){t.option.transform&&It(t.option.transform)}function Mf(t){return"series"===t.mainType}function Tf(t){throw new Error(t)}function Af(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Kp(r+"")+"px;color:"+Kp(n)+";font-weight:"+Kp(i+""),valueStyle:"font-size:"+Kp(a+"")+"px;color:"+Kp(o)+";font-weight:"+Kp(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var If=[0,10,20,30],Df=["","\n","\n\n","\n\n\n"];function Of(t,e){return e.type=t,e}function Ef(t){return"section"===t.type}function Nf(t){return Ef(t)?Pf:Rf}function Lf(t){if(Ef(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return nt(t.blocks,(function(t){var n=Lf(t);n>=e&&(e=n+ +(r&&(!n||Ef(t)&&!t.noHeader)))})),e}return 0}function Pf(t,e,n,r){var i,o=e.noHeader,a=(i=Lf(e),{html:If[i],richText:Df[i]}),s=[],l=e.blocks||[];Mt(!l||ut(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Pt(c,u)){var p=new of(c[u],null);l.sort((function(t,e){return p.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}nt(l,(function(n,i){var o=e.valueFormatter,l=Nf(n)(o?K(K({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var h="richText"===t.renderMode?s.join(a.richText):Vf(s.join(""),o?n:a.html);if(o)return h;var d=Qp(e.header,"ordinal",t.useUTC),f=Af(r,t.renderMode).nameStyle;return"richText"===t.renderMode?zf(t,d,f)+a.richText+h:Vf('<div style="'+f+";"+'line-height:1;">'+Kp(d)+"</div>"+h,n)}function Rf(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return rt(t=ut(t)?t:[t],(function(t,e){return Qp(t,ut(d)?d[e]:d,u)}))};if(!o||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=o?"":Qp(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!o,v=!s&&o,m=Af(r,i),y=m.nameStyle,x=m.valueStyle;return"richText"===i?(s?"":p)+(o?"":zf(t,h,y))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ut(e)?e.join(" "):e,o)}(t,f,g,v,x)):Vf((s?"":p)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Kp(t)+"</span>"}(h,!s,y))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=ut(t)?t:[t],'<span style="'+o+";"+r+'">'+rt(t,(function(t){return Kp(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,x)),n)}}function Bf(t,e,n,r,i,o){if(t)return Nf(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Vf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+'line-height:1;">'+t+'<div style="clear:both"></div></div>'}function zf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ff(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Gf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ui()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=pt(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kp(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kp(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return pt(i)?i:("production"!==process.env.NODE_ENV&&Mt(r),this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};ut(e)?nt(e,(function(t){return K(n,t)})):K(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Uf(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,p=o.getRawValue(a),h=ut(p),d=function(t,e){return nh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(t,e,n,r,i){var o=e.getData(),a=it(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Of("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?nt(r,(function(t){c(Jd(o,n,t),t)})):nt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(p,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Jd(l,a,u[0]),n=g.type}else i=e=h?p[0]:p;var v=fo(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return Of("section",{header:m,noHeader:s||!v,sortParam:i,blocks:[Of("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Tt(x),value:e,valueType:n})].concat(r||[])})}var Wf=mo();function jf(t,e){return t.getName(e)||t.getId(e)}var Hf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return k(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=tf({count:qf,reset:Xf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Wf(this).sourceManager=new kf(this)).prepareSource();var r=this.getInitialData(t,n);Jf(r,this),this.dataTask.context.data=r,"production"!==process.env.NODE_ENV&&Mt(r,"getInitialData returned invalid data."),Wf(this).dataBeforeProcessed=r,Yf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{},i=this.subType;gh.hasClass(i)&&(i+="Series"),Z(t,e.getTheme().get(this.subType)),Z(t,this.getDefaultOption()),ro(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ph(t,r,n)},e.prototype.mergeOption=function(t,e){t=Z(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ch(this);n&&ph(this.option,t,n);var r=Wf(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Jf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Wf(this).dataBeforeProcessed=i,Yf(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!vt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ro(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Qf(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Wf(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Qf(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Wf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Et(t)},e.prototype.getSourceManager=function(){return Wf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Wf(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Uf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Uh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=jf(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=at(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[jf(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){ft(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[p=jf(t,u)]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],p=jf(t,c);i.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((r={})[p]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return gh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(gh);function Yf(t){var e=t.name;fo(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return nt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function qf(t){return t.model.getRawData().count()}function Xf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Zf}function Zf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Jf(t,e){nt(function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,lt(Kf,e))}))}function Kf(t,e){var n=Qf(t);return n&&n.setOutputEnd((e||this).count()),e}function Qf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}tt(Hf,Qd),tt(Hf,Uh),Ao(Hf,gh);var $f=Hf,tg=function(){function t(){this.group=new _i,this.uid=sp("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();To(tg),Eo(tg);var eg=tg;function ng(){var t=mo();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var rg=mo(),ig=ng(),og=function(){function t(){this.group=new _i,this.uid=sp("viewChart"),this.renderTask=tf({plan:lg,reset:ug}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?sg(i,r,"emphasis"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?sg(i,r,"normal"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Ec(this.group,t)},t.markUpdateMethod=function(t,e){rg(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function ag(t,e,n){t&&Ol(t)&&("emphasis"===e?dl:fl)(t,n)}function sg(t,e,n){var r=vo(t,e),i=e&&null!=e.highlightKey?function(t){var e=Fs[t];return null==e&&zs<=32&&(e=Fs[t]=zs++),e}(e.highlightKey):null;null!=r?nt(no(r),(function(e){ag(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){ag(t,n,i)}))}function lg(t){return ig(t.model)}function ug(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&rg(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),cg[l]}To(og,["dispose"]),Eo(og);var cg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pg=og,hg="\0__throttleOriginMethod",dg="\0__throttleRate",fg="\0__throttleType";function gg(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function p(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var h=function(){for(var t=[],h=0;h<arguments.length;h++)t[h]=arguments[h];r=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,i=r-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(p,d):i>=0?p():c=setTimeout(p,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(t){s=t},h}function vg(t,e,n,r){var i=t[e];if(i){var o=i[hg]||i,a=i[fg];if(i[dg]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=gg(o,n,"debounce"===r))[hg]=o,i[fg]=r,i[dg]=n}return i}}function mg(t,e){var n=t[e];n&&n[hg]&&(n.clear&&n.clear(),t[e]=n[hg])}var yg=mo(),xg={itemStyle:No(ep,!0),lineStyle:No(Qc,!0)},_g={lineStyle:"stroke",itemStyle:"fill"};function bg(t,e){var n=t.visualStyleMapper||xg[e];return n||(console.warn("Unkown style type '"+e+"'."),xg.itemStyle)}function wg(t,e){var n=t.visualDrawType||_g[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=bg(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=wg(t,r),l=o[s],u=ct(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=p,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ct(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||ct(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=K({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},kg=new op,Cg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=bg(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){kg.option=n[r];var a=i(kg);K(t.ensureUniqueItemVisual(e,"style"),a),kg.option.decal&&(t.setItemVisual(e,"decal",kg.option.decal),kg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Mg={performRawSeries:!0,overallReset:function(t){var e=Et();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),yg(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=yg(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=wg(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},Tg=Math.PI;var Ag=function(){function t(t,e,n,r){this._stageTaskMap=Et(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Et();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;nt(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),Mt(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}nt(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var p,h=c.agentStubMap;h.each((function(t){a(r,t)&&(t.dirty(),p=!0)})),p&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);h.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Et(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||tf({plan:Ng,reset:Lg,count:Bg}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||tf({reset:Ig});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Et(),l=t.seriesType,u=t.getTargetSeries,c=!0,p=!1,h="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(p=!0,tf({reset:Dg,onDirty:Eg})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}"production"!==process.env.NODE_ENV&&(h='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),Mt(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,nt(n.getSeries(),d)),p&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return ct(t)&&(t={overallReset:t,seriesType:Vg(t)}),t.uid=sp("stageHandler"),e&&(t.visualType=e),t},t}();function Ig(t){t.overallReset(t.ecModel,t.api,t.payload)}function Dg(t){return t.overallProgress&&Og}function Og(){this.agent.dirty(),this.getDownstream().dirty()}function Eg(){this.agent&&this.agent.dirty()}function Ng(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Lg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=no(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?rt(e,(function(t,e){return Rg(e)})):Pg}var Pg=Rg(0);function Rg(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Bg(t){return t.data.count()}function Vg(t){zg=null;try{t(Fg,Gg)}catch(t){}return zg}var zg,Fg={},Gg={};function Ug(t,e){for(var n in e.prototype)t[n]=Rt}Ug(Fg,Jh),Ug(Gg,Qh),Fg.eachSeriesByType=Fg.eachRawSeriesByType=function(t){zg=t},Fg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(zg=t.subType)};var Wg=Ag,jg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Hg={color:jg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jg]},Yg="#B9B8CE",qg="#100C2A",Xg=function(){return{axisLine:{lineStyle:{color:Yg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Zg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jg={darkMode:!0,color:Zg,backgroundColor:qg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yg}},textStyle:{color:Yg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yg}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yg},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yg}},timeline:{lineStyle:{color:Yg},label:{color:Yg},controlStyle:{color:Yg,borderColor:Yg}},calendar:{itemStyle:{color:qg},dayLabel:{color:Yg},monthLabel:{color:Yg},yearLabel:{color:Yg}},timeAxis:Xg(),logAxis:Xg(),valueAxis:Xg(),categoryAxis:Xg(),line:{symbol:"circle"},graph:{color:Zg},gauge:{title:{color:Yg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jg.categoryAxis.splitLine.show=!1;var Kg=Jg,Qg=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(pt(t)){var i=Mo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};nt(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var p=i.slice(0,c);"data"!==p&&(e.mainType=p,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$g=["symbol","symbolSize","symbolRotate","symbolOffset"],tv=$g.concat(["symbolKeepAspect"]),ev={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<$g.length;a++){var s=$g[a],l=t.get(s);ct(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(K({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=at(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},nv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<tv.length;r++){var i=tv[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function rv(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function iv(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+e)}}function ov(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}nt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=K({},e),"production"!==process.env.NODE_ENV&&Ki(e.type,t[1]),i.dispatchAction(K(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function av(t,e,n,r,i){var o=t+e;n.isSilent(o)||("production"!==process.env.NODE_ENV&&Ji("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=vo(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:ut(u)?l.getName(u[0]):l.getName(u),selected:pt(r)?r:K({},r)})}})))}function sv(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var lv=Math.round(9*Math.random()),uv="function"==typeof Object.defineProperty,cv=function(){function t(){this._id="__ec_inner_"+lv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return uv?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),pv=cv,hv=ss.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),dv=ss.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),fv=ss.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,p=Math.sin(u),h=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-p*d,l+s+h*d,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+p*d,l+s+h*d,n-c,l+s),t.closePath()}}),gv=ss.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),vv={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},mv={};nt({line:Nu,rect:ws,roundRect:ws,square:ws,circle:tu,diamond:dv,pin:fv,arrow:gv,triangle:hv},(function(t,e){mv[e]=new t}));var yv=ss.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=si(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=mv[r];i||(i=mv[r="rect"]),vv[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function xv(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function _v(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?mc(t.slice(8),new Qr(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?vc(t.slice(7),{},new Qr(e,n,r,i),a?"center":"cover"):new yv({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=xv,o&&s.setColor(o),s}function bv(t,e){if(null!=t)return ut(t)||(t=[t,t]),[Ti(t[0],e[0])||0,Ti(wt(t[1],t[0]),e[1])||0]}function wv(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Sv(t){return parseInt(t,10)}function kv(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Sv(s[r])||Sv(t.style[r]))-(Sv(s[o])||0)-(Sv(s[a])||0)|0}function Cv(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:dt(e)?[e]:ut(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=rt(i,(function(t){return t/a})),o/=a)}return[i,o]}var Mv=new Fa(!0);function Tv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Av(t){return"string"==typeof t&&"none"!==t}function Iv(t){var e=t.fill;return null!=e&&"none"!==e}function Dv(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ov(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Ev(t,e,n){var r=Vo(e.image,e.__image,n);if(Fo(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Bt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Nv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pv(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Vv(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ta.opacity:a}(r||e.blend!==n.blend)&&(o||(Vv(t,i),o=!0),t.globalCompositeOperation=e.blend||ta.blend);for(var s=0;s<Nv.length;s++){var l=Nv[s];(r||e[l]!==n[l])&&(o||(Vv(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Vv(t,i),o=!0),t.shadowColor=e.shadowColor||ta.shadowColor),o}function Rv(t,e,n,r,i){var o=zv(e,i.inHover),a=r?null:n&&zv(n,i.inHover)||{};if(o===a)return!1;var s=Pv(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Vv(t,i),s=!0),Av(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Vv(t,i),s=!0),Av(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Vv(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Vv(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<Lv.length;u++){var c=Lv[u],p=c[0];(r||o[p]!==a[p])&&(s||(Vv(t,i),s=!0),t[p]=o[p]||c[1])}return s}function Bv(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Vv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function zv(t,e){return e&&t.__hoverStyle||t.style}function Fv(t,e){Gv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gv(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Vv(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Vv(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Bv(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,p,h=e instanceof ss&&e.autoBatch&&function(t){var e=Iv(t),n=Tv(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,p=u.transform,c&&p?c[0]!==p[0]||c[1]!==p[1]||c[2]!==p[2]||c[3]!==p[3]||c[4]!==p[4]||c[5]!==p[5]:c||p)?(Vv(t,n),Bv(t,e)):h||Vv(t,n);var d=zv(e,n.inHover);e instanceof ss?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Rv(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=Tv(n),a=Iv(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Mv,p=e.__dirty;if(!r){var h=n.fill,d=n.stroke,f=a&&!!h.colorStops,g=o&&!!d.colorStops,v=a&&!!h.image,m=o&&!!d.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(y=p?wv(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(x=p?wv(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=p||!e.__canvasFillPattern?Ev(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(b=p||!e.__canvasStrokePattern?Ev(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:m&&(b?t.strokeStyle=b:o=!1)}var S,k,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=Cv(e))[0],k=i[1]);var M=!0;(u||4&p)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=k),r||(n.strokeFirst?(o&&Ov(t,n),a&&Dv(t,n)):(a&&Dv(t,n),o&&Ov(t,n))),S&&t.setLineDash([])}(t,e,d,h),h&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof cs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Rv(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||I,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=Cv(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Tv(n)&&t.strokeText(i,n.x,n.y),Iv(n)&&t.fillText(i,n.x,n.y)):(Iv(n)&&t.fillText(i,n.x,n.y),Tv(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,d)):e instanceof fs?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,r,i){Pv(t,zv(e,i.inHover),n&&zv(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Vo(n.image,e.__image,e,e.onload);if(r&&Fo(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var p=a-(u=n.sx),h=s-(c=n.sy);t.drawImage(r,u,c,p,h,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),h&&r&&Vv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Uv=new pv,Wv=new yn(100),jv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hv(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Uv.delete(t);var o=Uv.get(t);if(o)return o;var a=Q(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<jv.length;++l){var u=a[jv[l]];if(null!=u&&!ut(u)&&!pt(u)&&!dt(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Wv.get(e);c&&(i?t.svgElement=c:t.image=c)}var p,h=qv(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(dt(t)){var e=Math.ceil(t);return[e,e]}var n=rt(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=Yv(a.symbol),g=(_=h,rt(_,(function(t){return Xv(t)}))),v=Xv(d),m=!i&&N.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=ji(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=ji(r,f[e].length);t*=r;var i=v*g.length*f.length;if("production"!==process.env.NODE_ENV){var o=function(t){console.warn("Calculated decal size is greater than "+t+" due to decal option settings so "+t+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+t+" to be larger to avoid incontinuity.")};t>a.maxTileWidth&&o("maxTileWidth"),i>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d"));(function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-v,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(e=0;e<h[u].length;++e)w+=h[u][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][_]*S,C=o+d[s]*S,M=h[u][_]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;I(k,C,M,T,f[c][A])}g+=h[u][_],++b,++_===h[u].length&&(_=0)}++u===h.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function I(t,e,o,s,l){var u=i?1:n,c=_v(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&y.children.push(h)}else Fv(p,c)}})(),s&&Wv.put(e,m||y);t.image=m,t.svgElement=y,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Uv.set(t,s),t.dirty=!1,s}function Yv(t){if(!t||0===t.length)return[["rect"]];if(pt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!pt(t[n])){e=!1;break}if(e)return Yv([t]);var r=[];for(n=0;n<t.length;++n)pt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function qv(t){if(!t||0===t.length)return[[0,0]];if(dt(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!dt(t[n])){e=!1;break}if(e)return qv([t]);var r=[];for(n=0;n<t.length;++n)if(dt(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=rt(t[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function Xv(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Zv=new ee,Jv={};var Kv="undefined"!=typeof window,Qv=2e3,$v=4500,tm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Qv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:$v,ARIA:6e3,DECAL:7e3}},em=/^[a-zA-Z0-9_]+$/,nm="__connectUpdateStatus";function rm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return om(this,t,e);Im(this.id)}}function im(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return om(this,t,e)}}function om(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ee.prototype[e].apply(t,n)}var am,sm,lm,um,cm,pm,hm,dm,fm,gm,vm,mm,ym,xm,_m,bm,wm,Sm,km=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e}(ee),Cm=km.prototype;Cm.on=im("on"),Cm.off=im("off");var Mm=function(t){function e(e,n,r){var i=t.call(this,new Qg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},pt(n)&&(n=Pm[n]),i._dom=e;var o="canvas",a=!1;if("production"!==process.env.NODE_ENV){var s=Kv?window:global;o=s.__ECHARTS__DEFAULT__RENDERER__||o;var l=s.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;a=null==l?a:l}var u=i._zr=ki(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null==r.useDirtyRect?a:r.useDirtyRect});i._ssr=r.ssr,i._throttledZrFlush=gg(st(u.flush,u),17),(n=X(n))&&kd(n,!0),i._theme=n,i._locale=function(t){if(pt(t)){var e=hp[t.toUpperCase()]||{};return t===up||t===cp?X(e):Z(X(e),X(hp.EN),!1)}return Z(X(t),X(hp.EN),!1)}(r.locale||fp),i._coordSysMgr=new td;var c=i._api=_m(i);function p(t,e){return t.__prio-e.__prio}return Le(Lm,p),Le(Em,p),i._scheduler=new Wg(i,c,Em,Lm),i._messageCenter=new km,i._initEvents(),i.resize=st(i.resize,i),u.animation.on("frame",i._onframe,i),gm(u,i),vm(u,i),It(i),i}return k(e,t),e.prototype._onframe=function(){if(!this._disposed){Sm(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{am(this),um.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,dm.call(this,e),fm.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),pm(this,r),t.performVisualTasks(r),xm(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`setOption` should not be called during main process.");else if(this._disposed)Im(this.id);else{var r,i,o;if(ft(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new id(this._api),s=this._theme,l=this._model=new Jh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Nm);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{am(this),um.update.call(this,null,u)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},e.prototype.setTheme=function(){Ji("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Kv&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return"production"!==process.env.NODE_ENV&&Ki("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==e.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==e.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(A.svgSupported){var t=this._zr;return nt(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;nt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return nt(r,(function(t){t.group.ignore=!1})),o}Im(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Vm[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();nt(Bm,(function(o,p){if(o.group===n){var h=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(X(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:h,left:d.left,top:d.top})}}));var h=(l*=p)-(a*=p),d=(u*=p)-(s*=p),f=N.createCanvas(),g=ki(f,{renderer:e?"svg":"canvas"});if(g.resize({width:h,height:d}),e){var v="";return nt(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new ws({shape:{x:0,y:0,width:h,height:d},style:{fill:t.connectedBackgroundColor}})),nt(c,(function(t){var e=new fs({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Im(this.id)},e.prototype.convertToPixel=function(t,e){return cm(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return cm(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return nt(xo(this._model,t),(function(t,r){r.indexOf("Models")>=0&&nt(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n=n||o.containPoint(e,t):"production"!==process.env.NODE_ENV&&console.warn(r+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&console.warn(r+": containPoint is not supported")}),this)}),this),!!n;Im(this.id)},e.prototype.getVisual=function(t,e){var n=xo(this._model,t,{defaultMainType:"series"}),r=n.seriesModel;"production"!==process.env.NODE_ENV&&(r||console.warn("There is no specified seires model"));var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?rv(i,o,e):iv(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;nt(Am,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&sv(o,(function(t){var e=Vs(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=K({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];"production"!==process.env.NODE_ENV&&(a||u&&c||console.warn("model or view can not be found by params")),n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),nt(Om,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),nt(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(av("map","selectchanged",e,r,t),av("pie","selectchanged",e,r,t)):"select"===t.fromAction?(av("map","selected",e,r,t),av("pie","selected",e,r,t)):"unselect"===t.fromAction&&(av("map","unselected",e,r,t),av("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Im(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Im(this.id);else{this._disposed=!0,this.getDom()&&So(this.getDom(),Fm,"");var t=this,e=t._api,n=t._model;nt(t._componentsViews,(function(t){t.dispose(n,e)})),nt(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bm[t.id]}},e.prototype.resize=function(t){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`resize` should not be called during main process.");else if(this._disposed)Im(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&am(this),um.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Im(this.id);else if(ft(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rm[t]){var n=Rm[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}else"production"!==process.env.NODE_ENV&&console.warn("Loading effects "+t+" not exists.")},e.prototype.hideLoading=function(){this._disposed?Im(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=K({},t);return e.type=Om[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Im(this.id);else if(ft(e)||(e={silent:!!e}),Dm[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;hm.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&A.browser.weChat&&this._throttledZrFlush(),dm.call(this,n),fm.call(this,n)}},e.prototype.updateLabelLayout=function(){Zv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Im(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);"production"!==process.env.NODE_ENV&&Mt(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(t,e){e.eachRendered((function(t){if(!ac(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function o(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ac(t))return;if(t instanceof ss&&function(t){var e=Gs(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}am=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),sm(t,!0),sm(t,!1),e.plan()},sm=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var p=Mo(t.type),h=e?eg.getClass(p.main,p.sub):pg.getClass(p.sub);"production"!==process.env.NODE_ENV&&Mt(h,p.sub+" does not exist."),(c=new h).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},lm=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Et(),nt(no(u),(function(t){var e=co(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!==l.get(e.id)))if(Nl(n))if(e instanceof $f)n.type!==Hs||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=vo(i,e);o=(ut(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Vs(a);_l(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=c&&_l(r,c,p,n)}}else"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+e.dataType)}(e,n,t._api);else{var r=wl(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===Hs&&i&&!n.notBlur&&bl(e.mainType,e.componentIndex,t._api),o&&nt(o,(function(t){n.type===Hs?dl(t):fl(t)}))}else El(n)&&e instanceof $f&&(!function(t,e,n){if(El(e)){var r=e.dataType,i=vo(t.getData(r),e);ut(i)||(i=[i]),t[e.type===Zs?"toggleSelect":e.type===qs?"select":"unselect"](i,r)}}(e,n,t._api),Sl(e),wm(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!==l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else nt([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},um={prepareAndUpdate:function(t){am(this),um.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),pm(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),mm(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Zv.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Et();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),xm(this,r,i,e,{},a),Zv.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),mm(this,n,this._api,e,{}),Zv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),pg.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),Zv.trigger("afterupdate",r,this._api))},updateLayout:function(t){um.update.call(this,t)}},cm=function(t,e,n,r){if(t._disposed)Im(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=xo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}"production"!==process.env.NODE_ENV&&console.warn("No coordinate system that supports "+e+" found by the given finder.")}},pm=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},hm=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Dm[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Mo(l[0]);this.__flagInMainProcess=!0;var p=[t],h=!1;t.batch&&(h=!0,p=rt(t.batch,(function(e){return(e=Q(K({},e),t)).batch=null,e})));var d,f=[],g=El(t),v=Nl(t);if(v&&xl(this._api),nt(p,(function(e){if((d=(d=a.action(e,n._model,n._api))||K({},e)).type=s.event||d.type,f.push(d),v){var r=_o(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";lm(n,u,e,o),wm(n)}else g?(lm(n,u,e,"series"),wm(n)):c&&lm(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this.__pendingUpdate?(am(this),um.update.call(this,t),this.__pendingUpdate=null):um[u].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(d=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!e){var m=this._messageCenter;if(m.trigger(d.type,d),g){var y={type:"selectchanged",escapeConnect:o,selected:kl(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(y.type,y)}}},dm=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();hm.call(this,n,t)}},fm=function(t){!t&&this.trigger("updated")},gm=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},vm=function(t,e){t.on("mouseover",(function(t){var n=sv(t.target,Ol);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ol(t)||Zi("param should be highDownDispatcher");var r=Vs(t),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&bl(r.componentMainType,r.componentIndex,n),nt(o,(function(t){return pl(t,e)}))):(_l(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&bl(r.componentMainType,r.componentIndex,n),pl(t,e))}(n,t,e._api),wm(e))})).on("mouseout",(function(t){var n=sv(t.target,Ol);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ol(t)||Zi("param should be highDownDispatcher"),xl(n);var r=Vs(t),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?nt(i,(function(t){return hl(t,e)})):hl(t,e)}(n,t,e._api),wm(e))})).on("click",(function(t){var n=sv(t.target,(function(t){return null!=Vs(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Vs(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},mm=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);Le(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),nt(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(e),ym(t,e,n,r,i),nt(t._chartsViews,(function(t){t.__alive=!1})),xm(t,e,n,r,i),nt(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},ym=function(t,e,r,a,s,l){nt(l||t._componentsViews,(function(t){var s=t.__model;i(s,t),t.render(s,e,r,a),n(s,t),o(s,t)}))},xm=function(t,e,r,a,s,l){var u=t._scheduler;s=K(s||{},{updatedSeries:e.getSeries()}),Zv.trigger("series:beforeupdate",e,r,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),Sl(e)})),u.unfinished=c||u.unfinished,Zv.trigger("series:layoutlabels",e,r,s),Zv.trigger("series:transition",e,r,s),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),o(e,r)})),function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!A.node&&!A.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Zv.trigger("series:afterupdate",e,r,s)},wm=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Sm=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){ac(t)||e(t)})),t.__needsUpdateStatus=!1)},_m=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return k(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){dl(e,n),wm(t)},n.prototype.leaveEmphasis=function(e,n){fl(e,n),wm(t)},n.prototype.enterBlur=function(e){!function(t){sl(t,nl)}(e),wm(t)},n.prototype.leaveBlur=function(e){gl(e),wm(t)},n.prototype.enterSelect=function(e){vl(e),wm(t)},n.prototype.leaveSelect=function(e){ml(e),wm(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Qh))(t)},bm=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][nm]=e}}nt(Om,(function(n,r){t._messageCenter.on(r,(function(n){if(Vm[t.group]&&0!==t[nm]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];nt(Bm,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),nt(i,(function(t){1!==t[nm]&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(ee),Tm=Mm.prototype;Tm.on=rm("on"),Tm.off=rm("off"),Tm.one=function(t,e,n){var r=this;Ji("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var Am=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Im(t){"production"!==process.env.NODE_ENV&&console.warn("Instance "+t+" has been disposed")}var Dm={},Om={},Em=[],Nm=[],Lm=[],Pm={},Rm={},Bm={},Vm={},zm=+new Date-0,Fm="_echarts_instance_";function Gm(t,e,n){var r=!(n&&n.ssr);if(r){if("production"!==process.env.NODE_ENV&&!t)throw new Error("Initialize failed: invalid dom.");var i=function(t){return Bm[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Fm)]}(t);if(i)return"production"!==process.env.NODE_ENV&&console.warn("There is a chart instance already initialized on the dom."),i;"production"!==process.env.NODE_ENV&&(!mt(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||console.warn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."))}var o=new Mm(t,e,n);return o.id="ec_"+zm++,Bm[o.id]=o,r&&So(t,Fm,o.id),bm(o),Zv.trigger("afterinit",o),o}function Um(t,e){Pm[t]=e}function Wm(t){$(Nm,t)<0&&Nm.push(t)}function jm(t,e){Zm(Em,t,e,2e3)}function Hm(t,e){Zv.on(t,e)}function Ym(t,e,n){ct(e)&&(n=e,e="");var r=ft(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Om[e]||(Mt(em.test(r)&&em.test(e)),Dm[r]||(Dm[r]={action:n,actionInfo:t}),Om[e]=r)}function qm(t,e){Zm(Lm,t,e,3e3,"visual")}var Xm=[];function Zm(t,e,n,r,i){if((ct(e)||ft(e))&&(n=e,e=r),"production"!==process.env.NODE_ENV){if(isNaN(e)||null==e)throw new Error("Illegal priority");nt(t,(function(t){Mt(t.__raw!==n)}))}if(!($(Xm,n)>=0)){Xm.push(n);var o=Wg.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Jm(t,e){Rm[t]=e}function Km(t,e,n){var r,i=(r="registerMap","production"!==process.env.NODE_ENV&&(Jv[r]||Zi("Implementation of "+r+" doesn't exists.")),Jv[r]);i&&i(t,e,n)}var Qm=function(t){var e=(t=X(t)).type,n="";e||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),$i(n));var r=e.split(":");2!==r.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),$i(n));var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,pf.set(e,t)};function $m(t){return null==t?0:t.length||1}function ty(t){return t}qm(Qv,Sg),qm($v,Cg),qm($v,Mg),qm(Qv,ev),qm($v,nv),qm(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=Hv(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Hv(i,e)}}))})),Wm(kd),jm(900,(function(t){var e=Et();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(Cd)})),Jm("default",(function(t,e){Q(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,r=new ws({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Bs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ws({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Gu({shape:{startAngle:-Tg/2,endAngle:-Tg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Tg/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Tg/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Ym({type:Hs,event:Hs,update:Hs},Rt),Ym({type:Ys,event:Ys,update:Ys},Rt),Ym({type:qs,event:qs,update:qs},Rt),Ym({type:Xs,event:Xs,update:Xs},Rt),Ym({type:Zs,event:Zs,update:Zs},Rt),Um("light",Hg),Um("dark",Kg);var ey=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||ty,this._newKeyGetter=r||ty,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=$m(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=$m(l),p=$m(u);if(c>1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===p)this._update&&this._update(u,l),r[s]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=$m(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=$m(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),ny=ey,ry=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function iy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var oy=function(t){this.otherDims={},null!=t&&K(this,t)},ay=mo(),sy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ly=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=py(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return wt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Vd(this.source),n=!hy(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var p=this.getSourceDimension(o);p&&(s=e?p.name:null,l=p.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=sy[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function uy(t){return t instanceof ly}function cy(t){for(var e=Et(),n=0;n<(t||[]).length;n++){var r=t[n],i=ft(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function py(t){var e=ay(t);return e.dimNameMap||(e.dimNameMap=cy(t.dimensionsDefine))}function hy(t){return t>30}var dy,fy,gy,vy,my,yy,xy,_y=ft,by=rt,wy="undefined"==typeof Int32Array?Array:Int32Array,Sy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ky=["_approximateExtent"],Cy=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;uy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],p=pt(c)?new oy({name:c}):c instanceof oy?c:new oy(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),i[h]=p,null!=l[h]&&(s=!0),p.createInvertedIndices&&(a[h]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&Mt(r||p.storeDimIndex>=0),r&&(p.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Et();nt(o,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(dt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Unkown dimension "+t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Sf&&(r=t),!r){var o=this.dimensions,a=Ed(t)||et(t)?new zd(t,o.length):t;r=new Sf;var s=by(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=Et(),o=[],a=[],s={};nt(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&Mt(null==xh.get(u));var c=l.coordDimIndex;iy(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),iy(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}xh.each((function(t,e){var n=iy(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=rt(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var p=r.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new ry(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&xy(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==kh&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===_h&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ao(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=co(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=co(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)xy(this,a);dy(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){_y(t)?K(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=gy(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return fy(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return ut(t)?r.getValues(by(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var r=n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){ct(t)&&(n=e,e=t,t=[]);var r=n||this,i=by(vy(t),this._getStoreDimIndex,this);this._store.each(i,r?st(e,r):e)},t.prototype.filterSelf=function(t,e,n){ct(t)&&(n=e,e=t,t=[]);var r=n||this,i=by(vy(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?st(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return nt(at(t),(function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){ct(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=by(vy(t),this._getStoreDimIndex,this),a=yy(this);return a._store=this._store.map(o,i?st(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=this,o=n||r||this;"production"!==process.env.NODE_ENV&&nt(vy(t),(function(t){i.getDimensionInfo(t).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=by(vy(t),this._getStoreDimIndex,this);this._store.modify(a,o?st(e,o):e)},t.prototype.downSample=function(t,e,n,r){var i=yy(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=yy(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new op(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new ny(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return fy(t,e)}),(function(t){return fy(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},_y(t)?K(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(ut(i=this.getVisual(e))?i=i.slice():_y(i)&&(i=K({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,_y(e)?K(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){_y(t)?K(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?K(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,r){if(r){var i=Vs(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=Vs(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){nt(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:by(this.dimensions,this._getDimInfo,this),this.hostModel)),my(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];ct(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(kt(arguments)))})},t.internalField=(dy=function(t){var e=t._invertedIndicesMap;nt(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new wy(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},gy=function(t,e,n){return co(t._getCategory(e,n),null)},fy=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=gy(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},vy=function(t){return ut(t)||(t=null!=t?[t]:[]),t},yy=function(e){var n=new t(e._schema?e._schema:by(e.dimensions,e._getDimInfo,e),e.hostModel);return my(n,e),n},my=function(t,e){nt(Sy.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,nt(ky,(function(n){t[n]=X(e[n])})),t._calculationInfo=K({},e._calculationInfo)},void(xy=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=gy(t,i,e)),null==s&&null!=o&&(r[e]=s=gy(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}(),My=Cy;function Ty(t,e){Ed(t)||(t=Ld(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Et(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return nt(e,(function(t){var e;ft(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hy(a),l=r===t.dimensionsDefine,u=l?py(t):cy(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var p=Et(c),h=new yf(a),d=0;d<h.length;d++)h[d]=-1;function f(t){var e=h[t];if(e<0){var n=r[t],i=ft(n)?n:{name:n},a=new oy,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return h[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);p.each((function(t,e){var n=no(t).slice();if(1===n.length&&!pt(n[0])&&n[0]<0)p.set(e,!1);else{var r=p.set(e,[]);nt(n,(function(t,n){var i=pt(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(f(i),e,n))}))}}));var g=0;function v(t,e,n){null!=xh.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}nt(n,(function(t){var e,n,r,i;if(pt(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=K({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(e);if(!1!==s){if(!(s=no(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}nt(s,(function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),v(Q(a,i),e,o),null==a.name&&n){var s=n[o];!ft(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Q(a.otherDims,r)}))}}));var m=e.generateCoord,y=e.generateCoordCount,x=null!=y;y=m?y||1:0;var _=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)nt(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Ay(_,i,x),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||Ph(t,w)!==Ah&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Et(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new ly({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ay(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){for(var i=0;r.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}var Iy=function(t){this.coordSysDims=[],this.axisMap=Et(),this.categoryAxisMap=Et(),this.coordSysName=t};var Dy={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",bo).models[0],o=t.getReferringComponents("yAxis",bo).models[0];if("production"!==process.env.NODE_ENV){if(!i)throw new Error('xAxis "'+bt(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+bt(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Oy(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Oy(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",bo).models[0];if("production"!==process.env.NODE_ENV&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Oy(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",bo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Oy(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Oy(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();nt(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Oy(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Oy(t){return"category"===t.get("type")}function Ey(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!uy(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,p,h=!(!t||!t.get("stack"));if(nt(r,(function(t,e){pt(t)&&(r[e]=t={name:t}),h&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;nt(r,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(p,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:c}}function Ny(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ly(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Ld(t)):o=(r=i.getSource()).sourceFormat===_h;var a=function(t){var e=t.get("coordinateSystem"),n=new Iy(e),r=Dy[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=td.get(r);return e&&e.coordSysDims&&(n=rt(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=ct(l)?l:l?lt(Eh,s,e):null,c=Ty(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),p=function(t,e,n){var r,i;return n&&nt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(c),d=Ey(e,{schema:c,store:h}),f=new My(c,e);f.setCalculationInfo(d);var g=null!=p&&function(t){if(t.sourceFormat===_h){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!ut(oo(e))}}(r)?function(t,e,n,r){return r===p?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:h,null,g),f}var Py=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Eo(Py);var Ry=Py,By=0,Vy=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++By}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&rt(r,zy);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!pt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Et(this.categories))},t}();function zy(t){return ft(t)&&null!=t.value?t.value:t+""}var Fy=Vy;function Gy(t){return"interval"===t.type||"log"===t.type}function Uy(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Vi(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=jy(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Hy(t,0,e),Hy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Ai(Math.ceil(t[0]/a)*a,s),Ai(Math.floor(t[1]/a)*a,s)],t),i}function Wy(t){var e=Math.pow(10,Bi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ai(n*e)}function jy(t){return Di(t)+2}function Hy(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Yy(t,e){return t>=e[0]&&t<=e[1]}function qy(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Xy(t,e){return t*(e[1]-e[0])+e[0]}var Zy=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Fy({})),ut(r)&&(r=new Fy({categories:rt(r,(function(t){return ft(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return k(e,t),e.prototype.parse=function(t){return null==t?NaN:pt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Yy(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return qy(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Xy(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ry);Ry.registerClass(Zy);var Jy=Zy,Ky=Ai,Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return k(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Yy(t,this._extent)},e.prototype.normalize=function(t){return qy(t,this._extent)},e.prototype.scale=function(t){return Xy(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jy(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:Ky(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Ky(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:Ky(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Ky(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Di(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Yp(Ky(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Uy(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Ky(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Ky(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Ry);Ry.registerClass(Qy);var $y=Qy,tx="undefined"!=typeof Float32Array,ex=tx?Float32Array:Array;function nx(t){return ut(t)?tx?new Float32Array(t):t:new ex(t)}function rx(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ix(t){return t.dim+t.index}function ox(t,e){var n=[];return e.eachSeriesByType(t,(function(t){lx(t)&&n.push(t)})),n}function ax(t){var e=function(t){var e={};nt(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return nt(t,(function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var p=t.getData();r=Math.abs(o[1]-o[0])/p.count()}var h=Ti(t.get("barWidth"),r),d=Ti(t.get("barMaxWidth"),r),f=Ti(t.get("barMinWidth")||(ux(t)?.5:1),r),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:ix(i),stackId:rx(t)})})),function(t){var e={};nt(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var p=t.barGap;null!=p&&(o.gap=p);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return nt(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=at(r).length;o=Math.max(35-4*a,15)+"%"}var s=Ti(o,i),l=Ti(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,p=(u-s)/(c+(c-1)*l);p=Math.max(p,0),nt(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=p;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==p&&(t.width=r,u-=r+l*r,c--)}})),p=(u-s)/(c+(c-1)*l),p=Math.max(p,0);var h,d=0;nt(r,(function(t,e){t.width||(t.width=p),h=t,d+=t.width*(1+l)})),h&&(d-=h.width*l);var f=-d/2;nt(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}(n)}function sx(t,e){var n=ox(t,e),r=ax(n);nt(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=rx(t),o=r[ix(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function lx(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function ux(t){return t.pipelineContext&&t.pipelineContext.large}var cx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return k(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ip(t.value,Sp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Tp(this._minLevelUnit))]||Sp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(pt(n))o=n;else if(ct(n))o=n(t.value,e,{level:t.level});else{var a=K({},bp);if(t.level>0)for(var s=0;s<kp.length;++s)a[kp[s]]="{primary|"+a[kp[s]]+"}";var l=n?!1===n.inherit?n:Q(n,a):a,u=Dp(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Cp.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ut(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Ip(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=1e4,o=Cp,a=0;function s(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!function(t,e,n,r){var i=Ri(e),o=Ri(n),a=function(t){return Op(i,t,r)===Op(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},p=function(){return c()&&a("minute")},h=function(){return p()&&a("second")},d=function(){return h()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return p();case"second":return h();case"millisecond":return d()}}(Tp(t),r[0],r[1],n)){l&&(i=[{value:mx(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,p=i[u+1].value;if(c!==p){var h=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":h=Math.max(1,Math.round(e/xp/365)),d=Ep(n),f=zp(n);break;case"half-year":case"quarter":case"month":h=dx(e),d=Np(n),f=Fp(n);break;case"week":case"half-week":case"day":h=hx(e),d=Lp(n),f=Gp(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=fx(e),d=Pp(n),f=Up(n);break;case"minute":h=gx(e,!0),d=Rp(n),f=Wp(n);break;case"second":h=gx(e,!1),d=Bp(n),f=jp(n);break;case"millisecond":h=vx(e),d=Vp(n),f=Hp(n)}s(h,c,p,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],p=0,h=0,d=0;d<o.length&&a++<i;++d){var f=Tp(o[d]);if(Ap(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?Tp(o[d+1]):null)){if(c.length){h=p,c.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<c.length;++v){var m=c[v].value;0!==v&&c[v-1].value===m||(g.push(c[v]),m>=r[0]&&m<=r[1]&&p++)}var y=(r[1]-r[0])/e;if(p>1.5*y&&h>y/1.5)break;if(u.push(g),p>y||t===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=i&&Xi("Exceed safe limit.");var x=ot(rt(u,(function(t){return ot(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;d<x.length;++d)for(var w=x[d],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-d});_.sort((function(t,e){return t.value-e.value}));var k=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||k.push(_[d]);return k}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=xp,e[1]+=xp),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-xp}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=px.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(px,this._approxInterval,0,o),o-1);this._interval=px[a][1],this._minLevelUnit=px[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return dt(t)?t:+Ri(t)},e.prototype.contain=function(t){return Yy(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qy(this.parse(t),this._extent)},e.prototype.scale=function(t){return Xy(t,this._extent)},e.type="time",e}($y),px=[["second",vp],["minute",mp],["hour",yp],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",_p/2],["year",_p]];function hx(t,e){return(t/=xp)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dx(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function fx(t){return(t/=yp)>12?12:t>6?6:t>3.5?4:t>2?2:1}function gx(t,e){return(t/=e?mp:vp)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function vx(t){return Vi(t,!0)}function mx(t,e,n){var r=new Date(t);switch(Tp(e)){case"year":case"month":r[Fp(n)](0);case"day":r[Gp(n)](1);case"hour":r[Up(n)](0);case"minute":r[Wp(n)](0);case"second":r[jp(n)](0),r[Hp(n)](0)}return r.getTime()}Ry.registerClass(cx);var yx=cx,xx=Ry.prototype,_x=$y.prototype,bx=Ai,Sx=Math.floor,kx=Math.ceil,Cx=Math.pow,Mx=Math.log,Tx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new $y,e._interval=0,e}return k(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return rt(_x.getTicks.call(this,t),(function(t){var e=t.value,i=Ai(Cx(this.base,e));return i=e===n[0]&&this._fixMin?Ix(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?Ix(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=Mx(t)/Mx(n),e=Mx(e)/Mx(n),_x.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=xx.getExtent.call(this);e[0]=Cx(t,e[0]),e[1]=Cx(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=Ix(e[0],n[0])),this._fixMax&&(e[1]=Ix(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Mx(t[0])/Mx(e),t[1]=Mx(t[1])/Mx(e),xx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Bi(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Ai(kx(e[0]/i)*i),Ai(Sx(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){_x.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Yy(t=Mx(t)/Mx(this.base),this._extent)},e.prototype.normalize=function(t){return qy(t=Mx(t)/Mx(this.base),this._extent)},e.prototype.scale=function(t){return t=Xy(t,this._extent),Cx(this.base,t)},e.type="log",e}(Ry),Ax=Tx.prototype;function Ix(t,e){return bx(t,Di(e))}Ax.getMinorTicks=_x.getMinorTicks,Ax.getLabel=_x.getLabel,Ry.registerClass(Tx);var Dx=Tx,Ox=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);ct(i)?this._modelMinNum=Lx(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=Lx(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(ct(o)?this._modelMaxNum=Lx(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Lx(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=ut(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?("production"!==process.env.NODE_ENV&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[ai(s[0],1),ai(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=_t(a)||_t(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var p=this._determinedMin,h=this._determinedMax;return null!=p&&(a=p,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){"production"!==process.env.NODE_ENV&&Mt(!this.frozen),this[Nx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Ex[t];"production"!==process.env.NODE_ENV&&Mt(!this.frozen&&null==this[n]),this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Ex={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Lx(t,e){return null==e?null:_t(e)?NaN:t.parse(e)}function Px(t,e){var n=t.type,r=function(t,e,n){var r=t.rawExtentInfo;return r||(r=new Ox(t,e,n),t.rawExtentInfo=r,r)}(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=ox("bar",a),l=!1;if(nt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=ax(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(t,e,n){if(t&&e){var r=t[ix(e)];return null!=r&&null!=n?r[rx(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;nt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;nt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,p=c/(1-(s+l)/o)-c;return{min:t-=p*(s/u),max:e+=p*(l/u)}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Rx(t,e){var n=e,r=Px(t,n),i=r.extent,o=n.get("splitNumber");t instanceof Dx&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Bx(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):pt(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):ct(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(Vx(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Vx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function zx(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Qr(t.x,t.y,o,a)}function Fx(t){var e=t.get("interval");return null==e?"auto":e}function Gx(t){return"category"===t.type&&0===Fx(t.getLabelModel())}function Ux(t,e){var n={};return nt(t.mapDimensionsAll(e),(function(e){n[function(t,e){return Ny(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0})),at(n)}var Wx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),jx=[],Hx={registerPreprocessor:Wm,registerProcessor:jm,registerPostInit:function(t){Hm("afterinit",t)},registerPostUpdate:function(t){Hm("afterupdate",t)},registerUpdateLifecycle:Hm,registerAction:Ym,registerCoordinateSystem:function(t,e){td.register(t,e)},registerLayout:function(t,e){Zm(Lm,t,e,1e3,"layout")},registerVisual:qm,registerTransform:Qm,registerLoading:Jm,registerMap:Km,registerImpl:function(t,e){"production"!==process.env.NODE_ENV&&Jv[t]&&Zi("Already has an implementation of "+t+"."),Jv[t]=e},PRIORITY:tm,ComponentModel:gh,ComponentView:eg,SeriesModel:$f,ChartView:pg,registerComponentModel:function(t){gh.registerClass(t)},registerComponentView:function(t){eg.registerClass(t)},registerSeriesModel:function(t){$f.registerClass(t)},registerChartView:function(t){pg.registerClass(t)},registerSubTypeDefaulter:function(t,e){gh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,bi[t]=n}};function Yx(t){ut(t)?nt(t,(function(t){Yx(t)})):$(jx,t)>=0||(jx.push(t),ct(t)&&(t={install:t}),t.install(Hx))}function qx(t,e){return Math.abs(t-e)<1e-8}function Xx(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Xa(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return qx(i[0],s[0])&&qx(i[1],s[1])||(r+=Xa(i[0],i[1],s[0],s[1],e,n)),0!==r}var Zx=[];function Jx(t,e){for(var n=0;n<t.length;n++)Xt(t[n],t[n],e)}function Kx(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Zt(e,e,o),Jt(n,n,o))}}var Qx=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),$x=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},t_=function(t){this.type="linestring",this.points=t},e_=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return k(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0];return nt(this.geometries,(function(e){"polygon"===e.type?Kx(e.exterior,n,r,t):nt(e.points,(function(e){Kx(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Qr(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Xx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Xx(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Qr(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Jx(c.exterior,s),nt(c.interiors,(function(t){Jx(t,s)}))):nt(c.points,(function(t){Jx(t,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Qx),n_=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return k(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Cr(Zx),i=t;i&&!i.isGeoSVGGraphicRoot;)Tr(r,i.getLocalTransform(),r),i=i.parent;return Or(r,r),Xt(n,n,r),n},e}(Qx);function r_(t,e,n){for(var r=0;r<t.length;r++)t[r]=i_(t[r],e[r],n)}function i_(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function o_(t,e){return rt(ot((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),nt(e.features,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=i_(i,r,n);break;case"Polygon":case"MultiLineString":r_(i,r,n);break;case"MultiPolygon":nt(i,(function(t,e){return r_(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new $x(o[0],o.slice(1)));break;case"MultiPolygon":nt(r.coordinates,(function(t){t[0]&&i.push(new $x(t[0],t.slice(1)))}));break;case"LineString":i.push(new t_([r.coordinates]));break;case"MultiLineString":i.push(new t_(r.coordinates))}var a=new e_(n[e||"name"],i,n.cp);return a.properties=n,a}))}var a_=mo();function s_(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=u_(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Bx(t);return{labels:rt(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function l_(t,e){return"category"===t.type?function(t,e){var n,r,i=c_(t,"ticks"),o=Fx(e),a=p_(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(ct(o))n=f_(t,o,!0);else if("auto"===o){var s=u_(t,t.getLabelModel());r=s.labelCategoryInterval,n=rt(s.labels,(function(t){return t.tickValue}))}else n=d_(t,r=o,!0);return h_(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:rt(t.scale.getTicks(),(function(t){return t.value}))}}function u_(t,e){var n,r,i=c_(t,"labels"),o=Fx(e),a=p_(i,o);return a||(ct(o)?n=f_(t,o):(r="auto"===o?function(t){var e=a_(t).autoInterval;return null!=e?e:a_(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=d_(t,r)),h_(i,o,{labels:n,labelCategoryInterval:r}))}function c_(t,e){return a_(t)[e]||(a_(t)[e]=[])}function p_(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function h_(t,e,n){return t.push({key:e,value:n}),n}function d_(t,e,n){var r=Bx(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Gx(t),h=a.get("showMinLabel")||p,d=a.get("showMaxLabel")||p;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function f_(t,e,n){var r=t.scale,i=Bx(t),o=[];return nt(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var g_=[0,1],v_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count()),Mi(t,g_,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count());var i=Mi(t,n,g_,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=rt(l_(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;nt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]});p(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&p(o.coord,s[1])&&e.push({coord:s[1]});function p(t,e){return t=Ai(t),e=Ai(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),rt(this.scale.getMinorTicks(t),(function(t){return rt(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return s_(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Bx(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),p=Math.abs(u*Math.sin(r)),h=0,d=0;l<=o[1];l+=s){var f,g,v=ni(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,h=Math.max(h,f,7),d=Math.max(d,g,7)}var m=h/c,y=d/p;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=a_(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function m_(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var y_=v_;function x_(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,p=r-e,h=Math.sqrt(c*c+p*p),d=(l*(c/=h)+u*(p/=h))/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var f=a[0]=t+d*c,g=a[1]=e+d*p;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}Fa.CMD;var __=new Ur,b_=new Ur,w_=new Ur,S_=new Ur,k_=new Ur,C_=[],M_=new Ur;function T_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,__.fromArray(t[0]),b_.fromArray(t[1]),w_.fromArray(t[2]),Ur.sub(S_,__,b_),Ur.sub(k_,w_,b_);var n=S_.len(),r=k_.len();if(!(n<.001||r<.001)){S_.scale(1/n),k_.scale(1/r);var i=S_.dot(k_);if(Math.cos(e)<i){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_),M_.scaleAndAdd(k_,o/Math.tan(Math.PI-e));var a=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(a))return;a<0?Ur.copy(M_,b_):a>1&&Ur.copy(M_,w_),M_.toArray(t[1])}}}}function A_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,__.fromArray(t[0]),b_.fromArray(t[1]),w_.fromArray(t[2]),Ur.sub(S_,b_,__),Ur.sub(k_,w_,b_);var r=S_.len(),i=k_.len();if(!(r<.001||i<.001))if(S_.scale(1/r),k_.scale(1/i),S_.dot(e)<Math.cos(n)){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_);var a=Math.PI/2,s=a+Math.acos(k_.dot(e))-n;if(s>=a)Ur.copy(M_,w_);else{M_.scaleAndAdd(k_,o/Math.tan(Math.PI/2-s));var l=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(l))return;l<0?Ur.copy(M_,b_):l>1&&Ur.copy(M_,w_)}M_.toArray(t[1])}}}function I_(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function D_(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ht(r[0],r[1]),o=Ht(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=qt([],r[1],r[0],a/i),l=qt([],r[1],r[2],a/o),u=qt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function O_(t,e,n,r){return function(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=0,p=0;p<a;p++){var h=t[p],d=h.rect;(s=d[e]-l)<0&&(d[e]-=s,h.label[e]-=s,u=!0),c+=Math.max(-s,0),l=d[e]+d[n]}c>0&&o&&_(-c/a,0,a);var f,g,v=t[0],m=t[a-1];return y(),f<0&&b(-f,.8),g<0&&b(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[e]-r,g=i-m.rect[e]-m.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){_(r*n,0,a);var i=r+t;i<0&&b(-i*n,1)}else b(-t*n,1)}}function _(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var p=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)_(o[l]*p,0,l+1);else for(l=a-1;l>0;l--)_(-o[l-1]*p,l,a)}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?_(n,0,r+1):_(-n,a-r-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,r)}var E_=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function N_(t,e){return n=Object.create(null),E_.forEach((function(r){n[r]=function(n){return function(){if(t.value||e(),!t.value)throw new Error("ECharts is not initialized yet.");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t.value[n].apply(t.value,i)}}(r)})),n;var n}function L_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P_={exports:{}},R_={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(R_);var B_={exports:{}};!function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports}(B_);var V_={exports:{}},z_={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports}(z_),function(t){var e=z_.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(V_);var F_={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(F_),function(t){var e=R_.exports,n=B_.exports,r=V_.exports,i=F_.exports;t.exports=function(t,o){return e(t)||n(t,o)||r(t,o)||i()},t.exports.__esModule=!0,t.exports.default=t.exports}(P_);var G_=L_(P_.exports);var U_={autoresize:Boolean};var W_={loading:Boolean,loadingOptions:Object};function j_(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}j_("x-vue-echarts{display:block;height:100%;width:100%}");var H_=/^on[^a-z]/,Y_=function(t){return H_.test(t)};var q_=e.defineComponent({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},U_),W_),inheritAttrs:!1,setup:function(t,r){var i=r.attrs,o=r.listeners,a=e.shallowRef(),s=e.shallowRef(),l=e.shallowRef(),u=e.inject("ecTheme",null),c=e.inject("ecInitOptions",null),p=e.inject("ecUpdateOptions",null),h=e.toRefs(t),d=h.autoresize,f=h.manualUpdate,g=h.loading,v=h.loadingOptions,m=e.computed((function(){return l.value||t.option||Object.create(null)})),y=e.computed((function(){return t.theme||e.unref(u)||{}})),x=e.computed((function(){return t.initOptions||e.unref(c)||{}})),_=e.computed((function(){return t.updateOptions||e.unref(p)||{}})),b=e.computed((function(){return function(t){var e={};for(var n in t)Y_(n)||(e[n]=t[n]);return e}(i)}));function w(n){if(!s.value&&a.value){var r=s.value=Gm(a.value,y.value,x.value);t.group&&(r.group=t.group);var l=o;l||(l={},Object.keys(i).filter((function(t){return 0===t.indexOf("on")&&t.length>2})).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);l[e]=i[t]}))),Object.keys(l).forEach((function(t){var e=l[t];e&&(0===t.indexOf("zr:")?r.getZr().on(t.slice(3).toLowerCase(),e):r.on(t.toLowerCase(),e))})),d.value?e.nextTick((function(){!function(){if(r&&!r.isDisposed())try{r.resize()}catch(t){if("Cannot read property 'get' of undefined"===t.message)return;throw t}}(),u()})):u()}function u(){r.setOption(n||m.value,_.value)}}function S(){s.value&&(s.value.dispose(),s.value=void 0)}var k=null;e.watch(f,(function(n){"function"==typeof k&&(k(),k=null),n||(k=e.watch((function(){return t.option}),(function(t){t&&(s.value?s.value.setOption(t,_.value):w())}),{deep:!0}))}),{immediate:!0}),e.watch([y,x],(function(){S(),w()}),{deep:!0}),e.watchEffect((function(){t.group&&s.value&&(s.value.group=t.group)}));var C=N_(s,w);return function(t,n,r){var i=e.inject("ecLoadingOptions",{}),o=e.computed((function(){return Object.assign(Object.assign({},e.unref(i)),null==r?void 0:r.value)}));e.watchEffect((function(){var e=t.value;e&&(n.value?e.showLoading(o.value):e.hideLoading())}))}(s,g,v),function(t,r,i){var o=null;e.watch([i,t,r],(function(t,e,r){var i=G_(t,3),a=i[0],s=i[1],l=i[2];a&&s&&l&&(o=gg((function(){s.resize()}),100),n.addListener(a,o)),r((function(){o&&a&&n.removeListener(a,o)}))}))}(s,d,a),e.onMounted((function(){t.option&&w()})),e.onUnmounted(S),Object.assign({chart:s,root:a,setOption:function(e,n){t.manualUpdate&&(l.value=e),s.value?s.value.setOption(e,n||{}):w(e)},nonEventAttrs:b},C)},render:function(){var t=Object.assign({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",e.h("x-vue-echarts",t)}});function X_(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function Z_(t){return t<=1?"".concat(100*Number(t),"%"):t}function J_(t){return 1===t.length?"0"+t:String(t)}function K_(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Q_(t){return $_(t)/255}function $_(t){return parseInt(t,16)}var tb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function eb(t){var e,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof t&&(t=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(tb[t])t=tb[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=ob.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ob.rgba.exec(t))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ob.hsl.exec(t))return{h:n[1],s:n[2],l:n[3]};if(n=ob.hsla.exec(t))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ob.hsv.exec(t))return{h:n[1],s:n[2],v:n[3]};if(n=ob.hsva.exec(t))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ob.hex8.exec(t))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),a:Q_(n[4]),format:e?"name":"hex8"};if(n=ob.hex6.exec(t))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),format:e?"name":"hex"};if(n=ob.hex4.exec(t))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),a:Q_(n[4]+n[4]),format:e?"name":"hex8"};if(n=ob.hex3.exec(t))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(ab(t.r)&&ab(t.g)&&ab(t.b)?(e=t.r,n=t.g,r=t.b,i={r:255*X_(e,255),g:255*X_(n,255),b:255*X_(r,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):ab(t.h)&&ab(t.s)&&ab(t.v)?(a=Z_(t.s),s=Z_(t.v),i=function(t,e,n){t=6*X_(t,360),e=X_(e,100),n=X_(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(t.h,a,s),u=!0,c="hsv"):ab(t.h)&&ab(t.s)&&ab(t.l)&&(a=Z_(t.s),l=Z_(t.l),i=function(t,e,n){var r,i,o;if(t=X_(t,360),e=X_(e,100),n=X_(n,100),0===e)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=K_(s,a,t+1/3),i=K_(s,a,t),o=K_(s,a,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,a,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(o=t.a)),o=function(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}(o),{ok:u,format:t.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var nb="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),rb="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ib="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ob={CSS_UNIT:new RegExp(nb),rgb:new RegExp("rgb"+rb),rgba:new RegExp("rgba"+ib),hsl:new RegExp("hsl"+rb),hsla:new RegExp("hsla"+ib),hsv:new RegExp("hsv"+rb),hsva:new RegExp("hsva"+ib),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ab(t){return Boolean(ob.CSS_UNIT.exec(String(t)))}var sb=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function lb(t){var e=function(t,e,n){t=X_(t,255),e=X_(e,255),n=X_(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4}o/=6}return{h:o,s:l,v:a}}(t.r,t.g,t.b);return{h:360*e.h,s:e.s,v:e.v}}function ub(t){var e=t.r,n=t.g,r=t.b;return"#".concat(function(t,e,n,r){var i=[J_(Math.round(t).toString(16)),J_(Math.round(e).toString(16)),J_(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(e,n,r,!1))}function cb(t,e,n){var r=n/100;return{r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b}}function pb(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r}function hb(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function db(t,e,n){var r;return(r=n?t.v+.05*e:t.v-.15*e)>1&&(r=1),Number(r.toFixed(2))}function fb(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=eb(t),i=5;i>0;i-=1){var o=lb(r),a=ub(eb({h:pb(o,i,!0),s:hb(o,i,!0),v:db(o,i,!0)}));n.push(a)}n.push(ub(r));for(var s=1;s<=4;s+=1){var l=lb(r),u=ub(eb({h:pb(l,s),s:hb(l,s),v:db(l,s)}));n.push(u)}return"dark"===e.theme?sb.map((function(t){var r=t.index,i=t.opacity;return ub(cb(eb(e.backgroundColor||"#141414"),eb(n[r]),100*i))})):n}var gb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vb={},mb={};Object.keys(gb).forEach((function(t){vb[t]=fb(gb[t]),vb[t].primary=vb[t][5],mb[t]=fb(gb[t],{theme:"dark",backgroundColor:"#141414"}),mb[t].primary=mb[t][5]})),vb.red,vb.volcano,vb.gold,vb.orange,vb.yellow,vb.lime,vb.green,vb.cyan,vb.blue,vb.geekblue,vb.purple,vb.magenta,vb.grey;var yb=[],xb=[];function _b(t,e){if(e=e||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,r=!0===e.prepend?"prepend":"append",i=void 0!==e.container?e.container:document.querySelector("head"),o=yb.indexOf(i);return-1===o&&(o=yb.push(i)-1,xb[o]={}),void 0!==xb[o]&&void 0!==xb[o][r]?n=xb[o][r]:(n=xb[o][r]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===r?i.insertBefore(n,i.childNodes[0]):i.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}function bb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){wb(t,e,n[e])}))}return t}function wb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sb(t,e){!function(t,e){"production"===process.env.NODE_ENV||t||void 0===console||console.error("Warning: ".concat(e))}(t,"[@ant-design/icons-vue] ".concat(e))}function kb(t){return"object"==typeof t&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"==typeof t.icon||"function"==typeof t.icon)}function Cb(t,n,r){return r?e.h(t.tag,bb({key:n},r,t.attrs),(t.children||[]).map((function(e,r){return Cb(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.h(t.tag,bb({key:n},t.attrs),(t.children||[]).map((function(e,r){return Cb(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Mb(t){return fb(t)[0]}function Tb(t){return t?Array.isArray(t)?t:[t]:[]}var Ab="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ib=!1,Db=["icon","primaryColor","secondaryColor"];function Ob(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Eb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nb(t,e,n[e])}))}return t}function Nb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lb={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Pb=function(t,n){var r=Eb({},t,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=Ob(r,Db),l=Lb;if(o&&(l={primaryColor:o,secondaryColor:a||Mb(o)}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ab;e.nextTick((function(){Ib||("undefined"!=typeof window&&window.document&&window.document.documentElement&&_b(t,{prepend:!0}),Ib=!0)}))}(),Sb(kb(i),"icon should be icon definiton, but got ".concat(i)),!kb(i))return null;var u=i;return u&&"function"==typeof u.icon&&(u=Eb({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),Cb(u.icon,"svg-".concat(u.name),Eb({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Pb.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Pb.inheritAttrs=!1,Pb.displayName="IconBase",Pb.getTwoToneColors=function(){return Eb({},Lb)},Pb.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;Lb.primaryColor=e,Lb.secondaryColor=n||Mb(e),Lb.calculated=!!n};var Rb=Pb;function Bb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vb(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zb(t){var e=Bb(Tb(t),2),n=e[0],r=e[1];return Rb.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Fb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Gb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ub(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ub(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ub(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){jb(t,e,n[e])}))}return t}function jb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hb(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}zb("#1890ff");var Yb=function(t,n){var r,i=Wb({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,p=i.onClick,h=Hb(i,Fb),d=(jb(r={anticon:!0},"anticon-".concat(a.name),Boolean(a.name)),jb(r,o,o),r),f=""===s||s||"loading"===a.name?"anticon-spin":"",g=u;void 0===g&&p&&(g=-1,h.tabindex=g);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=Gb(Tb(c),2),y=m[0],x=m[1];return e.createVNode("span",Wb({role:"img","aria-label":a.name},h,{onClick:p,class:d}),[e.createVNode(Rb,{class:f,icon:a,primaryColor:y,secondaryColor:x,style:v},null)])};Yb.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Yb.displayName="AntdIcon",Yb.inheritAttrs=!1,Yb.getTwoToneColor=function(){var t=Rb.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},Yb.setTwoToneColor=zb;var qb=Yb,Xb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Zb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Jb(t,e,n[e])}))}return t}function Jb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kb=function(t,n){var r=Zb({},t,n.attrs);return e.createVNode(qb,Zb({},r,{icon:Xb}),null)};Kb.displayName="LoadingOutlined",Kb.inheritAttrs=!1;var Qb=Kb,$b=e.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:r.Spin},setup:function(){return{indicator:e.h(Qb,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),tw={class:"spin-wrapper"};j_(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),$b.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",tw,[t.spinning?(e.openBlock(),e.createBlock(s,{key:0,class:"spin",spinning:t.spinning,indicator:t.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):e.renderSlot(t.$slots,"default",{key:1})])},$b.__file="src/common/spin/Spin.vue";var ew=e.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:r.Skeleton}});ew.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-skeleton");return e.openBlock(),e.createBlock(s,{active:"",loading:t.loading},{default:e.withCtx((function(){return[e.renderSlot(t.$slots,"default")]})),_:3},8,["loading"])},ew.__file="src/common/skeleton/Skeleton.vue";var nw={exports:{}},rw={exports:{}};!function(t){var e=z_.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(rw);var iw={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(iw);var ow={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(ow),function(t){var e=rw.exports,n=iw.exports,r=V_.exports,i=ow.exports;t.exports=function(t){return e(t)||n(t)||r(t)||i()},t.exports.__esModule=!0,t.exports.default=t.exports}(nw);var aw=L_(nw.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var sw=function(t,e){if(t.install=function(n){for(var r=0,i=[t].concat(aw(Object.values(null!=e?e:{})));r<i.length;r++){var o=i[r];n.component(o.name,o)}},e)for(var n=0,r=Object.entries(e);n<r.length;n++){var i=G_(r[n],2),o=i[0],a=i[1];t[o]=a}return t},lw={exports:{}};!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r=p;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(t,e,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",d="executing",f="completed",g={};function v(){}function m(){}function y(){}var x={};l(x,o,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(I([])));b&&b!==n&&r.call(b,o)&&(x=b);var w=y.prototype=v.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=c(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function I(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:e,done:!0}}return m.prototype=y,l(w,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(k.prototype),l(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(lw);var uw,cw,pw=lw.exports,hw={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:"",value:{id:"",prop:""}}],events:[],dataType:"static"},dw=function(t){return o.mapValues(t,(function(t){return null==t?{}:{type:t.constructor,default:t}}))},fw={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gw=dw(fw),vw=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],mw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=o.without.apply(void 0,[vw].concat(aw(n)));return e.computed((function(){return o.pick(t,r)}))},yw="EVENT_BUS",xw="GLOBAL_CONFIG",_w="GLOBAL_MODEL",bw="REQUEST_MODEL",ww=(null===(uw=null===window||void 0===window?void 0:window.config)||void 0===uw?void 0:uw.uploadPath)||"/api",Sw=(null===(cw=null===window||void 0===window?void 0:window.config)||void 0===cw?void 0:cw.baseUrl)||"./",kw="http://59.56.182.79:9192/api/",Cw=function(t,n){e.watch((function(){return t.id}),(function(t,r){var i=e.inject(yw,{onEvent:function(t,e){},offEvent:function(t){}});null!=r&&""!==r&&i.offEvent(r),null!=t&&""!==t&&i.onEvent(t,n)}),{immediate:!0})},Mw=function(t){var n=e.inject(yw,{emitEvent:function(t,e){}});return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments))),n){var i=n.emitEvent;t.forEach((function(t){if(e===t.on)try{i(t.target,t.emit)}catch(t){console.error(t)}}))}}}};function Tw(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Aw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Aw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Iw=function(t,e){var n=e||{},r=n.name,i=void 0===r?"name":r,o=n.value,a=void 0===o?"value":o,s=n.type,l=void 0===s?"type":s;i=null==i?void 0:i.trim(),a=null==a?void 0:a.trim(),l=null==l?void 0:l.trim();for(var u=new Set,c=new Map,p=t.length,h=0;h<p;h++){var d=t[h],f=d[i]||"",g=d[a]||"",v=d[l]||"";if(u.add(f),c.has(v)){var m=c.get(v);m.push(Object.assign({name:f,value:g},d)),c.set(v,m)}else c.set(v,[Object.assign({name:f,value:g},d)])}var y,x=Array.from(u),_=[],b=Tw(c);try{for(b.s();!(y=b.n()).done;){var w=G_(y.value,2),S=w[0],k=w[1];_.push({name:S,data:k})}}catch(t){b.e(t)}finally{b.f()}return{dimensions:x,dataset:_}},Dw={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Dw);var Ow=L_(Dw.exports),Ew=function(t){return t.replace(/\\n/g,"\n")},Nw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=parseFloat(t+"");return isNaN(n)||n<0?t:n.toFixed(e).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Lw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t+"";if(n.includes("%"))return t;var r=parseFloat(n);return isNaN(r)?t:"".concat((100*r).toFixed(e),"%")},Pw=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLocaleLowerCase().includes(e.toLocaleLowerCase())},Rw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=t.requestUrl,i=t.requestMethod,o=t.requestHeaders,a=t.requestParams,s=t.requestInterval,l=t.isOpenRequestTimer,u=e.inject(xw,{contextRequestUrl:"",pageMode:"normal"}),c=u.contextRequestUrl,p=u.pageMode,h=e.inject(_w,{getGlobalModel:function(t){}}),d=h.getGlobalModel,f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C(void 0,void 0,void 0,pw.mark((function s(){var l,u,h,f,g,v;return pw.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(r&&i&&o&&"design"!==e.unref(p)){s.next=2;break}return s.abrupt("return");case 2:return l={},a.forEach((function(t){var n=t.key,r=t.value;if("object"===Ow(r)&&r.id){var i=d(r.id)||{},o=r.prop,a=r.propKey,s=null!=i[o]?i[o]:{},u=["date","range"].some((function(t){return Pw(null==i?void 0:i.type,t)}));null==a||""===a||u||(s=i[o][a]);var c=e.unref(s);u&&null!=a&&""!==a&&(c=(null==c?void 0:c.format((null==a?void 0:a.trim())||i.format))||""),l[n]=c}else"string"==typeof r&&(l[n]=r)})),l=Object.assign(Object.assign({},l),t),u="",h=Object.keys(l),f=h.length-1,h.forEach((function(t,e){switch(e){case 0:u+="?".concat(t,"=").concat(l[t],"&");break;case f:u+="".concat(t,"=").concat(l[t]);break;default:u+="".concat(t,"=").concat(l[t],"&")}})),s.prev=9,g=["get","head"].includes(i),s.next=13,y.default({baseURL:e.unref(c),url:g?r+u:r,method:i,headers:o,data:g?{}:l});case 13:return v=s.sent,n(v),s.abrupt("return",v);case 18:s.prev=18,s.t0=s.catch(9),console.error(s.t0);case 21:case"end":return s.stop()}}),s,null,[[9,18]])})))},g=l&&setInterval(f,1e3*s);return e.onUnmounted((function(){clearInterval(g)})),f};function Bw(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Vw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zw=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},r=n.name,i=void 0===r?"name":r,o=n.types,a=void 0===o?[]:o;i=(null==i?void 0:i.trim())||i;var s=new Set,l=new Map,u=t.length,c=a.length;if(1===u){for(var p=[],h=0;h<c;h++){var d=a[h],f=d.label,g=d.value,v=t[0][g];s.add(f),p.push(v)}var m=t[0][i]||"";l.set(m,p)}else for(var y=0;y<u;y++){var x=t[y],_=x[i];s.add(_);for(var b=0;b<c;b++){var w=a[b],S=w.label,k=w.value,C=x[k];if(l.has(S)){var M=l.get(S);M.push(C),l.set(S,M)}else l.set(S,[C])}}var T,A=Array.from(s),I=[],D=Bw(l);try{for(D.s();!(T=D.n()).done;){var O=G_(T.value,2),E=O[0],N=O[1];I.push({name:E,data:N})}}catch(t){D.e(t)}finally{D.f()}return{dimensions:A,dataset:I}},Fw=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return t;var n="";return n=(null==t?void 0:t.includes("://"))?t:ww+t,e&&(n="url(".concat(n,")")),n},Gw=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null!==(e=window.config)&&void 0!==e?e:{};n=Object.assign(Object.assign({},r),n);var i=t.match(/\{.*?\}/g);if(null==i||0===i.length)return t;for(var o=0;o<i.length;o++){var a=i[o],s=a.slice(1,a.length-1),l=n[s];t=null!=l?t.replace(a,l):t.replace(a,"")}return t},Uw=y.default.create({});Uw.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),Uw.interceptors.response.use((function(t){var e,n,i;return 500==+(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.code)&&r.message.error({content:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.msg)||(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.message)||"服务器异常",key:"SERVER_ERROR"}),t}),(function(t){if(t.message.includes("timeout"))r.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{var e=t.response.status;e>=400&&e<500&&r.message.error({content:"请求异常",key:"REQUEST_ERROR"}),e>=500&&r.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(t)}));var Ww=function(t){var n=t.type,r=t.graphicConfig,i=e.inject(_w,{getGlobalModel:function(t){}}).getGlobalModel;function o(t){var e=[];return t.leftAxisList.forEach((function(n){var r=!1;t.leftAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:n.calcValue?n.calcValue:"SUM",order:null,location:"LEFT",show:r};"INDICATOR_LIB"===t.source&&(i.hrpIndexCode=n.indexCode),i=a(n,i),e.push(i)})),t.rightAxisList.forEach((function(n){var r=!1;t.rightAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:"SUM",order:null,location:"LEFT",show:r};i=a(n,i),"INDICATOR_LIB"===t.source&&(i.hrpIndexCode=n.indexCode),e.push(i)})),e}function a(t,e){var n=Object.assign({},e);return t.calcMethod?"FORMULA"===t.calcMethod?(t.formulafuc&&(n.formula=t.formulafuc),n.calcType="FORMULA"):(n.builtInFormula=t.calculmethod,n.calcType="BUILT_IN",t.comeFrom&&(n.builtInValueSource=t.comeFrom),t.accessPrinciple&&(n.builtInCalcWay=t.accessPrinciple)):n.calcType="COLUMN",n}function s(t){for(var e=[],n=t.relativeList,r=0;r<n.length;r++){var o={alias:n[r].keyName,fieldName:n[r].searchName,rule:n[r].searchType||"NONE",fieldValue:"",valueType:"",variateName:n[r].variateName},a=i(n[r].id)||{};"the_date"===n[r].searchName?o.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(n[r].searchName)&&(o.valueType="TEXT"),"ecanDatePicker"===a.type&&(o.dateFormat=a.format,o.fieldValue=a.value.value.format(a.format)),e.push(o)}return e}function l(t,e){var n=e.find((function(e){return e.name===t.label}));n.sort.type&&("CUSTOM"!==n.sort.type?t.sort={label:n.sort.label,columnName:n.sort.columnName,type:"NORMAL",order:n.sort.type}:t.sort={label:n.label,columnName:n.columnName,type:"CUSTOM",customOrderColumns:n.sort.customOrderColumns}),n.customGroup&&n.customGroup.groupList.length>1&&(t.customGroup={groupInfoMap:{},otherGroupName:""},n.customGroup.groupList.forEach((function(e,n){0!==n&&(t.customGroup.groupInfoMap[e.key]=e.value)})),t.customGroup.otherGroupName=n.customGroup.otherName||""),t.rangeIndexTypeGuid=n.typeGuid,t.customFilterSqlPart=n.filterSql||""}function u(t,e){for(var n=0;n<t.children.length;n++)if(t.children[n].children.length>0){var r="";r="and"===t.type?"&&":"||",e.push({conditions:[],join:r}),u(t.children[n],e[e.length-1].conditions)}else if(t.children[n].fieldName){var i="",o={fieldName:t.children[n].fieldName,fieldType:t.children[n].itemType,rule:t.children[n].rule,fieldValue:"",label:t.children[n].label,version:t.children[n].version?t.children[n].version:100,targetSource:t.children[n].targetSource?t.children[n].targetSource:""};if(i=JSON.parse(JSON.stringify(t.children[n].fieldValue)),"DATE"===t.children[n].itemType)o.dateFormat=t.children[n].format,o.dateCalcTypes=t.children[n].dateCalcTypes,o.calcWays=t.children[n].calcWays,"time"===t.children[n].selectType?t.children[n].absoluteBool&&(i="#######",o.calcWays=t.children[n].calcWays):"component"===t.children[n].selectType&&(i="${"+t.children[n].relateCompent+"}"),o.dateFormat=t.children[n].format,o.dateCalcTypes=t.children[n].dateCalcTypes,o.calcWays=t.children[n].calcWays;else if("[object Array]"===Object.prototype.toString.call(i)){for(var a=[],s=0;s<i.length;s++)"全选"!==i[s]&&a.push(i[s]);i=a.join(",")}o.fieldValue=i,t.children.length>1&&n!==t.children.length-1&&("and"===t.type?o.join="&&":o.join="||"),e.push(o)}}function c(t,e,n){if(t){var r=n[e].find((function(e){return e.name===t.label}));if(r){var i=[],o=r.filterList;if(o)for(var a=0;a<o.length;a++)o[a].children.length>0&&u(o[a],i);return i}}}return function(){return C(this,void 0,void 0,pw.mark((function t(){var e,i,a,u,p,h,d,f,g,v,m,y,x,_;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r||(r={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]}),e=r.classify,0!==[].concat(aw(r.leftAxis),aw(r.rightAxis)).length){t.next=5;break}return t.abrupt("return");case 5:for(i=o(r),r.series.length>0&&(u=r.seriesList.find((function(t){return t.name===r.series[0]||t.nameBak===r.series[0]})),a={label:u.name,columnName:u.label}),e.length>0&&(p={label:e[0],columnName:e[0]},h=r.classifyList.find((function(t){return t.name===e[0]||t.nameBak===e[0]}))||{},p.columnName=h.label,l(p,r.classifyList),p.conditions=c(p,"classifyList",r)||[]),a&&(l(a,r.seriesList),a.conditions=c(a,"seriesList",r)||[]),d=0;d<i.length;d++)"RIGHT"===i[d].location?i[d].conditions=c(i[d],"rightAxisList",r):i[d].conditions=c(i[d],"leftAxisList",r);return f=s(r),g="SQL_VIEW",v="",m="",y="","INDICATOR_LIB"===r.source&&(g="INDICATOR_LIB",v=r.fixedDimSql,m=r.dataSourceId,y=r.idxLibMode),x={ecanBar:"bar"},t.prev=17,t.next=20,Uw.get("".concat(kw,"/user/anonymous?username=admin"),{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});case 20:return _=t.sent,t.abrupt("return",Uw.post("".concat(kw,"/diagram"),{dataViewId:r.dataViewId,plugin:"1",layer:"2",chartType:x[n],classification:p,classifications:undefined,indicatorList:i,series:a,sqlConditions:f,source:g,fixedDimSql:v,dataSourceId:m,idxLibMode:y},{headers:{Authentication:_.data.data.token}}));case 24:t.prev=24,t.t0=t.catch(17),console.error(t.t0);case 27:case"end":return t.stop()}}),t,null,[[17,24]])})))}},jw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.match(/\{.*?\}/g);if(null==n||0===n.length)return t;for(var r=0;r<n.length;r++){var i=n[r];if(null==i||""===i)break;var o=i.slice(1,-1);o=null==o?void 0:o.replace(/value/g,e);var a=eval,s=a(o);t=t.replace(i,s)}return t},Hw=e.defineComponent({name:"EcanPageConfig",props:Object.assign({},gw),setup:function(t){var n,r=this,i=e.computed((function(){return{width:t.width,height:t.height,backgroundColor:t.backgroundColor,backgroundImage:Fw(t.backgroundImage,!0),backgroundSize:t.backgroundSize}})),a=e.ref(0),s=e.ref(0),l=e.ref(0),u=e.ref(0),c=e.ref(!1),p=e.ref(),h=function(){return new Promise((function(n){e.nextTick((function(){t.width&&t.height?(a.value=parseFloat(t.width),s.value=parseFloat(t.height)):(a.value=p.value.clientWidth,s.value=p.value.clientHeight),l.value&&u.value||(l.value=window.screen.width,u.value=window.screen.height),n()}))}))},d=function(){var t=document.body.clientWidth,e=document.body.clientHeight,n=t/(a.value||l.value),r=e/(s.value||u.value);p.value&&(p.value.style.transform="scale(".concat(n,", ").concat(r,")"))},f=function(){return C(r,void 0,void 0,pw.mark((function t(){return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h();case 2:d();case 3:case"end":return t.stop()}}),t)})))};return e.onMounted((function(){return C(r,void 0,void 0,pw.mark((function t(){return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c.value=!1,t.next=3,h();case 3:a.value&&s.value?(p.value.style.width="".concat(a.value,"px"),p.value.style.height="".concat(s.value,"px")):(p.value.style.width="".concat(l.value,"px"),p.value.style.height="".concat(u.value,"px")),d(),window.addEventListener("resize",o.debounce(f,100)),e=void 0,e=window.MutationObserver,(n=new e(f)).observe(p.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),c.value=!0;case 8:case"end":return t.stop()}var e}),t)})))})),e.onUnmounted((function(){window.removeEventListener("resize",f),n&&(n.disconnect(),n.takeRecords(),n=null)})),{style:i,container:p,ready:c}}}),Yw={id:"container",ref:"container"};j_("#container[data-v-f2b96d90]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-f2b96d90]{background-size:cover;overflow:hidden;position:relative}"),Hw.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",Yw,[t.ready?(e.openBlock(),e.createElementBlock("div",{key:0,class:"page-config",style:e.normalizeStyle(t.style)},[e.renderSlot(t.$slots,"default")],4)):e.createCommentVNode("v-if",!0)],512)},Hw.__scopeId="data-v-f2b96d90",Hw.__file="src/setting/page-config/PageConfig.vue";var qw=sw(Hw),Xw={contextRequestUrl:"",pageMode:"normal",theme:"light"},Zw=dw(Xw),Jw=e.defineComponent({name:"EcanProviderConfig",props:Object.assign({},Zw),setup:function(t,n){var r=this,i=n.expose,o=e.ref(),a=function(){o.value.setAttribute("datav-theme",t.theme)};e.watch((function(){return t.theme}),(function(){a()})),e.onMounted((function(){a()}));var s=e.computed((function(){return Gw(t.contextRequestUrl)})),l=e.computed((function(){return t.pageMode})),u=e.computed((function(){return t.theme}));e.provide(xw,{contextRequestUrl:s,pageMode:l,theme:u});var c=new Map;e.provide(_w,{getGlobalModel:function(t){return c.get(t)},setGlobalModel:function(t,e){c.set(t,e)}});var p=x.default();e.provide(yw,{onEvent:function(t,n){p.on(t,(function(t){return"[object Function]"===Object.prototype.toString.call(n[t])&&n[t]()})),e.onUnmounted((function(){p.off(t)}))},offEvent:function(t){p.off(t)},emitEvent:function(t,e){p.emit(t,e)}});var h=new Map,d=function(t){return new Promise((function(e,n){var r=t.map((function(t){return t()}));Promise.all(r).then((function(t){e(t)})).catch((function(t){n(t)}))}))},f=function(){return C(r,void 0,void 0,pw.mark((function t(){var e,n,r,i;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=Array.from(h)).sort((function(t,e){return e[0]-t[0]})),n=e.length,t.prev=3,r=0;case 5:if(!(r<n)){t.next=12;break}return i=e[r][1],t.next=9,d(i);case 9:r++,t.next=5;break;case 12:h.clear(),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),console.error(t.t0);case 18:case"end":return t.stop()}}),t,null,[[3,15]])})))};return e.provide(bw,{setRequest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(h.has(e)){var n=h.get(e);null==n||n.push(t)}else h.set(e,[t])},touchRequest:f}),i({touchRequest:f}),{providerConfig:o}}}),Kw={id:"ProviderConfig",ref:"providerConfig"};Jw.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 请勿去除属性id "),e.createElementVNode("div",Kw,[e.renderSlot(t.$slots,"default")],512)],2112)},Jw.__file="src/setting/provider-config/ProviderConfig.vue";var Qw=sw(Jw),$w=Object.assign(Object.assign({},hw),{name:"基础文本",type:"ecanText",width:"100px",height:"40px",text:"文字",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{}}),tS=dw($w),eS=["refreshData","click"],nS=e.defineComponent({name:"EcanText",components:{Skeleton:ew},props:Object.assign({},tS),setup:function(t){var n=this,r=mw(t),i=e.ref(t.data),o=e.computed((function(){var n=t.text,r=e.unref(i),o=n.match(/\{.*?\}/g);if(null==o||0===o.length)return n;for(var a=0;a<o.length;a++){var s=o[a],l=s.slice(1,s.length-1),u=null!=r[l]?r[l]:"0";n=null!=u?n.replace(s,'<span style="color:'.concat(t.variableColor,";font-size:").concat(t.variableFontSize,'">').concat(u,"</span>")):n.replace(s,"")}return"<span>".concat(n,"</span>")})),a=e.inject(xw,{pageMode:"normal"}).pageMode,s=Rw(t),l=e.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function t(){var n,r;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("design"!==e.unref(a)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,l.value=!0,t.next=6,s();case 6:r=t.sent,i.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data)||{},t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,l.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},c=function(){u()};Cw(t,{refreshData:c}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(u,t.requestSort),Cw(t,{refreshData:c});var p=Mw(t.events)("click",(function(){}));return{style:r,myText:o,loading:l,click:p}}}),rS=["innerHTML"];j_(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),nS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton");return t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:e.normalizeStyle(t.style)},[e.createVNode(s,{loading:t.loading},null,8,["loading"])],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"ecan-text",style:e.normalizeStyle(t.style),innerHTML:t.myText,onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},null,12,rS))},nS.__scopeId="data-v-41a337b4",nS.__file="src/text/text/Text.vue";var iS=sw(nS),oS=e.defineComponent({name:"EcanScrollText",setup:function(){return{text:e.ref("基础文本")}}}),aS={class:"red"};j_(".red[data-v-0cbdffb5]{color:red}"),oS.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",aS,e.toDisplayString(t.text),1)},oS.__scopeId="data-v-0cbdffb5",oS.__file="src/text/scroll-text/ScrollText.vue";var sS=sw(oS),lS=Object.assign(Object.assign({},hw),{name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"}),uS=dw(lS),cS=e.defineComponent({name:"EcanTimeDisplay",props:Object.assign({},uS),setup:function(t){var n=mw(t),r=e.ref(_.default().format(t.format)),i=null,o=function(){clearInterval(i),i=null};return e.onMounted((function(){i&&o(),i=setInterval((function(){r.value=_.default().add(1,"s").format(t.format)}),1e3)})),e.onUnmounted((function(){o()})),{style:n,time:r}}});j_(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),cS.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"time-display",style:e.normalizeStyle(t.style)},e.toDisplayString(t.time),5)},cS.__scopeId="data-v-6cb314e1",cS.__file="src/text/time-display/TimeDisplay.vue";var pS=sw(cS),hS=Object.assign(Object.assign({},hw),{type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]}),dS=dw(hS),fS=["refreshData","click"],gS=e.defineComponent({name:"EcanList",components:{Skeleton:ew},props:Object.assign({},dS),setup:function(t){var n=this,r=e.ref(t.data),i=mw(t,["backgroundColor"]),o=e.computed((function(){return t.useRanking?{textAlign:"center"}:{textAlign:"left"}})),a=Rw(t),s=e.inject(xw,{pageMode:"normal"}).pageMode,l=e.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function n(){var i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,l.value=!0,n.next=6,a();case 6:o=n.sent,r.value=(null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.data.rows)||[],n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,l.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},c=Mw(t.events)("click",(function(){}));return Cw(t,{refreshData:function(){u()}}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(u,t.requestSort),{style:i,formatFn:function(t,e){return null==e||""===e?t:{money:Nw,percentage:Lw,contrast:Lw}[e](t)||""},columnStyle:o,contrastClass:function(t,e){var n=parseFloat(t+"");if("contrast"!==e)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},dataSource:r,loading:l,click:c}}});function vS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mS(Object(n),!0).forEach((function(e){vS(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var xS={key:0,class:"title"},_S={key:0,class:"ranking"},bS={key:1,class:"ecan-list-content"},wS={key:0,class:"ranking"},SS=function(t){return e.pushScopeId("data-v-2d6c92c6"),t=t(),e.popScopeId(),t}((function(){return e.createElementVNode("div",{class:"icon"},null,-1)})),kS={class:"sort"},CS={key:2,class:"empty"};j_('.ecan-list[data-v-2d6c92c6]{overflow:hidden}.ecan-list-content[data-v-2d6c92c6]{align-content:flex-start;display:flex;flex-wrap:wrap;height:100%;overflow:auto;width:100%}.title[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;position:absolute;width:100%;z-index:9}.title-inner[data-v-2d6c92c6]{display:flex;flex:1;height:100%;padding-left:28px;padding-right:20px}.title-placeholder[data-v-2d6c92c6]{height:32px;width:100%}.item[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;padding-left:28px;padding-right:20px;width:100%}.column[data-v-2d6c92c6],.ranking[data-v-2d6c92c6]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking[data-v-2d6c92c6]{align-items:center;display:flex;flex-shrink:0}.icon[data-v-2d6c92c6]{background:#21bef7;height:8px;margin-right:17px;opacity:.6;width:12px}.item:nth-child(2) .icon[data-v-2d6c92c6]{opacity:.8}.item:first-child .icon[data-v-2d6c92c6]{opacity:1}.sort[data-v-2d6c92c6]{font-weight:600}.goUp[data-v-2d6c92c6]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-2d6c92c6]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.empty[data-v-2d6c92c6]{margin-top:15%;text-align:center}');j_(".ecan-list ::-webkit-scrollbar-track{background-color:#fff}.ecan-list .ant-table-cell-scrollbar{box-shadow:0 1px 0 1px transparent}.ecan-list ::-webkit-scrollbar{height:6px;width:6px}.ecan-list ::-webkit-scrollbar-thumb{background-color:#c8c9ca;border-radius:6px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-list .empty{color:#fff}"),gS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton");return e.openBlock(),e.createElementBlock("div",{class:"ecan-list",style:e.normalizeStyle(t.style)},[e.createVNode(s,{loading:t.loading},{default:e.withCtx((function(){return[t.useTitle?(e.openBlock(),e.createElementBlock("div",xS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columnCount,(function(n){return e.openBlock(),e.createElementBlock("div",{class:"title-inner",style:e.normalizeStyle({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1,"/ ").concat(t.columnCount,")"),marginRight:n%t.columnCount!=0?t.itemColSpan:""}),key:n},[t.useRanking?(e.openBlock(),e.createElementBlock("div",_S)):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(function(n,r){return e.openBlock(),e.createElementBlock("div",{class:"column",key:n.key||r,style:e.normalizeStyle(yS({color:n.titleColor},t.columnStyle))},e.toDisplayString(n.title),5)})),128))],4)})),128))])):e.createCommentVNode("v-if",!0),t.dataSource.length>0?(e.openBlock(),e.createElementBlock("div",bS,[t.useTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title-placeholder",style:e.normalizeStyle({marginBottom:t.itemRowSpan})},null,4)):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSource.slice(0,t.sliceCount),(function(r,i){return e.openBlock(),e.createElementBlock("div",{class:"item",style:e.normalizeStyle({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1," / ").concat(t.columnCount,")"),marginRight:(i+1)%t.columnCount!=0?t.itemColSpan:"",marginBottom:t.itemRowSpan}),key:r.id||i,onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},[t.useRanking?(e.openBlock(),e.createElementBlock("div",wS,[SS,e.createElementVNode("div",kS," Top "+e.toDisplayString(i+1),1)])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(function(n){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["column",t.contrastClass(r[n.key],n.format)]),key:n.key,style:e.normalizeStyle(yS({fontSize:n.fontSize,color:""===t.contrastClass(r[n.key],n.format)?n.color:"",fontWeight:n.fontWeight},t.columnStyle))},e.toDisplayString((null!=n.format||""!==n.format)&&t.formatFn(r[n.key],n.format)),7)})),128))],4)})),128))])):(e.openBlock(),e.createElementBlock("div",CS," 暂无数据 "))]})),_:1},8,["loading"])],4)},gS.__scopeId="data-v-2d6c92c6",gS.__file="src/text/list/List.vue";var MS=sw(gS),TS=Object.assign(Object.assign({},hw),{name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px"}),AS=dw(TS),IS=["refreshData","click"],DS=e.defineComponent({name:"EcanProportion",components:{AProgress:r.Progress,Skeleton:ew},props:Object.assign({},AS),setup:function(t){var n=this,r=mw(t),i=e.computed((function(){var e=t.width;return parseFloat(e)})),o=e.ref(t.data),a=e.computed((function(){var t,n=e.unref(o);return null==n?0:100*(null!==(t=Object.values(n)[0])&&void 0!==t?t:0)})),s=e.computed((function(){var t=e.unref(o)||{};return Object.keys(t)[0]})),l=e.computed((function(){var n,r=t.text,i=e.unref(o),l=r.match(/\{.*?\}/g)||[];if(""===r)return e.unref(a)+"%";for(var u=0;u<l.length;u++){var c=l[u],p=c.slice(1,c.length-1),h="";r=null!=(h=e.unref(s)===p?e.unref(a).toFixed(2):null!==(n=i[p])&&void 0!==n?n:0)?r.replace(c,h):r.replace(c,"")}return r})),u=e.inject(xw,{pageMode:"normal"}).pageMode,c=Rw(t),p=e.ref(!1),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,c();case 6:i=n.sent,o.value=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))};Cw(t,{refreshData:function(){h()}});var d=Mw(t.events)("click",(function(){}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),{style:r,myWidth:i,text:l,value:a,loading:p,click:d}}});j_(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),DS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("skeleton"),l=e.resolveComponent("a-progress");return e.openBlock(),e.createElementBlock("div",{class:"ecan-proportion",style:e.normalizeStyle(t.style)},[e.createVNode(l,{class:"progress",percent:t.value,width:t.myWidth,type:t.strokeType,strokeColor:t.strokeColor,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,strokeWidth:t.strokeWidth,gapDegree:"dashboard"===t.strokeType?75:0,onClick:t.click},{format:e.withCtx((function(){return[t.loading?(e.openBlock(),e.createBlock(s,{key:0,loading:t.loading},null,8,["loading"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"format",style:e.normalizeStyle({width:t.strokeTextWidth,fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight,lineHeight:t.lineHeight})},e.toDisplayString(t.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)},DS.__scopeId="data-v-4a9dae06",DS.__file="src/text/proportion/Proportion.vue";var OS=sw(DS),ES=Object.assign(Object.assign({},hw),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),NS=dw(ES),LS=e.defineComponent({name:"EcanInput",components:{AInput:r.Input},props:Object.assign({},NS),setup:function(t){return{style:mw(t)}}});j_(".input[data-v-b714c8ac]{height:100%;width:100%}"),LS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",{class:"ecan-input",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"input",value:t.value,placeholder:t.placeholder},null,8,["value","placeholder"])],4)},LS.__scopeId="data-v-b714c8ac",LS.__file="src/control/input/Input.vue";var PS=sw(LS),RS=Object.assign(Object.assign({},hw),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:_.default().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),BS=dw(RS),VS=["dateChange"],zS=e.defineComponent({name:"EcanDatePicker",props:Object.assign({},BS),components:{ADatePicker:r.DatePicker},setup:function(t){var n=mw(t),r=e.ref(_.default(t.value));(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,format:t.format,value:r});var i=t.events,o=Mw(i)("dateChange",(function(){}));return Cw(t,{dateChange:o}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:r,locale:b.default,dateChange:o}}});j_(".date-picker[data-v-18740e6e]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-date-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .anticon-calendar,[datav-theme=light] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=darkBlue] .ecan-date-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-date-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-date-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#1890ff}"),zS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-date-picker");return e.openBlock(),e.createElementBlock("div",{class:"ecan-date-picker",style:e.normalizeStyle(t.style)},[e.createCommentVNode(" 宽度style有效,class无效 "),e.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),format:t.format,picker:t.picker,showTime:t.showTime,locale:t.locale,onChange:t.dateChange,getPopupContainer:t.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)},zS.__scopeId="data-v-18740e6e",zS.__file="src/control/date-picker/DatePicker.vue";var FS=sw(zS),GS=Object.assign(Object.assign({},hw),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),US=dw(GS),WS=["selectChange"],jS=e.defineComponent({name:"EcanSelect",components:{ASelect:r.Select},props:Object.assign({},US),setup:function(t){var n=this,r=mw(t),i=Rw(t),o=e.inject(xw,{pageMode:"normal"}).pageMode,a=e.ref(t.data),s=e.ref(t.value||t.data[0]);(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,value:s});var l=t.events,u=Mw(l)("selectChange");return Cw(t,{selectChange:u}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)((function(){return C(n,void 0,void 0,pw.mark((function n(){var r,l,u,c;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(o)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,i();case 4:u=n.sent,a.value=(null===(l=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.data)||void 0===l?void 0:l.rows)||[],c=e.unref(a)[0],""===t.value&&null!=c&&(s.value=c[t.dataFieldNames.value]);case 8:case"end":return n.stop()}}),n)})))}),t.requestSort),{style:r,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:s,selectChange:u,options:a}}});j_(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");j_("[datav-theme=light] .ant-select:not(.ant-select-customize-input) .ant-select-selector{border:1px solid #d9d9d9}[datav-theme=light] .ant-select-dropdown{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85)}[datav-theme=light] .ant-empty-img-simple-g{stroke:#d9d9d9}[datav-theme=light] .ant-empty-img-simple-ellipse{fill:#f5f5f5}[datav-theme=light] .ant-empty-img-simple-path{fill:#f5f5f5;stroke:#d9d9d9}[datav-theme=light] .ant-empty-description{color:rgba(0,0,0,.25)}[datav-theme=light] .anticon-down{color:#333}[datav-theme=darkBlue] .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-select-dropdown{background-color:#05164c;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-empty-img-simple-g{stroke:#69befa}[datav-theme=darkBlue] .ant-empty-img-simple-ellipse{fill-opacity:0}[datav-theme=darkBlue] .ant-empty-img-simple-path{fill:#69befa;stroke:#69befa}[datav-theme=darkBlue] .ant-empty-description{color:#69befa}[datav-theme=darkBlue] .ant-select-item,[datav-theme=darkBlue] .anticon-down{color:#fff}[datav-theme=darkBlue] .ant-select-item-option-active,[datav-theme=darkBlue] .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:#1f63a3}"),jS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",{class:"ecan-select",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"select",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),options:t.options,getPopupContainer:t.getPopupContainer,"field-names":t.dataFieldNames,onChange:t.selectChange},null,8,["value","options","getPopupContainer","field-names","onChange"])],4)},jS.__scopeId="data-v-b6743858",jS.__file="src/control/select/Select.vue";var HS=sw(jS),YS=Object.assign(Object.assign({},hw),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),qS=dw(YS),XS=["dateChange"],ZS=e.defineComponent({name:"EcanRangePicker",components:{ARangePicker:r.RangePicker},props:Object.assign({},qS),setup:function(t){var n=mw(t),r=t.startTime,i=t.endTime,o=e.ref([null,null]);e.watch((function(){return[r,i]}),(function(){o.value=r&&i?[_.default(r),_.default(i)]:[null,null]}),{immediate:!0});var a=e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel,s=e.computed((function(){return e.unref(o)[0]})),l=e.computed((function(){return e.unref(o)[1]}));a(t.id,{type:t.type,format:t.format,startTime:s,endTime:l});var u=t.events,c=Mw(u)("dateChange",(function(){}));return Cw(t,{dateChange:c}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:b.default,dateChange:c,myValue:o}}});j_(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-range-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .anticon-calendar,[datav-theme=light] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-separator .anticon{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-range-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-separator .anticon{color:#fff}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled .ant-picker-cell-inner{color:#999}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled:before{background:#333}"),ZS.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-range-picker");return e.openBlock(),e.createElementBlock("div",{class:"ecan-range-picker",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:t.myValue,"onUpdate:value":n[0]||(n[0]=function(e){return t.myValue=e}),format:t.format,picker:t.picker,locale:t.locale,getPopupContainer:t.getPopupContainer,onChange:t.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)},ZS.__scopeId="data-v-9eb3e236",ZS.__file="src/control/range-picker/RangePicker.vue";var JS=sw(ZS),KS=Object.assign(Object.assign({},hw),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),QS=dw(KS),$S=["click"],tk=e.defineComponent({name:"EcanButton",components:{AButton:r.Button},props:Object.assign({},QS),setup:function(t){var e=mw(t),n=t.events;return{style:e,click:Mw(n)("click")}}}),ek=e.createTextVNode(" 测试 ");j_(".button[data-v-34f909d8]{height:100%;width:100%}"),tk.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",{class:"ecan-input",style:e.normalizeStyle(t.style)},[e.createVNode(s,{class:"button",block:"",onClick:t.click},{default:e.withCtx((function(){return[ek]})),_:1},8,["onClick"])],4)},tk.__scopeId="data-v-34f909d8",tk.__file="src/control/button/Button.vue";var nk=sw(tk),rk=Object.assign(Object.assign({},hw),{type:"ecanTabs",name:"标签页",keyName:"标签页",width:"200px",tabFontSize:"14px",backgroundColor:"",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"0px",value:"",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}]}),ik=dw(rk),ok=["tabChange"],ak=e.defineComponent({name:"EcanTabs",props:Object.assign({},ik),setup:function(t){var n,r=mw(t),i=e.ref(0),o=e.ref(t.data),a=e.ref(t.value||e.unref(o)[0]&&(null===(n=e.unref(o)[0])||void 0===n?void 0:n.value)||""),s=t.events,l=Mw(s)("tabChange",(function(t,e){a.value=(null==t?void 0:t.value)||"",i.value=e}));return(0,e.inject(_w,{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{value:a}),Cw(t,{tabChange:l}),{style:r,activeKey:i,isActive:function(t){return i.value===t},tabChange:l,myData:o,useImagePath:Fw}}}),sk=["onClick"];j_(".ecan-tabs[data-v-28df6758]{box-sizing:border-box;color:#333;display:flex}.tab[data-v-28df6758]{align-items:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;flex:1;justify-content:center}.tab[data-v-28df6758]:last-child{margin-right:0!important}"),ak.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"ecan-tabs",style:e.normalizeStyle(t.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.myData,(function(n,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tab"]),style:e.normalizeStyle({color:t.isActive(r)?t.activeTabColor:t.tabColor,backgroundImage:t.isActive(r)?t.useImagePath(t.activeTabBackgroundImage,!0):t.useImagePath(t.tabBackgroundImage,!0),marginRight:t.tabBarGutter,fontSize:t.tabFontSize}),key:r,onClick:function(e){return t.tabChange(n,r)}},e.toDisplayString(n.title),13,sk)})),128))],4)},ak.__scopeId="data-v-28df6758",ak.__file="src/control/tabs/Tabs.vue";var lk=sw(ak),uk=Object.assign(Object.assign({},hw),{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{b} : {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%"}),ck=dw(uk),pk=["click","refreshData"];function hk(t,e,n){var r=N.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var dk=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||wr,"string"==typeof e?i=hk(e,n,r):ft(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(Lt(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return k(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=hk("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Qr(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Qr(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var p=new Qr(0,0,0,0);p.copy(c),p.union(t),o[u]=p,n=!0;break}if(s){l.copy(t),l.union(c);var h=t.width*t.height,d=c.width*c.height,f=l.width*l.height-h-d;f<r&&(r=f,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new Qr(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(d=t[c]){var p=d.shouldBePainted(n,r,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!p)?d.getPrevPaintRect():null)&&u(f);var h=p&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;p=(d=e[c]).shouldBePainted(n,r,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var p=this.domBack;function h(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;yt(e)?(a=e.__canvasGradient||wv(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a):null!=e.image&&(a=Ev(i,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(p,t,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&nt(n,(function(t){h(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(ee),fk=dk,gk=1e5,vk=314159,mk=.01;var yk=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||wr,this._singleCanvas=i,this.root=t,t.style&&(Lt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new fk(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=vk,o.push(vk),this._domRoot=t}else{this._width=kv(t,0,n),this._height=kv(t,1,n);var p=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(gk)),r||(r=n.ctx).save(),Gv(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(gk)},t.prototype.paintOne=function(t,e){Fv(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Fe((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(vk).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,p=function(a){var s,l=i[a],p=l.ctx,d=o&&l.createRepaintRects(t,e,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,d);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=h.dpr,b=0;b<d.length;++b){var w=d[b];p.save(),p.beginPath(),p.rect(w.x*_,w.y*_,w.width*_,w.height*_),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,d=0;d<i.length;d++)p(d);return A.wxa&&nt(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Gv(a,t,i,o),t.setPrevPaintRect(s))}else Gv(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=vk);var n=this._layers[t];return n||((n=new fk("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Z(n,this._layerConfig[t],!0):this._layerConfig[t-mk]&&Z(n,this._layerConfig[t-mk],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(n[t])"production"!==process.env.NODE_ENV&&q("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else"production"!==process.env.NODE_ENV&&q("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?mk:0),this._needsManuallyCompositing),u.__builtin__||q("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,nt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Z(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+mk)Z(this._layers[i],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice($(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=kv(i,0,r),e=kv(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(vk).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new fk("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Gv(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),xk=yk;function _k(t){t.registerPainter("canvas",xk)}var bk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return k(e,t),e.prototype.getInitialData=function(t){if("production"!==process.env.NODE_ENV){var e=t.coordinateSystem;if("polar"!==e&&"cartesian2d"!==e)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new _i,n=_v("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=_v(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}($f),wk=bk;function Sk(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Jd(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Jd(t,e,n[a]));return o.join(" ")}}function kk(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ut(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var Ck=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return k(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=_v(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Mk,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){dl(this.childAt(0))},e.prototype.downplay=function(){fl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(h=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):ic(h,p,a,n),cc(h)}if(this._updateCommon(t,n,s,r,i),l){var h=this.childAt(0);if(!u){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,oc(h,p,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,p,h,d,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,p=r.labelStatesModels,h=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),p=Bc(v),h=m.getShallow("scale"),d=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=bv(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof fs){var w=f.style;f.useStyle(K({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(K({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Rc(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):Sk(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");if(M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var T=Math.max(dt(h)?h:1.1,3/this._sizeY);M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T}this.setSymbolScale(1),Ml(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Vs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&sc(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sc(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return ut(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e}(_i);function Mk(t,e){this.parent.drift(t,e)}var Tk=Ck;function Ak(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Ik(t){return null==t||ft(t)||(t={isIgnore:t}),t||{}}function Dk(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Bc(e),cursorStyle:e.get("cursor")}}var Ok=function(){function t(t){this.group=new _i,this._SymbolCtor=t||Tk}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ik(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Dk(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(Ak(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,p){var h=i.getItemGraphicEl(p),d=u(c);if(Ak(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(t,c,s,l)).setPosition(d);else{h.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?h.attr(v):ic(h,v,r)}n.add(h),t.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Dk(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Ik(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Ak(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Ec(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),Ek=Ok;function Nk(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:dt(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,p=rt(t.dimensions,(function(t){return e.mapDimension(t)})),h=!1,d=e.getCalculationInfo("stackResultDimension");return Ny(e,p[0])&&(h=!0,p[0]=d),Ny(e,p[1])&&(h=!0,p[1]=d),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Lk(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Pk=Math.min,Rk=Math.max;function Bk(t,e){return isNaN(t)||isNaN(e)}function Vk(t,e,n,r,i,o,a,s,l){for(var u,c,p,h,d,f,g=n,v=0;v<r;v++){var m=e[2*g],y=e[2*g+1];if(g>=i||g<0)break;if(Bk(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),p=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<r;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(m=e[2*g])-u,_=(y=e[2*g+1])-c;var k=v+1;if(l)for(;Bk(w,S)&&k<r;)k++,w=e[2*(b+=o)],S=e[2*b+1];var C=.5,M=0,T=0,A=void 0,I=void 0;if(k>=r||Bk(w,S))d=m,f=y;else{M=w-u,T=S-c;var D=m-u,O=w-m,E=y-c,N=S-y,L=void 0,P=void 0;if("x"===s){var R=M>0?1:-1;d=m-R*(L=Math.abs(D))*a,f=y,A=m+R*(P=Math.abs(O))*a,I=y}else if("y"===s){var B=T>0?1:-1;d=m,f=y-B*(L=Math.abs(E))*a,A=m,I=y+B*(P=Math.abs(N))*a}else L=Math.sqrt(D*D+E*E),d=m-M*a*(1-(C=(P=Math.sqrt(O*O+N*N))/(P+L))),f=y-T*a*(1-C),I=y+T*a*C,A=Pk(A=m+M*a*C,Rk(w,m)),I=Pk(I,Rk(S,y)),A=Rk(A,Pk(w,m)),f=y-(T=(I=Rk(I,Pk(S,y)))-y)*L/P,d=Pk(d=m-(M=A-m)*L/P,Rk(u,m)),f=Pk(f,Rk(c,y)),A=m+(M=m-(d=Rk(d,Pk(u,m))))*P/L,I=y+(T=y-(f=Rk(f,Pk(c,y))))*P/L}t.bezierCurveTo(p,h,d,f,m,y),p=A,h=I}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var zk=function(){this.smooth=0,this.smoothConstraint=!0},Fk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return k(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zk},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Bk(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Bk(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Vk(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Fa.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,p=void 0,h=void 0,d=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],p=i[l++],h=i[l++],d=i[l++],f=i[l++];var m=a?nn(n,u,p,d,t,s):nn(r,c,h,f,t,s);if(m>0)for(var y=0;y<m;y++){var x=s[y];if(x<=1&&x>=0){v=a?tn(r,c,h,f,x):tn(n,u,p,d,x);return a?[t,v]:[v,t]}}n=d,r=f}}},e}(ss),Gk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e}(zk),Uk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return k(e,t),e.prototype.getDefaultShape=function(){return new Gk},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Bk(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Bk(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Vk(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Vk(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(ss);function Wk(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var p=new ws({shape:{x:a,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),d=h.isHorizontal(),f=h.inverse;d?(f&&(p.shape.x+=l),p.shape.width=0):(f||(p.shape.y+=u),p.shape.height=0);var g=ct(i)?function(t){i(t,p)}:null;oc(p,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return p}function jk(t,e,n){var r=t.getArea(),i=Ai(r.r0,1),o=Ai(r.r,1),a=new xu({shape:{cx:Ai(t.cx,1),cy:Ai(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,oc(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Hk(t,e){return t.type===e}function Yk(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function qk(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Xk(t,e){var n=qk(t),r=n[0],i=n[1],o=qk(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Zk(t){return dt(t)?t:t?.5:0}function Jk(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],p=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||p.push(t[s],t[s+1]);t=p}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,d=[];l[o]=d[o]=h,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Kk(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=On(e[i]),s=On(e[o]),l=r-i,u=Rn([_n(Cn(a[0],s[0],l)),_n(Cn(a[1],s[1],l)),_n(Cn(a[2],s[2],l)),bn(Cn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function Qk(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Tk.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return nt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function $k(t,e){return[t[2*e],t[2*e+1]]}function tC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ws.length;e++)if(t.get([Ws[e],"endLabel","show"]))return!0;return!1}function eC(t,e,n,r){if(Hk(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=tC(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Wk(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var p=c.shape,h=Math.max(p.width,p.height);u?(p.y-=h,p.height+=2*h):(p.x-=h,p.width+=2*h)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),jk(e,n,r)}var nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(){var t=new _i,e=new Ek;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,p=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=Nk(i,a,y),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=nx(2*r),o=0;o<r;o++){var a=Lk(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&Qk(t,a,i),k=this._data;k&&k.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))})),b||h.remove(),o.add(g);var C,M=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count())if("cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=rt(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,p=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),p.reverse());var h=Kk(u,"x"===i?n.getWidth():n.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?p[1]?p[1]:u[c-1].color:p[0]?p[0]:u[0].color;var f=h[0].coord-10,g=h[d-1].coord+10,v=g-f;if(v<.001)return"transparent";nt(h,(function(t){t.offset=(t.coord-f)/v})),h.push({offset:d?h[d-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:p[0]||"transparent"});var m=new Hu(0,0,0,0,h,!0);return m[i]=f,m[i+"2"]=g,m}"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style only support x or y dimension.")}else"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style is only supported on cartesian2d.")}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===i.type&&M===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,nh(T));var A=g.getClipPath();if(A)oc(A,{shape:eC(this,i,!1,t).shape},t);else g.setClipPath(eC(this,i,!0,t));b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Yk(this._stackedOnPoints,_)&&Yk(this._points,u)||(v?this._doUpdateAnimation(a,_,i,n,M,y,w):(M&&(u=Jk(u,i,M,w),_&&(_=Jk(_,i,M,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,i,C),M&&(u=Jk(u,i,M,w),_&&(_=Jk(_,i,M,w))),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),c||this._initOrUpdateEndLabel(t,i,nh(T)),g.setClipPath(eC(this,i,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),O=I.get("blurScope"),E=I.get("disabled");(d.useStyle(Q(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Il(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Vs(d).seriesIndex=t.seriesIndex,Ml(d,D,O,E);var N=Zk(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:L,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Q(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=Zk(P.get("smooth"))),f.setShape({smooth:N,stackedOnSmooth:R,smoothMonotone:L,connectNulls:w}),Il(f,t,"areaStyle"),Vs(f).seriesIndex=t.seriesIndex,Ml(f,D,O,E)}var B=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Vs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=vo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),p=t.get("z");(s=new Tk(i,o)).x=l,s.y=u,s.setZ(c,p);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=p,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pg.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=vo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pg.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;ll(this._polyline,t),e&&ll(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Fk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Uk({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");ct(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=ct(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var p=[t.x,t.y],h=void 0,d=void 0,f=void 0;if(n)if(i){var g=n,v=e.pointToCoord(p);r?(h=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(h=g.r0,d=g.r,f=v[0])}else{var m=n;r?(h=m.x,d=m.x+m.width,f=t.x):(h=m.y+m.height,d=m.y,f=t.y)}var y=d===h?0:(f-h)/(d-h);a&&(y=1-y);var x=ct(u)?u(o):l*y+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(tC(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Bs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&(Rc(o,Bc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?kk(i,n):Sk(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,p=c.get("connectNulls"),h=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,y,b),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!p){var M=$k(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),i&&(C=c.getRawValue(S[0]))}else{(M=l.getPointOn(y,b))&&s.attr({x:M[0]+x,y:M[1]+_});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(C=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(dt(r))return Ai(f=to(n||0,r,i),o?Math.max(Di(n||0),Di(r)):e);if(pt(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,d=l[c],f=to(h,d,i);a[c]=Ai(f,o?Math.max(Di(h),Di(d)):e)}}return a}(n,h,T,A,w.t))}r.lastFrameIndex=S[0]}else{var I=1===t||r.lastFrameIndex>0?S[0]:0;M=$k(u,I);i&&(C=c.getRawValue(I)),s.attr({x:M[0]+x,y:M[1]+_})}i&&jc(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],p=[],h=[],d=[],f=[],g=[],v=Nk(i,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var k=m[w],C=m[w+1],M=y[S],T=y[S+1];(isNaN(k)||isNaN(C))&&(k=M,C=T),u.push(k,C),c.push(M,T),p.push(n[w],n[w+1]),h.push(r[S],r[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,I=v.dataDimsForPoint,D=i.dataToPoint([e.get(I[0],A),e.get(I[1],A)]);S=2*A,u.push(D[0],D[1]),c.push(y[S],y[S+1]);var O=Lk(v,i,e,A);p.push(O[0],O[1]),h.push(r[S],r[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(d.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var E=u.length,N=nx(E),L=nx(E),P=nx(E),R=nx(E),B=[];for(x=0;x<f.length;x++){var V=f[x],z=2*x,F=2*V;N[z]=u[F],N[z+1]=u[F+1],L[z]=c[F],L[z+1]=c[F+1],P[z]=p[F],P[z+1]=p[F+1],R[z]=h[F],R[z+1]=h[F+1],B[x]=d[V]}return{current:N,next:L,stackedOnCurrent:P,stackedOnNext:R,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),p=c.current,h=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(p=Jk(c.current,n,i,a),h=Jk(c.stackedOnCurrent,n,i,a),d=Jk(c.next,n,i,a),f=Jk(c.stackedOnNext,n,i,a)),Xk(p,d)>3e3||l&&Xk(h,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=p;var g={shape:{points:d}};c.current!==p&&(g.shape.__points=c.next),s.stopAnimation(),ic(s,g,u),l&&(l.setShape({points:p,stackedOnPoints:h}),l.stopAnimation(),ic(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){if("="===m[y].cmd){var x=t.getItemGraphicEl(m[y].idx1);x&&v.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pg),rC=nC;function iC(t,e){return{seriesType:t,plan:ng(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=rt(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ny(n,a[0])&&(a[0]=l),Ny(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&nx(n*s),a=[],l=[],h=t.start,d=0;h<t.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(p,h),f=r.dataToPoint(a,null,l);o?(i[d++]=f[0],i[d++]=f[1]):e.setItemLayout(h,f.slice())}o&&e.setLayout("points",i)}}}}}}var oC={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},aC=function(t){return Math.round(t.length/2)};function sC(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/p);if(isFinite(h)&&h>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var d=void 0;pt(i)?d=oC[i]:ct(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/h,d,aC))}}}}}function lC(t){t.registerChartView(rC),t.registerSeriesModel(wk),t.registerLayout(iC("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sC("line"))}var uC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.getInitialData=function(t,e){return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}($f);$f.registerClass(uC);var cC=uC,pC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.getInitialData=function(){return Ly(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=lp(cC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(cC),hC=pC,dC=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},fC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return k(e,t),e.prototype.getDefaultShape=function(){return new dC},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,p=2*Math.PI,h=c?u-l<p:l-u<p;h||(l=u-(c?p:-p));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);h?(t.moveTo(d*i+n,f*i+r),t.arc(d*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(ss),gC=fC;function vC(t,e,n){return e*Math.sin(t)*(n?-1:1)}function mC(t,e,n){return e*Math.cos(t)*(n?1:-1)}var yC=Math.max,xC=Math.min;var _C=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return k(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");"cartesian2d"===i||"polar"===i?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r)):"production"!==process.env.NODE_ENV&&Xi("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Ec(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,p=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==r.type&&Xi("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==e.type&&Xi("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);p&&this._enableRealtimeSort(p,a,n);var h=t.get("clip",!0)||p,d=function(t,e){var n=t.getArea&&t.getArea();if(Hk(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=AC[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?xu:ws)({shape:PC(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=AC[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&TC[l.type](r)){var s=!1;h&&(s=bC[l.type](d,r));var v=wC[l.type](t,a,e,r,i,c,u.model,!1,f);p&&(v.forceLabelAnimation=!0),DC(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):p?SC(p,c,v,r,e,i,!1,!1):oc(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=AC[l.type](a,e,r);if(g){var k=void 0;0===x.length?k=w(n):((k=x[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&k.setShape("r",m),y[e]=k);var C=AC[l.type](a,e);ic(k,{shape:PC(i,C,l)},c,e)}var M=s.getItemGraphicEl(n);if(a.hasValue(e)&&TC[l.type](S)){var T=!1;if(h&&(T=bC[l.type](d,S))&&o.remove(M),M?cc(M):M=wC[l.type](t,a,e,S,i,c,u.model,!!M,f),p&&(M.forceLabelAnimation=!0),b){var A=M.getTextContent();if(A){var I=jc(A);null!=I.prevValue&&(I.prevValue=I.value)}}else DC(M,a,e,r,S,t,i,"polar"===l.type);_?M.attr({shape:S}):p?SC(p,c,M,S,e,i,!0,b):ic(M,{shape:S},t,e,null),a.setItemGraphicEl(e,M),M.ignore=T,o.add(M)}else o.remove(M)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&uc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new _i);S.removeAll();for(var k=0;k<y.length;++k)S.add(y[k]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),NC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),NC(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,r,i){return t?"polar"===t.type?jk(t,e,n):"cartesian2d"===t.type?Wk(t,e,n,r,i):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:rt(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){uc(e,t,Vs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pg),bC={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=yC(e.x,t.x),s=xC(e.x+e.width,i),l=yC(e.y,t.y),u=xC(e.y+e.height,o),c=s<a,p=u<l;return e.x=c&&a>i?s:a,e.y=p&&l>o?u:l,e.width=c?0:s-a,e.height=p?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||p},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=xC(e.r,t.r),o=yC(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},wC={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new ws({shape:K({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?gC:xu,c=new u({shape:r,z2:1});c.name="item";var p,h,d=IC(i);if(c.calculateTextPosition=(p=d,h=({isRoundCap:u===gC}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return si(t,e,n);var i=p(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=h?Math.abs(u-c)/2:0,y=Math.cos,x=Math.sin,_=s+u*y(f),b=l+u*x(f),w="left",S="top";switch(i){case"startArc":_=s+(c-o)*y(v),b=l+(c-o)*x(v),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*y(v),b=l+(c+o)*x(v),w="center",S="bottom";break;case"startAngle":_=s+d*y(f)+vC(f,o+m,!1),b=l+d*x(f)+mC(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*y(f)+vC(f,-o+m,!1),b=l+d*x(f)+mC(f,-o+m,!1),w="left",S="middle";break;case"middle":_=s+d*y(v),b=l+d*x(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*y(v),b=l+(u+o)*x(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*y(v),b=l+(u-o)*x(v),w="center",S="top";break;case"endAngle":_=s+d*y(g)+vC(g,o+m,!0),b=l+d*x(g)+mC(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*y(g)+vC(g,-o+m,!0),b=l+d*x(g)+mC(g,-o+m,!0),w="right",S="middle";break;default:return si(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?0:r.startAngle,g[f]=r[f],(s?ic:oc)(c,{shape:g},o)}return c}};function SC(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?ic:oc)(n,{shape:l},e,i,null),(a?ic:oc)(n,{shape:u},e?t.baseAxis.model:null,i)}function kC(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var CC=["x","y","width","height"],MC=["cx","cy","r","startAngle","endAngle"],TC={cartesian2d:function(t){return!kC(t,CC)},polar:function(t){return!kC(t,MC)}},AC={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function IC(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function DC(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Bc(r);Rc(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:Sk(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=t.getTextContent();if(s&&h){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,r){if(dt(r))t.setTextConfig({rotation:r});else if(ut(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===d?c:d,IC(a),r.get(["label","rotate"]))}!function(t,e,n,r){if(t){var i=jc(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}(h,p,o.getRawValue(n),(function(t){return kk(e,t)}));var f=r.getModel(["emphasis"]);Ml(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Il(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",nt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var OC=function(){},EC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return k(e,t),e.prototype.getDefaultShape=function(){return new OC},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(ss);function NC(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new EC({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var p=new EC({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),Vs(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",LC),p.on("mousemove",LC)),n&&n.push(p)}var LC=gg((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,p=o.length/3;c<p;c++){var h=3*c;if(l[r]=u,l[i]=o[h+2],s[r]=o[h+r],s[i]=o[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Vs(this).dataIndex=e>=0?e:null}),30,!1);function PC(t,e,n){if(Hk(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var RC=_C;function BC(t){t.registerChartView(RC),t.registerSeriesModel(hC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,lt(sx,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:ng(),reset:function(t){if(lx(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Ny(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),h=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),d=ux(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=d&&nx(3*i),u=d&&s&&nx(3*i),y=d&&nx(i),x=n.master.getRect(),_=p?x.width:x.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),k=b.get(a,r),C=h,M=void 0;c&&(M=+S-b.get(o,r));var T=void 0,A=void 0,I=void 0,D=void 0;if(p){var O=n.dataToPoint([S,k]);c&&(C=n.dataToPoint([M,k])[0]),T=C,A=O[1]+m,I=O[0]-C,D=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([k,S]),c&&(C=n.dataToPoint([k,M])[1]),T=O[0]+m,A=C,I=v,D=O[1]-C,Math.abs(D)<f&&(D=(D<=0?-1:1)*f);d?(l[w]=T,l[w+1]=A,l[w+2]=p?I:D,u&&(u[w]=p?x.x:T,u[w+1]=p?A:x.y,u[w+2]=_),y[r]=r):e.setItemLayout(r,{x:T,y:A,width:I,height:D}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:p})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sC("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var VC=2*Math.PI,zC=Math.PI/180;function FC(t,e){return uh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function GC(t,e){var n=FC(t,e),r=t.get("center"),i=t.get("radius");ut(i)||(i=[0,i]),ut(r)||(r=[r,r]);var o=Ti(n.width,e.getWidth()),a=Ti(n.height,e.getHeight()),s=Math.min(o,a);return{cx:Ti(r[0],o)+n.x,cy:Ti(r[1],a)+n.y,r0:Ti(i[0],s/2),r:Ti(i[1],s/2)}}function UC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=FC(t,n),o=GC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*zC,p=t.get("minAngle")*zC,h=0;e.each(r,(function(t){!isNaN(t)&&h++}));var d=e.getSum(r),f=Math.PI/(d||h)*2,g=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),y=e.getDataExtent(r);y[0]=0;var x=VC,_=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===d&&m?f:t*f:VC/h)<p?(r=p,x-=p):_+=t;var i=b+w*r;e.setItemLayout(n,{angle:r,startAngle:b,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?Mi(t,y,[u,l]):l}),b=i}})),x<VC&&h)if(x<=.001){var S=VC/h;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else f=x/_,b=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===p?p:t*f;r.startAngle=b,r.endAngle=b+w*i,b+=w*i}}))}))}var WC=Math.PI/180;function jC(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,p=0;p<c;p++)if("outer"===t[p].position&&"labelLine"===t[p].labelAlignTo){var h=t[p].label.x-u;t[p].linePoints[1][0]+=h,t[p].label.x=u}O_(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-e-l.len2*i,h=r+l.len,f=Math.abs(p)<h?Math.sqrt(c*c/(1-p*p/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,p=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*p),d=e+(h+l.len2)*i,f=d-l.label.x;HC(l,l.targetTextWidth-f*i,!0),l.label.x=d}}}function HC(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var p=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-p)/2}}}function YC(t){return"center"===t.position}function qC(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*WC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,p=s.y,h=s.height;function d(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),p=s.shape,h=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(t),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=Ti(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Ti(S,u);var k=w.get("length2");if(k=Ti(k,u),Math.abs(p.endAngle-p.startAngle)<a)return nt(h.states,d),void(h.ignore=!0);if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(h)){var C,M,T,A,I=(p.startAngle+p.endAngle)/2,D=Math.cos(I),O=Math.sin(I);e=p.cx,n=p.cy;var E="inside"===m||"inner"===m;if("center"===m)C=p.cx,M=p.cy,A="center";else{var N=(E?(p.r+p.r0)/2*D:p.r*D)+e,L=(E?(p.r+p.r0)/2*O:p.r*O)+n;if(C=N+3*D,M=L+3*O,!E){var P=N+D*(S+l-p.r),R=L+O*(S+l-p.r),B=P+(D<0?-1:1)*k;C="edge"===x?D<0?c+_:c+u-_:B+(D<0?-y:y),M=R,T=[[N,L],[P,R],[B,R]]}A=E?"center":"edge"===x?D>0?"right":"left":D>0?"left":"right"}var V=Math.PI,z=0,F=v.get("rotate");if(dt(F))z=F*(V/180);else if("center"===m)z=0;else if("radial"===F||!0===F){z=D<0?-I+V:-I}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var G=Math.atan2(D,O);G<0&&(G=2*V+G),O>0&&(G=V+G),z=G-V}if(o=!!z,h.x=C,h.y=M,h.rotation=z,h.setStyle({verticalAlign:"middle"}),E){h.setStyle({align:A});var U=h.states.select;U&&(U.x+=h.x,U.y+=h.y)}else{var W=h.getBoundingRect().clone();W.applyTransform(h.getComputedTransform());var j=(h.style.margin||0)+2.1;W.y-=j/2,W.height+=j,i.push({label:h,labelLine:f,position:m,len:S,len2:k,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Ur(D,O),linePoints:T,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:E})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,p=-Number.MAX_VALUE,h=0;h<t.length;h++){var d=t[h].label;YC(t[h])||(d.x<e?(c=Math.min(c,d.x),l.push(t[h])):(p=Math.max(p,d.x),u.push(t[h])))}for(h=0;h<t.length;h++)if(!YC(v=t[h])&&v.linePoints){if(null!=v.labelStyleWidth)continue;d=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+i-p-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+i-d.x-v.bleedMargin,v.targetTextWidth=g,HC(v,g)}for(jC(u,e,n,r,1,0,o,0,s,p),jC(l,e,n,r,-1,0,o,0,s,c),h=0;h<t.length;h++){var v;if(!YC(v=t[h])&&v.linePoints){d=v.label,f=v.linePoints;var m="edge"===v.labelAlignTo,y=d.style.padding,x=y?y[1]+y[3]:0,_=d.style.backgroundColor?0:x,b=v.rect.width+_,w=f[1][0]-f[2][0];m?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+i-v.edgeDistance-b-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(i,e,n,l,u,h,c,p);for(var f=0;f<i.length;f++){var g=i[f],v=g.label,m=g.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),y&&(nt(v.states,d),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(m){var _=g.linePoints;y||!_?(nt(m.states,d),m.ignore=!0):(T_(_,g.minTurnAngle),A_(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new Ur(_[0][0],_[0][1])})}}}function XC(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;ut(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:rt(r,(function(t){return ai(t,i)}))}}var ZC=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Bs;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return k(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=K(XC(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(oc(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,oc(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),oc(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,ic(i,{shape:{endAngle:l.endAngle}},o,e))}else cc(i),ic(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Il(i,a);var p=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),d=Math.cos(p)*h,f=Math.sin(p)*h,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=K({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},XC(s.getModel("itemStyle"),l)),K(i.ensureState("select"),{x:d,y:f,shape:XC(a.getModel(["select","itemStyle"]),l)}),K(i.ensureState("blur"),{shape:XC(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&K(v.ensureState("select"),{x:d,y:f}),K(m.ensureState("select"),{x:d,y:f}),Ml(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Rc(r,Bc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Iu,this.setTextGuideLine(p)),function(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<js.length;l++){var u=js[l],c=e[u],p="normal"===u;if(c){var h=c.get("show");if((p?s:wt(i.states[u]&&i.states[u].ignore,s))||!wt(h,a)){var d=p?r:r&&r.states[u];d&&(d.ignore=!0);continue}r||(r=new Iu,t.setTextGuideLine(r),p||!s&&a||I_(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),I_(r,!1,u,c)}}if(r){Q(r.style,n),r.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=D_}}else r&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=t.getModel([i,e])}return n}(i),{stroke:s,opacity:St(o.get(["lineStyle","opacity"]),l,1)})}},e}(xu),JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return k(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new xu({shape:GC(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new ZC(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){uc(a.getItemGraphicEl(e),t,e)})).execute(),qC(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pg),KC=JC;function QC(t,e,n){e=ut(e)&&{coordDimensions:e}||K({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ty(r,e).dimensions,o=new My(i,t);return o.initData(r,n),o}var $C=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),tM=$C,eM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new tM(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return QC(this,{coordDimensions:["value"],encodeDefaulter:lt(Nh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=[];return n.each(n.mapDimension("value"),(function(t){i.push(t)})),r.percent=function(t,e,n){if(!t[e])return 0;var r=it(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var i=Math.pow(10,n),o=rt(t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=rt(o,(function(t){return Math.floor(t)})),l=it(s,(function(t,e){return t+e}),0),u=rt(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,p=null,h=0,d=u.length;h<d;++h)u[h]>c&&(c=u[h],p=h);++s[p],u[p]=0,++l}return s[e]/i}(i,e,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){ro(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}($f),nM=eM;var rM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return k(e,t),e.prototype.getInitialData=function(t,e){return Ly(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}($f),iM=rM,oM=function(){},aM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return k(e,t),e.prototype.getDefaultShape=function(){return new oM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],p=r[n++];isNaN(c)||isNaN(p)||(u&&!u.contain(c,p)||(a.x=c-i[0]/2,a.y=p-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var p=n[c++],h=n[c++];a=Math.min(p,a),l=Math.max(p,l),s=Math.min(h,s),u=Math.max(h,u)}t=this._rect=new Qr(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(ss),sM=function(){function t(){this.group=new _i}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new aM({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=_v(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Vs(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),lM=sM,uM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=iC("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new lM:new Ek,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pg),cM=uM,pM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(gh),hM=pM,dM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",bo).models[0]},e.type="cartesian2dAxis",e}(gh);tt(dM,Wx);var fM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gM=Z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fM),vM=Z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},fM),mM={category:gM,value:vM,time:Z({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vM),log:Q({logBase:10},vM)},yM={value:1,category:1,time:1,log:1};function xM(t,e,n,r){nt(yM,(function(i,o){var a=Z(Z({},mM[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return k(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ch(this),r=n?hh(t):{};Z(t,e.getTheme().get(o+"Axis")),Z(t,this.getDefaultOption()),t.type=_M(t),n&&ph(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Fy.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",_M)}function _M(t){return t.type||(t.data?"category":"value")}var bM=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return rt(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ot(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),wM=["x","y"];function SM(t){return"interval"===t.type||"time"===t.type}var kM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=wM,e}return k(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(SM(t)&&SM(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,p=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,p];this._invTransform=Or([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Xt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Xt(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new Qr(n,r,i,o)},e}(bM),CM=kM,MM=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return k(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(y_),TM=MM;function AM(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:p[0],"x"===u?f[h[l]]:p[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),bt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function IM(t){return"cartesian2d"===t.get("coordinateSystem")}function DM(t){var e={xAxisModel:null,yAxisModel:null};return nt(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,bo).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(i+' "'+St(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o})),e}var OM=Math.log;function EM(t,e,n){var r=$y.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Px(t,e),u=l.extent,c=l.fixMin,p=l.fixMax;if("log"===t.type){var h=OM(t.base);u=[OM(u[0])/h,OM(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:p});var d=r.getExtent.call(t);c&&(u[0]=d[0]),p&&(u[1]=d[1]);var f=r.getInterval.call(t),g=u[0],v=u[1];if(c&&p)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=Wy(f),v=u[0]+f*a;else if(p)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Wy(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Wy(f));var m=f*a;(g=Ai((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=Ai(m)):v>0&&u[1]<=0&&(v=0,g=-Ai(m))}var y,x,_,b=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,g+f*b,v+f*w),r.setInterval.call(t,f),(b||w)&&r.setNiceExtent.call(t,g+f,v-f),"production"!==process.env.NODE_ENV){var S=r.getTicks.call(t);S[1]&&(y=f,x=Math.pow(10,Bi(Math.abs(y))),0!==(_=Math.abs(y/x))&&1!==_&&2!==_&&3!==_&&5!==_||Oi(S[1].value)>Oi(f))&&Xi("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var NM=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wM,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=at(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Gy(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(Rx(l,s),Gy(l)&&(e=a))}i.length&&(e||Rx((e=i.pop()).scale,e.model),nt(i,(function(t){EM(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};nt(n.x,(function(t){PM(n,"y",t,i)})),nt(n.y,(function(t){PM(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=uh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){nt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)}))}s(),i&&(nt(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Jy?n.count():(r=n.getTicks()).length;var a,s=t.getLabelModel(),l=Bx(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var p=l(r?r[c]:{value:o[0]+c},c),h=zx(s.getTextRect(p),s.get("rotate")||0);a?a.union(h):a=h}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),nt(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}ft(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",bo).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",bo).models[0],a=t.gridModel,s=this._coordsList;if(r)$(s,e=r.coordinateSystem)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(LM(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new TM(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Jy({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ry.getClass(e)||$y)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,nt(a.x,(function(e,n){nt(a.y,(function(i,o){var a="x"+n+"y"+o,s=new CM(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){nt(Ux(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}nt(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(IM(t)){var r=DM(t),i=r.xAxisModel,o=r.yAxisModel;if(!LM(i,e)||!LM(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return nt(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);$(e,i)<0&&e.push(i),$(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(IM(t)){var e=DM(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!i)throw new Error('Grid "'+St(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=wM,t}();function LM(t,e){return t.getCoordSysModel()===e}function PM(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)RM(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&RM(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function RM(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var BM=NM,VM=Math.PI,zM=function(){function t(t,e){this.group=new _i,this.opt=e,this.axisModel=t,Q(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!FM[t]},t.prototype.add=function(t){FM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Ni(e-t);return Li(o)?(i=n>0?"top":"bottom",r="center"):Li(o-VM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<VM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),FM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Xt(s,s,a),Xt(l,l,a));var u=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Nu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var h=e.get(["axisLine","symbolSize"]);pt(p)&&(p=[p,p]),(pt(h)||dt(h))&&(h=[h,h]);var d=bv(e.get(["axisLine","symbolOffset"])||0,h),f=h[0],g=h[1];nt([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==p[r]&&null!=p[r]){var i=_v(p[r],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=jM(i.getTicksCoords(),e.transform,l,Q(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis;if(!bt(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(bt(r.labelRotate,o.get("rotate"))||0)*VM/180,u=zM.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),p=[],h=zM.isLabelSilent(n),d=n.get("triggerEvent");return nt(s,(function(s,l){var f="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,m=o;if(c&&c[f]){var y=c[f];ft(y)&&y.textStyle&&(m=new op(y.textStyle,o,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(f),b=new Bs({x:_,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:h,z2:10+(s.level||0),style:Vc(m,{text:g,align:m.getShallow("align",!0)||u.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,fill:ct(x)?x("category"===i.type?v:"value"===i.type?f+"":f,l):x})});if(b.anid="label_"+f,d){var w=zM.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===i.type&&(w.dataIndex=f),Vs(b).eventData=w}e.add(b),b.updateTransform(),p.push(b),t.add(b),b.decomposeTransform()})),p}(n,r,e,t);if(function(t,e,n){if(Gx(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],p=n[n.length-1],h=n[n.length-2];!1===r?(GM(o),GM(u)):UM(o,a)&&(r?(GM(a),GM(c)):(GM(o),GM(u)));!1===i?(GM(s),GM(p)):UM(l,s)&&(i?(GM(l),GM(h)):(GM(s),GM(p)))}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Q(s.getLineStyle(),Q(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=jM(a[c],e.transform,l,u,"minorticks_"+c),h=0;h<p.length;h++)t.add(p[h])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Qu(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}(rt(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));!function(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Qr(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=o.obb,h=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new Qu(f.localRect,f.transform)),p||(p=new Qu(s,l)),p.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}(a)}},axisName:function(t,e,n,r){var i=bt(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,p=e.axis.getExtent(),h=p[0]>p[1]?-1:1,d=["start"===s?p[0]-h*c:"end"===s?p[1]+h*c:(p[0]+p[1])/2,WM(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*VM/180),WM(s)?o=zM.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Ni(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Li(a-VM/2)?(o=l?"bottom":"top",i="center"):Li(a-1.5*VM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*VM&&a>VM/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,f||0,p),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=bt(t.nameTruncateMaxWidth,v.maxWidth,a),x=new Bs({x:d[0],y:d[1],rotation:o.rotation,silent:zM.isLabelSilent(e),style:Vc(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Dc({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=zM.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Vs(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function GM(t){t&&(t.ignore=!0)}function UM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Cr([]);return Ir(i,i,-t.rotation),n.applyTransform(Tr([],i,t.getLocalTransform())),r.applyTransform(Tr([],i,e.getLocalTransform())),n.intersect(r)}}function WM(t){return"middle"===t||"center"===t}function jM(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Xt(a,a,e),Xt(s,s,e));var c=new Nu({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var HM=zM;function YM(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];nt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=KM(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(nt(n.getAxes(),lt(d,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),p="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||p)&&nt(h.baseAxes,lt(d,!p||"cross",c)),p&&nt(h.otherAxes,lt(d,"cross",!1))}}function d(r,s,c){var p=c.model.getModel("axisPointer",i),h=p.get("show");if(h&&("auto"!==h||r||JM(p))){null==s&&(s=p.get("triggerTooltip")),p=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};nt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=X(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Q(l,c.textStyle)}}return t.model.getModel("axisPointer",new op(s,n,r))}(c,u,i,e,r,s):p;var d=p.get("snap"),f=KM(c.model),g=s||d||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:p,triggerTooltip:s,involveSeries:g,snap:d,useHandle:JM(p),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(qM(o[r+"AxisId"],n.id)||qM(o[r+"AxisIndex"],n.componentIndex)||qM(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[f]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&nt(t.coordSysAxesInfo[KM(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function qM(t,e){return"all"===t||ut(t)&&$(t,e)>=0||t===e}function XM(t){var e=ZM(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=JM(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function ZM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[KM(t)]}function JM(t){return!!t.get(["handle","show"])}function KM(t){return t.type+"||"+t.id}var QM={},$M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&XM(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=ZM(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){if("production"!==process.env.NODE_ENV&&QM[t])throw new Error("axisPointer "+t+" exists");QM[t]=e},e.getAxisPointerClass=function(t){return t&&QM[t]},e.type="axis",e}(eg),tT=$M,eT=mo();var nT=["axisLine","axisTickLabel","axisName"],rT=["splitArea","splitLine","minorSplitLine"],iT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return k(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _i,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=AM(a,e),l=new HM(e,K({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Gy(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));nt(nT,l.add,l),this._axisGroup.add(l.getGroup()),nt(rT,(function(t){e.get([t,"show"])&&oT[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Mc(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){eT(this).splitAreaColors=null},e.type="cartesianAxis",e}(tT),oT={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=ut(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,p=i.getTicksCoords({tickModel:o}),h=[],d=[],f=a.getLineStyle(),g=0;g<p.length;g++){var v=i.toGlobalCoord(p[g].coord);u?(h[0]=v,h[1]=l.y,d[0]=v,d[1]=l.y+l.height):(h[0]=l.x,h[1]=v,d[0]=l.x+l.width,d[1]=v);var m=c++%s.length,y=p[g].tickValue;e.add(new Nu({anid:null!=y?"line_"+p[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:Q({stroke:s[m]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],p=o.getLineStyle(),h=0;h<l.length;h++)for(var d=0;d<l[h].length;d++){var f=i.toGlobalCoord(l[h][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f),e.add(new Nu({anid:"minor_line_"+l[h][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:p,silent:!0}))}},splitArea:function(t,e,n,r){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,p=eT(t).splitAreaColors,h=Et(),d=0;if(p)for(var f=0;f<u.length;f++){var g=p.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=ut(s)?s:[s],f=1;f<u.length;f++){var y=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=v,_=l.y,b=y-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=y-_));var S=u[f-1].tickValue;null!=S&&h.set(S,d),e.add(new ws({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:Q({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}eT(t).splitAreaColors=h}}}(t,e,n,r)}},aT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.type="xAxis",e}(iT),sT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=aT.type,e}return k(e,t),e.type="yAxis",e}(iT),lT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return k(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ws({shape:t.coordinateSystem.getRect(),style:Q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(eg),uT={offset:0};function cT(t){t.registerComponentView(lT),t.registerComponentModel(hM),t.registerCoordinateSystem("cartesian2d",BM),xM(t,"x",dM,uT),xM(t,"y",dM,uT),t.registerComponentView(aT),t.registerComponentView(sT),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function pT(t){Yx(cT),t.registerSeriesModel(iM),t.registerChartView(cM),t.registerLayout(iC("scatter"))}var hT="\0_ec_interaction_mutex";function dT(t,e){return!!function(t){return t[hT]||(t[hT]={})}(t)[e]}Ym({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Rt);var fT=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=st(n._mousedownHandler,n),i=st(n._mousemoveHandler,n),o=st(n._mouseupHandler,n),a=st(n._mousewheelHandler,n),s=st(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Q(X(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return k(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ve(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&mT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!dT(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&ge(t.event),vT(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ve(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=mT("zoomOnMouseWheel",t,this._opt),n=mT("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;gT(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);gT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){dT(this._zr,"globalPan")||gT(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ee);function gT(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(ge(r.event),vT(t,e,n,r,i))}function vT(t,e,n,r,i){i.isAvailableBehavior=st(mT,null,n,r),t.trigger(e,i)}function mT(t,e,n){var r=n[t];return!t||r&&(!pt(r)||e.event[r+"Key"])}var yT=fT;var xT,_T={axisPointer:1,tooltip:1,brush:1};function bT(t){pt(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var wT={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ST=at(wT),kT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CT=at(kT),MT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=bT(t);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new _i;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),ET(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var p=RT(o);p.length>=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(u=GT(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var h=r;(r=new _i).add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new ws({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=xT[s];if(u&&Pt(xT,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(l=p)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var h=TT[s];if(h&&Pt(TT,s)){var d=h.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new cs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DT(e,n),ET(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(xT={g:function(t,e){var n=new _i;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ws;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new tu;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Nu;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ru;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=OT(r));var i=new Mu({shape:{points:n||[]},silent:!0});return DT(e,i),ET(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=OT(r));var i=new Iu({shape:{points:n||[]},silent:!0});return DT(e,i),ET(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new fs;return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new _i;return DT(e,a),ET(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new _i;return DT(e,a),ET(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=Kl(t.getAttribute("d")||"");return DT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),TT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new Hu(e,n,r,i);return AT(t,o),IT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new Yu(e,n,r);return AT(t,i),IT(t,i),i}};function AT(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function IT(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};FT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function DT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,t.__inheritedStyle))}function OT(t){for(var e=RT(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function ET(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(BT,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=RT(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":Ar(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Dr(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ir(i,i,-parseFloat(l[0])*VT);break;case"skewX":Tr(i,[1,0,Math.tan(parseFloat(l[0])*VT),1,0,0],i);break;case"skewY":Tr(i,[1,Math.tan(parseFloat(l[0])*VT),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),FT(t,a,s),r||function(t,e,n){for(var r=0;r<ST.length;r++){var i=ST[r];null!=(o=t.getAttribute(i))&&(e[wT[i]]=o)}for(r=0;r<CT.length;r++){var o;i=CT[r];null!=(o=t.getAttribute(i))&&(n[kT[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=LT(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=LT(o,"stroke",a.stroke,n)),nt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),nt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=rt(RT(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var NT=/^url\(\s*#(.*?)\)/;function LT(t,e,n,r){var i=n&&n.match(NT);if(!i)return"none"===n&&(n=null),n;var o=Tt(i[1]);r.push([t,e,o])}var PT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function RT(t){return t.match(PT)||[]}var BT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,VT=Math.PI/180;var zT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function FT(t,e,n){var r,i=t.getAttribute("style");if(i)for(zT.lastIndex=0;null!=(r=zT.exec(i));){var o=r[1],a=Pt(wT,o)?wT[o]:null;a&&(e[a]=r[2]);var s=Pt(kT,o)?kT[o]:null;s&&(n[s]=r[2])}}function GT(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var UT=Et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),WT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Et(),this._freedGraphics=[],this._mapName=t,this._parsedXML=bT(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Et();return nt(t,(function(t){if(null==t.namedFrom){var r=new n_(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{Mt(null!=(n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new MT).parse(r,i))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new _i;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,p=void 0,h=void 0,d=void 0;if(null!=a?(c=0,h=a):l&&(c=l.x,h=l.width),null!=s?(p=0,d=s):l&&(p=l.y,d=l.height),null==c||null==p){var f=n.getBoundingRect();null==c&&(c=f.x,h=f.width),null==p&&(p=f.y,d=f.height)}u=this._boundingRect=new Qr(c,p,h,d)}if(l){var g=GT(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new ws({shape:u.plain()}));var v=[];return nt(e.named,(function(t){var e;null!=UT.get(t.svgNodeTagLower)&&(v.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:v}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var jT=[126,25],HT="南海诸岛",YT=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],qT=0;qT<YT.length;qT++)for(var XT=0;XT<YT[qT].length;XT++)YT[qT][XT][0]/=10.5,YT[qT][XT][1]/=-14,YT[qT][XT][0]+=jT[0],YT[qT][XT][1]+=jT[1];var ZT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var JT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var KT=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=Et(),this._mapName=t,this._specialAreas=n,this._geoJSON=pt(r=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:QT(r)})}var i=Et(),o=[];return nt(n.regions,(function(e){var n=e.name;t&&Pt(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Qr(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?o_(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===HT)return;e.push(new e_(HT,rt(YT,(function(t){return{type:"polygon",exterior:t}})),jT))}}(n,e),nt(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=ZT[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:JT[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function QT(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var $T=Et(),tA=function(t,e,n){if(e.svg){var r=new WT(t,e.svg);$T.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new KT(t,i,n);$T.set(t,r)}},eA=function(t){return $T.get(t)},nA=function(t){var e=$T.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},rA=function(t,e,n){var r=$T.get(t);if(r)return r.load(e,n);"production"!==process.env.NODE_ENV&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.")},iA=["rect","circle","line","ellipse","polygon","polyline","path"],oA=Et(iA),aA=Et(iA.concat(["g"])),sA=Et(iA.concat(["g"])),lA=mo();function uA(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function cA(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var pA=function(){function t(t){var e=new _i;this.uid=sp("ec_map_draw"),this._controller=new yT(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new _i),e.add(this._svgGroup=new _i)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),p=c.raw,h=c.roam;!l.childAt(0)||i?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):ic(u,h,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Et(),n=Et(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function p(t){return{shape:{points:c(t)}}}r.removeAll(),nt(t.geo.regions,(function(i){var c=i.name,h=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;h||(h=e.set(c,new _i),r.add(h),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];nt(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=mA(e,l)),nt(e,(function(t){v.push(new Mu(p(t)))}))}else{var n=t.points;l&&(n=mA(n,l,!0)),nt(n,(function(t){m.push(new Iu(p(t)))}))}}));var y=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new Wu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});h.add(r),hA(t,r,f,g),dA(t,r,c,g,o,f,y),n&&(cA(r),nt(r.states,cA))}}x(v),x(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;fA(t,e,r,s,o,a),gA(t,e,r,s,o),vA(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=Et(),i=!1;nt(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=oA.get(s)&&l instanceof sa&&hA(t,l,u,c),l instanceof sa&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=sA.get(s)&&dA(t,l,n,c,o,u,null),fA(t,l,n,c,o,u),gA(t,l,n,c,o),null!=aA.get(s)&&("self"===vA(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){cl(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=eA(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=eA(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,function(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}(o,t.dx,t.dy),n.dispatchAction(K(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,function(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}(o,t.scale,t.originX,t.originY),n.dispatchAction(K(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!function(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!_T.hasOwnProperty(r.mainType)&&i&&i.model!==n}(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=lA(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function hA(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=uA(i),u=uA(o),c=uA(s),p=uA(a),h=t.data;if(h){var d=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=Hv(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=p,cl(e)}function dA(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var p=l?n:o,h=void 0;(!s||o>=0)&&(h=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Rc(e,Bc(r),{labelFetcher:h,labelDataIndex:p,defaultText:n},d);var f=e.getTextContent();if(f&&(lA(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function fA(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Vs(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function gA(t,e,n,r,i){t.data||Dc({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function vA(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ml(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=Vs(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function mA(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),nt(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var yA=pA,xA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new yA(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new tu({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),p=u.indexOfName(c),h=r.getItemModel(n),d=h.getModel("label"),f=u.getItemGraphicEl(p);Rc(l,Bc(h),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(p,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){ll(l,t)}}i.add(l)}}}))},e.type="map",e}(pg),_A=xA,bA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return k(e,t),e.prototype.getInitialData=function(t){for(var e=QC(this,{coordDimensions:["value"],encodeDefaulter:lt(Nh,this)}),n=Et(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}return nt(rA(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Of("section",{header:s.join(", "),noHeader:!s.length,blocks:[Of("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=_v(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}($f),wA=bA;function SA(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),nt(e,(function(t,e){for(var n,r,i,o=(n=rt(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},nt(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function kA(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};nt(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var CA=Xt,MA=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new zr,n._rawTransformable=new zr,n.name=e,n}return k(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new Qr(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new Qr(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Qr(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Xt([],r,t),n=Xt([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Mr(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Or(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new zr;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?CA(n,t,r):function(t,e){return t[0]=e[0],t[1]=e[1],t}(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?CA([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=TA(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=TA(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(zr);function TA(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var AA=MA,IA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},DA=["lng","lat"],OA=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=DA,i.type="geo",i._nameCoordMap=Et(),i.map=n;var o,a=r.projection,s=rA(n,r.nameMap,r.nameProperty),l=eA(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,p=IA[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&Xi("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||("production"!==process.env.NODE_ENV&&Xi("project and unproject must be both provided in the projeciton."),a=null)),i.projection=a,a)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:wt(r.aspectScale,p.aspectScale),i._invertLongitute=!a&&p.invertLongitute,i}return k(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Qr(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(pt(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=EA(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=EA(e);return r===this?r.pointToData(n):null},e}(AA);function EA(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",bo).models[0]||{}).coordinateSystem:null}tt(OA,AA);var NA=OA;function LA(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,p=o.project([t+s*c,e+l*c]);Zt(r,r,p),Jt(i,i,p)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var p,h,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),y=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(p=[Ti(g[0],m),Ti(g[1],y)],h=Ti(v,Math.min(m,y)),isNaN(p[0])||isNaN(p[1])||isNaN(h)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=h,d.height=h/x):(d.height=h,d.width=h*x),d.y=p[1]-d.height/2,d.x=p[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=uh(b,{width:m,height:y})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var PA=function(){function t(){this.dimensions=DA}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new NA(o+i,o,K({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=LA,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),nt(i,(function(t,i){var o=rt(t,(function(t){return t.get("nameMap")})),a=new NA(i,i,K({nameMap:J(o)},r(t[0])));a.zoomLimit=bt.apply(null,rt(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=LA,a.resize(t[0],e),nt(t,(function(t){t.coordinateSystem=a,function(t,e){nt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=Et(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return nt(rA(e,n,r).regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),RA=new PA,BA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.init=function(t,e,n){var r=eA(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),ro(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=RA.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=it(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new op(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),Et()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new op(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return ct(r)?(i.status=e,r(i)):pt(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(gh),VA=BA;function zA(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}var FA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return k(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new yA(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;sv(t.target,(function(t){return null!=(e=Vs(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Vs(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(eg),GA=FA;function UA(t,e,n){tA(t,e,n)}function WA(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),nt(n.coordinateSystem.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];nt(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",RA),t.registerComponentModel(VA),t.registerComponentView(GA),t.registerImpl("registerMap",UA),t.registerImpl("getMap",(function(t){return nA(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var i=function(t,e,n){var r=t.getZoom(),i=t.getCenter(),o=e.zoom,a=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(zA(t,a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}t.scaleX*=o,t.scaleY*=o;var u=(e.originX-t.x)*(o-1),c=(e.originY-t.y)*(o-1);t.x-=u,t.y-=c,t.updateTransform(),t.setCenter(zA(t,a)),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&nt(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)}))}}))}))}var jA=nt,HA=ft,YA=-1,qA=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=X(e);this.type=r,this.mappingMethod=n,this._normalizeData=rI[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(XA(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,nt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(jA(e,(function(t,e){n[t]=e})),!ut(r)){var i=[];ft(r)?jA(r,(function(t,e){var r=n[e];i[null!=r?r:YA]=t})):i[-1]=r,r=nI(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):XA(i,!0):(Mt("linear"!==n||i.dataExtent),XA(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return st(this._normalizeData,this)},t.listVisualTypes=function(){return at(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ft(t)?nt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=ut(e)?[]:ft(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&jA(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(ut(t))t=t.slice();else{if(!HA(t))return[];var e=[];jA(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||pt(s)&&s===t+"")return o;n&&p(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(iI(c[1],t,u[1]))return o}else if(u[1]===1/0){if(iI(c[0],u[0],t))return o}else if(iI(c[0],u[0],t)&&iI(c[1],t,u[1]))return o;n&&p(u[0],o),n&&p(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function p(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:KA("color"),getColorMapper:function(){var t=this.option;return st("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),QA.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Ln(e,t.parsedVisual,r),i?r:Rn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Rn(Ln(t,this.option.parsedVisual),"rgba")},category:QA,piecewise:function(t,e){var n=eI.call(this,e);return null==n&&(n=Rn(Ln(t,this.option.parsedVisual),"rgba")),n},fixed:$A}},colorHue:ZA((function(t,e){return Pn(t,e)})),colorSaturation:ZA((function(t,e){return Pn(t,null,e)})),colorLightness:ZA((function(t,e){return Pn(t,null,null,e)})),colorAlpha:ZA((function(t,e){return function(t,e){var n=On(t);if(n&&null!=e)return n[3]=bn(e),Rn(n,"rgba")}(t,e)})),decal:{applyVisual:KA("decal"),_normalizedToVisual:{linear:null,category:QA,piecewise:null,fixed:null}},opacity:{applyVisual:KA("opacity"),_normalizedToVisual:tI([0,1])},liftZ:{applyVisual:KA("liftZ"),_normalizedToVisual:{linear:$A,category:$A,piecewise:$A,fixed:$A}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:JA,category:QA,piecewise:function(t,e){var n=eI.call(this,e);return null==n&&(n=JA.call(this,t)),n},fixed:$A}},symbolSize:{applyVisual:KA("symbolSize"),_normalizedToVisual:tI([0,1])}},t}();function XA(t,e){var n=t.visual,r=[];ft(n)?jA(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),nI(t,r)}function ZA(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:tI([0,1])}}function JA(t){var e=this.option.visual;return e[Math.round(Mi(t,[0,1],[0,e.length-1],!0))]||{}}function KA(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function QA(t){var e=this.option.visual;return e[this.option.loop&&t!==YA?t%e.length:t]}function $A(){return this.option.visual[0]}function tI(t){return{linear:function(e){return Mi(e,t,this.option.visual,!0)},category:QA,piecewise:function(e,n){var r=eI.call(this,n);return null==r&&(r=Mi(e,t,this.option.visual,!0)),r},fixed:$A}}function eI(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[qA.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function nI(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=rt(e,(function(t){var e=On(t);return e||"production"===process.env.NODE_ENV||Xi("'"+t+"' is an illegal color, fallback to '#000000'",!0),e||[0,0,0,1]}))),e}var rI={linear:function(t){return Mi(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=qA.findPieceIndex(t,e,!0);if(null!=n)return Mi(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?YA:e},fixed:Rt};function iI(t,e,n){return t?e<=n:e<n}var oI=qA;function aI(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function sI(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var lI=mo(),uI=X,cI=st,pI=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var p=lt(hI,e,c);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,e)}else a=this._group=new _i,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);vI(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=ZM(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=lI(t).pointerEl=new Nc[i.type](uI(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=lI(t).labelEl=new Bs(uI(e.label));t.add(i),fI(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=lI(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=lI(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),fI(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Tc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ge(t.event)},onmousedown:cI(this._onHandleDragMove,this,0,0),drift:cI(this._onHandleDragMove,this),ondragend:cI(this._onHandleDragEnd,this)}),r.add(i)),vI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ut(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,vg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){hI(this._axisPointerModel,!e&&this._moveAnimation,this._handle,gI(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(gI(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(gI(r)),lI(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),mg(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function hI(t,e,n,r){dI(lI(n).lastProp,r)||(lI(n).lastProp=r,e?ic(n,r,t):(n.stopAnimation(),n.attr(r)))}function dI(t,e){if(ft(t)&&ft(e)){var n=!0;return nt(e,(function(e,r){n=n&&dI(t[r],e)})),!!n}return t===e}function fI(t,e){t[e.get(["label","show"])?"show":"hide"]()}function gI(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function vI(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}function mI(t,e,n,r,i){var o=yI(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Xp(a.get("padding")||0),l=a.getFont(),u=ni(o,l),c=i.position,p=u.width+s[1]+s[3],h=u.height+s[0]+s[2],d=i.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,p,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Vc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function yI(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:Vx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};nt(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),pt(a)?o=a.replace("{value}",o):ct(a)&&(o=a(s))}return o}function xI(t,e,n){var r=[1,0,0,1,0,0];return Ir(r,r,n.rotation),Ar(r,r,n.position),Sc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var _I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=bI(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}(r),p=wI[s](o,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}!function(t,e,n,r,i,o){var a=HM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),mI(e,r,i,o,{position:xI(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,AM(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=AM(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=xI(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=bI(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,p=[c,c];p[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(pI);function bI(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var wI={line:function(t,e,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],i=[e,n[1]],o=SI(t),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(t,e,n){var r,i,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[e-a/2,n[0]],i=[a,s],o=SI(t),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function SI(t){return"x"===t.dim?0:1}var kI=_I,CI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(gh),MI=CI,TI=mo(),AI=nt;function II(t,e,n){if(!A.node){var r=e.getZr();TI(r).records||(TI(r).records={}),function(t,e){if(TI(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);AI(TI(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}TI(t).initialized=!0,n("click",lt(OI,"click")),n("mousemove",lt(OI,"mousemove")),n("globalout",DI)}(r,e),(TI(r).records[t]||(TI(r).records[t]={})).handler=n}}function DI(t,e,n){t.handler("leave",null,n)}function OI(t,e,n,r){e.handler(t,n,r)}function EI(t,e){if(!A.node){var n=e.getZr();(TI(n).records||{})[t]&&(TI(n).records[t]=null)}}var NI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";II("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){EI("axisPointer",e)},e.prototype.dispose=function(t,e){EI("axisPointer",e)},e.type="axisPointer",e}(eg),LI=NI;function PI(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=vo(o,t);if(null==a||a<0||ut(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,p=u.dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(p),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(rt(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var RI=mo();function BI(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||st(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){UI(i)&&(i=PI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=UI(i),u=o.axesInfo,c=s.axesInfo,p="leave"===r||UI(i),h={},d={},f={list:[],map:{}},g={showPointer:lt(zI,d),showTooltip:lt(FI,f)};nt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);nt(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!p&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&VI(t,a,g,!1,h)}}))}));var v={};return nt(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&nt(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,GI(e),GI(t)))),v[t.key]=o}}))})),nt(v,(function(t,e){VI(c[e],t,g,!0,h)})),function(t,e,n){var r=n.axesInfo=[];nt(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(d,c,h),function(t,e,n,r){if(UI(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=RI(r)[i]||{},a=RI(r)[i]={};nt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&nt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];nt(o,(function(t,e){!a[e]&&l.push(t)})),nt(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function VI(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return nt(e.seriesModels,(function(e,l){var u,c,p=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(p,t,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(p[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,i=u,o.length=0),nt(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&K(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function zI(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function FI(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=KM(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function GI(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function UI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function WI(t){tT.registerAxisPointerClass("CartesianAxisPointer",kI),t.registerComponentModel(MI),t.registerComponentView(LI),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ut(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=YM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BI)}var jI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(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}(gh),HI=jI;function YI(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function qI(t){if(A.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var XI=qI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function ZI(t,e){if(!t)return e;e=qp(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var JI=ZI(qI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),KI=ZI(XI,"transform"),QI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(A.transform3dSupported?"will-change:transform;":"");function $I(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!A.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=A.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+KI+":"+a+";":[["top",0],["left",0],[XI,a]]}function tD(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Ff(t,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=A.transformSupported?","+KI+r:",left"+r+",top"+r),JI+":"+i}(i,n)),o&&r.push("background-color:"+o),nt(["width","color","radius"],(function(e){var n="border-"+e,i=qp(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),nt(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=p&&r.push("padding:"+Xp(p).join("px ")+"px"),r.join(";")+";"}function eD(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){ae(oe,e,r,i,!0)&&ae(t,n,oe[0],oe[1])}(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nD=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,A.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;eD(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;fe(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=function(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QI+tD(t,!this._firstShow,this._longHide)+$I(i[0],i[1],!0)+"border-color:"+nh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(pt(i)&&"item"===n.get("trigger")&&!YI(n)&&(a=function(t,e,n){if(!pt(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=nh(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=KI+":";$(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,h=l+i,d=h*Math.abs(Math.cos(p))+h*Math.abs(Math.sin(p)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),pt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",ut(t)||(t=[t]);for(var s=0;s<t.length;s++)mt(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(eD(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;nt($I(n[0],n[1]),(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),rD=nD,iD=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),sD(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;ft(t)&&$i("production"!==process.env.NODE_ENV?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Bs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ff(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),nt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),nt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=aD(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;sD(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=oD(i.borderWidth||0),a=aD(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function oD(t){return Math.max(0,t)}function aD(t){var e=oD(t.shadowBlur||0),n=oD(t.shadowOffsetX||0),r=oD(t.shadowOffsetY||0);return{left:oD(e-n),right:oD(e+n),top:oD(e-r),bottom:oD(e+r)}}function sD(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var lD=iD,uD=new ws({shape:{x:-1,y:-1,width:2,height:2}}),cD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.init=function(t,e){if(!A.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?A.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new lD(e):new rD(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?vg(this,"_updatePosition",50,"fixRate"):mg(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");II("itemTooltip",this._api,st((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!A.node&&n.getDom()){var i=hD(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=_o(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=wo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=Vs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=uD;l.x=r.x,l.y=r.y,l.update(),Vs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=PI(r,e),c=u.point[0],p=u.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(hD(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===pD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;this._lastDataByCoordSys=null,sv(n,(function(t){return null!=Vs(t).dataIndex?(i=t,!0):null!=Vs(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=st(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=pD([e.tooltipOption],r),a=this._renderMode,s=[],l=Of("section",{blocks:[],noHeader:!0}),u=[],c=new Gf;nt(t,(function(t){nt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=yI(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=Of("section",{header:o,noHeader:!Tt(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),nt(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Vx(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",nh(f.color),a);var g=$d(h.formatTooltip(d,!0,null)),v=g.frag;if(v){var m=pD([h],r).get("valueFormatter");p.blocks.push(m?K({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var p=e.position,h=o.get("order"),d=Bf(l,c,a,h,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],p,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Vs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),p=this._renderMode,h=t.positionDefault,d=pD([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Gf;g.marker=v.makeTooltipMarker("item",nh(g.color),p);var m=$d(s.formatTooltip(l,!1,u)),y=d.get("order"),x=d.get("valueFormatter"),_=m.frag,b=_?Bf(x?K({valueFormatter:x},_):_,v,p,y,r.get("useUTC"),d.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Vs(e),i=r.tooltipConfig.option||{};if(pt(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,l=pD(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",p=new Gf;this._showOrMove(l,(function(){var n=X(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var p=e,h=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(pt(c)){var d=t.ecModel.get("useUTC"),f=ut(n)?n[0]:n;p=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=Ip(f.axisValue,p,d)),p=eh(p,n,!0)}else if(ct(c)){var g=st((function(e,r){e===this._ticket&&(u.setContent(r,l,t,h,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,p=c(n,r,g)}else p=c;u.setContent(p,l,t,h,a),u.show(t,h),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||ut(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:ut(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),p=t.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),ct(e)&&(e=e([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),ut(e))n=Ti(e[0],s),r=Ti(e[1],l);else if(ft(e)){var d=e;d.width=u[0],d.height=u[1];var f=uh(d,{width:s,height:l});n=f.x,r=f.y,c=null,p=null}else if(pt(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,h,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,l,c?null:20,p?null:20);n=g[0],r=g[1]}if(c&&(n-=dD(c)?u[0]/2:"right"===c?u[0]:0),p&&(r-=dD(p)?u[1]/2:"bottom"===p?u[1]:0),YI(t)){g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&nt(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&nt(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&nt(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&nt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!A.node&&e.getDom()&&(mg(this,"_updatePosition"),this._tooltipContent.dispose(),EI("itemTooltip",e))},e.type="tooltip",e}(eg);function pD(t,e,n){var r,i=e.ecModel;n?(r=new op(n,i,i),r=new op(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof op&&(a=a.get("tooltip",!0)),pt(a)&&(a={formatter:a}),a&&(r=new op(a,r,i)))}return r}function hD(t,e){return t.dispatchAction||st(e.dispatchAction,e)}function dD(t){return"center"===t||"middle"===t}var fD=cD;function gD(t){Yx(WI),t.registerComponentModel(HI),t.registerComponentView(fD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var vD=nt;function mD(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function yD(t,e,n){var r={};return vD(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);vD(t[e],(function(t,r){if(oI.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new oI(i),"opacity"===r&&((i=X(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new oI(i))}}))})),r}function xD(t,e,n,r){var i={};return nt(t,(function(t){var n=oI.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return rv(o,s,t)}function u(t,e){!function(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}(o,s,t,e)}null!=r&&(a=o.getDimensionIndex(r));for(var c=o.getStore();null!=(s=t.next());){var p=o.getRawDataItem(s);if(!p||!1!==p.visualMap)for(var h=null!=r?c.get(a,s):s,d=n(h),f=e[d],g=i[d],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(h,l,u)}}}}}var _D=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(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}(gh),bD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=wt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Bs({style:Vc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),p=new Bs({style:Vc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!h&&!f,p.silent=!d&&!f,h&&l.on("click",(function(){rh(h,"_"+t.get("target"))})),d&&p.on("click",(function(){rh(d,"_"+t.get("subtarget"))})),Vs(l).eventData=Vs(p).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(p);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=uh(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),p.setStyle(y),g=r.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new ws({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(eg);function wD(t){t.registerComponentModel(_D),t.registerComponentView(bD)}var SD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),ut(e)&&nt(e,(function(t,r){pt(t)&&(t={type:t}),e[r]=Z(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&fo(r)&&e.push(r.name)})),this._availableNames=n;var r=rt(this.get("data")||e,(function(t){return(pt(t)||dt(t))&&(t={name:t}),new op(t,this,this.ecModel)}),this);this._data=r},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&nt(this._data,(function(t){e[t.get("name")]=!1}));e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;nt(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;nt(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&$(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(gh),kD=SD,CD=lt,MD=nt,TD=_i,AD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return k(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new TD),this.group.add(this._selectorGroup=new TD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),p=uh(l,u,c),h=this.layoutInner(t,i,p,r,a,s),d=uh(Q({width:h.width,height:h.height},l),u,c);this.group.x=d.x-h.x,this.group.y=d.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=Xp(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),new ws({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=Et(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),MD(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new TD;return p.newline=!0,void s.add(p)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var d=h.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(h,a,o,i,e,t,f,v,g,u).on("click",CD(ID,a,null,r,c)).on("mouseover",CD(OD,h.name,null,r,c)).on("mouseout",CD(ED,h.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),h=s.getItemVisual(p,"style"),d=s.getItemVisual(p,"legendIcon"),f=On(h.fill);f&&0===f[3]&&(f[3]=.2,h=K(K({},h),{fill:Rn(f,"rgba")})),this._createItem(n,a,o,i,e,t,{},h,d,u).on("click",CD(ID,null,a,r,c)).on("mouseover",CD(OD,null,a,r,c)).on("mouseout",CD(ED,null,a,r,c)),l.set(a,!0)}}),this);"production"!==process.env.NODE_ENV&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();MD(t,(function(t){var r=t.type,i=new Bs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Rc(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Cl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u){var c=t.visualDrawType,p=i.get("itemWidth"),h=i.get("itemHeight"),d=i.isSelected(e),f=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),MD(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);a(s,r);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),h=s[l];s.lineWidth="auto"===p?r.lineWidth>0&&h?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(l=v||l||"roundRect",r,a,s,c,d),y=new TD,x=r.getModel("textStyle");if(!ct(t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;y.add(function(t){var e=t.icon||"roundRect",n=_v(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:h,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}))}else y.add(t.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));var b="left"===o?p+5:-5,w=o,S=i.get("formatter"),k=e;pt(S)&&S?k=S.replace("{name}",null!=e?e:""):ct(S)&&(k=S(e));var C=r.get("inactiveColor");y.add(new Bs({style:Vc(x,{text:k,x:b,y:h/2,fill:d?x.getTextColor():C,align:w,verticalAlign:"middle"})}));var M=new ws({shape:y.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Dc({el:M,componentModel:i,itemName:e,itemTooltipOption:T.option}),y.add(M),y.eachChild((function(t){t.silent=!0})),M.silent=!u,this.getContentGroup().add(y),Cl(y),y.__legendDataIndex=n,y},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();lh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){lh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),p=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?p[d]+=l[f]+h:u[d]+=c[f]+h,p[1-d]+=l[g]/2-c[g]/2,s.x=p[0],s.y=p[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+p[1-d]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(eg);function ID(t,e,n,r){ED(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),OD(t,e,n,r)}function DD(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function OD(t,e,n,r){DD(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function ED(t,e,n,r){DD(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var ND=AD;function LD(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function PD(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name)),nt(n.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function RD(t){t.registerComponentModel(kD),t.registerComponentView(ND),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,LD),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",lt(PD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",lt(PD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",lt(PD,"inverseSelect")),t.registerAction("legendSelect","legendselected",lt(PD,"select")),t.registerAction("legendUnSelect","legendunselected",lt(PD,"unSelect"))}(t)}var BD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=hh(e);t.prototype.init.call(this,e,n,r),VD(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),VD(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lp(kD.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(kD);function VD(t,e,n){var r=[1,1];r[t.getOrient().index]=0,ph(e,n,{type:"box",ignoreSize:!!r})}var zD=BD,FD=_i,GD=["width","height"],UD=["x","y"],WD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return k(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new FD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FD)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),p=ut(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=Tc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:st(l._pageGo,l,r,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,u.add(o)}u.add(new Bs({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=GD[s],u=UD[s],c=GD[1-s],p=UD[1-s];i&&lh("horizontal",a,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=X(n);i&&(g[l]=n[l]-d[l]-h);var v=this._layoutContentAndController(t,r,g,s,l,c,p,u);if(i){if("end"===o)f[s]+=v[l]+h;else{var m=d[l]+h;f[s]-=m,v[u]-=m}v[l]+=d[l]+h,f[1-s]+=v[p]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[p]=Math.min(v[p],d[p]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;lh(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),lh("horizontal",c,t.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),h=c.getBoundingRect(),d=this._showController=p[i]>n[i],f=[-p.x,-p.y];e||(f[r]=l[s]);var g=[0,0],v=[-h.x,-h.y],m=wt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[r]+=n[i]-h[i]:g[r]+=h[i]+m);v[1-r]+=p[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var y={x:0,y:0};if(y[i]=d?n[i]:p[i],y[o]=Math.max(p[o],h[o]),y[a]=Math.min(0,h[a]+v[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-m,0),x[o]=y[o],u.setClipPath(new ws({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&ic(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),y},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;nt(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",pt(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=GD[i],a=UD[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,p=c?1:0,h={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var d=y(u);h.contentPosition[i]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=c;++f)(!(m=y(l[f]))&&v.e>g.s+r||m&&!x(m,g.s))&&(g=v.i>g.i?v:m)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),v=m;for(f=s-1,g=d,v=d,m=null;f>=-1;--f)(m=y(l[f]))&&x(v,m.s)||!(g.i<v.i)||(v=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=m;return h;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(ND),jD=WD;function HD(t){Yx(RD),t.registerComponentModel(zD),t.registerComponentView(jD),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}function YD(t){Yx(RD),Yx(HD)}var qD={get:function(t,e,n){var r=X((XD[t]||{})[e]);return n&&ut(r)?r[r.length-1]:r}},XD={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},ZD=qD,JD=oI.mapVisual,KD=oI.eachVisual,QD=ut,$D=nt,tO=Ii,eO=Mi,nO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return k(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&function(t,e,n){var r;nt(n,(function(t){e.hasOwnProperty(t)&&mD(e[t])&&(r=!0)})),r&&nt(n,(function(n){e.hasOwnProperty(n)&&mD(e[n])?t[n]=X(e[n]):delete t[n]}))}(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=st(t,this),this.controllerVisuals=yD(this.option.controller,e,t),this.targetVisuals=yD(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,n){e.push(n)})):e=no(t),e},e.prototype.eachTargetSeries=function(t,e){nt(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],ut(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return pt(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ct(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=tO([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 n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});Z(r,n),Z(i,n);var o=this.isCategory();function a(n){QD(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},$D(r,(function(t,e){if(oI.isValidType(e)){var n=ZD.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";$D(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&X(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&X(n)||(o?s[0]:[s[0],s[0]])),l.symbol=JD(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;KD(u,(function(t){t>c&&(c=t)})),l.symbolSize=JD(u,(function(t){return eO(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},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}(gh),rO=nO,iO=[20,140],oO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.optionUpdated=function(e,n){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]=iO[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=iO[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):ut(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),nt(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=Ii((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,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=aO(this,"outOfRange",this.getExtent()),n=aO(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=lp(rO.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}(rO);function aO(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var sO=oO,lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return k(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Xp(e.get("padding")||0),r=t.getBoundingRect();t.add(new ws({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)];return nt(oI.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),oI.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;!function(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Qr(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var p=uh(Q({width:a.width,height:a.height},e),n,r),h=s?p.x-a.x:0,d=l?p.y-a.y:0;"raw"===u?(o.x=h,o.y=d):(o.x+=h,o.y+=d),o===t&&t.markRedraw()}(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(eg),uO=lO,cO=[["left","right","width"],["top","bottom","height"]];function pO(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=cO[a],l=[0,null,10],u={},c=0;c<3;c++)u[cO[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var p=[["x","width",3],["y","height",0]][a],h=uh(u,o,r.padding);return s[(h.margin[p[2]]||0)+h[p[0]]+.5*h[p[1]]<.5*o[p[1]]?0:1]}function hO(t,e){return nt(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var dO=Mi,fO=nt,gO=Math.min,vO=Math.max,mO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return k(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.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 n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Bs({style:Vc(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=pO(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new _i;s.add(l),l.add(n.outOfRange=yO()),l.add(n.inRange=yO(null,o?_O(this._orient):null,st(this._dragHandle,this,"all",!1),st(this._dragHandle,this,"all",!0))),l.setClipPath(new ws({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=vO(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=st(this._dragHandle,this,n,!1),s=st(this._dragHandle,this,n,!0),l=ai(t.get("handleSize"),r[0]),u=_v(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=_O(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){ge(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Dl(u,!0),e.add(u);var p=this.visualMapModel.textStyleModel,h=new Bs({cursor:c,draggable:!0,drift:a,onmousemove:function(t){ge(t.event)},ondragend:s,style:Vc(p,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=h},e.prototype._createIndicator=function(t,e,n,r,i){var o=ai(t.get("indicatorSize"),n[0]),a=_v(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof fs){var l=a.style;a.useStyle(K({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new Bs({silent:!0,invisible:!0,style:Vc(u,{x:0,y:0,text:""})});this.group.add(c);var p=[("horizontal"===i?r/2:6)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=c,h.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[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():xO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[dO(e[0],n,r,!0),dO(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];!function(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=sI(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=sI(s,[0,a]),i=o=sI(s,[i,o]),r=0}e[0]=sI(e[0],n),e[1]=sI(e[1],n);var l=aI(e,r);e[r]+=t;var u,c=i||0,p=n.slice();l.sign<0?p[0]+=c:p[1]-=c,e[r]=sI(e[r],p),u=aI(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=aI(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o)}(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[dO(r[0],i,o,!0),dO(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Hu(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new _i("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{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 n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();fO([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=dO(t[l],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=p/a[0],u.x=a[0]-p/2;var h=Sc(n.handleLabelPoints[l],wc(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),h=dO(t,o,s,!0),d=a[0]-p/2,f={x:u.x,y:u.y};u.y=h,u.x=d;var g=Sc(l.indicatorLabelPoint,wc(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var x={x:d,y:h,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),v.animateTo(_,b)}else u.attr(x),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this._api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=gO(vO(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[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 n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=gO(vO(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=dO(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=dO(t,i,o,!0),u=[dO(s[0],i,o,!0),dO(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[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 c=this._hoverLinkDataIndices,p=[];(e||xO(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=co(t[r].seriesId,null);if(null==o)return;for(var a=no(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,p);this._dispatchHighDown("downplay",hO(h[0],n)),this._dispatchHighDown("highlight",hO(h[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=Vs(e).dataIndex){var r=Vs(e),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hO(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,n,r){var i=wc(e,r?null:this.group);return ut(t)?Sc(t,i,n):kc(t,i,n)},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}(uO);function yO(t,e,n,r){return new Mu({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){ge(t.event)},ondragend:r})}function xO(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function _O(t){return"vertical"===t?"ns-resize":"ew-resize"}var bO=mO,wO={type:"selectDataRange",event:"dataRangeSelected",update:"update"},SO=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},kO=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(xD(e.stateList,e.targetVisuals,st(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(st(CO,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function CO(t,e,n,r){for(var i=e.targetVisuals[r],o=oI.prepareVisualTypes(i),a={color:iv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,p,h)}return a.color;function p(t){return a[t]}function h(t,e){a[t]=e}}var MO=nt;function TO(t){var e=t&&t.visualMap;ut(e)||(e=e?[e]:[]),MO(e,(function(t){if(t){AO(t,"splitList")&&!AO(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&ut(e)&&MO(e,(function(t){ft(t)&&(AO(t,"start")&&!AO(t,"min")&&(t.min=t.start),AO(t,"end")&&!AO(t,"max")&&(t.max=t.end))}))}}))}function AO(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var IO=!1;function DO(t){IO||(IO=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(wO,SO),nt(kO,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(TO))}function OO(t){t.registerComponentModel(sO),t.registerComponentView(bO),DO(t)}var EO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return k(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],NO[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=X(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=rt(this._pieceList,(function(t){return t=X(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=oI.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}nt(e.pieces,(function(t){nt(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),nt(n,(function(t,n){var r=!1;nt(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&nt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=ZD.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,nt(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;nt(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!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=X(t)},e.prototype.getValueState=function(t){var e=oI.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){oI.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),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 n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return nt(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=lp(rO.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}(rO),NO={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),zi(t),nt(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;nt(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),LO(e,t)},pieces:function(t){var e=this.option;nt(e.pieces,(function(e,n){ft(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==o[c];h++)o[c]=e[p[h]],a[c]=s[h],u[c]=2===h;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=oI.retrieveVisuals(e),t.push(r)}),this),LO(e,t),zi(t),nt(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function LO(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var PO=EO,RO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return k(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=bt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),nt(l.viewPieceList,(function(r){var l=r.piece,u=new _i;u.onclick=st(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(p);u.add(new Bs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===h?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),lh(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:hO(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return pO(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new _i,a=this.visualMapModel.textStyleModel;o.add(new Bs({style:Vc(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=rt(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(_v(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=X(n.selected),i=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[i]=!0,nt(r,(function(t,e){r[e]=e===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},e.type="visualMap.piecewise",e}(uO),BO=RO;function VO(t){t.registerComponentModel(PO),t.registerComponentView(BO),DO(t)}var zO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return k(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new kf(this),Cf(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Cf(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Mh},e}(gh),FO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return k(e,t),e.type="dataset",e}(eg);function GO(t){t.registerComponentModel(zO),t.registerComponentView(FO)}Yx([_k,function(t){t.registerChartView(KC),t.registerSeriesModel(nM),ov("pie",t.registerAction),t.registerLayout(lt(UC,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(dt(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},wD,gD,YD]);var UO=e.defineComponent({name:"EcanPie",props:Object.assign({},ck),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){var n=(e.unref(i)[0]||{}).data,r=void 0===n?[]:n;if(Array.isArray(t.colors)){var o=t.isUseLabelColors,a=t.colors;r=r.map((function(t,e){return Object.assign({label:o?{color:a[e]}:{}},t)}))}return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},color:t.colors,series:[{data:r,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,label:{show:"center"!==t.labelPosition&&t.labelShow,color:t.labelColor,fontSize:t.labelFontSize,position:t.labelPosition,formatter:Ew(t.labelFormatter)},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),a=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=Iw(t,e),r=n.dataset;i.value=r};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=e.ref(!1),h=Rw(t),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,t.valueTypeDataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},f=Mw(t.events)("click",(function(e){var n=t.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){d()},click:f}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(d,t.requestSort),{option:o,style:r,click:f,loading:p}}});UO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},UO.__file="src/graph/pie/Pie.vue";var WO=sw(UO),jO=Object.assign(Object.assign({},hw),{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234},{name:"名称四",value:135},{name:"名称五",value:1548}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value"}),HO=dw(jO),YO=["click","refreshData"];Yx([_k,lC,wD,YD]);var qO=e.defineComponent({name:"EcanLine",props:Object.assign({},HO),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.ref([]),a=e.computed((function(){return{title:{text:t.titleText,subText:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,xAxis:{type:"category",data:e.unref(o),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:function(e){return jw(t.yAxisLabelFormatter,e)}},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft},series:e.unref(i)}})),s=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),l=s.getGlobalModel,u=s.setGlobalModel,c=e.inject(xw,{pageMode:"normal"}).pageMode,p=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var a=r?t.keyTypeDataFieldNames:null;e=zw(n,a)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}o.value=e.dimensions;for(var l=e.dataset,u=[],c=l.length,p=0;p<c;p++)u.push(Object.assign(Object.assign({type:"line"},l[p]),{symbolSize:t.symbolSize,smooth:t.smooth,lineStyle:{width:t.lineStyleWidth}}));i.value=u};e.watch((function(){return[t.data,t.symbolSize,t.smooth,t.lineStyleWidth]}),(function(n){var r=G_(n,1)[0];"static"!==t.dataType&&"design"!==e.unref(c)||p(r)}),{immediate:!0,deep:!0});var h=e.ref(!1),d=Rw(t),f=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(c)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,h.value=!0,n.next=6,d();case 6:o=n.sent,p(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,h.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},g=Mw(t.events)("click",(function(e){var n=t.id,r=l(n);u(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){f()},click:g}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),{option:a,style:r,click:g,loading:h}}});qO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},qO.__file="src/graph/line/Line.vue";var XO=sw(qO),ZO=Object.assign(Object.assign({},hw),{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"0%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%",graphicConfig:void 0}),JO=dw(ZO),KO=["refreshData","click"];Yx([_k,BC,wD,YD,GO]);var QO=e.defineComponent({name:"EcanBar",props:Object.assign({},JO),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){for(var n=e.unref(i),r=n.length,o=[],a=0;a<r;a++)o.push(Object.assign(Object.assign({},n[a]),{type:"bar",barWidth:t.barWidth}));return o})),a=e.ref([]),s=e.ref(!1),l=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,tooltip:{trigger:"axis",show:t.tooltipShow,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},xAxis:{type:"category",data:e.unref(a),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:function(e){return jw(t.yAxisLabelFormatter,e)}},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},series:e.unref(o)}})),u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var o=r?t.keyTypeDataFieldNames:null;e=zw(n,o)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}i.value=e.dataset,a.value=e.dimensions},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?e:null,o=zw(t,r);i.value=o.dataset,a.value=o.dimensions};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var h=Rw(t),d=Ww(t),f=function(){"design"!==e.unref(u)&&(C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,l,c,h;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("indicator"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,d();case 6:c=n.sent,(null===(o=null===(i=null===(r=null==c?void 0:c.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.columns)||void 0===o?void 0:o.length)>0&&(h={name:c.data.data.columns[0],types:c.data.data.columns.slice(1).map((function(t){return{label:t,value:t}}))}),p(null===(l=null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.data)||void 0===l?void 0:l.rows,h,!0),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),console.error(n.t0);case 14:return n.prev=14,s.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[2,11,14,17]])}))),C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,s.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])}))))},g=function(){f()},v=Mw(t.events),m=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),y=m.getGlobalModel,x=m.setGlobalModel,_=v("click",(function(e){var n=t.id,r=y(n);x(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),Cw(t,{refreshData:g,click:_}),{option:l,style:r,refreshData:g,click:_,loading:s}}});QO.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},QO.__file="src/graph/bar/Bar.vue";var $O=sw(QO),tE=Object.assign(Object.assign({},hw),{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%"}),eE=dw(tE),nE=["click","refreshData"];Yx([_k,pT,wD,gD,YD]);var rE=e.defineComponent({name:"EcanScatter",props:Object.assign({},eE),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,xAxis:{splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:function(e){return jw(t.yAxisLabelFormatter,e)}},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:function(e){var n,r,i=null!==(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.record)&&void 0!==r?r:{};return Gw(t.tooltipFormatter,i)},axisPointer:{type:"cross"}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft},series:[{data:e.unref(i),type:"scatter",symbolSize:t.symbolSize}]}})),a=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=e.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},r=n.name,o=void 0===r?"name":r,a=n.value,s=void 0===a?"value":a;i.value=t.map((function(t){return{value:[t[o],t[s]],record:t}})),console.log(t.map((function(t){return{value:[t[o],t[s]],record:t}})))};e.watch((function(){return t.data}),(function(n){"static"!==t.dataType&&"design"!==e.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=e.ref(!1),h=Rw(t),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return p.value=!0,n.prev=3,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,t.dataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[3,10,13,16]])})))},f=Mw(t.events)("click",(function(e){var n=t.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return Cw(t,{refreshData:function(){d()},click:f}),(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(d,t.requestSort),{option:o,style:r,click:f,loading:p}}});rE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},rE.__file="src/graph/scatter/Scatter.vue";var iE=sw(rE),oE=Object.assign(Object.assign({},hw),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),aE=dw(oE),sE=e.defineComponent({name:"EcanCustomGraph",props:Object.assign({},aE),components:{Echarts:q_},setup:function(t){var n=mw(t),r=e.ref();return e.watch((function(){return t.optionCode}),(function(t){try{var e=eval;r.value=e(t)}catch(t){console.error(t)}}),{immediate:!0}),{style:n,myOption:r,echarts:w}}});sE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(s,{option:t.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},sE.__file="src/graph/custom-graph/CustomGraph.vue";var lE=sw(sE),uE=Object.assign(Object.assign({},hw),{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"2%",gridRight:"2%"}),cE=dw(uE),pE=["refreshData","click"];Yx([_k,BC,lC,wD,YD,GO]);var hE=e.defineComponent({name:"EcanComboGraph",props:Object.assign({},cE),components:{Spin:$b,Echarts:q_},setup:function(t){var n=this,r=mw(t),i=e.ref([]),o=e.ref([]),a=e.computed((function(){return{title:{text:t.titleText,subtext:t.titleSubtext,left:"center"},grid:{top:t.gridTop,bottom:t.gridBottom,left:t.gridLeft,right:t.gridRight,containLabel:t.gridContainLabel},color:t.colors,tooltip:{trigger:"axis",show:t.tooltipShow,formatter:Ew(t.tooltipFormatter),textStyle:{color:t.tooltipTextStyleColor}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor}},xAxis:{type:"category",data:e.unref(o),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:e.unref(u),series:e.unref(i)}})),s=e.inject(xw,{pageMode:"normal"}).pageMode,l=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===t.dataFieldConfigType){var a=r?t.keyTypeDataFieldNames:null;e=zw(n,a)}else if("value"===t.dataFieldConfigType){var s=r?t.valueTypeDataFieldNames:null;e=Iw(n,s)}o.value=e.dimensions;for(var l=e.dataset,u=[],c=l.length,p=t.seriesTypes,h=0;h<c;h++){var d=p[h];u.push(Object.assign({type:null==d?void 0:d.type,yAxisIndex:null==d?void 0:d.axisIndex},l[h]))}i.value=u};e.watch((function(){return[t.data,t.seriesTypes]}),(function(n){var r=G_(n,1)[0];"static"!==t.dataType&&"design"!==e.unref(s)||l(r)}),{immediate:!0,deep:!0});var u=e.computed((function(){var e=t.yAxis;return null==e?void 0:e.map((function(e){return{type:"value",splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{color:t.yAxisLabelColor,formatter:function(t){return jw(e.axisLabelFormatter,t)}},axisLine:{lineStyle:{color:t.yAxisLineStyleColor}}}}))})),c=e.ref(!1),p=Rw(t),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType&&"design"!==e.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,c.value=!0,n.next=6,p();case 6:o=n.sent,l(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,c.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},d=Mw(t.events),f=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),g=f.getGlobalModel,v=f.setGlobalModel,m=d("click",(function(e){var n=t.id,r=g(n);v(n,Object.assign(Object.assign({},r),{RECORD:null==e?void 0:e.data}))}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),Cw(t,{refreshData:function(){h()},click:m}),{style:r,option:a,click:m,loading:c}}});hE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts"),l=e.resolveComponent("spin");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style)},[e.createVNode(l,{spinning:t.loading},{default:e.withCtx((function(){return[e.createVNode(s,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},hE.__file="src/graph/combo-graph/ComboGraph.vue";var dE=sw(hE),fE=Object.assign(Object.assign({},hw),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),gE=dw(fE),vE=["click"],mE=e.defineComponent({name:"EcanBorder",props:Object.assign({},gE),setup:function(t){var e=mw(t),n=Mw(t.events)("click",(function(){}));return Cw(t,{click:n}),{style:e,click:n}}}),yE=function(t){return e.pushScopeId("data-v-af8a0f90"),t=t(),e.popScopeId(),t},xE={key:0,class:"top-title"},_E={class:"title-item-wrapper"},bE={class:"title-item"},wE=yE((function(){return e.createElementVNode("img",{class:"title-decoration-left",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII="},null,-1)})),SE={class:"title"},kE=yE((function(){return e.createElementVNode("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),CE=yE((function(){return e.createElementVNode("div",{class:"top-left border-item"},null,-1)})),ME=yE((function(){return e.createElementVNode("div",{class:"top-right border-item"},null,-1)})),TE=yE((function(){return e.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),AE=yE((function(){return e.createElementVNode("div",{class:"bottom-right border-item"},null,-1)})),IE={key:1,class:"no-title"},DE=[yE((function(){return e.createElementVNode("div",{class:"top-left border-item"},null,-1)})),yE((function(){return e.createElementVNode("div",{class:"top-right border-item"},null,-1)})),yE((function(){return e.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),yE((function(){return e.createElementVNode("div",{class:"bottom-right border-item"},null,-1)}))],OE={key:2,class:"only-border"},EE={key:3,class:"left-title"},NE={class:"title"};j_('.no-title[data-v-af8a0f90],.top-title[data-v-af8a0f90]{background:rgba(7,22,85,.8);border:1px solid rgba(55,85,218,.3);box-sizing:border-box;height:100%;position:relative;width:100%}.no-title[data-v-af8a0f90] .border-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .border-item[data-v-af8a0f90]{border-color:#50fcfc;border-style:solid;height:11px;position:absolute;width:13px;z-index:2}.no-title[data-v-af8a0f90] .top-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-left[data-v-af8a0f90]{border-width:1px 0 0 1px;left:0;top:0}.no-title[data-v-af8a0f90] .top-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-right[data-v-af8a0f90]{border-width:1px 1px 0 0;right:-2px;top:0}.no-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90]{border-width:0 0 1px 1px;bottom:-2px;left:0}.no-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90]{border-width:0 1px 1px 0;bottom:-2px;right:-2px}.no-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcgAAAAsCAMAAADW3dj4AAAAVFBMVEUIKbkAAAAAqv8IL70AovwAnfAAlvEGQsUIOcEAkewGfuQGR8gAg+YIPMMFd+AEadkEXtQAi+sEYtcGTcsFcd4INL8DWdEGUc4EbNsAiOkHVdAIK7o5DngbAAAAHHRSTlNmAAVmCxAVWmEaK1YmXjA8RR5BUjRjSU84IkxfPwrt7wAABlFJREFUeNrMmQtW20AMRWlrJ9R8TCgJ0O5/nxVHIRrNRSgTZwJvJs4C7rnWx1f/FuXug6zXcpmbKn9cng/5e8jO5aHMo8+MvLznyefeZapzW+a1yIb57bJCxg8zhPkZ50eeq6PyK8q2yPX2usqdpYZ7Q7IVWKLdlWhLqhVYItUQqCUgCqZA6UKYJc5BrrIEw7ej/4QoR556uoI0kgTpUBKm5ygXJOkoQYLjowM5H0DKOYDUYxzlGkXhOBUU5RxAyjGQcgqKwlEetZU1TOE1gqOilOgTLC9rpA9J1oGRGchdaKShnE8wcpILIadjjNwUGKnkWCkpGNVIvVQywCi/9yO3A0hJKqRxhJI33kln5HO7kcZSzlFG3sNIU9IbqUmNlMM6KQ8aSYbBe5VC9gdJkj5nNPKBRhrG5Ube1oGQcY00lqMeC2skcUYs9fQCuZVbJFFSj2FsNnKXGzmfYOQkP18jqWRuJJWkkYMqORKiCUmWANgDJLrWhhK5TrrWBiPDpvUlN9JjzJtWi+MY1kgo+amQA3WUv65G5t1OKKRyPKORzsmga30Ka2Ri5OseJY303Y6ct4u21VEMu1aFSCkBsDPI/NXKCrnIyGT+MIypklNoJF+tkZGG09fIVd3qyPG9jglpMJnuNRIYkxrZ3cj5yDnSKUkjo5erF3LjjURGq5Fc7pBlTvBCr1YEPl7KyGxbxxcrlIzmjyKRjxZ0rXpcIKT8UCMV53cYP9Z36RzpnAxXdET5iBrpMc7NRhpHdjty4znSMVxspNFUhh2bnYaNQLJGN4jJii43Mt2f5zXSMCZG0smkad0fubGS5LhXUm+PGukCklzseIw0csEcaUJiikzmyHTX2mYkx0i0rTQyZmhKXmhpnjc7+L6VbHYW1MjFu1YLSMZdq651YOQKRoKi3+wMgZJyu4FsWLYCY2uNpJFWJJfMkdzs1CXSL1vjOZJGYknHQVJhxl1rsRD4NkbWHH0aulYvJDY7MFLTstmZ+BUrN/LtmpU2RcZG5kXSEKqUX7/ZSedIJ2QGctdopKRpsxMtzRuNxKdlGsntHHNRI9nrNH79oJLtRs5yTUnsWi1djFyha02NpJJIIWTM8oLTRzpHuqRGgmObkYWS06lG8utHlVGPyxH78sEYQsjuIHOSbFmh5Ek1kigtMNKy0Mh8jFSEEBJzZCqknyS7g8yX5oGQ5zVyxvQRGgmU5MjNjhwn5MZPkUaSLGkkv34Qoz47G7lN363xFAkfF9RItq3pHJkaic1OViJpJNqdgSsBGhm3rfL/9a/W/92c3UrDQBSEQUK8EJTSCvb9X9RgL8bli7M7dk8NDnmDw8ecn9k8o5Qkcvumz5ECUkQCSZRydI484SAJjzRABl3rkTyylkhaJIk0y1aWMSRy3b1HMnsFj+xldmSNtpbFVyxp7Pgh/X6OFJKTiLzeQSQTyuBxjEjcP0rHD++RYjII0aVz5HDS/DKfyHW1a3PV06foFiK5fSVESvGu1a9aXybMkW/wyHSzw1qyaxWRLKVwZM68Z5LL/vlDMD5w/JBApAvRBfdIEum61vwe2RaxTyTDV+KR2vNIdazWJP+5R7ZN6/ZhjIwTAkDSEenjkB7JfvBqYkDZ1NED6SMC93ukZDYCtmvVkg5I2s2OiPRPBijRGBG56SDjh5CESc4gUsIcOZTZkfxmB12rAZLXDyJJKBeD5BGanV7S/Byt6AyQzfEj3uzkRApI+CS7Vk+kFB8kS/PJkUmeR5fmRJJEqpSzPZJEZkjyGgkg26YVEYH6OfIdQNZ5pCdSKiaSQJq+1RBpm52Gwz9fCHCOfIhHfniPlGKPzInUdq4VcGRB+wnlioCAP2NJFR5JJH3TKiJf8WK5nxAwXasjktVEzJxrgVoik1xrEZF8jDXUtV6C64cqeWKwlXlIAunjkFrs3D4IR6zae2R/ISAVECkBSJNr5WbHB5Q9jwTSeSRXrQ7IJzWtFUR+L6QnEik6IWm61tQj30bukUTSlBLnyD6RQtIQSSxdHW9IFhKZeCQHyeldKyM7d75Y5hmLRArJ/c3OOpRP9pX8QvIQ90i+/ZCqdq30yB+B9JmdK7tWEcmuVTwKSUdke1NemNghkizk7D+YkT3C5z0RZctMkbMjSZQciJJIlLo/vaKW/Rc8IhJAtgsBp08PATOql6UCVwAAAABJRU5ErkJggg==");background-size:cover;display:grid;padding:5px 0;place-content:center;width:100%}.no-title[data-v-af8a0f90] .title-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item[data-v-af8a0f90]{align-items:center;display:flex}.no-title[data-v-af8a0f90] .title[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title[data-v-af8a0f90]{-webkit-text-fill-color:transparent;background:linear-gradient(0deg,#01aaff,#00eaff);-webkit-background-clip:text;color:#d5fdfd;padding:0 17px}.no-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.no-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90]{height:14px;width:58px}.left-title[data-v-af8a0f90],.only-border[data-v-af8a0f90]{border:2px solid #375a8899;border-radius:8px;height:100%;width:100%}.left-title[data-v-af8a0f90]{position:relative}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAADCCAMAAADw6ltxAAACr1BMVEUAAAAhVZMcU4ocU4ocU4kcU4ocU4gbUogcU4kcU4kcU4obU4ocU4kcVIocUoUcUYYcUogcVYwcU4kiXpAcU4ocUokcU4ocVIsbU4ocUYYcUokcU4klXo4cUYYcU4ocVIshVZgbUoccVIocVIwcU4kcVIscVIwdU4gcUYYcU4ocU4kcUokcVIwbUokcUYUbVIodU4scVIscWJEcUogdU4scU4scUogcU4kcUogcVIsdUokcUYccU4kcU4ocVIwcU4sbUogcUogcVIscUokbU4wcUYccU4ccU4ocVI0cUogcU4scVIscU4gcVIsdU4kcVIkbU4kcVYscVIwcVIwcVY0cUogcUogbUIQbUokcUYcdVYocUogcVYwcUoccVY0cVo4cU4kcVo4cU4kcUoYcVYwcUYYcT4McUoYcU4wcVIocUoobUogcVIwcVI0bUogcUYQrVZUeWY8cUogcVIscVIkdUoccVY4cVIwcVo4bVo8cVIwdVYwcVo4cVYsdVYscVY0dVowdWZUArM4Am7MeW5EeV48eVY4bUokeWpccUIUcU4gRWqYErc4dV44cUIYgV40cVIwdVY0eVowXV50cUogRWqYRWaYErc4RWqYgV40QWqYRWqYErc4QWqYeV40Drc8ZWpwErM0Ers0ZW58gYJMdTYQiYpQFrs4eWJAVWJ4iWIwVWZ4nbJsRWqYgWZIErc8Ers4fWo8hXZQSWqYRWaYQWqceU4oQWqUtdaMErc0Erc4iYZgeWJIgZ5gDrc4lZZgcUoUcV5AcU4gcUoccVIkcUIIcVYwcUIQcVo0cU4ocWJEcUYUcWZEdVYscVo4cV48cVIscUYIRWqYcVY4cWI8cVooErc4cU4scV5IcWZMcVYcdXJIeV4wgXJQeWZEcTYEeYJQhZpsgYZYfY5gfbJ4M+CoSAAAAwHRSTlMAD7fQ0qPm1820/KfVr/Dj2vDjCvrJvauW6cObDebAugfgy6j0rJuO7dzZxpWMhbGZ8/DwoIR8/d7Iu/LsxZKQgfXsuZ747tevkYj39/Xx7+nEwrSiivrp39XOv75z+/n48ZR4/fHr3X/eysKxpp6JDPbo5+Gg9/Glne/k/fjRq5k0DgP7mHxvK/iu8O/j3Nh5YFAR/fji39LRvqKAcmpbQzogGffw7qKLVyUf8+3QyMK3mZCJXUg+9vLx4tvPmG19FZIlAAALrUlEQVRYw4ST22pTQRiF01vvxBfoM+QRfAN9ACWP4J2XmqIUqogtPdCDPYFVxLPiWZkahskwe/6QmZ3szSYhhz6I65/pbhOQ5CfsPTBf1qw1K6lMzs5aZc6sbBzMI9rtj4vziPbW/VnEy9dA1veWZiDH223M9qtZMnvrQFY+z0KWt1hmZu7FT4zMzv1lA8hl7gf/0VvYaU/krj4+mJO7qq68mL7H3/Xp3DXV7f5aniQebR5O5b5qXXfw9c8k0ensLl3kXgAhbKtfvD+eJDpvj2JuJmqWbPevGj9fLYl9Rr7vx9ysoaS00g+H4t61c+ToXQdzUg+5mTB9srYorH1SFr+0y0g0DKd+NPLKSWWNufWwLP5wEwgb5rR+MCASzgkjiG6WxddPOqXhmrUkeIjIC1F7OmX4GwxXYUJrgY91pMHdXZsyXK9UBYm+1sZoHKSh1ftxMGmYCWP6QgDBgwnT66Go0nAk8kxjz0CGEY15s3xhGITGZLlhROgMhCBLd55VygEhBIjcCI831EymcYFcVEmwATZKSM2HFbl2NBib66slAXPYYoBEMJoLR6NhofSHa5HwPoSI+5pPwQUXwxHc/QxF1bCjQ1ZPiGWCVWdGPU5+G0WBYIAHBAxHPW+E45W7sQin5XgOpc8JcoSAwsmFC4LzRDc88ZKyzDkQuCkOGY4KBIX0UAuWQMRFH85YJAzDOkqJSBgQhSDoXAJhEDAQejAujLGWtfhrOg+h0SgqYsKZs7NhQU4Rd8aeY2iWtFHDjM+GA0FKWatsv4wlOLQVMQvqMt6qJJFS+egE/cKEshQI9AB9a2UDiFQUmyStQcBHjYiifQIBHSjhPNi0eAUCL9SQFyCaTSm9TxutbuLzTKWMRMJZNkOy1ZK+1/OJbKUqEyAw/L+1GCz5KSV+6cI6nCdAwFVyTqg0bSaKEWvIEsnT1Lk0TZLGKQipkDNNG00JISSxMP6PqbI7lhqGoXAHNEMPPEIVdEQL8EQRxlIce4zBmU0mMyaw/DTCJ3l34MzdO7vxZ0U+ku00NCcdLYYA0XKGGEMnYU0CMdqpY4SwGpEgRlhD+rLvOX21vshjFIiwrU70rhLCVkvO13X0G+VII8QYx7ZtEG+ahnUNIdSocWiUiGclhlpDIAZ5vBQAR0SCSfiLUtfNiA3ixYaWpQYZTiCmVwgQpkIsrhXCh1dXXRcj6iTuTlRCO7Gs/BHCEBgjJlCllIkw5nFYCD8fBN8FF+MkAHwlzrEWeyUB9fr0Rf9lYgQjC8RrVsYMzZ8wGzv+J/iIETyWtrMV6JAD3oFaCRGGKoTZIyXRabecmrqZqCJRI16+E3M90qOpl6YC8LROYqQ/3vKE7MmklKOlFsX0AFQh3t+XsJkjQhiTqqAnodQ23BcIq0w8ULqaElwsn0l8+Ha/P00rpTTryaJOCCTEx58s7kGQSoJg36j4SyCIcYxjIwqcPSu2eYllb2q9RM80DCO83CJAvZTOoGqBCEbQQK5ZS16FnCAbr21dSPWJwEQWbNSskRGk+U9YJxjiTsRKfRTi3/Dqqm624C1pnZynr7YnMCvORLmuaKWXct4+EeMfwVMBqdKa94y02+1mxPYk/KlhdSoo3hgRQBxwn61o/PCEyCdABCM2H1dswKQNQQRcr8uD2LynYrtyTlrhPR0IqRAWgkV4iMz5UKIwiOa/uRZ328qWf/zIuKlR3VOJRaenEPIgPqWzlLP3DhFqvIrngcSkPXGw77knVIQtLFczQiwcAomx7D+/g1jCvF4SxEtRfRCBKJq+f78wqrNQVtA6neyZzRj9++895h/0Ydd5DGmxk+6AcUD3P78+R2vVxKwR6xaiE+1QBNP2z9/28zxvFuTw3Rd1EpzPxGnslCNRTtviRJEA4ad2ewqi5C8Q3OYn1roLEERsONTwoPWW8+3GJZVPzwxNwpUSnynqVyC82Z04e+YZIkUfmztKzXgjmJu4UhjkdrTrUFBURAiPwbeWaAy/bq2H0WS8/nj6l8Y6xlkYhsEwvHv+75L9PwhTjpGRI3AixNAIIXWolI2z8NiFT6W06euosr+4kWxXOWmuM2n6IUTqoqOVnoa599vCxbOYs9pWb0gCoIOmac8OxrKmKkJ2M+IcsRzqrla+fwTTu6s0SJkPloeOdMAUVf6YCWyO88eBMwEI6biAxZgFyQwKoeOl0QghwBBMXWbGmVyNBcij3Zbqz30HreUtJomXw9facuNVRN/p1ddyRrYdcZ9tbnYURxL/PWb0VEQ8IlqLx+3WWuvH+xjbSZTGqAsEFXF9jzEuiPgL+rAwx7oVgmAYho9rBxMTxo4MXQmDA10ccBGhE6P+JuUCSBNOYg+bC/fh2Ivsh/ENwm94wvdxLD0mVh/xvff9sq6vZXk1j883VlsgGKrcX7HlCm+wu/VYyTPmiTGtSyV5Rc3jixHlTNrn8zCaSBPLuhSttYFIVUwoT0RTjBDakKGMEWKCSM3jB6BmjCkDGTOYocS/02iQOaX0DjFPM+J8qAHoMp8Rf3y+BW5FFQiKV4mFYxYxJgEh7nBnueICH1cKh4B4Qvw+axBWqbqsDUphYRTbdomu60CskiqEtpUuhIAJm7Td1lmIHWR3TsoWSSexSRkksvvmXBXIuXEc249/KsVet1kYCsOWgjADEhVSBiQzkCn2+i1G4lsYwhjahR91DjJTRJgaKXfQZs5N9Br7noOq0Ec+531tP/vDEYH6D+14OH58lAclXFmWRbFnoPA6YApAPzBYaE6nU7M/EVAaLBYwSuiyrIukgZBgNxQoTVLUTAHjcrnUy+OaacL3hFDCwJjSJknTJp2WkqR+PU2+X/sYJSrfv/jpgk9lovIERuxfr6xEEUoEaxFiHAyMKIqvccR8fi4lXqFEiJc5+2Nk8+/3TIaXrZgzuJQzWovdzjBaZzM7ZJYSz21rMY62w1OrxEZrOwyDBUg62lqnnbXaOactG8PX1/BCDGiomsBmlAiMoU8shrvRuGLQjBI7U1GrjHwxUsr73UgDcMNICWOsKlkByVT3O13lEyW2IajCsJMylF2H3nUST9gdBkZOxoLXAYRHh+jQzuK/t+b2bA8OGK+324aheHzT9vj6QAVn8cYZ9H2P6B/9JtjgBHgI0NhAAz2BXMPWWbzvFgJe4zhycud3GPm4y/N8t92O4xYg6fxwMfa8DcJgELYiMUSIyRKWiOQMlrMwdGGhElMYWPnYyNQxhSoLUjIxdcnP6S/sncFJm0f2+96dT86dzM/ni9jnC4jSlGlKActCnuZoFCQtUgLhQMJJLmJTkyRJE7KKoq4LOoBG09R1A/tJsBKMBgEOdiNFe2oa3WiN577H0ZDagwc2iNa9R6N0inUca140BhZi0sceBh4pqj15/4f3fPGN419oXbY01OaF47La1Uoxw8BtAQY3YtwWGrVWCrPdttsX2nZZgI23B8PgxWqJFEG0MERR5SXFPaocbNjIIrGW8Z3aVhWUtb5hrVV2HXcupWYFXDTPUpQIZjMrY5RRYagUlgchG6EZR2NMyAsoiDPQUuzCcRydczNwarz6bEQj8FyfijjbXaX47oKOJwu6bApIhgdHMEFI8ZNNmWea3OTqbjeKMsMf5ZMvT3kDJUUpxcfu4Nk9OLABD/XbxxgiVwhDUTRdQ0xEBQ4DTAxIwAaPxIDBpUsIgp9K+PXotgv46+tN4DUiM5zMTR7h5HKmpHF/pZROke4WU3jBWSqFPDHGCCP9p1nX1QgpMHPWCZEJR+YOxM+rH0aEs68jy7IRwT7WNOK84Iyx5buu6wZRqg4oB3bOwNvRAJUqdxAKpLhKmGcp04s8bZBA7gxfs+f/9DRorXMYxNL2XddjYT/RoO9hEO975/FKURTaGx2MwFKVJ0WgJINqSCGLjMDnVpZzSxQIGaHmZ/a0pzfPkYGaoSJgPmBEfDzJeABvxDW2mqYKa9s2MqKa6YKMmF87DcOAkBHDnwO4M1BzQLB3BuMva+8N1Oww7kleyR9E49oLoDfH+QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-weight:500;left:-33px;min-height:194px;padding-bottom:31px;padding-top:33px;position:absolute;text-align:center;top:-14px;width:33px}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90] span[data-v-af8a0f90]{-ms-writing-mode:tb-lr;writing-mode:vertical-lr}'),mE.render=function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"ecan-border",style:e.normalizeStyle(t.style),onClick:n[0]||(n[0]=function(){return t.click&&t.click.apply(t,arguments)})},["top-title"===t.mode?(e.openBlock(),e.createElementBlock("div",xE,[e.createElementVNode("div",_E,[e.createElementVNode("div",bE,[wE,e.createElementVNode("div",SE,e.toDisplayString(t.title),1),kE])]),CE,ME,TE,AE])):e.createCommentVNode("v-if",!0),"no-title"===t.mode?(e.openBlock(),e.createElementBlock("div",IE,DE)):e.createCommentVNode("v-if",!0),"only-border"===t.mode?(e.openBlock(),e.createElementBlock("div",OE)):e.createCommentVNode("v-if",!0),"left-title"===t.mode?(e.openBlock(),e.createElementBlock("div",EE,[e.createElementVNode("div",NE,[e.createElementVNode("span",null,e.toDisplayString(t.title),1)])])):e.createCommentVNode("v-if",!0)],4)},mE.__scopeId="data-v-af8a0f90",mE.__file="src/container/border/Border.vue";var LE=sw(mE),PE={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!1,position:"default"},RE=dw(PE),BE=["showModal"],VE=e.defineComponent({name:"EcanModal",components:{AModal:r.Modal},props:Object.assign({},RE),setup:function(t){var n=e.computed((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[t.position]}})),r=t.width,i=t.height,o=t.originalWidth,a=t.originalHeight,s=e.computed((function(){return parseFloat(r)/parseFloat(o)})),l=e.computed((function(){return parseFloat(i)/parseFloat(a)})),u=e.computed((function(){return"".concat(100*e.unref(s),"%")})),c=e.computed((function(){return document.body.offsetWidth})),p=e.computed((function(){return document.body.offsetHeight})),h=e.computed((function(){return e.unref(c)*e.unref(s)})),d=e.computed((function(){return e.unref(p)*e.unref(l)})),f=e.computed((function(){return{width:"".concat(e.unref(h),"px"),height:"".concat(e.unref(d),"px")}})),g=mw(t),v=e.computed((function(){return Object.assign(Object.assign({},e.unref(g)),{backgroundImage:Fw(t.backgroundImage,!0),transform:"scale(".concat(e.unref(h)/parseFloat(r),",").concat(e.unref(d)/parseFloat(i),")")})})),m=e.computed((function(){return e.unref(s)>=1})),y=e.computed((function(){return t.fullModal})),x=e.computed((function(){var t="ecan-modal";return e.unref(m)&&(t+=" ecan-full-width-modal"),e.unref(y)&&(t+=" ecan-full-modal"),t})),_=e.ref(!1),b=e.ref(),w=e.inject(bw,{touchRequest:function(){}}).touchRequest,S=function(){_.value=!0,e.nextTick((function(){w()}))},k=function(){_.value=!1};return Cw(t,{showModal:S}),{contain:b,containStyle:f,contentStyle:v,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:n,modalWith:u,isFullModal:y,style:g,visible:_,showModal:S,onOk:function(){k()},onCancel:function(){k()},isFullWidth:m,wrapClassName:x}}});j_(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");j_(".ecan-modal .ant-modal-body{padding:0}.ecan-modal .ant-modal-header{background:none;border-bottom:none;padding:0}.ecan-full-width-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-width-modal .ant-modal-content{display:flex;flex-direction:column}.ecan-full-width-modal .ant-modal-body{flex:1}.ecan-full-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-modal .ant-modal-content{display:flex;flex-direction:column;height:100vh}.ecan-full-modal .ant-modal-body{flex:1}[datav-theme=darkBlue] .ecan-modal .anticon-close>svg>path{fill:#fff}"),VE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" centered + style 中的 verticalAlign 调整弹窗位置 "),e.createVNode(s,{getContainer:t.getContainer,wrapClassName:t.wrapClassName,centered:"",visible:t.visible,footer:null,width:t.isFullModal||t.isFullWidth?"100%":t.modalWith,destroyOnClose:t.destroyOnClose,style:e.normalizeStyle(t.modalStyle),bodyStyle:{background:"red"},onOk:t.onOk,onCancel:t.onCancel},e.createSlots({default:e.withCtx((function(){return[e.createElementVNode("div",{class:"contain",ref:"contain",style:e.normalizeStyle(t.containStyle)},[e.createElementVNode("div",{class:"content",style:e.normalizeStyle(t.contentStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.componentList,(function(t,n){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),e.mergeProps({key:t.id+n},t),null,16)})),128))],4)],4)]})),_:2},[t.title?{name:"title",fn:e.withCtx((function(){return[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:t.titleFontSize,color:t.titleColor,backgroundColor:t.backgroundColor,padding:"16px 24px"})},e.toDisplayString(t.title),5)]}))}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},VE.__scopeId="data-v-4efa8b94",VE.__file="src/container/modal/Modal.vue";var zE=sw(VE),FE=Object.assign(Object.assign({},hw),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),GE=dw(FE),UE=e.defineComponent({name:"EcanImage",props:Object.assign({},GE),setup:function(t){var n=mw(t),r=e.computed((function(){return Fw(t.imgUrl)})),i=e.inject(xw,{pageMode:"normal"}).pageMode;return{style:n,myImgUrl:r,onClick:function(){var n=t.linkPage,r=""!==n?function(t,e){var n="/preview?pageId=".concat(e),r="".concat(Sw).concat(e);return"preview"!==t?r:n}(e.unref(i),n):"",o=t.linkUrl,a=""!==o?o:r;""!==a&&window.open(a,t.linkMethod)}}}}),WE=["src"];j_(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),UE.render=function(t,n,r,i,o,a){return""!==t.myImgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,style:e.normalizeStyle(t.style),src:t.myImgUrl,onClick:n[0]||(n[0]=function(){return t.onClick&&t.onClick.apply(t,arguments)})},null,12,WE)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"image-placeholder",style:e.normalizeStyle(t.style)}," 请上传图片 ",4))},UE.__scopeId="data-v-5a006553",UE.__file="src/media/image/Image.vue";var jE=sw(UE),HE=Object.assign(Object.assign({},hw),{zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,size:"default",isUseSeq:!1,columnsFixedNum:0,scrollX:0,paginationShow:!0,simple:!1,headerCellBackgroundColor:"",cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:void 0}),YE=dw(HE),qE=["click","refreshData"],XE=e.defineComponent({name:"EcanTable",components:{Skeleton:ew,ATable:r.Table,ATableSummary:r.TableSummary,ATableSummaryRow:r.TableSummaryRow,ATableSummaryCell:r.TableSummaryCell},props:Object.assign({},YE),setup:function(t){var n=this,r=mw(t),i=e.computed((function(){if(t.paginationShow)switch(t.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(t.size){case"small":return 40;case"middle":return 47;default:return 55}})),o=e.computed((function(){return t.scrollX})),a=e.computed((function(){return parseFloat(t.height)-e.unref(i)})),s=e.computed((function(){var e=[];t.isUseSeq&&e.push({title:"序号",dataIndex:"SEQ"});for(var n=(e=e.concat(t.columns)).length,r=t.columnsFixedNum,i=function(n){var i=e[n];i.fixed=n<r&&"left";var o=i.headerCellAlign,a=void 0===o?"center":o,s=i.headerCellColor,l=i.cellAlign,u=void 0===l?"center":l,c=i.cellColor;i.customHeaderCell=function(){return{style:{textAlign:a,color:s,backgroundColor:t.headerCellBackgroundColor,borderBottomColor:t.borderColor}}},i.customCell=function(){return{style:{textAlign:u,color:c,backgroundColor:t.cellBackgroundColor,borderBottomColor:t.borderColor}}}},o=0;o<n;o++)i(o);return e})),l=e.ref(0),u=e.ref(1),c=e.computed((function(){return t.paginationPageSize})),p=e.ref(t.data);e.watch((function(){return[t.data,t.dataType]}),(function(t){var e=G_(t,2),n=e[0];"static"===e[1]&&(p.value=n)}));var h=Rw(t),d=e.ref(!1),f=e.computed((function(){var n=t.simple,r=[t.paginationPosition];return t.paginationShow&&{simple:n,position:r,total:e.unref(l),current:e.unref(u),pageSize:e.unref(c)}})),g=function(t){return 1==+t?"是":0==+t?"否":t},v=Mw(t.events),m=e.inject(xw,{pageMode:"normal"}).pageMode,y=e.inject(_w,{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),x=y.getGlobalModel,_=y.setGlobalModel,b=e.ref([]),w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];b.value=t.map((function(t){return{title:t,dataIndex:t,key:t}})),p.value=e},S=Ww(t),k=function(){return C(n,void 0,void 0,pw.mark((function e(){var n,r,i,o,a;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("indicator"===t.dataType){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,d.value=!0,e.next=6,S();case 6:a=e.sent,w(null===(r=null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.columns,null===(o=null===(i=null==a?void 0:a.data)||void 0===i?void 0:i.data)||void 0===o?void 0:o.rows),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.error(e.t0);case 13:return e.prev=13,d.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},M=function(){"design"!==e.unref(m)&&(k(),C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,s,f,g;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===t.dataType){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,d.value=!0,n.next=6,h({pageNum:e.unref(u),pageSize:e.unref(c)});case 6:i=n.sent,o=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},a=o.rows,s=void 0===a?[]:a,f=o.total,g=void 0===f?0:f,l.value=g,p.value=s,n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),console.error(n.t0);case 15:return n.prev=15,d.value=!1,n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])}))))};Cw(t,{refreshData:function(){M()}});var T=e.computed((function(){for(var n=t.columns,r=t.isUseSeq?[{total:"小计"}]:[],i=0,o=0;o<n.length;o++){var a=n[o];a.isCalcTotal?(r.push(Object.assign(Object.assign({},a),{index:o,total:0})),i++):r.push(Object.assign({},a))}if(0===i)return[];for(var s=(e.unref(u)-1)*e.unref(c),l=s+e.unref(c),h=e.unref(p).slice(s,l),d=0;d<h.length;d++)for(var f=h[d],g=0;g<r.length;g++){var v=r[g],m=v.dataIndex,y=v.total,x=+f[m];Number.isNaN(x)||null==y||(v.total=x+y)}return r}));return(0,e.inject(bw,{setRequest:function(t,e){}}).setRequest)(M,t.requestSort),{x:o,y:a,myColumns:s,style:r,customRow:function(e){return{onClick:v("click",(function(){var n=t.id,r=x(n);_(n,Object.assign(Object.assign({},r),{RECORD:e}))}))}},pagination:f,formatFn:function(t,e){return null==e||""===e?t:{money:Nw,percentage:Lw,contrast:Lw,boolean:g}[e](t)||""},contrastClass:function(t,e){var n=parseFloat(t+"");if("contrast"!==e)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},tableChange:function(t,e,n){var r=t.current;u.value=r,k()},dataColumns:b,dataSource:p,summaryList:T,loading:d}}});j_('.table[data-v-21849ce3]{height:100%;width:100%}.goUp[data-v-21849ce3]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-21849ce3]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}');j_(".ecan-table ::-webkit-scrollbar{height:6px;width:6px}.ecan-table ::-webkit-scrollbar-thumb{background-color:#c8c9ca!important;border-radius:3px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.ecan-table ::-webkit-scrollbar-track{background-color:#fff}.ecan-table .ant-table-cell-scrollbar{box-shadow:0 1px 0 1px transparent}.ecan-table .ant-table{background:#fff;color:rgba(0,0,0,.65)}.ecan-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:rgba(0,0,0,.85)}.ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0}.ecan-table .ant-table-bordered .ant-table-container{border:1px solid #f0f0f0!important}.ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #f0f0f0!important}.ecan-table .ant-pagination-item-link{border:1px solid #d9d9d9!important}.ecan-table .anticon{color:rgba(0,0,0,.65)!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-table .ant-table{background:#071655;color:#e8e8e8}[datav-theme=darkBlue] .ecan-table .ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table,[datav-theme=darkBlue] .ecan-table .ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{border-top:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-thead>tr>th{background:#17338c;border-bottom:1px solid #3e8ee3;color:#cdd0f7}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #3e8ee3}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-container{border:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item-link{background:#17338c!important;border:1px solid #243c8e!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item{background:#17338c!important}[datav-theme=darkBlue] .ecan-table .anticon{color:hsla(0,0%,100%,.65)!important}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td{background:#225b98}"),XE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("a-table-summary-cell"),l=e.resolveComponent("a-table-summary-row"),u=e.resolveComponent("a-table-summary"),c=e.resolveComponent("a-table"),p=e.resolveComponent("skeleton");return e.openBlock(),e.createElementBlock("div",{class:"ecan-table",style:e.normalizeStyle(t.style)},[e.createVNode(p,{loading:t.loading},{default:e.withCtx((function(){return[e.createVNode(c,{class:"table",columns:t.dataColumns.length>0?t.dataColumns:t.myColumns,"data-source":t.dataSource,bordered:t.bordered,size:t.size,customRow:t.customRow,scroll:{x:t.x,y:t.y},pagination:t.pagination,onChange:t.tableChange},{bodyCell:e.withCtx((function(n){var r=n.column,i=n.index,o=n.text;return[e.createCommentVNode(" 序列配置 "),"SEQ"===r.dataIndex?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i+1),1)],2112)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.contrastClass(o,r.format)])},e.toDisplayString((null!=r.format||""!==r.format)&&t.formatFn(o,r.format)),3))]})),summary:e.withCtx((function(){return[t.summaryList.length>0?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx((function(){return[e.createVNode(l,null,{default:e.withCtx((function(){return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.summaryList,(function(n,r){return e.openBlock(),e.createBlock(s,{key:n.dataIndex+r,index:n.index,style:e.normalizeStyle({backgroundColor:t.cellBackgroundColor,textAlign:n.cellAlign||"center",color:n.cellColor,borderBottomColor:t.borderColor})},{default:e.withCtx((function(){return[e.createElementVNode("div",{class:e.normalizeClass([t.contrastClass(n.total,n.format)])},e.toDisplayString((null!=n.format||""!==n.format)&&t.formatFn(n.total,n.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):e.createCommentVNode("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},XE.__scopeId="data-v-21849ce3",XE.__file="src/table/table/Table.vue";var ZE=sw(XE),JE=Object.assign(Object.assign({},hw),{mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"}),KE=dw(JE);Yx([_k,function(t){Yx(WA),t.registerChartView(_A),t.registerSeriesModel(wA),t.registerLayout(kA),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,SA),ov("map",t.registerAction)},pT,function(t){Yx(OO),Yx(VO)},gD]);var QE=e.defineComponent({name:"EcanMap",components:{Echarts:q_},props:Object.assign({},KE),setup:function(t){var n=this,r=mw(t,["backgroundImage"]),i=e.ref(),o=e.computed((function(){return Fw(t.geoBackgroundImage)})),a=e.ref(),s=e.computed((function(){return Fw(t.backgroundImage)})),l=e.computed((function(){return t.backgroundImage?{image:e.unref(a),repeat:"no-repeat",width:"auto"}:""})),u=e.computed((function(){return t.geoBackgroundImage?{image:e.unref(i),repeat:t.geoBackgroundImageRepeat}:t.geoItemStyleAreaColor})),c=e.computed((function(){var e=t.symbolImage;return t.symbolImage?"image://"+Fw(e):"circle"})),p=e.computed((function(){var e;return null===(e=t.geoCenter)||void 0===e?void 0:e.split(",")})),h=e.computed((function(){return{backgroundColor:e.unref(l),tooltip:{show:!0},geo:{zoom:t.geoZoom,roam:t.geoRoam,center:e.unref(p),map:"map",tooltip:{show:!1},label:{show:t.geoLabelShow,color:t.geoLabelColor,fontSize:t.geoLabelFontSize},itemStyle:{areaColor:e.unref(u),borderColor:t.geoItemStyleBorderColor,borderWidth:t.geoItemStyleBorderWidth,shadowColor:t.geoItemStyleShadowColor,shadowBlur:t.geoItemStyleShadowBlur,shadowOffsetX:t.geoItemStyleShadowOffsetX,shadowOffsetY:t.geoItemStyleShadowOffsetY},emphasis:{disabled:t.geoEmphasisDisabled,label:{color:t.geoEmphasisLabelColor},itemStyle:{areaColor:t.geoEmphasisItemStyleAreaColor,borderColor:t.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:t.itemStyleColor},symbol:e.unref(c),symbolSize:[t.symbolWidth,t.symbolHeight],label:{show:t.labelShow,fontSize:t.labelFontSize,formatter:t.labelFormatter,color:t.labelColor},tooltip:{show:t.tooltipShow,formatter:t.tooltipFormatter,textStyle:{color:t.tooltipTextStyleColor}},data:t.data}]}})),d=e.ref(!1);return e.watch((function(){return t.mapJson}),(function(){C(n,void 0,void 0,pw.mark((function e(){var n,r;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=t.mapJson)&&null!=n.path){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Uw(ww+n.path);case 5:Km("map",(null==(r=e.sent)?void 0:r.data)||{}),d.value=!0;case 8:case"end":return e.stop()}}),e)})))}),{immediate:!0}),{option:h,style:r,isLoadedData:d,myBackgroundImage:s,backgroundImageRef:a,geoBackgroundImageRef:i,myGeoBackgroundImage:o}}}),$E=["src"],tN=["src"];j_(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),QE.render=function(t,n,r,i,o,a){var s=e.resolveComponent("echarts");return e.openBlock(),e.createElementBlock("div",{class:"ecan-map",style:e.normalizeStyle(t.style)},[t.isLoadedData?(e.openBlock(),e.createBlock(s,{key:0,option:t.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createElementVNode("img",{ref:"geoBackgroundImageRef",src:t.myGeoBackgroundImage},null,8,$E),[[e.vShow,!1]]),e.withDirectives(e.createElementVNode("img",{ref:"backgroundImageRef",src:t.myBackgroundImage},null,8,tN),[[e.vShow,!1]])],4)},QE.__scopeId="data-v-7865460d",QE.__file="src/map/map/Map.vue";var eN=sw(QE),nN=Object.freeze({__proto__:null,pageConfig:fw,pageConfigComponentProps:gw,EcanPageConfig:qw,providerConfig:Xw,providerConfigComponentProps:Zw,EcanProviderConfig:Qw,textProps:$w,textComponentProps:tS,textEvents:eS,EcanText:iS,EcanScrollText:sS,timeDisplayProps:lS,timeDisplayComponentProps:uS,EcanTimeDisplay:pS,listProps:hS,listComponentProps:dS,listEvents:fS,EcanList:MS,proportionProps:TS,proportionComponentProps:AS,proportionEvents:IS,EcanProportion:OS,inputProps:ES,inputComponentProps:NS,EcanInput:PS,datePickerProps:RS,datePickerComponentProps:BS,datePickerEvents:VS,EcanDatePicker:FS,selectProps:GS,selectComponentProps:US,selectEvents:WS,EcanSelect:HS,rangePickerProps:YS,rangePickerComponentProps:qS,rangePickerEvents:XS,EcanRangePicker:JS,buttonProps:KS,buttonComponentProps:QS,buttonEvents:$S,EcanButton:nk,tabsProps:rk,tabsComponentProps:ik,tabsEvents:ok,EcanTabs:lk,pieProps:uk,pieComponentProps:ck,pieEvents:pk,EcanPie:WO,lineProps:jO,lineComponentProps:HO,lineEvents:YO,EcanLine:XO,barProps:ZO,barComponentProps:JO,barEvents:KO,EcanBar:$O,scatterProps:tE,scatterComponentProps:eE,scatterEvents:nE,EcanScatter:iE,customGraphProps:oE,customGraphComponentProps:aE,EcanCustomGraph:lE,comboGraphProps:uE,comboGraphComponentProps:cE,comboGraphEvents:pE,EcanComboGraph:dE,borderProps:fE,borderComponentProps:gE,borderEvents:vE,EcanBorder:LE,modalProps:PE,modalComponentProps:RE,modalEvents:BE,EcanModal:zE,imageProps:FE,imageComponentProps:GE,EcanImage:jE,tableProps:HE,tableComponentProps:YE,tableEvents:qE,EcanTable:ZE,mapProps:JE,mapComponentProps:KE,EcanMap:eN}),rN={install:function(t){Object.keys(nN).forEach((function(e){var n=nN[e];n.install&&t.use(n)}))}};t.EcanBar=$O,t.EcanBorder=LE,t.EcanButton=nk,t.EcanComboGraph=dE,t.EcanCustomGraph=lE,t.EcanDatePicker=FS,t.EcanImage=jE,t.EcanInput=PS,t.EcanLine=XO,t.EcanList=MS,t.EcanMap=eN,t.EcanModal=zE,t.EcanPageConfig=qw,t.EcanPie=WO,t.EcanProportion=OS,t.EcanProviderConfig=Qw,t.EcanRangePicker=JS,t.EcanScatter=iE,t.EcanScrollText=sS,t.EcanSelect=HS,t.EcanTable=ZE,t.EcanTabs=lk,t.EcanText=iS,t.EcanTimeDisplay=pS,t.barComponentProps=JO,t.barEvents=KO,t.barProps=ZO,t.borderComponentProps=gE,t.borderEvents=vE,t.borderProps=fE,t.buttonComponentProps=QS,t.buttonEvents=$S,t.buttonProps=KS,t.comboGraphComponentProps=cE,t.comboGraphEvents=pE,t.comboGraphProps=uE,t.customGraphComponentProps=aE,t.customGraphProps=oE,t.datePickerComponentProps=BS,t.datePickerEvents=VS,t.datePickerProps=RS,t.default=rN,t.imageComponentProps=GE,t.imageProps=FE,t.inputComponentProps=NS,t.inputProps=ES,t.lineComponentProps=HO,t.lineEvents=YO,t.lineProps=jO,t.listComponentProps=dS,t.listEvents=fS,t.listProps=hS,t.mapComponentProps=KE,t.mapProps=JE,t.modalComponentProps=RE,t.modalEvents=BE,t.modalProps=PE,t.pageConfig=fw,t.pageConfigComponentProps=gw,t.pieComponentProps=ck,t.pieEvents=pk,t.pieProps=uk,t.proportionComponentProps=AS,t.proportionEvents=IS,t.proportionProps=TS,t.providerConfig=Xw,t.providerConfigComponentProps=Zw,t.rangePickerComponentProps=qS,t.rangePickerEvents=XS,t.rangePickerProps=YS,t.scatterComponentProps=eE,t.scatterEvents=nE,t.scatterProps=tE,t.selectComponentProps=US,t.selectEvents=WS,t.selectProps=GS,t.tableComponentProps=YE,t.tableEvents=qE,t.tableProps=HE,t.tabsComponentProps=ik,t.tabsEvents=ok,t.tabsProps=rk,t.textComponentProps=tS,t.textEvents=eS,t.textProps=$w,t.timeDisplayComponentProps=uS,t.timeDisplayProps=lS,Object.defineProperty(t,"__esModule",{value:!0})}));