@ecan-bi/datav 1.0.34 → 1.0.35

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.esm.js CHANGED
@@ -7,4 +7,4 @@ import{watch as t,inject as e,computed as n,unref as i,watchEffect as r,defineCo
7
7
  *
8
8
  * LICENSE
9
9
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
10
- */var Qr=function(){function t(t,e,n){var i=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 r=new bn,o=n.renderer||"canvas";if(Jr[o]||(o=Wt(Jr)[0]),"production"!==process.env.NODE_ENV&&!Jr[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Jr[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l=pt.node||pt.worker||s?null:new $i(a.getViewportRoot(),a.root);this.handler=new cn(r,a,l,a.root),this.animation=new Ri({stage:{update:s?null:function(){return i._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 vi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=vi(e[r].color,1);return(n/=i)<.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=Li();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Li();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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 Zr&&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 Kr[t]},t}();function $r(t,e){var n=new Qr(It(),t,e);return Kr[n.id]=n,n}function to(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function eo(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 Xt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function no(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function io(t){return t.sort((function(t,e){return t-e})),t}function ro(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 oo(t)}function oo(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function ao(t,e){var n=Math.max(ro(t),ro(e)),i=t+e;return n>20?i:no(i,n)}function so(t){var e=2*Math.PI;return(t%e+e)%e}function lo(t){return t>-1e-4&&t<1e-4}var uo=/^(?:(\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 co(t){if(t instanceof Date)return t;if(Xt(t)){var e=uo.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 ho(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 po(t,e){var n=ho(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function fo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}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 go(t){var e=parseFloat(t);return e==t&&(0!==e||!Xt(t)||t.indexOf("x")<=0)?e:NaN}function vo(t){return!isNaN(go(t))}function yo(){return Math.round(9*Math.random())}function mo(t,e){return 0===e?t:mo(e,t%e)}function _o(t,e){return null==t?e:null==e?t:t*e/mo(t,e)}var xo={},bo="undefined"!=typeof console&&console.warn&&console.log;function wo(t,e,n){if(bo){if(n){if(xo[e])return;xo[e]=!0}console[t]("[ECharts] "+e)}}function So(t,e){wo("warn",t,e)}function Co(t,e){wo("error",t,e)}function Mo(t){"production"!==process.env.NODE_ENV&&wo("warn","DEPRECATED: "+t,!0)}function ko(t,e,n){"production"!==process.env.NODE_ENV&&Mo((n?"["+n+"]":"")+t+" is deprecated, use "+e+" instead.")}function To(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if("production"!==process.env.NODE_ENV){var i=function(t){return void 0===t?"undefined":t===1/0?"Infinity":t===-1/0?"-Infinity":ie(t)?"NaN":t instanceof Date?"Date("+t.toISOString()+")":qt(t)?"function () { ... }":ne(t)?t+"":null};n=Ft(t,(function(t){if(Xt(t))return t;var e=i(t);if(null!=e)return e;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(t,(function(t,e){var n=i(e);return null==n?e:n}))}catch(t){return"?"}})).join(" ")}return n}function Ao(t){throw new Error(t)}function Io(t,e,n){return(e-t)*n+t}function Do(t){return t instanceof Array?t:null==t?[]:[t]}function Oo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Lo=["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 Eo(t){return!Kt(t)||Yt(t)||t instanceof Date?t:t.value}function No(t){return Kt(t)&&!(t instanceof Array)}function Po(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=fe();zt(e,(function(t,n){Kt(t)?"production"!==process.env.NODE_ENV&&(null==t.id||Fo(t.id)||zo(t.id),null==t.name||Fo(t.name)||zo(t.name)):e[n]=null}));var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Uo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){zt(i,(function(r,o){if(r&&null!=r.id){var a=Bo(r.id),s=n.get(a);if(null!=s){var l=t[s];ue(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){zt(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Uo(n)&&!Uo(o)&&Ro("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){zt(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Uo(i.existing)||i.existing&&null!=e.id&&!Ro("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){zt(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=fe(),zt(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),zt(s,(function(t){var e=t.newOption;ue(!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={})})),zt(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(Kt(i)){if(r.name=null!=i.name?Bo(i.name):n?n.name:"series\0"+e,n)r.id=Bo(n.id);else if(null!=i.id)r.id=Bo(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function Ro(t,e,n){var i=Vo(e[t],null),r=Vo(n[t],null);return null!=i&&null!=r&&i===r}function Bo(t){if("production"!==process.env.NODE_ENV&&null==t)throw new Error;return Vo(t,"")}function Vo(t,e){return null==t?e:Xt(t)?t:Jt(t)||Zt(t)?t+"":e}function zo(t){"production"!==process.env.NODE_ENV&&So("`"+t+"` is invalid id or name. Must be a string or number.")}function Fo(t){return Zt(t)||vo(t)}function Go(t){var e=t.name;return!(!e||!e.indexOf("series\0"))}function Uo(t){return t&&null!=t.id&&0===Bo(t.id).indexOf("\0_ec_\0")}function Wo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Yt(e.dataIndex)?Ft(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Yt(e.name)?Ft(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Ho(){var t="__ec_inner_"+jo++;return function(e){return e[t]||(e[t]={})}}var jo=yo();function Yo(t,e,n){var i=qo(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=Zo(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function qo(t,e){var n;if(Xt(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=fe(),o={},a=!1;return zt(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Rt(e.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Xo={useDefault:!0,enableAll:!1,enableNone:!1};function Zo(t,e,n,i){i=i||Xo;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Jo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var Ko="___EC__COMPONENT__CONTAINER___";function Qo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function $o(t,e){t.$constructor=t,t.extend=function(t){"production"!==process.env.NODE_ENV&&zt(e,(function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")}));var n,i,r=this;return qt(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?n=function(t){function e(){return t.apply(this,arguments)||this}return lt(e,t),e}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(n,this)),Nt(n.prototype,t),n.___EC__EXTENDED_CLASS___=!0,n.extend=this.extend,n.superCall=na,n.superApply=ia,n.superClass=r,n}}function ta(t,e){t.extend=e.extend}var ea=Math.round(10*Math.random());function na(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ia(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ra(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Qo(i);if(r.sub){if(r.sub!==Ko){var o=function(t){var n=e[t.main];n&&n[Ko]||((n=e[t.main]={})[Ko]=!0);return n}(r);o[r.sub]=t}}else"production"!==process.env.NODE_ENV&&e[r.main]&&console.warn(r.main+" exists."),e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ko]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Qo(t),i=[],r=e[n.main];return r&&r[Ko]?zt(r,(function(t,e){e!==Ko&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Qo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return zt(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Qo(t),i=e[n.main];return i&&i[Ko]}}function oa(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,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&Rt(i,s)>=0||r&&Rt(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var aa=oa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),sa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return aa(this,t,e)},t}(),la=new Kn(50);function ua(t){if("string"==typeof t){var e=la.get(t);return e&&e.image}return t}function ca(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=la.get(t),a={hostEl:n,cb:i,cbPayload:r};if(o)!pa(e=o.image)&&o.pending.push(a);else{var s=yt.loadImage(t,ha,ha);s.__zrImageSrc=t,la.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function ha(){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],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function pa(t){return t&&t.width&&t.height}var da=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function fa(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=ga(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=va(o[a],r);return o.join("\n")}function ga(t,e,n,i){var r=Nt({},i=i||{});r.font=e,n=oe(n,"..."),r.maxIterations=oe(i.maxIterations,2);var o=r.minChar=oe(i.minChar,0);r.cnCharWidth=Dr("国",e);var a=r.ascCharWidth=Dr("a",e);r.placeholder=oe(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Dr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function va(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Dr(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?ya(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Dr(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function ya(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var ma=function(){},_a=function(t){this.tokens=[],t&&(this.tokens=t)},xa=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function ba(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Rr(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=Ca(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new ma;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[v]:Dr(y,c),v||h)u.push(new _a([m]));else{var _=(u[u.length-1]||(u[0]=new _a)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}var wa=Gt(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Sa(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&e<=383}(t)||!!wa[t]}function Ca(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var d=Dr(p,e),f=!i&&!Sa(p);(o.length?c+d>n:r+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}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+=r),{accumWidth:c,lines:o,linesWidths:a}}var Ma="__zr_style_"+Math.round(10*Math.random()),ka={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ka[Ma]=!0;var Aa=["z","z2","invisible"],Ia=["invisible"],Da=function(t){function e(e){return t.call(this,e)||this}var n;return lt(e,t),e.prototype._init=function(e){for(var n=Wt(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}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,i){var r=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 La.width=e,La.height=n,!Oa.intersect(La)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&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(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ar(0,0,0,0)),e?Ar.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));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 Ar(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:Nt(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 ge(ka,t)},e.prototype.useStyle=function(t){t[Ma]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Ma]},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,Aa)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Wt(u),h=0;h<c.length;h++){(d=c[h])in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Wt(s);for(h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Ia:Aa;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Nt(t,e),t},e.prototype.getAnimationStyleProps=function(){return Ta},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}(qr),Oa=new Ar(0,0,0,0),La=new Ar(0,0,0,0);var Ea=Da,Na=Math.min,Pa=Math.max,Ra=Math.sin,Ba=Math.cos,Va=2*Math.PI,za=xe(),Fa=xe(),Ga=xe();function Ua(t,e,n,i,r,o){r[0]=Na(t,n),r[1]=Na(e,i),o[0]=Pa(t,n),o[1]=Pa(e,i)}var Wa=[],Ha=[];function ja(t,e,n,i,r,o,a,s,l,u){var c=Bn,h=Nn,p=c(t,n,r,a,Wa);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(t,n,r,a,Wa[d]);l[0]=Na(f,l[0]),u[0]=Pa(f,u[0])}p=c(e,i,o,s,Ha);for(d=0;d<p;d++){var g=h(e,i,o,s,Ha[d]);l[1]=Na(g,l[1]),u[1]=Pa(g,u[1])}l[0]=Na(t,l[0]),u[0]=Pa(t,u[0]),l[0]=Na(a,l[0]),u[0]=Pa(a,u[0]),l[1]=Na(e,l[1]),u[1]=Pa(e,u[1]),l[1]=Na(s,l[1]),u[1]=Pa(s,u[1])}function Ya(t,e,n,i,r,o,a,s){var l=Un,u=Fn,c=Pa(Na(l(t,n,r),1),0),h=Pa(Na(l(e,i,o),1),0),p=u(t,n,r,c),d=u(e,i,o,h);a[0]=Na(t,r,p),a[1]=Na(e,o,d),s[0]=Pa(t,r,p),s[1]=Pa(e,o,d)}function qa(t,e,n,i,r,o,a,s,l){var u=Oe,c=Le,h=Math.abs(r-o);if(h%Va<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(za[0]=Ba(r)*n+t,za[1]=Ra(r)*i+e,Fa[0]=Ba(o)*n+t,Fa[1]=Ra(o)*i+e,u(s,za,Fa),c(l,za,Fa),(r%=Va)<0&&(r+=Va),(o%=Va)<0&&(o+=Va),r>o&&!a?o+=Va:r<o&&a&&(r+=Va),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(Ga[0]=Ba(d)*n+t,Ga[1]=Ra(d)*i+e,u(s,Ga,s),c(l,Ga,l))}var Xa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Za=[],Ja=[],Ka=[],Qa=[],$a=[],ts=[],es=Math.min,ns=Math.max,is=Math.cos,rs=Math.sin,os=Math.abs,as=Math.PI,ss=2*as,ls="undefined"!=typeof Float32Array,us=[];function cs(t){return Math.round(t/as*1e8)/1e8%2*as}var hs=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=os(n/er/t)||0,this._uy=os(n/er/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(Xa.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=os(t-this._xi),i=os(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Xa.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Xa.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Xa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),us[0]=i,us[1]=r,function(t,e){var n=cs(t[0]);n<0&&(n+=ss);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ss?r=n+ss:e&&n-r>=ss?r=n-ss:!e&&n>r?r=n+(ss-cs(n-r)):e&&n<r&&(r=n-(ss-cs(r-n))),t[0]=n,t[1]=r}(us,o),i=us[0];var a=(r=us[1])-i;return this.addData(Xa.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=is(r)*n+t,this._yi=rs(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Xa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xa.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||!ls||(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,i=this._len,r=0;r<e;r++)n+=t[r].len();ls&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,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,ls&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ka[0]=Ka[1]=$a[0]=$a[1]=Number.MAX_VALUE,Qa[0]=Qa[1]=ts[0]=ts[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Xa.M:n=r=e[t++],i=o=e[t++],$a[0]=r,$a[1]=o,ts[0]=r,ts[1]=o;break;case Xa.L:Ua(n,i,e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.C:ja(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.Q:Ya(n,i,e[t++],e[t++],e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=is(p)*c+l,o=rs(p)*h+u),qa(l,u,c,h,p,d,f,$a,ts),n=is(d)*c+l,i=rs(d)*h+u;break;case Xa.R:Ua(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],$a,ts);break;case Xa.Z:n=r,i=o}Oe(Ka,Ka,$a),Le(Qa,Qa,ts)}return 0===t&&(Ka[0]=Ka[1]=Qa[0]=Qa[1]=0),new Ar(Ka[0],Ka[1],Qa[0]-Ka[0],Qa[1]-Ka[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(p){case Xa.M:r=a=t[h++],o=s=t[h++];break;case Xa.L:var g=t[h++],v=(_=t[h++])-o;(os(I=g-r)>n||os(v)>i||h===e-1)&&(f=Math.sqrt(I*I+v*v),r=g,o=_);break;case Xa.C:var y=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];f=zn(r,o,y,m,g,_,x,b,10),r=x,o=b;break;case Xa.Q:f=Hn(r,o,y=t[h++],m=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Xa.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],k=t[h++],T=t[h++],A=T+k;h+=1,t[h++],d&&(a=is(k)*C+w,s=rs(k)*M+S),f=ns(C,M)*es(ss,Math.abs(T)),r=is(A)*C+w,o=rs(A)*M+S;break;case Xa.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case Xa.Z:var I=a-r;v=s-o;f=Math.sqrt(I*I+v*v),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,y=0,m=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=p[x++],w=1===x;switch(w&&(n=r=p[x],i=o=p[x+1]),b!==Xa.L&&_>0&&(t.lineTo(c,h),_=0),b){case Xa.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case Xa.L:a=p[x++],s=p[x++];var S=os(a-r),C=os(s-o);if(S>d||C>f){if(v){if(y+(X=l[m++])>u){var M=(u-y)/X;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=X}t.lineTo(a,s),r=a,o=s,_=0}else{var k=S*S+C*C;k>_&&(c=a,h=s,_=k)}break;case Xa.C:var T=p[x++],A=p[x++],I=p[x++],D=p[x++],O=p[x++],L=p[x++];if(v){if(y+(X=l[m++])>u){Vn(r,T,I,O,M=(u-y)/X,Za),Vn(o,A,D,L,M,Ja),t.bezierCurveTo(Za[1],Ja[1],Za[2],Ja[2],Za[3],Ja[3]);break t}y+=X}t.bezierCurveTo(T,A,I,D,O,L),r=O,o=L;break;case Xa.Q:T=p[x++],A=p[x++],I=p[x++],D=p[x++];if(v){if(y+(X=l[m++])>u){Wn(r,T,I,M=(u-y)/X,Za),Wn(o,A,D,M,Ja),t.quadraticCurveTo(Za[1],Ja[1],Za[2],Ja[2]);break t}y+=X}t.quadraticCurveTo(T,A,I,D),r=I,o=D;break;case Xa.A:var E=p[x++],N=p[x++],P=p[x++],R=p[x++],B=p[x++],V=p[x++],z=p[x++],F=!p[x++],G=P>R?P:R,U=os(P-R)>.001,W=B+V,H=!1;if(v)y+(X=l[m++])>u&&(W=B+V*(u-y)/X,H=!0),y+=X;if(U&&t.ellipse?t.ellipse(E,N,P,R,z,B,W,F):t.arc(E,N,G,B,W,F),H)break t;w&&(n=is(B)*P+E,i=rs(B)*R+N),r=is(W)*P+E,o=rs(W)*R+N;break;case Xa.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var j=p[x++],Y=p[x++];if(v){if(y+(X=l[m++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+es(q,j),s),(q-=j)>0&&t.lineTo(a+j,s+es(q,Y)),(q-=Y)>0&&t.lineTo(a+ns(j-q,0),s+Y),(q-=j)>0&&t.lineTo(a,s+ns(Y-q,0));break t}y+=X}t.rect(a,s,j,Y);break;case Xa.Z:if(v){var X;if(y+(X=l[m++])>u){M=(u-y)/X;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}y+=X}t.closePath(),r=n,o=i}}},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=Xa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ps=hs;function ds(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-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-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function fs(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=function(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;In[0]=l,In[1]=u;for(var m=0;m<1;m+=.05)Dn[0]=Nn(t,n,r,a,m),Dn[1]=Nn(e,i,o,s,m),(f=Ae(In,Dn))<y&&(h=m,y=f);y=1/0;for(var _=0;_<32&&!(v<1e-4);_++)p=h-v,d=h+v,Dn[0]=Nn(t,n,r,a,p),Dn[1]=Nn(e,i,o,s,p),f=Ae(Dn,In),p>=0&&f<y?(h=p,y=f):(On[0]=Nn(t,n,r,a,d),On[1]=Nn(e,i,o,s,d),g=Ae(On,In),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=Nn(t,n,r,a,h),c[1]=Nn(e,i,o,s,h)),kn(y)}(t,e,n,i,r,o,a,s,u,c,null);return p<=h/2}function gs(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;In[0]=a,In[1]=s;for(var p=0;p<1;p+=.05)Dn[0]=Fn(t,n,r,p),Dn[1]=Fn(e,i,o,p),(v=Ae(In,Dn))<h&&(u=p,h=v);h=1/0;for(var d=0;d<32&&!(c<1e-4);d++){var f=u-c,g=u+c;Dn[0]=Fn(t,n,r,f),Dn[1]=Fn(e,i,o,f);var v=Ae(Dn,In);if(f>=0&&v<h)u=f,h=v;else{On[0]=Fn(t,n,r,g),On[1]=Fn(e,i,o,g);var y=Ae(On,In);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Fn(t,n,r,u),l[1]=Fn(e,i,o,u)),kn(h)}(t,e,n,i,r,o,s,l,null);return c<=u/2}var vs=2*Math.PI;function ys(t){return(t%=vs)<0&&(t+=vs),t}var ms=2*Math.PI;function _s(t,e,n,i,r,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(i-r)%ms<1e-4)return!0;if(o){var h=i;i=ys(r),r=ys(h)}else i=ys(i),r=ys(r);i>r&&(r+=ms);var p=Math.atan2(l,s);return p<0&&(p+=ms),p>=i&&p<=r||p+ms>=i&&p+ms<=r}function xs(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var bs=ps.CMD,ws=2*Math.PI;var Ss=[-1,-1,-1],Cs=[-1,-1];function Ms(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c,h=Rn(e,i,o,s,u,Ss);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,v=0;v<h;v++){var y=Ss[v],m=0===y||1===y?.5:1;Nn(t,n,r,a,y)<l||(d<0&&(d=Bn(e,i,o,s,Cs),Cs[1]<Cs[0]&&d>1&&(c=void 0,c=Cs[0],Cs[0]=Cs[1],Cs[1]=c),f=Nn(e,i,o,s,Cs[0]),d>1&&(g=Nn(e,i,o,s,Cs[1]))),2===d?y<Cs[0]?p+=f<e?m:-m:y<Cs[1]?p+=g<f?m:-m:p+=s<g?m:-m:y<Cs[0]?p+=f<e?m:-m:p+=s<f?m:-m)}return p}function ks(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Ln(o))En(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Ln(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=kn(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Ss);if(0===l)return 0;var u=Un(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Fn(e,i,o,u),p=0;p<l;p++){var d=0===Ss[p]||1===Ss[p]?.5:1;Fn(t,n,r,Ss[p])<a||(Ss[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}d=0===Ss[0]||1===Ss[0]?.5:1;return Fn(t,n,r,Ss[0])<a?0:o<e?d:-d}function Ts(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ss[0]=-l,Ss[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ws-1e-4){i=0,r=ws;var c=o?1:-1;return a>=Ss[0]+t&&a<=Ss[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ws,r+=ws);for(var p=0,d=0;d<2;d++){var f=Ss[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=ws+g),(g>=i&&g<=r||g+ws>=i&&g+ws<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function As(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,d=0,f=0,g=0,v=0;v<c;){var y=u[v++],m=1===v;switch(y===bs.M&&v>1&&(n||(h+=xs(p,d,f,g,i,r))),m&&(f=p=u[v],g=d=u[v+1]),y){case bs.M:p=f=u[v++],d=g=u[v++];break;case bs.L:if(n){if(ds(p,d,u[v],u[v+1],e,i,r))return!0}else h+=xs(p,d,u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.C:if(n){if(fs(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=Ms(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.Q:if(n){if(gs(p,d,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=ks(p,d,u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,m?(f=o,g=a):h+=xs(p,d,o,a,i,r);var k=(i-_)*w/b+_;if(n){if(_s(_,x,w,S,S+C,M,e,k,r))return!0}else h+=Ts(_,x,w,S,S+C,M,k,r);p=Math.cos(S+C)*b+_,d=Math.sin(S+C)*w+x;break;case bs.R:if(f=p=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(ds(f,g,o,g,e,i,r)||ds(o,g,o,a,e,i,r)||ds(o,a,f,a,e,i,r)||ds(f,a,f,g,e,i,r))return!0}else h+=xs(o,g,o,a,i,r),h+=xs(f,a,f,g,i,r);break;case bs.Z:if(n){if(ds(p,d,f,g,e,i,r))return!0}else h+=xs(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(h+=xs(p,d,f,g,i,r)||0),0!==h}var Is=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ka),Ds={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},Os=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ls=function(t){function e(e){return t.call(this,e)||this}var n;return lt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Os.length;++s)r[Os[s]]=this[Os[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Wt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?Nt(this.style,a):this.useStyle(a):"shape"===o?Nt(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(Xt(t)){var e=vi(t,0);return e>.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Xt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===vi(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 ps(!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 i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._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),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return As(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return As(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:Nt(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return ge(Is,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Nt({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Nt({},i.shape),Nt(s,n.shape)):(s=Nt({},r?this.shape:i.shape),Nt(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Nt({},this.shape);for(var u={},c=Wt(s),h=0;h<c.length;h++){var p=c[h];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Ds},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return lt(n,e),n.prototype.getDefaultStyle=function(){return Ot(t.style)},n.prototype.getDefaultShape=function(){return Ot(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);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}(Ea),Es=Ls,Ns=Pt({strokeFirst:!0,font:dt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Is),Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(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 ge(Ns,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=Lr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Ea);Ps.prototype.type="tspan";var Rs=Ps,Bs=Pt({x:0,y:0},ka),Vs={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ta.style)};var zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.createStyle=function(t){return ge(Bs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ar(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ea);zs.prototype.type="image";var Fs=zs;var Gs=Math.round;function Us(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Gs(2*i)===Gs(2*r)&&(t.x1=t.x2=Hs(i,s,!0)),Gs(2*o)===Gs(2*a)&&(t.y1=t.y2=Hs(o,s,!0)),t):t}}function Ws(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Hs(i,s,!0),t.y=Hs(r,s,!0),t.width=Math.max(Hs(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Hs(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Hs(t,e,n){if(!e)return t;var i=Gs(2*t);return(i+Gs(e))%2==0?i/2:(i+(n?1:-1))/2}var js=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ys={},qs=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new js},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ws(Ys,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,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,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Es);qs.prototype.type="rect";var Xs=qs,Zs={fill:"#000"},Js={style:Pt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ta.style)},Ks=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Zs,n.attr(e),n}return lt(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(){var t;this._childCursor=0,il(t=this.style),zt(t.rich,il),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 Ar(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Zs},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,i=t.rich||n&&{};return Nt(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Wt(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Nt(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Js},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||dt,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Pr(o),l=oe(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(n=null==h||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Ca(t,e.font,h,"breakAll"===i,0).lines:[]).length*l,d=oe(e.height,p);if(p>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=ga(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=va(n[v],g);var y=d,m=0;for(v=0;v<n.length;v++)m=Math.max(Dr(n[v],o),m);null==h&&(h=m);var _=m;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],h+=r[1]+r[3]),u&&(_=h),{lines:n,height:d,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:h}}(sl(t),t),r=ll(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,h=this._defaultStyle,p=t.x||0,d=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",v=p,y=Nr(d,i.contentHeight,g);if(r||n){var m=Er(p,s,f),_=Nr(d,a,g);r&&this._renderBackground(t,t,m,_,s,a)}y+=c/2,n&&(v=al(p,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var x=0,b=!1,w=(ol("fill"in t?t.fill:(b=!0,h.fill))),S=(rl("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(x=2,h.stroke))),C=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),k=i.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(Rs),I=A.createStyle();A.useStyle(I),I.text=u[T],I.x=v,I.y=y,f&&(I.textAlign=f),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,C&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=t.lineWidth||x,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,nl(I,t),y+=c,M&&A.setBoundingRect(new Ar(Er(I.x,t.width,I.textAlign),Nr(I.y,k,I.textBaseline),l,k))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new xa;if(null!=t&&(t+=""),!t)return n;for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=da.lastIndex=0;null!=(i=da.exec(t));){var u=i.index;u>l&&ba(n,t.substring(l,u),e,s),ba(n,i[2],e,s,i[1]),l=da.lastIndex}l<t.length&&ba(n,t.substring(l,t.length),e,s);var c=[],h=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,x=0,b=0;b<m.tokens.length;b++){var w=(L=m.tokens[b]).styleName&&e.rich[L.styleName]||{},S=L.textPadding=w.padding,C=S?S[1]+S[3]:0,M=L.font=w.font||e.font;L.contentHeight=Pr(M);var k=oe(w.height,L.contentHeight);if(L.innerHeight=k,S&&(k+=S[0]+S[2]),L.height=k,L.lineHeight=ae(w.lineHeight,e.lineHeight,k),L.align=w&&w.align||e.align,L.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&h+L.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),v(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))L.percentWidth=T,c.push(L),L.contentWidth=Dr(L.text,M);else{if(A){var I=w.backgroundColor,D=I&&I.image;D&&pa(D=ua(D))&&(L.width=Math.max(L.width,D.width*k/D.height))}var O=f&&null!=r?r-x:null;null!=O&&O<L.width?!A||O<C?(L.text="",L.width=L.contentWidth=0):(L.text=fa(L.text,O-C,M,e.ellipsis,{minChar:e.truncateMinChar}),L.width=L.contentWidth=Dr(L.text,M)):L.contentWidth=Dr(L.text,M)}L.width+=C,x+=L.width,w&&(_=Math.max(_,L.lineHeight))}v(m,x,_)}for(n.outerWidth=n.width=oe(r,p),n.outerHeight=n.height=oe(o,h),n.contentHeight=h,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),y=0;y<c.length;y++){var L,E=(L=c[y]).percentWidth;L.width=parseInt(E,10)/100*n.width}return n}(sl(t),t),n=e.width,i=e.outerWidth,r=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,h=Er(a,i,u),p=Nr(s,r,c),d=h,f=p;o&&(d+=o[3],f+=o[0]);var g=d+n;ll(t)&&this._renderBackground(t,t,h,p,i,r);for(var v=!!t.backgroundColor,y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=m.tokens,x=_.length,b=m.lineHeight,w=m.width,S=0,C=d,M=g,k=x-1,T=void 0;S<x&&(!(T=_[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,C,"left",v),w-=T.width,C+=T.width,S++;for(;k>=0&&"right"===(T=_[k]).align;)this._placeToken(T,t,b,f,M,"right",v),w-=T.width,M-=T.width,k--;for(C+=(n-(C-d)-(g-M)-w)/2;S<=k;)T=_[S],this._placeToken(T,t,b,f,C+T.width/2,"center",v),C+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&ll(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=al(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(Rs),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,y=ol("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=rl("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,_&&(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||dt,d.opacity=ae(s.opacity,e.opacity,1),nl(d,s),m&&(d.lineWidth=ae(s.lineWidth,e.lineWidth,v),d.lineDash=oe(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),y&&(d.fill=y);var x=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new Ar(Er(d.x,x,d.textAlign),Nr(d.y,b,d.textBaseline),x,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&h){(a=this._getOrCreateChild(Xs)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=oe(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Fs)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=oe(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 m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=ae(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,el(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ce(e)||t.textFont||t.font},e}(Ea),Qs={left:!0,right:1,center:1},$s={top:1,bottom:1,middle:1},tl=["fontStyle","fontWeight","fontSize","fontFamily"];function el(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function nl(t,e){for(var n=0;n<tl.length;n++){var i=tl[n],r=e[i];null!=r&&(t[i]=r)}}function il(t){if(t){t.font=Ks.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Qs[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||$s[n]?n:"top",t.padding&&(t.padding=le(t.padding))}}function rl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ol(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function al(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sl(t){var e=t.text;return null!=e&&(e+=""),e}function ll(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ul=Ks,cl=Ho(),hl=1,pl={},dl=Ho(),fl=Ho(),gl=["emphasis","blur","select"],vl=["normal","emphasis","blur","select"];function yl(t){return null!=t&&"none"!==t}var ml=new Kn(100);function _l(t){if(Xt(t)){var e=ml.get(t);return e||(e=pi(t,-.1),ml.put(t,e)),e}if(ee(t)){var n=Nt({},t);return n.colorStops=Ft(t.colorStops,(function(t){return{offset:t.offset,color:pi(t.color,-.1)}})),n}return t}function xl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function bl(t){xl(t,"emphasis",2)}function wl(t){2===t.hoverState&&xl(t,"normal",0)}function Sl(t){xl(t,"blur",1)}function Cl(t){1===t.hoverState&&xl(t,"normal",0)}function Ml(t){t.selected=!0}function kl(t){t.selected=!1}function Tl(t,e,n){e(t,n)}function Al(t,e,n){Tl(t,e,n),t.isGroup&&t.traverse((function(t){Tl(t,e,n)}))}function Il(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 Dl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&Rt(n,"select")>=0,o=!1;if(t instanceof Es){var a=dl(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(yl(s)||yl(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=Nt({},i),(u=Nt({},u)).fill=s):!yl(u.fill)&&yl(s)?(o=!0,i=Nt({},i),(u=Nt({},u)).fill=_l(s)):!yl(u.stroke)&&yl(l)&&(o||(i=Nt({},i),u=Nt({},u)),u.stroke=_l(l)),i.style=u}}if(i&&null==i.z2){o||(i=Nt({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=Rt(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[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=Nt({},n),a=Nt({opacity:i?r:.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=Nt({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Ol(t){t.stateProxy=Dl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Dl),n&&(n.stateProxy=Dl)}function Ll(t,e){!zl(t,e)&&!t.__highByOuter&&Al(t,bl)}function El(t,e){!zl(t,e)&&!t.__highByOuter&&Al(t,wl)}function Nl(t,e){t.__highByOuter|=1<<(e||0),Al(t,bl)}function Pl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Al(t,wl)}function Rl(t){Al(t,Cl)}function Bl(t){Al(t,Ml)}function Vl(t){Al(t,kl)}function zl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Fl(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=fl(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){Cl(t)})),a&&n.push(r)),o.isBlured=!1})),zt(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Gl(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Rl(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){Sl(t)})),Vt(e))o(t.getData(),e);else if(Kt(e))for(var c=Wt(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),fl(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Ul(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){fl(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Sl(t)}))}}}function Wl(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||Ql(l[u])||Co("param should be highDownDispatcher"),"self"===cl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Hl(t){zt(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Bl(e):Vl(e)}))}))}function jl(t){var e=[];return t.eachSeries((function(t){zt(t.getAllData(),(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Yl(t,e,n){Kl(t,!0),Al(t,Ol),function(t,e,n){var i=cl(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function ql(t,e,n,i){i?function(t){Kl(t,!1)}(t):Yl(t,e,n)}var Xl=["emphasis","blur","select"],Zl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jl(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Xl.length;r++){var o=Xl[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Zl[n]]()}}function Kl(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ql(t){return!(!t||!t.__highDownDispatcher)}function $l(t){var e=t.type;return"select"===e||"unselect"===e||"toggleSelect"===e}function tu(t){var e=t.type;return"highlight"===e||"downplay"===e}var eu=ps.CMD,nu=[[],[],[]],iu=Math.sqrt,ru=Math.atan2;var ou=Math.sqrt,au=Math.sin,su=Math.cos,lu=Math.PI;function uu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cu(t,e){return(t[0]*e[0]+t[1]*e[1])/(uu(t)*uu(e))}function hu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(cu(t,e))}function pu(t,e,n,i,r,o,a,s,l,u,c){var h=l*(lu/180),p=su(h)*(t-n)/2+au(h)*(e-i)/2,d=-1*au(h)*(t-n)/2+su(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=ou(f),s*=ou(f));var g=(r===o?-1:1)*ou((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(t+n)/2+su(h)*v-au(h)*y,_=(e+i)/2+au(h)*v+su(h)*y,x=hu([1,0],[(p-v)/a,(d-y)/s]),b=[(p-v)/a,(d-y)/s],w=[(-1*p-v)/a,(-1*d-y)/s],S=hu(b,w);if(cu(b,w)<=-1&&(S=lu),cu(b,w)>=1&&(S=0),S<0){var C=Math.round(S/lu*1e6)/1e6;S=2*lu+C%2*lu}c.addData(u,m,_,a,s,x,S,h,o)}var du=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,fu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var gu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.applyTransform=function(t){},e}(Es);function vu(t){return null!=t.setData}function yu(t,e){var n=function(t){var e=new ps;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ps.CMD,l=t.match(du);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(fu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,M=r,k=void 0,T=void 0;switch(h){case"l":i+=d[v++],r+=d[v++],p=s.L,e.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=d[v++],r=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=d[v++],p=s.L,e.addData(p,i,r);break;case"H":i=d[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,e.addData(p,i,r);break;case"V":r=d[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":y=i,m=r,k=e.len(),T=e.data,n===s.C&&(y+=i-T[k-4],m+=r-T[k-3]),p=s.C,C=d[v++],M=d[v++],i=d[v++],r=d[v++],e.addData(p,y,m,C,M,i,r);break;case"s":y=i,m=r,k=e.len(),T=e.data,n===s.C&&(y+=i-T[k-4],m+=r-T[k-3]),p=s.C,C=i+d[v++],M=r+d[v++],i+=d[v++],r+=d[v++],e.addData(p,y,m,C,M,i,r);break;case"Q":C=d[v++],M=d[v++],i=d[v++],r=d[v++],p=s.Q,e.addData(p,C,M,i,r);break;case"q":C=d[v++]+i,M=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,C,M,i,r);break;case"T":y=i,m=r,k=e.len(),T=e.data,n===s.Q&&(y+=i-T[k-4],m+=r-T[k-3]),i=d[v++],r=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,k=e.len(),T=e.data,n===s.Q&&(y+=i-T[k-4],m+=r-T[k-3]),i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],pu(C=i,M=r,i=d[v++],r=d[v++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],pu(C=i,M=r,i+=d[v++],r+=d[v++],w,S,_,x,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}(t),i=Nt({},e);return i.buildPath=function(t){if(vu(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=eu.M,h=eu.C,p=eu.L,d=eu.R,f=eu.A,g=eu.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=e[4],y=e[5],m=iu(e[0]*e[0]+e[1]*e[1]),_=iu(e[2]*e[2]+e[3]*e[3]),x=ru(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case d:s[0]=l[r++],s[1]=l[r++],De(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],De(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=nu[a];b[0]=l[r++],b[1]=l[r++],De(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}function mu(t,e){return new gu(yu(t,e))}var _u=function(){this.cx=0,this.cy=0,this.r=0},xu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new _u},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}(Es);xu.prototype.type="circle";var bu=xu,wu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Su=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new wu},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Es);Su.prototype.type="ellipse";var Cu=Su,Mu=Math.PI,ku=2*Mu,Tu=Math.sin,Au=Math.cos,Iu=Math.acos,Du=Math.atan2,Ou=Math.abs,Lu=Math.sqrt,Eu=Math.max,Nu=Math.min,Pu=1e-4;function Ru(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Lu(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,b=r-o,w=p*g-f*d,S=(_<0?-1:1)*Lu(Eu(0,b*b*x-w*w)),C=(w*_-m*S)/x,M=(-w*m-_*S)/x,k=(w*_+m*S)/x,T=(-w*m+_*S)/x,A=C-v,I=M-y,D=k-v,O=T-y;return A*A+I*I>D*D+O*O&&(C=k,M=T),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/b-1),y1:M*(r/b-1)}}function Bu(t,e){var n,i=Eu(e.r,0),r=Eu(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=Ou(l-s),d=p>ku&&p%ku;if(d>Pu&&(p=d),i>Pu)if(p>ku-Pu)t.moveTo(u+i*Au(s),c+i*Tu(s)),t.arc(u,c,i,s,l,!h),r>Pu&&(t.moveTo(u+r*Au(l),c+r*Tu(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=void 0,M=void 0,k=void 0,T=void 0,A=void 0,I=void 0,D=i*Au(s),O=i*Tu(s),L=r*Au(l),E=r*Tu(l),N=p>Pu;if(N){var P=e.cornerRadius;P&&(n=function(t){var e;if(Yt(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],y=n[3]);var R=Ou(i-r)/2;if(m=Nu(R,v),_=Nu(R,y),x=Nu(R,f),b=Nu(R,g),C=w=Eu(m,_),M=S=Eu(x,b),(w>Pu||S>Pu)&&(k=i*Au(l),T=i*Tu(l),A=r*Au(s),I=r*Tu(s),p<Mu)){var B=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<Pu))return[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(D,O,A,I,k,T,L,E);if(B){var V=D-B[0],z=O-B[1],F=k-B[0],G=T-B[1],U=1/Tu(Iu((V*F+z*G)/(Lu(V*V+z*z)*Lu(F*F+G*G)))/2),W=Lu(B[0]*B[0]+B[1]*B[1]);C=Nu(w,(i-W)/(U+1)),M=Nu(S,(r-W)/(U-1))}}}if(N)if(C>Pu){var H=Nu(v,C),j=Nu(y,C),Y=Ru(A,I,D,O,i,H,h),q=Ru(k,T,L,E,i,j,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<w&&H===j?t.arc(u+Y.cx,c+Y.cy,C,Du(Y.y0,Y.x0),Du(q.y0,q.x0),!h):(H>0&&t.arc(u+Y.cx,c+Y.cy,H,Du(Y.y0,Y.x0),Du(Y.y1,Y.x1),!h),t.arc(u,c,i,Du(Y.cy+Y.y1,Y.cx+Y.x1),Du(q.cy+q.y1,q.cx+q.x1),!h),j>0&&t.arc(u+q.cx,c+q.cy,j,Du(q.y1,q.x1),Du(q.y0,q.x0),!h))}else t.moveTo(u+D,c+O),t.arc(u,c,i,s,l,!h);else t.moveTo(u+D,c+O);if(r>Pu&&N)if(M>Pu){H=Nu(f,M),Y=Ru(L,E,k,T,r,-(j=Nu(g,M)),h),q=Ru(D,O,A,I,r,-H,h);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),M<S&&H===j?t.arc(u+Y.cx,c+Y.cy,M,Du(Y.y0,Y.x0),Du(q.y0,q.x0),!h):(j>0&&t.arc(u+Y.cx,c+Y.cy,j,Du(Y.y0,Y.x0),Du(Y.y1,Y.x1),!h),t.arc(u,c,r,Du(Y.cy+Y.y1,Y.cx+Y.x1),Du(q.cy+q.y1,q.cx+q.x1),h),H>0&&t.arc(u+q.cx,c+q.cy,H,Du(q.y1,q.x1),Du(q.y0,q.x0),!h))}else t.lineTo(u+L,c+E),t.arc(u,c,r,l,s,h);else t.lineTo(u+L,c+E)}else t.moveTo(u,c);t.closePath()}}}var Vu=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},zu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new Vu},e.prototype.buildPath=function(t,e){Bu(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Es);zu.prototype.type="sector";var Fu=zu,Gu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Uu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new Gu},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Es);Uu.prototype.type="ring";var Wu=Uu;function Hu(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Oe(a,a,t[p]),Le(s,s,t[p]);Oe(a,a,i[0]),Le(s,s,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(be(t[p]));continue}r=t[p-1],o=t[p+1]}Se(u,o,r),Ce(u,u,e);var g=ke(f,r),v=ke(f,o),y=g+v;0!==y&&(g/=y,v/=y),Ce(c,u,-g),Ce(h,u,v);var m=we([],f,c),_=we([],f,h);i&&(Le(m,m,a),Oe(m,m,s),Le(_,_,a),Oe(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var ju=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Yu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new ju},e.prototype.buildPath=function(t,e){Hu(t,e,!0)},e}(Es);Yu.prototype.type="polygon";var qu=Yu,Xu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Zu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xu},e.prototype.buildPath=function(t,e){Hu(t,e,!1)},e}(Es);Zu.prototype.type="polyline";var Ju=Zu,Ku={},Qu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},$u=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qu},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Us(Ku,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,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}(Es);$u.prototype.type="line";var tc=$u,ec=[],nc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ic(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Pn:Nn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Pn:Nn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Gn:Fn)(t.x1,t.cpx1,t.x2,e),(n?Gn:Fn)(t.y1,t.cpy1,t.y2,e)]}var rc=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nc},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=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,i),null==l||null==u?(c<1&&(Wn(n,a,r,c,ec),a=ec[1],r=ec[2],Wn(i,s,o,c,ec),s=ec[1],o=ec[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Vn(n,a,l,r,c,ec),a=ec[1],l=ec[2],r=ec[3],Vn(i,s,u,o,c,ec),s=ec[1],u=ec[2],o=ec[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return ic(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=ic(this.shape,t,!0);return Me(e,e)},e}(Es);rc.prototype.type="bezier-curve";var oc=rc,ac=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sc=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ac},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=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*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(Es);sc.prototype.type="arc";var lc=sc,uc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return lt(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||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].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),Es.prototype.getBoundingRect.call(this)},e}(Es),cc=uc,hc=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),pc=function(t){function e(e,n,i,r,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==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return lt(e,t),e}(hc),dc=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return lt(e,t),e}(hc),fc=[0,0],gc=[0,0],vc=new mr,yc=new mr,mc=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new mr;for(n=0;n<2;n++)this._axes[n]=new mr;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);mr.sub(i[0],n[1],n[0]),mr.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return vc.set(1/0,1/0),yc.set(0,0),!this._intersectCheckOneSide(this,t,vc,yc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,vc,yc,i,-1)&&(n=!1,i)||i||mr.copy(e,n?vc:yc),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,fc),this._getProjMinMaxOnAxis(s,e._corners,gc),fc[1]<gc[0]||fc[0]>gc[1]){if(a=!1,r)return a;var u=Math.abs(gc[0]-fc[1]),c=Math.abs(fc[0]-gc[1]);Math.min(u,c)>i.len()&&(u<c?mr.scale(i,l,-u*o):mr.scale(i,l,c*o))}else if(n){u=Math.abs(gc[0]-fc[1]),c=Math.abs(fc[0]-gc[1]);Math.min(u,c)<n.len()&&(u<c?mr.scale(n,l,u*o):mr.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),_c=mc,xc=[],bc=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 lt(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 Ar(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(xc)),t.union(i)}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 i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(Ea),wc=bc,Sc=Ho();function Cc(t,e,n,i,r,o,a){var s,l=!1;qt(r)?(a=o,o=r,r=null):Kt(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){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 i?(l=oe(i.duration,200),u=oe(i.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)),qt(c)&&(c=c(n,r)),qt(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={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,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Mc(t,e,n,i,r,o){Cc("update",t,e,n,i,r,o)}function kc(t,e,n,i,r,o){Cc("enter",t,e,n,i,r,o)}function Tc(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 Ac(t,e,n,i,r,o){Tc(t)||Cc("leave",t,e,n,i,r,o)}function Ic(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Ac(t,{style:{opacity:0}},e,n,i)}function Dc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Ic(t,e,n,i)})):Ic(t,e,n,i)}function Oc(t){Sc(t).oldStyle=t.style}var Lc=Math.max,Ec=Math.min,Nc={};var Pc=function(t,e){var n=yu(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return lt(e,t),e}(gu)};function Rc(t,e){Nc[t]=e}function Bc(t,e,n,i){var r=mu(t,e);return n&&("center"===i&&(n=zc(n,r.getBoundingRect())),Gc(r,n)),r}function Vc(t,e,n){var i=new Fs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(zc(e,r))}}});return i}function zc(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Fc=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Es(e);return a.createPathProxy(),a.buildPath=function(t){if(vu(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Gc(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var Uc=Hs;function Wc(t,e){for(var n=nr([]);t&&t!==e;)rr(n,t.getLocalTransform(),n),t=t.parent;return n}function Hc(t,e,n){return e&&!Vt(e)&&(e=gr.getLocalTransform(e)),n&&(e=lr([],e)),De([],t,e)}function jc(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Hc(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Yc(t){return!t.isGroup}function qc(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Yc(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Yc(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Mc(t,i,n,cl(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=Nt({},t.shape)),e}}function Xc(t,e,n){var i=Nt({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Pt(r,n),new Fs(i)):Bc(t.replace("path://",""),i,n,"center")}function Zc(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=Jc(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=Jc(f,g,u,c)/d;if(v<0||v>1)return!1;var y=Jc(f,g,h,p)/d;return!(y<0||y>1)}function Jc(t,e,n,i){return t*i-n*e}function Kc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Xt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&zt(Wt(l),(function(t){ye(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=cl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Pt({content:i,formatterParams:s},r)}}function Qc(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function $c(t,e){if(t)if(Yt(t))for(var n=0;n<t.length;n++)Qc(t[n],e);else Qc(t,e)}Rc("circle",bu),Rc("ellipse",Cu),Rc("sector",Fu),Rc("ring",Wu),Rc("polygon",qu),Rc("polyline",Ju),Rc("rect",Xs),Rc("line",tc),Rc("bezierCurve",oc),Rc("arc",lc);var th=Object.freeze({__proto__:null,updateProps:Mc,initProps:kc,removeElement:Ac,removeElementWithFadeOut:Dc,isElementRemoved:Tc,extendShape:function(t){return Es.extend(t)},extendPath:function(t,e){return Pc(t,e)},registerShape:Rc,getShapeClass:function(t){if(Nc.hasOwnProperty(t))return Nc[t]},makePath:Bc,makeImage:Vc,mergePath:Fc,resizePath:Gc,subPixelOptimizeLine:function(t){return Us(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ws(t.shape,t.shape,t.style),t},subPixelOptimize:Uc,getTransform:Wc,applyTransform:Hc,transformDirection:jc,groupTransition:qc,clipPointsByRect:function(t,e){return Ft(t,(function(t){var n=t[0];n=Lc(n,e.x),n=Ec(n,e.x+e.width);var i=t[1];return i=Lc(i,e.y),[n,i=Ec(i,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=Lc(t.x,e.x),i=Ec(t.x+t.width,e.x+e.width),r=Lc(t.y,e.y),o=Ec(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:Xc,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Zc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:Zc,setTooltipConfig:Kc,traverseElements:$c,Group:Zr,Image:Fs,Text:ul,Circle:bu,Ellipse:Cu,Sector:Fu,Ring:Wu,Polygon:qu,Polyline:Ju,Rect:Xs,Line:tc,BezierCurve:oc,Arc:lc,IncrementalDisplayable:wc,CompoundPath:cc,LinearGradient:pc,RadialGradient:dc,BoundingRect:Ar,OrientedBoundingRect:_c,Point:mr,Path:Es}),eh={};function nh(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=qt(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<gl.length;u++){var c=gl[u],h=e[c];l[c]=oe(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function ih(t,e,n,i){n=n||eh;for(var r=t instanceof ul,o=!1,a=0;a<vl.length;a++){if((p=e[vl[a]])&&p.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new ul,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=nh(n,e),u=e.normal,c=!!u.getShallow("show"),h=oh(u,i&&i.normal,n,!1,!r);h.text=l.normal,r||t.setTextConfig(ah(u,n,!1));for(a=0;a<gl.length;a++){var p,d=gl[a];if(p=e[d]){var f=s.ensureState(d),g=!!oe(p.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=oh(p,i&&i[d],n,!0,!r),f.style.text=l[d],!r)t.ensureState(d).textConfig=ah(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(hh(s).setLabelText=function(t){var i=nh(n,e,t);!function(t,e){for(var n=0;n<gl.length;n++){var i=gl[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function rh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<gl.length;i++){var r=gl[i];n[r]=t.getModel([r,e])}return n}function oh(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||eh;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||eh).rich;if(n){e=e||{};for(var i=Wt(n),r=0;r<i.length;r++){e[i[r]]=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]);ch(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p);ch(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&Nt(o,e),o}function ah(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=oe(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var sh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lh=["align","lineHeight","width","height","tag","verticalAlign"],uh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ch(t,e,n,i,r,o,a,s){n=!r&&n||eh;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=oe(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&ko("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&ko("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 p=oe(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var d=oe(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=oe(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<sh.length;g++){var v=sh[g];null!=(m=oe(e.getShallow(v),n[v]))&&(t[v]=m)}for(g=0;g<lh.length;g++){v=lh[g];null!=(m=e.getShallow(v))&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<uh.length;g++){var m;v=uh[g];null!=(m=e.getShallow(v))&&(t[v]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.backgroundColor&&ko("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.borderColor&&ko("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}var hh=Ho();var ph,dh,fh=["textStyle","color"],gh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vh=new ul,yh=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(fh):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"),ce([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<gh.length;n++)e[gh[n]]=this.getShallow(gh[n]);return vh.useStyle(e),vh.update(),vh.getBoundingRect()},t}(),mh=yh,_h=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xh=oa(_h),bh=function(){function t(){}return t.prototype.getLineStyle=function(t){return xh(this,t)},t}(),wh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Sh=oa(wh),Ch=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Sh(this,t,e)},t}(),Mh=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 i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Lt(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,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Ot(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(!pt.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 i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();$o(Mh),ph=Mh,dh=["__\0is_clz",ea++].join("_"),ph.prototype[dh]=!0,"production"!==process.env.NODE_ENV&&ue(!ph.isInstance,'The method "is" can not be defined.'),ph.isInstance=function(t){return!(!t||!t[dh])},Bt(Mh,bh),Bt(Mh,Ch),Bt(Mh,sa),Bt(Mh,mh);var kh=Mh,Th=Math.round(10*Math.random());function Ah(t){return[t||"",Th++].join("_")}function Ih(t,e){return Lt(Lt({},t,!0),e,!0)}var Dh={},Oh={},Lh=pt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function Eh(t,e){t=t.toUpperCase(),Oh[t]=new kh(e),Dh[t]=e}Eh("EN",{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:". "}}}}),Eh("ZH",{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 Nh={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}"},Ph={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Nh.hour,minute:"{yyyy}-{MM}-{dd} "+Nh.minute,second:"{yyyy}-{MM}-{dd} "+Nh.second,millisecond:Nh.none},Rh=["year","month","day","hour","minute","second","millisecond"],Bh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vh(t,e){return"0000".substr(0,e-(t+="").length)+t}function zh(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 Fh(t){return t===zh(t)}function Gh(t,e,n,i){var r=co(t),o=r[Hh(n)](),a=r[jh(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Yh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[qh(n)](),h=(c-1)%12+1,p=r[Xh(n)](),d=r[Zh(n)](),f=r[Jh(n)](),g=i instanceof kh?i:function(t){return Oh[t]}(i||Lh)||Oh.EN,v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Vh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Vh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Vh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Vh(f,3)).replace(/{S}/g,f+"")}function Uh(t,e){var n=co(t),i=n[jh(e)]()+1,r=n[Yh(e)](),o=n[qh(e)](),a=n[Xh(e)](),s=n[Zh(e)](),l=0===n[Jh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Wh(t,e,n){var i=Jt(t)?co(t):t;switch(e=e||Uh(t,n)){case"year":return i[Hh(n)]();case"half-year":return i[jh(n)]()>=6?1:0;case"quarter":return Math.floor((i[jh(n)]()+1)/4);case"month":return i[jh(n)]();case"day":return i[Yh(n)]();case"half-day":return i[qh(n)]()/24;case"hour":return i[qh(n)]();case"minute":return i[Xh(n)]();case"second":return i[Zh(n)]();case"millisecond":return i[Jh(n)]()}}function Hh(t){return t?"getUTCFullYear":"getFullYear"}function jh(t){return t?"getUTCMonth":"getMonth"}function Yh(t){return t?"getUTCDate":"getDate"}function qh(t){return t?"getUTCHours":"getHours"}function Xh(t){return t?"getUTCMinutes":"getMinutes"}function Zh(t){return t?"getUTCSeconds":"getSeconds"}function Jh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Kh(t){return t?"setUTCFullYear":"setFullYear"}function Qh(t){return t?"setUTCMonth":"setMonth"}function $h(t){return t?"setUTCDate":"setDate"}function tp(t){return t?"setUTCHours":"setHours"}function ep(t){return t?"setUTCMinutes":"setMinutes"}function np(t){return t?"setUTCSeconds":"setSeconds"}function ip(t){return t?"setUTCMilliseconds":"setMilliseconds"}function rp(t){if(!vo(t))return Xt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function op(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 ap=le,sp=/([&<>"'])/g,lp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function up(t){return null==t?"":(t+"").replace(sp,(function(t,e){return lp[e]}))}function cp(t,e,n){function i(t){return t&&ce(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?co(t):t;if(!isNaN(+s))return Gh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Zt(t)?i(t):Jt(t)&&r(t)?t+"":"-";var l=go(t);return r(l)?rp(l):Zt(t)?i(t):"boolean"==typeof t?t+"":"-"}var hp=["a","b","c","d","e","f","g"],pp=function(t,e){return"{"+t+(null==e?"":e)+"}"};function dp(t,e,n){Yt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=hp[o];t=t.replace(pp(a),pp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(pp(hp[l],s),n?up(u):u)}return t}function fp(t,e){return e=e||"transparent",Xt(t)?t:Kt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function gp(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var vp=zt,yp=["left","right","top","bottom","width","height"],mp=[["width","left","right"],["height","top","bottom"]];function _p(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var xp=_p;function bp(t,e,n){n=ap(n||0);var i=e.width,r=e.height,o=eo(t.left,i),a=eo(t.top,r),s=eo(t.right,i),l=eo(t.bottom,r),u=eo(t.width,i),c=eo(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new Ar(o+n[3],a+n[0],u,c);return f.margin=n,f}function wp(t){var e=t.layoutMode||t.constructor.layoutMode;return Kt(e)?e:e?{type:e}:null}function Sp(t,e,n){var i=n&&n.ignoreSize;!Yt(i)&&(i=[i,i]);var r=a(mp[0],0),o=a(mp[1],1);function a(n,r){var o={},a=0,u={},c=0;if(vp(n,(function(e){u[e]=t[e]})),vp(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])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 h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){vp(t,(function(t){e[t]=n[t]}))}u(mp[0],t,r),u(mp[1],t,o)}function Cp(t){return function(t,e){return e&&t&&vp(yp,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}({},t)}jt(_p,"vertical"),jt(_p,"horizontal");var Mp=Ho(),kp=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Ah("ec_cpt_model"),r}return lt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{};Lt(t,e.getTheme().get(this.mainType)),Lt(t,this.getDefaultOption()),n&&Sp(t,i,n)},e.prototype.mergeOption=function(t,e){Lt(this.option,t,!0);var n=wp(this);n&&Sp(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}(t))return t.defaultOption;var e=Mp(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Lt(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Zo(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!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}(kh);ta(kp,kh),ra(kp),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Qo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Qo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(kp),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return zt(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return zt(t,(function(t){Rt(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),zt(s,(function(t){Rt(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);Rt(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(zt(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),zt(h.successor,p?f:d)}zt(u,(function(){var e="";throw"production"!==process.env.NODE_ENV&&(e=To("Circular dependency may exists: ",u,t,i)),new Error(e)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(kp,(function(t){var e=[];zt(kp.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Ft(e,(function(t){return Qo(t).main})),"dataset"!==t&&Rt(e,"dataset")<=0&&e.unshift("dataset");return e}));var Tp=kp,Ap="";"undefined"!=typeof navigator&&(Ap=navigator.platform||"");var Ip="rgba(0, 0, 0, 0.2)",Dp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ip,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ip,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ip,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ip,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ip,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ip,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ap.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},Op=fe(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Lp=1,Ep=2,Np=3,Pp=Ho();function Rp(t,e,n){var i={},r=Vp(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=Pp(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;zt(t=t.slice(),(function(e,n){var r=Kt(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return zt(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=p.valueWayDim;d(i[n],a,r),d(l,a,r),p.valueWayDim+=r}else if(o===e)d(i[n],0,r),d(s,0,r);else{a=p.categoryWayDim;d(i[n],a,r),d(l,a,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Bp(t,e,n){var i={};if(!Vp(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;"objectRows"!==o&&"keyedColumns"!==o||zt(a,(function(t,e){"name"===(Kt(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Fp(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===Np;if(h&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===Np)&&(t.n=l),p(t)&&s[t.n]!==Np)return t;h||(c===Ep&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function Vp(t){if(!t.get("data",!0))return Zo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Xo).models[0]}function zp(t,e){return Fp(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Fp(t,e,n,i,r,o){var a,s,l;if($t(t))return Np;if(i){var u=i[o];Kt(u)?(s=u.name,l=u.type):Xt(u)&&(s=u)}if(null!=l)return"ordinal"===l?Lp:Np;if("arrayRows"===e){var c=t;if("row"===n){for(var h=c[o],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=m(h[r+p])))return a}else for(p=0;p<c.length&&p<5;p++){var d=c[r+p];if(d&&null!=(a=m(d[o])))return a}}else if("objectRows"===e){var f=t;if(!s)return Np;for(p=0;p<f.length&&p<5;p++){if((v=f[p])&&null!=(a=m(v[s])))return a}}else if("keyedColumns"===e){if(!s)return Np;if(!(h=t[s])||$t(h))return Np;for(p=0;p<h.length&&p<5;p++)if(null!=(a=m(h[p])))return a}else if("original"===e){var g=t;for(p=0;p<g.length&&p<5;p++){var v,y=Eo(v=g[p]);if(!Yt(y))return Np;if(null!=(a=m(y[o])))return a}}function m(t){var e=Xt(t);return null!=t&&isFinite(t)&&""!==t?e?Ep:Np:e&&"-"!==t?Lp:void 0}return Np}var Gp=fe();var Up=Ho();Ho();var Wp,Hp,jp,Yp=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Do(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if(!(c=c||n)||!c.length)return;var h=c[l];r&&(u[r]=h);return s.paletteIdx=(l+1)%c.length,h}(this,Up,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Up)},t}();var qp={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"},Xp={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"},Zp={};var Jp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new kh(i),this._locale=new kh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){"production"!==process.env.NODE_ENV&&(ue(null!=t,"option is null/undefined"),ue(1!==t["\0_ec_inner"],"please use chart.getOption()"));var i=$p(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,$p(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);"production"!==process.env.NODE_ENV&&zt(r,(function(t,e){if(!Tp.hasClass(e)){var n=qp[e];n&&!Zp[n]&&(Co("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Zp[n]=!0)}})),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):jp(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&zt(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,i=this._componentsMap,r=this._componentsCount,o=[],a=fe(),s=e&&e.replaceMergeMainTypeMap;Pp(this).datasetMap=fe(),zt(t,(function(t,e){null!=t&&(Tp.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Ot(t):Lt(n[e],t,!0))})),s&&s.each((function(t,e){Tp.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Tp.topologicalTravel(o,Tp.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Gp.get(e);if(!i)return n;var r=i(t);if(!r)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<r.length;o++)ue(Uo(r[o]));return n.concat(r)}(this,e,Do(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Po(a,o,l);(function(t,e,n){zt(t,(function(t){var i=t.newOption;Kt(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,Tp),n[e]=null,i.set(e,null),r.set(e,0);var c,h,p=[],d=[],f=0;zt(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Tp.getClass(e,t.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=t.keyInfo.subType,l=Xp[s];Zp[s]||(Zp[s]=!0,Co(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&&(h||(So("Currently only one tooltip component is allowed."),h=!0)));c=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var u=Nt({componentIndex:n},t.keyInfo);Nt(i=new a(r,this,this,u),u),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))}),this),n[e]=p,i.set(e,d),r.set(e,f),"series"===e&&Wp(this)}),this),this._seriesIndices||Wp(this)},e.prototype.getOption=function(){var t=Ot(this.option);return zt(t,(function(e,n){if(Tp.hasClass(n)){for(var i=Do(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Uo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),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 i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],zt(Do(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Kp("id",r,a):null!=o?Kp("name",o,a):Ut(a,(function(t){return!!t})),Qp(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):Ut(this._componentsMap.get(s),(function(t){return!!t}));return o=Qp(u,t),t.filter?Ut(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(qt(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=Xt(t)?i.get(t):Kt(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=Vo(t,null);return Ut(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 Ut(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Ut(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Hp(this),zt(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){zt(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Hp(this),zt(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return zt(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Hp(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Hp(this);var n=[];zt(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=fe(n)},e.prototype.restoreData=function(t){Wp(this);var e=this._componentsMap,n=[];e.each((function(t,e){Tp.hasClass(e)&&n.push(e)})),Tp.topologicalTravel(n,Tp.getAllClassMainTypes(),(function(n){zt(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(Wp=function(t){var e=t._seriesIndices=[];zt(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=fe(e)},Hp=function(t){if("production"!==process.env.NODE_ENV&&!t._seriesIndices)throw new Error("Option should contains series.")},void(jp=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=fe({series:[]}),t._componentsCount=fe();var n=e.aria;Kt(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;zt(e,(function(e,i){"colorLayer"===i&&n||Tp.hasClass(i)||("object"==typeof e?t[i]=t[i]?Lt(t[i],e,!1):Ot(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),Lt(e,Dp,!1),t._mergeOption(e,null)})),e}(kh);function Kp(t,e,n){if(Yt(e)){var i=fe();return zt(e,(function(t){null!=t&&(null!=Vo(t,null)&&i.set(t,!0))})),Ut(n,(function(e){return e&&i.get(e[t])}))}var r=Vo(e,null);return Ut(n,(function(e){return e&&null!=r&&e[t]===r}))}function Qp(t,e){return e.hasOwnProperty("subType")?Ut(t,(function(t){return t&&t.subType===e.subType})):t}function $p(t){var e=fe();return t&&zt(Do(t.replaceMerge),(function(t){"production"!==process.env.NODE_ENV&&ue(Tp.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Bt(Jp,Yp);var td=Jp,ed=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nd=function(t){zt(ed,(function(e){this[e]=Ht(t[e],t)}),this)},id={},rd=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];zt(id,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){zt(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){id[t]=e},t.get=function(t){return id[t]},t}(),od=/^(min|max)?(.+)$/,ad=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(zt(Do(t.series),(function(t){t&&t.data&&$t(t.data)&&he(t.data)})),zt(Do(t.dataset),(function(t){t&&t.source&&$t(t.source)&&he(t.source)}))),t=Ot(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t);c&&(Yt(u)?zt(u,(function(t){"production"!==process.env.NODE_ENV&&t&&!t.option&&Kt(t.query)&&Kt(t.query.option)&&Co("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),t&&t.option&&(t.query?o.push(t):i||(i=t))})):"production"!==process.env.NODE_ENV&&Co("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function p(t){zt(e,(function(e){e(t,n)}))}return p(r),zt(l,(function(t){return p(t)})),zt(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Ot(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Ot(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=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++)sd(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Ft(s,(function(t){return Ot(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function sd(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return zt(t,(function(t,e){var n=e.match(od);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})(i[a],t,o)||(r=!1)}})),r}var ld=ad,ud=zt,cd=Kt,hd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=hd.length;n<i;n++){var r=hd[n],o=e.normal,a=e.emphasis;o&&o[r]&&("production"!==process.env.NODE_ENV&&ko("itemStyle.normal."+r,r),t[r]=t[r]||{},t[r].normal?Lt(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&("production"!==process.env.NODE_ENV&&ko("itemStyle.emphasis."+r,"emphasis."+r),t[r]=t[r]||{},t[r].emphasis?Lt(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function dd(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&("production"!==process.env.NODE_ENV&&Mo("'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,Pt(t[e],i)):t[e]=i),r&&("production"!==process.env.NODE_ENV&&Mo(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function fd(t){dd(t,"itemStyle"),dd(t,"lineStyle"),dd(t,"areaStyle"),dd(t,"label"),dd(t,"labelLine"),dd(t,"upperLabel"),dd(t,"edgeLabel")}function gd(t,e){var n=cd(t)&&t[e],i=cd(n)&&n.textStyle;if(i){"production"!==process.env.NODE_ENV&&Mo("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var r=0,o=Lo.length;r<o;r++){var a=Lo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function vd(t){t&&(fd(t),gd(t,"label"),t.emphasis&&gd(t.emphasis,"label"))}function yd(t){return Yt(t)?t:t?[t]:[]}function md(t){return(Yt(t)?t[0]:t)||{}}function _d(t,e){ud(yd(t.series),(function(t){cd(t)&&function(t){if(cd(t)){pd(t),fd(t),gd(t,"label"),gd(t,"upperLabel"),gd(t,"edgeLabel"),t.emphasis&&(gd(t.emphasis,"label"),gd(t.emphasis,"upperLabel"),gd(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(pd(e),vd(e));var n=t.markLine;n&&(pd(n),vd(n));var i=t.markArea;i&&vd(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!$t(o))for(var a=0;a<o.length;a++)vd(o[a]);zt(t.categories,(function(t){fd(t)}))}if(r&&!$t(r))for(a=0;a<r.length;a++)vd(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)vd(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Yt(l[a])?(vd(l[a][0]),vd(l[a][1])):vd(l[a])}"gauge"===t.type?(gd(t,"axisLabel"),gd(t,"title"),gd(t,"detail")):"treemap"===t.type?(dd(t.breadcrumb,"itemStyle"),zt(t.levels,(function(t){fd(t)}))):"tree"===t.type&&fd(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ud(n,(function(e){ud(yd(t[e]),(function(t){t&&(gd(t,"axisLabel"),gd(t.axisPointer,"label"))}))})),ud(yd(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;gd(e,"axisLabel"),gd(e&&e.axisPointer,"label")})),ud(yd(t.calendar),(function(t){dd(t,"itemStyle"),gd(t,"dayLabel"),gd(t,"monthLabel"),gd(t,"yearLabel")})),ud(yd(t.radar),(function(t){gd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name,"production"!==process.env.NODE_ENV&&Mo("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&&Mo("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&ud(t.indicator,(function(t){t.text&&ko("text","name","radar.indicator")}))})),ud(yd(t.geo),(function(t){cd(t)&&(vd(t),ud(yd(t.regions),(function(t){vd(t)})))})),ud(yd(t.timeline),(function(t){vd(t),dd(t,"label"),dd(t,"itemStyle"),dd(t,"controlStyle",!0);var e=t.data;Yt(e)&&zt(e,(function(t){Kt(t)&&(dd(t,"label"),dd(t,"itemStyle"))}))})),ud(yd(t.toolbox),(function(t){dd(t,"iconStyle"),ud(t.feature,(function(t){dd(t,"iconStyle")}))})),gd(md(t.axisPointer),"label"),gd(md(t.tooltip).axisPointer,"label")}function xd(t){t&&zt(bd,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var bd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Sd.length;n++){var i=Sd[n][1],r=Sd[n][0];null!=e[i]&&(e[r]=e[i],"production"!==process.env.NODE_ENV&&ko(i,r))}}function Md(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&("production"!==process.env.NODE_ENV&&ko("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function kd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,"production"!==process.env.NODE_ENV&&ko("downplay","blur","sunburst"))}function Td(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Td(t[n].children,e)}function Ad(t,e){_d(t,e),t.series=Do(t.series),zt(t.series,(function(t){if(Kt(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow,"production"!==process.env.NODE_ENV&&ko("clipOverflow","clip","line"));else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise,"production"!==process.env.NODE_ENV&&ko("clockWise","clockwise")),Md(t.label),(r=t.data)&&!$t(r))for(var n=0;n<r.length;n++)Md(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&ko("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(Cd(t),Cd(t.backgroundStyle),Cd(t.emphasis),(r=t.data)&&!$t(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Cd(r[n]),Cd(r[n]&&r[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&&ko("highlightPolicy","emphasis.focus","sunburst"))),kd(t),Td(t.data,kd)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&("production"!==process.env.NODE_ENV&&ko("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&("production"!==process.env.NODE_ENV&&ko("mapType","map","map"),t.map=t.mapType),t.mapLocation&&("production"!==process.env.NODE_ENV&&Mo("`mapLocation` is not used anymore."),Pt(t,t.mapLocation)));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&("production"!==process.env.NODE_ENV&&ko("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),xd(t)}})),t.dataRange&&(t.visualMap=t.dataRange),zt(wd,(function(e){var n=t[e];n&&(Yt(n)||(n=[n]),zt(n,(function(t){xd(t)})))}))}function Id(t){zt(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,(function(o,l,u){var c,h,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?h=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||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(p>=0&&v>0||p<=0&&v<0){p=ao(p,v),d=v;break}}}return i[0]=p,i[1]=d,i}))}))}var Dd,Od,Ld,Ed,Nd,Pd=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",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 i=e[n];null==i.type&&zp(this,n)===Lp&&(i.type="ordinal")}};function Rd(t){return t instanceof Pd}function Bd(t,e,n){n=n||zd(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Fd(r),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===e){var s=t;"auto"===i||null==i?Gd((function(t){null!=t&&"-"!==t&&(Xt(t)?null==a&&(a=1):a=0)}),n,s,10):a=Jt(i)?i:i?1:0,r||1!==a||(r=[],Gd((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:"row"===n?s.length:s[0]?s[0].length:null}else if("objectRows"===e)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return zt(e,(function(t,e){i.push(e)})),i}}(t));else if("keyedColumns"===e)r||(r=[],zt(t,(function(t,e){r.push(e)})));else if("original"===e){var l=Eo(t[0]);o=Yt(l)&&l.length||1}else"typedArray"===e&&"production"!==process.env.NODE_ENV&&ue(!!r,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:Fd(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Pd({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Ot(e)})}function Vd(t){return new Pd({data:t,sourceFormat:$t(t)?"typedArray":"original"})}function zd(t){var e="unknown";if($t(t))e="typedArray";else if(Yt(t)){0===t.length&&(e="arrayRows");for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Yt(r)){e="arrayRows";break}if(Kt(r)){e="objectRows";break}}}}else if(Kt(t))for(var o in t)if(ye(t,o)&&Vt(t[o])){e="keyedColumns";break}return e}function Fd(t){if(t){var e=fe();return Ft(t,(function(t,n){var i={name:(t=Kt(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Gd(t,e,n,i){if("row"===e)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function Ud(t){var e=t.sourceFormat;return"objectRows"===e||"keyedColumns"===e}var Wd=function(){function t(t,e){var n=Rd(t)?t:Vd(t);this._source=n;var i=this._data=n.data;if("typedArray"===n.sourceFormat){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=i}Nd(this,i,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;Nd=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Ed[$d(a,s)];if("production"!==process.env.NODE_ENV&&ue(c,"Invalide sourceFormat: "+a),Nt(t,c),"typedArray"===a)t.getItem=e,t.count=i,t.fillStorage=n;else{var h=Yd(a,s);t.getItem=Ht(h,null,r,l,u);var p=Zd(a,s);t.count=Ht(p,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=r[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:r},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:r},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;zt(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t.original={appendData:r},t.typedArray={persistent:!1,pure:!0,appendData:function(t){"production"!==process.env.NODE_ENV&&ue($t(t),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Ed=t}(),t}(),Hd=function(t,e,n,i){return t[i]},jd=((Dd={}).arrayRows_column=function(t,e,n,i){return t[i+e]},Dd.arrayRows_row=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Dd.objectRows=Hd,Dd.keyedColumns=function(t,e,n,i,r){for(var o=r||[],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[i]:null}return o},Dd.original=Hd,Dd);function Yd(t,e){var n=jd[$d(t,e)];return"production"!==process.env.NODE_ENV&&ue(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var qd=function(t,e,n){return t.length},Xd=((Od={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},Od.arrayRows_row=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Od.objectRows=qd,Od.keyedColumns=function(t,e,n){var i=n[0].name;if("production"!==process.env.NODE_ENV&&null==i)throw new Error;var r=t[i];return r?r.length:0},Od.original=qd,Od);function Zd(t,e){var n=Xd[$d(t,e)];return"production"!==process.env.NODE_ENV&&ue(n,'Do not suppport count on "'+t+'", "'+e+'".'),n}var Jd=function(t,e,n){return t[e]},Kd=((Ld={}).arrayRows=Jd,Ld.objectRows=function(t,e,n){return t[n]},Ld.keyedColumns=Jd,Ld.original=function(t,e,n){var i=Eo(t);return i instanceof Array?i[e]:i},Ld.typedArray=Jd,Ld);function Qd(t){var e=Kd[t];return"production"!==process.env.NODE_ENV&&ue(e,'Do not suppport get value on "'+t+'".'),e}function $d(t,e){return"arrayRows"===t?t+"_"+e:t}function tf(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Qd(o)(i,a,s)}var l=i;return"original"===o&&(l=Eo(i)),l}}}var ef=/\{@(.+?)\}/g,nf=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&Yt(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return qt(r)?(s.status=e,s.dimensionIndex=i,r(s)):Xt(r)?dp(r,s).replace(ef,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1),"production"!==process.env.NODE_ENV&&isNaN(r)&&Co("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=tf(a,t,r);if(o&&Yt(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return tf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function rf(t){var e,n;return Kt(t)?t.type?n=t:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+To(t)):e=t,{text:e,frag:n}}function of(t){return new af(t)}var af=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,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(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(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(n?("production"!==process.env.NODE_ENV&&ue(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||p<d)){var f=this._progress;if(Yt(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,d,l,u);else this._doProgress(f,p,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&ue(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,i,r){sf.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:sf.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),Yt(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){"production"!==process.env.NODE_ENV&&ue(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}(),sf=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function lf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Jt(t)||null==t||"-"===t||(t=+co(t)),null==t||""===t?NaN:+t)}fe({number:function(t){return parseFloat(t)},time:function(t){return+co(t)},trim:function(t){return Xt(t)?ce(t):t}});var uf=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=Jt(t)?t:go(t),i=Jt(e)?e:go(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Xt(t),s=Xt(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),cf=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 lf(t,e)},t}();function hf(t){var e=t.sourceFormat;if(!yf(e)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+e),Ao(n)}return t.data}function pf(t){var e=t.sourceFormat,n=t.data;if(!yf(e)){var i="";"production"!==process.env.NODE_ENV&&(i="`cloneRawData` is not supported in source format "+e),Ao(i)}if("arrayRows"===e){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if("objectRows"===e){for(r=[],o=0,a=n.length;o<a;o++)r.push(Nt({},n[o]));return r}}function df(t,e,n){if(null!=n)return Jt(n)||!isNaN(n)&&!ye(e,n)?t[n]:ye(e,n)?e[n]:void 0}function ff(t){return Ot(t)}var gf=fe();function vf(t,e,n,i){var r="";e.length||("production"!==process.env.NODE_ENV&&(r="Must have at least one upstream dataset."),Ao(r)),Kt(t)||("production"!==process.env.NODE_ENV&&(r="transform declaration must be an object rather than "+typeof t+"."),Ao(r));var o=t.type,a=gf.get(o);a||("production"!==process.env.NODE_ENV&&(r='Can not find transform on type "'+o+'".'),Ao(r));var s,l=Ft(e,(function(t){return function(t,e){var n=new cf,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";"column"!==t.seriesLayoutBy&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ao(a));var s=[],l={},u=t.dimensionsDefine;if(u)zt(u,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";ye(l,n)&&("production"!==process.env.NODE_ENV&&(r='dimension name "'+n+'" duplicated.'),Ao(r)),l[n]=i}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Yd(r,"column");e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,s,t)},n.getRawData=Ht(hf,null,t)),n.cloneRawData=Ht(pf,null,t);var p=Zd(r,"column");n.count=Ht(p,null,i,o,s);var d=Qd(r);n.retrieveValue=function(t,e){var n=h(i,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Ht(df,null,s,l),n.cloneAllDimensionInfo=Ht(ff,null,s),n}(t,a)})),u=Do(a.transform({upstream:l[0],upstreamList:l,config:Ot(t.config)}));if("production"!==process.env.NODE_ENV&&t.print){var c=Ft(u,(function(t){var e=null!=i?" === pipe index: "+i:"";return["=== dataset index: "+n.datasetIndex+e+" ===","- transform result data:",To(t.data),"- transform result dimensions:",To(t.dimensions)].join("\n")})).join("\n");wo("log",c,s)}return Ft(u,(function(t,n){var i,r="";Kt(t)||("production"!==process.env.NODE_ENV&&(r="A transform should not return some empty results."),Ao(r)),t.data||("production"!==process.env.NODE_ENV&&(r="Transform result data should be not be null or undefined"),Ao(r)),yf(zd(t.data))||("production"!==process.env.NODE_ENV&&(r="Transform result data should be array rows or object rows."),Ao(r));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)),i={seriesLayoutBy:"column",sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:"column",sourceHeader:0,dimensions:t.dimensions};return Bd(t.data,i,null)}))}function yf(t){return"arrayRows"===t||"objectRows"===t}var mf,_f="undefined"==typeof Uint32Array?Array:Uint32Array,xf="undefined"==typeof Uint16Array?Array:Uint16Array,bf="undefined"==typeof Int32Array?Array:Int32Array,wf="undefined"==typeof Float64Array?Array:Float64Array,Sf={float:wf,int:bf,ordinal:Array,number:Array,time:wf};function Cf(t){return t>65535?_f:xf}function Mf(t,e,n,i,r){var o=Sf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var kf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fe()}return t.prototype.initData=function(t,e,n){"production"!==process.env.NODE_ENV&&ue(qt(t.getItem)&&qt(t.count),"Inavlid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=mf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];var o=Ud(i);this._dimensions=Ft(e,(function(t){return"production"!==process.env.NODE_ENV&&o&&ue(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,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Sf[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[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]))}i.ordinalMeta=e,i.ordinalOffset=a,i.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&&ue(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){Mf(n,l,(d=i[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<r;p++){var d=i[p],f=mf.arrayRows.call(this,t[h]||u,d.property,h,p);n[p][c]=f;var g=o[p];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 i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Ft(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),Mf(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;p<e;p++){h=i.getItem(p,h);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.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=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],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,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}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})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/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 i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;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-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=Cf(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Cf(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][p],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(r[s++]=p)}return s<i&&(n._indices=r),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 i=Wt(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Cf(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++){((_=f[g])>=u&&_<=c||isNaN(_))&&(a[s++]=d),d++}p=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],y=t[i[1]][0],m=t[i[1]][1];for(g=0;g<n;g++){var _=f[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=y&&x<=m||isNaN(x))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((_=h[C][b])<t[C][0]||_>t[C][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 i=t._chunks,r=[],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 h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],y=i[f];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Cf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,y=d;y<f;y++){var m=a[M=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=f-d;var _=p,x=Math.min(p+u,s),b=p-1,w=a[c];n=-1,r=_;var S=-1,C=0;for(y=_;y<x;y++){var M;m=a[M=this.getRawIndex(y)];isNaN(m)?(C++,S<0&&(S=M)):(i=Math.abs((b-g)*(m-w)-(b-y)*(v-w)))>n&&(n=i,r=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Cf(this._rawCount))(Math.ceil(u/s)),p=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),y=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&Gt(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):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=Ot(this._extent),t._rawExtent=Ot(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 i=0;i<n;i++)e[i]=this._indices[i]}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,i){return lf(t[i],this._dimensions[i])}mf={arrayRows:t,objectRows:function(t,e,n,i){return lf(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return lf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Tf=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if(If(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=$t(a=o.get("data",!0))?"typedArray":"original",e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=oe(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=oe(c.sourceHeader,h.sourceHeader),f=oe(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||f?[Bd(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[Bd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}"production"!==process.env.NODE_ENV&&ue(t&&e),this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&ue(null!=r||null!=i),null!=r){var o="";1!==t.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Df(o))}var a,s=[],l=[];return zt(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+r),Df(n)),s.push(e),l.push(t._getVersionSign())})),i?e=function(t,e,n){var i=Do(t),r=i.length,o="";r||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),Ao(o));for(var a=0,s=r;a<s;a++)e=vf(i[a],e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}(i,s,{datasetIndex:n.componentIndex}):null!=r&&(e=[(a=s[0],new Pd({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:Ot(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&&ue(If(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 i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];If(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new kf).initData(new Wd(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(If(t)){var e=Vp(t);return e?[e.getSourceManager()]:[]}return Ft(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Zo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Xo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(If(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Af(t){t.option.transform&&he(t.option.transform)}function If(t){return"series"===t.mainType}function Df(t){throw new Error(t)}function Of(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+up(i+"")+"px;color:"+up(n)+";font-weight:"+up(r+""),valueStyle:"font-size:"+up(a+"")+"px;color:"+up(o)+";font-weight:"+up(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Lf=[0,10,20,30],Ef=["","\n","\n\n","\n\n\n"];function Nf(t,e){return e.type=t,e}function Pf(t){return"section"===t.type}function Rf(t){return Pf(t)?Vf:zf}function Bf(t){if(Pf(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return zt(t.blocks,(function(t){var n=Bf(t);n>=e&&(e=n+ +(i&&(!n||Pf(t)&&!t.noHeader)))})),e}return 0}function Vf(t,e,n,i){var r,o=e.noHeader,a=(r=Bf(e),{html:Lf[r],richText:Ef[r]}),s=[],l=e.blocks||[];ue(!l||Yt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(ye(c,u)){var h=new uf(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}zt(l,(function(n,r){var o=e.valueFormatter,l=Rf(n)(o?Nt(Nt({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Gf(s.join(""),o?n:a.html);if(o)return p;var d=cp(e.header,"ordinal",t.useUTC),f=Of(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Uf(t,d,f)+a.richText+p:Gf('<div style="'+f+';line-height:1;">'+up(d)+"</div>"+p,n)}function zf(t,e,n,i){var r=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 Ft(t=Yt(t)?t:[t],(function(t,e){return cp(t,Yt(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":cp(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!o,v=!s&&o,y=Of(i,r),m=y.nameStyle,_=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":Uf(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Yt(e)?e.join(" "):e,o)}(t,f,g,v,_)):Gf((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+up(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Yt(t)?t:[t],'<span style="'+o+";"+i+'">'+Ft(t,(function(t){return up(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,_)),n)}}function Ff(t,e,n,i,r,o){if(t)return Rf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Gf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+';line-height:1;">'+t+'<div style="clear:both"></div></div>'}function Uf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Wf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Hf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=yo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=Xt(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+up(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+up(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return Xt(r)?r:("production"!==process.env.NODE_ENV&&ue(i),this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Yt(e)?zt(e,(function(t){return Nt(n,t)})):Nt(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function jf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=Yt(h),d=function(t,e){return fp(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||p&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=Gt(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Nf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?zt(i,(function(t){c(tf(o,n,t),t)})):zt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=tf(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var v=Go(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Nf("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[Nf("nameValue",{markerType:"item",markerColor:d,name:_,noName:!ce(_),value:e,valueType:n})].concat(i||[])})}var Yf=Ho();function qf(t,e){return t.getName(e)||t.getId(e)}var Xf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return lt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=of({count:Jf,reset:Kf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Yf(this).sourceManager=new Tf(this)).prepareSource();var i=this.getInitialData(t,n);$f(i,this),this.dataTask.context.data=i,"production"!==process.env.NODE_ENV&&ue(i,"getInitialData returned invalid data."),Yf(this).dataBeforeProcessed=i,Zf(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{},r=this.subType;Tp.hasClass(r)&&(r+="Series"),Lt(t,e.getTheme().get(this.subType)),Lt(t,this.getDefaultOption()),Oo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Sp(t,i,n)},e.prototype.mergeOption=function(t,e){t=Lt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=wp(this);n&&Sp(this.option,t,n);var i=Yf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);$f(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Yf(this).dataBeforeProcessed=r,Zf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!$t(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Oo(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=eg(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Yf(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=eg(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Yf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return fe(t)},e.prototype.getSourceManager=function(){return Yf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Yf(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 jf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(pt.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 i=this.ecModel,r=Yp.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},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 i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=qf(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],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=Wt(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[qf(i,t)])&&!i.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,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){Kt(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=qf(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=qf(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Tp.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}(Tp);function Zf(t){var e=t.name;Go(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return zt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Jf(t){return t.model.getRawData().count()}function Kf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Qf}function Qf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function $f(t,e){zt(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,jt(tg,e))}))}function tg(t,e){var n=eg(t);return n&&n.setOutputEnd((e||this).count()),e}function eg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}Bt(Xf,nf),Bt(Xf,Yp),ta(Xf,Tp);var ng=Xf,ig=function(){function t(){this.group=new Zr,this.uid=Ah("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();$o(ig),ra(ig);var rg=ig;function og(){var t=Ho();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var ag=Ho(),sg=og(),lg=function(){function t(){this.group=new Zr,this.uid=Ah("viewChart"),this.renderTask=of({plan:hg,reset:pg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r?cg(r,i,"emphasis"):"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+i.dataType)},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r?cg(r,i,"normal"):"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+i.dataType)},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){$c(this.group,t)},t.markUpdateMethod=function(t,e){ag(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function ug(t,e,n){t&&Ql(t)&&("emphasis"===e?Nl:Pl)(t,n)}function cg(t,e,n){var i=Wo(t,e),r=e&&null!=e.highlightKey?function(t){var e=pl[t];return null==e&&hl<=32&&(e=pl[t]=hl++),e}(e.highlightKey):null;null!=i?zt(Do(i),(function(e){ug(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){ug(t,n,r)}))}function hg(t){return sg(t.model)}function pg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&ag(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),dg[l]}$o(lg,["dispose"]),ra(lg);var dg={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)}}},fg=lg,gg="\0__throttleOriginMethod",vg="\0__throttleRate";function yg(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function mg(t,e,n,i){var r=t[e];if(r){var o=r[gg]||r,a=r["\0__throttleType"];if(r[vg]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=yg(o,n,"debounce"===i))[gg]=o,r["\0__throttleType"]=i,r[vg]=n}return r}}function _g(t,e){var n=t[e];n&&n[gg]&&(n.clear&&n.clear(),t[e]=n[gg])}var xg=Ho(),bg={itemStyle:oa(wh,!0),lineStyle:oa(_h,!0)},wg={lineStyle:"stroke",itemStyle:"fill"};function Sg(t,e){var n=t.visualStyleMapper||bg[e];return n||(console.warn("Unkown style type '"+e+"'."),bg.itemStyle)}function Cg(t,e){var n=t.visualDrawType||wg[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Sg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Cg(t,i),l=o[s],u=qt(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||qt(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||qt(o.stroke)?h: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 i=t.getDataParams(n),r=Nt({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},kg=new kh,Tg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Sg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){kg.option=n[i];var a=r(kg);Nt(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}}}},Ag={performRawSeries:!0,overallReset:function(t){var e=fe();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),xg(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=xg(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Cg(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},Ig=Math.PI;var Dg=function(){function t(t,e,n,i){this._stageTaskMap=fe(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):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),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=fe();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;zt(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),ue(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}zt(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(d)})),c.perform(d)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||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,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=fe(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||of({plan:Pg,reset:Rg,count:zg}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||of({reset:Og});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=fe(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,p="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,of({reset:Lg,onDirty:Ng})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}"production"!==process.env.NODE_ENV&&(p='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),ue(!t.createOnAllSeries,p),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,zt(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return qt(t)&&(t={overallReset:t,seriesType:Fg(t)}),t.uid=Ah("stageHandler"),e&&(t.visualType=e),t},t}();function Og(t){t.overallReset(t.ecModel,t.api,t.payload)}function Lg(t){return t.overallProgress&&Eg}function Eg(){this.agent.dirty(),this.getDownstream().dirty()}function Ng(){this.agent&&this.agent.dirty()}function Pg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Rg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Do(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Ft(e,(function(t,e){return Vg(e)})):Bg}var Bg=Vg(0);function Vg(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function zg(t){return t.data.count()}function Fg(t){Gg=null;try{t(Ug,Wg)}catch(t){}return Gg}var Gg,Ug={},Wg={};function Hg(t,e){for(var n in e.prototype)t[n]=me}Hg(Ug,td),Hg(Wg,nd),Ug.eachSeriesByType=Ug.eachRawSeriesByType=function(t){Gg=t},Ug.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Gg=t.subType)};var jg=Dg,Yg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],qg={color:Yg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Yg]},Xg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Zg={darkMode:!0,color:Xg,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},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:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:Xg},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Zg.categoryAxis.splitLine.show=!1;var Jg=Zg,Kg=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Xt(t)){var r=Qo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};zt(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=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,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Qg=["symbol","symbolSize","symbolRotate","symbolOffset"],$g=Qg.concat(["symbolKeepAspect"]),tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Qg.length;a++){var s=Qg[a],l=t.get(s);qt(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Nt({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Wt(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},ev={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),i=0;i<$g.length;i++){var r=$g[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function nv(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 rv(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}zt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=Nt({},e),"production"!==process.env.NODE_ENV&&ko(e.type,t[1]),r.dispatchAction(Nt(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function ov(t,e,n,i,r){var o=t+e;n.isSilent(o)||("production"!==process.env.NODE_ENV&&Mo("event "+o+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Wo(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Yt(u)?l.getName(u[0]):l.getName(u),selected:Xt(i)?i:Nt({},i)})}})))}function av(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var sv=Math.round(9*Math.random()),lv="function"==typeof Object.defineProperty,uv=function(){function t(){this._id="__ec_inner_"+sv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return lv?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}(),cv=uv,hv=Es.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),pv=Es.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),dv=Es.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=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-h*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),fv=Es.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),gv={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},vv={};zt({line:tc,rect:Xs,roundRect:Xs,square:Xs,circle:bu,diamond:pv,pin:dv,arrow:fv,triangle:hv},(function(t,e){vv[e]=new t}));var yv=Es.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Br(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=vv[i];r||(r=vv[i="rect"]),gv[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function mv(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,i,r,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://")?Vc(t.slice(8),new Ar(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Bc(t.slice(7),{},new Ar(e,n,i,r),a?"center":"cover"):new yv({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=mv,o&&s.setColor(o),s}function xv(t,e){if(null!=t)return Yt(t)||(t=[t,t]),[eo(t[0],e[0])||0,eo(oe(t[1],t[0]),e[1])||0]}function bv(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),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*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function wv(t){return parseInt(t,10)}function Sv(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||wv(s[i])||wv(t.style[i]))-(wv(s[o])||0)-(wv(s[a])||0)|0}function Cv(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Jt(e)?[e]:Yt(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Ft(r,(function(t){return t/a})),o/=a)}return[r,o]}var Mv=new ps(!0);function kv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Tv(t){return"string"==typeof t&&"none"!==t}function Av(t){var e=t.fill;return null!=e&&"none"!==e}function Iv(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 Dv(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 Ov(t,e,n){var i=ca(e.image,e.__image,n);if(pa(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*_e),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Lv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ev=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Nv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Bv(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ka.opacity:a}(i||e.blend!==n.blend)&&(o||(Bv(t,r),o=!0),t.globalCompositeOperation=e.blend||ka.blend);for(var s=0;s<Lv.length;s++){var l=Lv[s];(i||e[l]!==n[l])&&(o||(Bv(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Bv(t,r),o=!0),t.shadowColor=e.shadowColor||ka.shadowColor),o}function Pv(t,e,n,i,r){var o=Vv(e,r.inHover),a=i?null:n&&Vv(n,r.inHover)||{};if(o===a)return!1;var s=Nv(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Bv(t,r),s=!0),Tv(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Bv(t,r),s=!0),Tv(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Bv(t,r),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||(Bv(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<Ev.length;u++){var c=Ev[u],h=c[0];(i||o[h]!==a[h])&&(s||(Bv(t,r),s=!0),t[h]=o[h]||c[1])}return s}function Rv(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Bv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Vv(t,e){return e&&t.__hoverStyle||t.style}function zv(t,e){Fv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Fv(t,e,n,i){var r=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&&(Bv(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Bv(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Rv(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(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,h,p=e instanceof Es&&e.autoBatch&&function(t){var e=Av(t),n=kv(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=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Bv(t,n),Rv(t,e)):p||Bv(t,n);var d=Vv(e,n.inHover);e instanceof Es?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Pv(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=kv(n),a=Av(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Mv,h=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,v=a&&!!p.image,y=o&&!!d.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=h?bv(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?bv(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?Ov(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(b=h||!e.__canvasStrokePattern?Ov(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Cv(e))[0],C=r[1]);var k=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&Dv(t,n),a&&Iv(t,n)):(a&&Iv(t,n),o&&Dv(t,n))),S&&t.setLineDash([])}(t,e,d,p),p&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof Rs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Pv(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||dt,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=Cv(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(kv(n)&&t.strokeText(r,n.x,n.y),Av(n)&&t.fillText(r,n.x,n.y)):(Av(n)&&t.fillText(r,n.x,n.y),kv(n)&&t.strokeText(r,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,i,r){Nv(t,Vv(e,r.inHover),n&&Vv(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=ca(n.image,e.__image,e,e.onload);if(i&&pa(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=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=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fv(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fv(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)),p&&i&&Bv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Gv=new cv,Uv=new Kn(100),Wv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hv(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Gv.delete(t);var o=Gv.get(t);if(o)return o;var a=Pt(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<Wv.length;++l){var u=a[Wv[l]];if(null!=u&&!Yt(u)&&!Xt(u)&&!Jt(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=Uv.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,p=Yv(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Jt(t)){var e=Math.ceil(t);return[e,e]}var n=Ft(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=jv(a.symbol),g=(x=p,Ft(x,(function(t){return qv(t)}))),v=qv(d),y=!r&&yt.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=_o(t,g[e]);var i=1;for(e=0,n=f.length;e<n;++e)i=_o(i,f[e].length);t*=i;var r=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"),r>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var x;y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d"));(function(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-v,s=0,l=0,u=0;for(;o<_.height;){if(s%2==0){for(var c=l/2%f.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+p[u][x]*S,M=o+d[s]*S,k=p[u][x]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;I(C,M,k,T,f[c][A])}g+=p[u][x],++b,++x===p[u].length&&(x=0)}++u===p.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function I(t,e,o,s,l){var u=r?1:n,c=_v(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(c);p&&m.children.push(p)}else zv(h,c)}})(),s&&Uv.put(e,y||m);t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Gv.set(t,s),t.dirty=!1,s}function jv(t){if(!t||0===t.length)return[["rect"]];if(Xt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Xt(t[n])){e=!1;break}if(e)return jv([t]);var i=[];for(n=0;n<t.length;++n)Xt(t[n])?i.push([t[n]]):i.push(t[n]);return i}function Yv(t){if(!t||0===t.length)return[[0,0]];if(Jt(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!Jt(t[n])){e=!1;break}if(e)return Yv([t]);var i=[];for(n=0;n<t.length;++n)if(Jt(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=Ft(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function qv(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Xv=new Be,Zv={};var Jv="undefined"!=typeof window,Kv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Qv=/^[a-zA-Z0-9_]+$/;function $v(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return ey(this,t,e);My(this.id)}}function ty(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ey(this,t,e)}}function ey(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Be.prototype[e].apply(t,n)}var ny,iy,ry,oy,ay,sy,ly,uy,cy,hy,py,dy,fy,gy,vy,yy,my,_y,xy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e}(Be),by=xy.prototype;by.on=ty("on"),by.off=ty("off");var wy=function(t){function e(e,n,i){var r=t.call(this,new Kg)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Xt(n)&&(n=Oy[n]),r._dom=e;var o="canvas",a=!1;if("production"!==process.env.NODE_ENV){var s=Jv?window:global;o=s.__ECHARTS__DEFAULT__RENDERER__||o;var l=s.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;a=null==l?a:l}var u=r._zr=$r(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._ssr=i.ssr,r._throttledZrFlush=yg(Ht(u.flush,u),17),(n=Ot(n))&&Ad(n,!0),r._theme=n,r._locale=function(t){if(Xt(t)){var e=Dh[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Ot(e):Lt(Ot(e),Ot(Dh.EN),!1)}return Lt(Ot(t),Ot(Dh.EN),!1)}(i.locale||Lh),r._coordSysMgr=new rd;var c=r._api=vy(r);function h(t,e){return t.__prio-e.__prio}return vn(Dy,h),vn(Ay,h),r._scheduler=new jg(r,c,Ay,Dy),r._messageCenter=new xy,r._initEvents(),r.resize=Ht(r.resize,r),u.animation.on("frame",r._onframe,r),hy(u,r),py(u,r),he(r),r}return lt(e,t),e.prototype._onframe=function(){if(!this._disposed){_y(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{ny(this),oy.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,uy.call(this,e),cy.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),sy(this,i),t.performVisualTasks(i),gy(this,this._model,r,"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&&Co("`setOption` should not be called during main process.");else if(this._disposed)My(this.id);else{var i,r,o;if(Kt(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ld(this._api),s=this._theme,l=this._model=new td;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Iy);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{ny(this),oy.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,uy.call(this,i),cy.call(this,i)}}},e.prototype.setTheme=function(){Mo("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||Jv&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return"production"!==process.env.NODE_ENV&&ko("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(pt.svgSupported){var t=this._zr;return zt(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,i=[],r=this;zt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.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 zt(i,(function(t){t.group.ignore=!1})),o}My(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Ny[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();zt(Ey,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Ot(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),c.push({dom:p,left:d.left,top:d.top})}}));var p=(l*=h)-(a*=h),d=(u*=h)-(s*=h),f=yt.createCanvas(),g=$r(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),e){var v="";return zt(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 Xs({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),zt(c,(function(t){var e=new Fs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}My(this.id)},e.prototype.convertToPixel=function(t,e){return ay(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return ay(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return zt(Yo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&zt(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n=n||o.containPoint(e,t):"production"!==process.env.NODE_ENV&&console.warn(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&console.warn(i+": containPoint is not supported")}),this)}),this),!!n;My(this.id)},e.prototype.getVisual=function(t,e){var n=Yo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel;"production"!==process.env.NODE_ENV&&(i||console.warn("There is no specified seires model"));var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?nv(r,o,e):iv(r,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,i=this;zt(Cy,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&av(o,(function(t){var e=cl(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Nt({},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&&r.getComponent(s,l),c=u&&i["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,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),zt(Ty,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),zt(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(ov("map","selectchanged",e,i,t),ov("pie","selectchanged",e,i,t)):"select"===t.fromAction?(ov("map","selected",e,i,t),ov("pie","selected",e,i,t)):"unselect"===t.fromAction&&(ov("map","unselected",e,i,t),ov("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?My(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)My(this.id);else{this._disposed=!0,this.getDom()&&Jo(this.getDom(),Ry,"");var t=this,e=t._api,n=t._model;zt(t._componentsViews,(function(t){t.dispose(n,e)})),zt(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 Ey[t.id]}},e.prototype.resize=function(t){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Co("`resize` should not be called during main process.");else if(this._disposed)My(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&ny(this),oy.update.call(this,{type:"resize",animation:Nt({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,uy.call(this,i),cy.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)My(this.id);else if(Kt(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ly[t]){var n=Ly[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else"production"!==process.env.NODE_ENV&&console.warn("Loading effects "+t+" not exists.")},e.prototype.hideLoading=function(){this._disposed?My(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Nt({},t);return e.type=Ty[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)My(this.id);else if(Kt(e)||(e={silent:!!e}),ky[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;ly.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&pt.browser.weChat&&this._throttledZrFlush(),uy.call(this,n),cy.call(this,n)}},e.prototype.updateLabelLayout=function(){Xv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)My(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);"production"!==process.env.NODE_ENV&&ue(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,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}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,r=t.get("zlevel")||0;e.eachRendered((function(t){return i(t,n,r,-1/0),!0}))}}function i(t,e,n,r){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(i(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(o&&(o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function r(t,e){e.eachRendered((function(t){if(!Tc(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 i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Tc(t))return;if(t instanceof Es&&function(t){var e=dl(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(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}ny=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),iy(t,!0),iy(t,!1),e.plan()},iy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Qo(t.type),p=e?rg.getClass(h.main,h.sub):fg.getClass(h.sub);"production"!==process.env.NODE_ENV&&ue(p,h.sub+" does not exist."),(c=new p).init(n,s),o[u]=c,r.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&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},ry=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=fe(),zt(Do(u),(function(t){var e=Vo(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!==l.get(e.id)))if(tu(n))if(e instanceof ng)"highlight"!==n.type||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Wo(r,e);o=(Yt(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=cl(a);Gl(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Gl(i,c,h,n)}}else"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+e.dataType)}(e,n,t._api);else{var i=Wl(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;"highlight"===n.type&&r&&!n.notBlur&&Ul(e.mainType,e.componentIndex,t._api),o&&zt(o,(function(t){"highlight"===n.type?Nl(t):Pl(t)}))}else $l(n)&&e instanceof ng&&(!function(t,e,n){if($l(e)){var i=e.dataType,r=Wo(t.getData(i),e);Yt(r)||(r=[r]),t["toggleSelect"===e.type?"toggleSelect":"select"===e.type?"select":"unselect"](r,i)}}(e,n,t._api),Hl(e),my(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!==l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else zt([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},oy={prepareAndUpdate:function(t){ny(this),oy.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),sy(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),dy(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Xv.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=fe();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),gy(this,i,r,e,{},a),Xv.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),fg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),dy(this,n,this._api,e,{}),Xv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),fg.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),Xv.trigger("afterupdate",i,this._api))},updateLayout:function(t){oy.update.call(this,t)}},ay=function(t,e,n,i){if(t._disposed)My(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Yo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}"production"!==process.env.NODE_ENV&&console.warn("No coordinate system that supports "+e+" found by the given finder.")}},sy=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},ly=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ky[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Qo(l[0]);this.__flagInMainProcess=!0;var h=[t],p=!1;t.batch&&(p=!0,h=Ft(t.batch,(function(e){return(e=Pt(Nt({},e),t)).batch=null,e})));var d,f=[],g=$l(t),v=tu(t);if(v&&Fl(this._api),zt(h,(function(e){if((d=(d=a.action(e,n._model,n._api))||Nt({},e)).type=s.event||d.type,f.push(d),v){var i=qo(t),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";ry(n,u,e,o),my(n)}else g?(ry(n,u,e,"series"),my(n)):c&&ry(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this.__pendingUpdate?(ny(this),oy.update.call(this,t),this.__pendingUpdate=null):oy[u].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(d=p?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!e){var y=this._messageCenter;if(y.trigger(d.type,d),g){var m={type:"selectchanged",escapeConnect:o,selected:jl(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},uy=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ly.call(this,n,t)}},cy=function(t){!t&&this.trigger("updated")},hy=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")}))},py=function(t,e){t.on("mouseover",(function(t){var n=av(t.target,Ql);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ql(t)||Co("param should be highDownDispatcher");var i=cl(t),r=Wl(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Ul(i.componentMainType,i.componentIndex,n),zt(o,(function(t){return Ll(t,e)}))):(Gl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Ul(i.componentMainType,i.componentIndex,n),Ll(t,e))}(n,t,e._api),my(e))})).on("mouseout",(function(t){var n=av(t.target,Ql);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ql(t)||Co("param should be highDownDispatcher"),Fl(n);var i=cl(t),r=Wl(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?zt(r,(function(t){return El(t,e)})):El(t,e)}(n,t,e._api),my(e))})).on("click",(function(t){var n=av(t.target,(function(t){return null!=cl(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=cl(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},dy=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);vn(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),zt(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}(e),fy(t,e,n,i,r),zt(t._chartsViews,(function(t){t.__alive=!1})),gy(t,e,n,i,r),zt(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},fy=function(t,e,i,a,s,l){zt(l||t._componentsViews,(function(t){var s=t.__model;r(s,t),t.render(s,e,i,a),n(s,t),o(s,t)}))},gy=function(t,e,i,a,s,l){var u=t._scheduler;s=Nt(s||{},{updatedSeries:e.getSeries()}),Xv.trigger("series:beforeupdate",e,i,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(e,n),l&&l.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(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),Hl(e)})),u.unfinished=c||u.unfinished,Xv.trigger("series:layoutlabels",e,i,s),Xv.trigger("series:transition",e,i,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),o(e,i)})),function(t,e){var n=t._zr.storage,i=0;n.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!pt.node&&!pt.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),Xv.trigger("series:afterupdate",e,i,s)},my=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},_y=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){Tc(t)||e(t)})),t.__needsUpdateStatus=!1)},vy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return lt(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){Nl(e,n),my(t)},n.prototype.leaveEmphasis=function(e,n){Pl(e,n),my(t)},n.prototype.enterBlur=function(e){!function(t){Al(t,Sl)}(e),my(t)},n.prototype.leaveBlur=function(e){Rl(e),my(t)},n.prototype.enterSelect=function(e){Bl(e),my(t)},n.prototype.leaveSelect=function(e){Vl(e),my(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}(nd))(t)},yy=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n].__connectUpdateStatus=e}}zt(Ty,(function(n,i){t._messageCenter.on(i,(function(n){if(Ny[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];zt(Ey,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),zt(r,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(Be),Sy=wy.prototype;Sy.on=$v("on"),Sy.off=$v("off"),Sy.one=function(t,e,n){var i=this;Mo("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var Cy=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function My(t){"production"!==process.env.NODE_ENV&&console.warn("Instance "+t+" has been disposed")}var ky={},Ty={},Ay=[],Iy=[],Dy=[],Oy={},Ly={},Ey={},Ny={},Py=+new Date-0,Ry="_echarts_instance_";function By(t,e,n){var i=!(n&&n.ssr);if(i){if("production"!==process.env.NODE_ENV&&!t)throw new Error("Initialize failed: invalid dom.");var r=function(t){return Ey[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Ry)]}(t);if(r)return"production"!==process.env.NODE_ENV&&console.warn("There is a chart instance already initialized on the dom."),r;"production"!==process.env.NODE_ENV&&(!te(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 wy(t,e,n);return o.id="ec_"+Py++,Ey[o.id]=o,i&&Jo(t,Ry,o.id),yy(o),Xv.trigger("afterinit",o),o}function Vy(t,e){Oy[t]=e}function zy(t){Rt(Iy,t)<0&&Iy.push(t)}function Fy(t,e){jy(Ay,t,e,2e3)}function Gy(t,e){Xv.on(t,e)}function Uy(t,e,n){qt(e)&&(n=e,e="");var i=Kt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Ty[e]||(ue(Qv.test(i)&&Qv.test(e)),ky[i]||(ky[i]={action:n,actionInfo:t}),Ty[e]=i)}function Wy(t,e){jy(Dy,t,e,3e3,"visual")}var Hy=[];function jy(t,e,n,i,r){if((qt(e)||Kt(e))&&(n=e,e=i),"production"!==process.env.NODE_ENV){if(isNaN(e)||null==e)throw new Error("Illegal priority");zt(t,(function(t){ue(t.__raw!==n)}))}if(!(Rt(Hy,n)>=0)){Hy.push(n);var o=jg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Yy(t,e){Ly[t]=e}function qy(t,e,n){var i,r=(i="registerMap","production"!==process.env.NODE_ENV&&(Zv[i]||Co("Implementation of "+i+" doesn't exists.")),Zv[i]);r&&r(t,e,n)}var Xy=function(t){var e=(t=Ot(t)).type,n="";e||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),Ao(n));var i=e.split(":");2!==i.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),Ao(n));var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,gf.set(e,t)};function Zy(t){return null==t?0:t.length||1}function Jy(t){return t}Wy(2e3,Mg),Wy(4500,Tg),Wy(4500,Ag),Wy(2e3,tv),Wy(4500,ev),Wy(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Hv(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=Hv(r,e)}}))})),zy(Ad),Fy(900,(function(t){var e=fe();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Id)})),Yy("default",(function(t,e){Pt(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 Zr,i=new Xs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ul({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 Xs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new lc({shape:{startAngle:-Ig/2,endAngle:-Ig/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*Ig/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ig/2}).delay(300).start("circularInOut"),n.add(r)),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&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Uy({type:"highlight",event:"highlight",update:"highlight"},me),Uy({type:"downplay",event:"downplay",update:"downplay"},me),Uy({type:"select",event:"select",update:"select"},me),Uy({type:"unselect",event:"unselect",update:"unselect"},me),Uy({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},me),Vy("light",qg),Vy("dark",Jg);var Ky=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jy,this._newKeyGetter=i||Jy,this.context=r,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={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Zy(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(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Zy(l),h=Zy(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Zy(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Zy(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Qy=Ky,$y=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 tm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var em=function(t){this.otherDims={},null!=t&&Nt(this,t)},nm=Ho(),im={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rm=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=sm(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return oe(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=Ud(this.source),n=!lm(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=im[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function om(t){return t instanceof rm}function am(t){for(var e=fe(),n=0;n<(t||[]).length;n++){var i=t[n],r=Kt(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function sm(t){var e=nm(t);return e.dimNameMap||(e.dimNameMap=am(t.dimensionsDefine))}function lm(t){return t>30}var um,cm,hm,pm,dm,fm,gm,vm=Kt,ym=Ft,mm="undefined"==typeof Int32Array?Array:Int32Array,_m=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xm=["_approximateExtent"],bm=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 i=!1;om(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Xt(c)?new em({name:c}):c instanceof em?c:new em(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&ue(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=fe();zt(o,(function(t){f.set(r[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 i=this._schema.getSourceDimension(e);return i?i.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(Jt(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 i=n.encode[t];return i?i[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 i,r=this;if(t instanceof kf&&(i=t),!i){var o=this.dimensions,a=Rd(t)||Vt(t)?new Wd(t,o.length):t;i=new kf;var s=ym(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=fe(),o=[],a=[],s={};zt(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&ue(null==Op.get(u));var c=l.coordDimIndex;tm(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),tm(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Op.each((function(t,e){var n=tm(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Ft(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new $y(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),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&gm(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&"typedArray"!==t.getSource().sourceFormat&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&No(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=Vo(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=Vo(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)gm(this,a);um(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){vm(t)?Nt(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=hm(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return cm(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.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,i=this._store;return Yt(t)?i.getValues(ym(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;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 i=n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){qt(t)&&(n=e,e=t,t=[]);var i=n||this,r=ym(pm(t),this._getStoreDimIndex,this);this._store.each(r,i?Ht(e,i):e)},t.prototype.filterSelf=function(t,e,n){qt(t)&&(n=e,e=t,t=[]);var i=n||this,r=ym(pm(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Ht(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={};return zt(Wt(t),(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){qt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=ym(pm(t),this._getStoreDimIndex,this),a=fm(this);return a._store=this._store.map(o,r?Ht(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=this,o=n||i||this;"production"!==process.env.NODE_ENV&&zt(pm(t),(function(t){r.getDimensionInfo(t).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=ym(pm(t),this._getStoreDimIndex,this);this._store.modify(a,o?Ht(e,o):e)},t.prototype.downSample=function(t,e,n,i){var r=fm(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=fm(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 kh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Qy(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return cm(t,e)}),(function(t){return cm(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||{},vm(t)?Nt(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(Yt(r=this.getVisual(e))?r=r.slice():vm(r)&&(r=Nt({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vm(e)?Nt(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){vm(t)?Nt(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?Nt(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=cl(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse((function(i){var r=cl(i);r.seriesIndex=t,r.dataIndex=n,r.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){zt(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ym(this.dimensions,this._getDimInfo,this),this.hostModel)),dm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];qt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(se(arguments)))})},t.internalField=(um=function(t){var e=t._invertedIndicesMap;zt(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new mm(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},hm=function(t,e,n){return Vo(t._getCategory(e,n),null)},cm=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=hm(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},pm=function(t){return Yt(t)||(t=null!=t?[t]:[]),t},fm=function(e){var n=new t(e._schema?e._schema:ym(e.dimensions,e._getDimInfo,e),e.hostModel);return dm(n,e),n},dm=function(t,e){zt(_m.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,zt(xm,(function(n){t[n]=Ot(e[n])})),t._calculationInfo=Nt({},e._calculationInfo)},void(gm=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=hm(t,r,e)),null==s&&null!=o&&(i[e]=s=hm(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),i[e]=s}})),t}(),wm=bm;function Sm(t,e){Rd(t)||(t=Vd(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=fe(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return zt(e,(function(t){var e;Kt(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&lm(a),l=i===t.dimensionsDefine,u=l?sm(t):am(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=fe(c),p=new bf(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=i[t],r=Kt(n)?n:{name:n},a=new em,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each((function(t,e){var n=Do(t).slice();if(1===n.length&&!Xt(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);zt(n,(function(t,n){var r=Xt(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))}))}}));var g=0;function v(t,e,n){null!=Op.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}zt(n,(function(t){var e,n,i,r;if(Xt(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=Nt({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=Do(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++)}zt(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v(Pt(a,r),e,o),null==a.name&&n){var s=n[o];!Kt(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Pt(a.otherDims,i)}))}}));var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var x=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)zt(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=Cm(x,r,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||zp(t,w)!==Lp&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=fe(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new rm({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Cm(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}var Mm=function(t){this.coordSysDims=[],this.axisMap=fe(),this.categoryAxisMap=fe(),this.coordSysName=t};var km={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Xo).models[0],o=t.getReferringComponents("yAxis",Xo).models[0];if("production"!==process.env.NODE_ENV){if(!r)throw new Error('xAxis "'+re(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+re(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Tm(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Tm(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Xo).models[0];if("production"!==process.env.NODE_ENV&&!r)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",r),Tm(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Xo).models[0],o=r.findAxisModel("radiusAxis"),a=r.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),Tm(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Tm(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();zt(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Tm(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Tm(t){return"category"===t.get("type")}function Am(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!om(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,p=!(!t||!t.get("stack"));if(zt(i,(function(t,e){Xt(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;zt(i,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Im(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Dm(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Vd(t)):o="original"===(i=r.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),n=new Mm(e),i=km[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=rd.get(i);return e&&e.coordSysDims&&(n=Ft(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=qt(l)?l:l?jt(Rp,s,e):null,c=Sm(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&zt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=Am(e,{schema:c,store:p}),f=new wm(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if("original"===t.sourceFormat){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!Yt(Eo(e))}}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var Om=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}();ra(Om);var Lm=Om,Em=0,Nm=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Em}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Ft(i,Pm);return new t({categories:r,needCollect:!r,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(!Xt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=fe(this.categories))},t}();function Pm(t){return Kt(t)&&null!=t.value?t.value:t+""}var Rm=Nm;function Bm(t){return"interval"===t.type||"log"===t.type}function Vm(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=po(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Fm(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Gm(t,0,e),Gm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[no(Math.ceil(t[0]/a)*a,s),no(Math.floor(t[1]/a)*a,s)],t),r}function zm(t){var e=Math.pow(10,ho(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,no(n*e)}function Fm(t){return ro(t)+2}function Gm(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Um(t,e){return t>=e[0]&&t<=e[1]}function Wm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Hm(t,e){return t*(e[1]-e[0])+e[0]}var jm=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Rm({})),Yt(i)&&(i=new Rm({categories:Ft(i,(function(t){return Kt(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return lt(e,t),e.prototype.parse=function(t){return null==t?NaN:Xt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Um(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Wm(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Hm(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=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}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}(Lm);Lm.registerClass(jm);var Ym=jm,qm=no,Xm=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 lt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Um(t,this._extent)},e.prototype.normalize=function(t){return Wm(t,this._extent)},e.prototype.scale=function(t){return Hm(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=Fm(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:qm(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=qm(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:qm(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=qm(a.value+(s+1)*u);c>i[0]&&c<i[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=ro(t.value)||0:"auto"===n&&(n=this._intervalPrecision),rp(qm(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=Vm(i,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 i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=qm(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=qm(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Lm);Lm.registerClass(Xm);var Zm=Xm,Jm="undefined"!=typeof Float32Array,Km=Jm?Float32Array:Array;function Qm(t){return Yt(t)?Jm?new Float32Array(t):t:new Km(t)}function $m(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function t_(t){return t.dim+t.index}function e_(t,e){var n=[];return e.eachSeriesByType(t,(function(t){r_(t)&&n.push(t)})),n}function n_(t){var e=function(t){var e={};zt(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return zt(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var p=eo(t.get("barWidth"),i),d=eo(t.get("barMaxWidth"),i),f=eo(t.get("barMinWidth")||(o_(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:t_(r),stackId:$m(t)})})),function(t){var e={};zt(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return zt(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Wt(i).length;o=Math.max(35-4*a,15)+"%"}var s=eo(o,r),l=eo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),zt(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;zt(i,(function(t,e){t.width||(t.width=h),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;zt(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}(n)}function i_(t,e){var n=e_(t,e),i=n_(n);zt(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=$m(t),o=i[t_(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function r_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function o_(t){return t.pipelineContext&&t.pipelineContext.large}var a_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return lt(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Gh(t.value,Ph[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(zh(this._minLevelUnit))]||Ph.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(Xt(n))o=n;else if(qt(n))o=n(t.value,e,{level:t.level});else{var a=Nt({},Nh);if(t.level>0)for(var s=0;s<Rh.length;++s)a[Rh[s]]="{primary|"+a[Rh[s]]+"}";var l=n?!1===n.inherit?n:Pt(n,a):a,u=Uh(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=Bh.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Yt(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 Gh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=Bh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!function(t,e,n,i){var r=co(e),o=co(n),a=function(t){return Wh(r,t,i)===Wh(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}(zh(t),i[0],i[1],n)){l&&(r=[{value:d_(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var p=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/864e5/365)),d=Hh(n),f=Kh(n);break;case"half-year":case"quarter":case"month":p=u_(e),d=jh(n),f=Qh(n);break;case"week":case"half-week":case"day":p=l_(e),d=Yh(n),f=$h(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=c_(e),d=qh(n),f=tp(n);break;case"minute":p=h_(e,!0),d=Xh(n),f=ep(n);break;case"second":p=h_(e,!1),d=Zh(n),f=np(n);break;case"millisecond":p=p_(e),d=Jh(n),f=ip(n)}s(p,c,h,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,p=0,d=0;d<o.length&&a++<r;++d){var f=zh(o[d]);if(Fh(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?zh(o[d+1]):null)){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<c.length;++v){var y=c[v].value;0!==v&&c[v-1].value===y||(g.push(c[v]),y>=i[0]&&y<=i[1]&&h++)}var m=(i[1]-i[0])/e;if(h>1.5*m&&p>m/1.5)break;if(u.push(g),h>m||t===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=r&&So("Exceed safe limit.");var _=Ut(Ft(u,(function(t){return Ut(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],b=_.length-1;for(d=0;d<_.length;++d)for(var w=_[d],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-d});x.sort((function(t,e){return t.value-e.value}));var C=[];for(d=0;d<x.length;++d)0!==d&&x[d].value===x[d-1].value||C.push(x[d]);return C}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),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]-864e5}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=s_.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(s_,this._approxInterval,0,o),o-1);this._interval=s_[a][1],this._minLevelUnit=s_[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Jt(t)?t:+co(t)},e.prototype.contain=function(t){return Um(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Wm(this.parse(t),this._extent)},e.prototype.scale=function(t){return Hm(t,this._extent)},e.type="time",e}(Zm),s_=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function l_(t,e){return(t/=864e5)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function u_(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function c_(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function h_(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function p_(t){return po(t,!0)}function d_(t,e,n){var i=new Date(t);switch(zh(e)){case"year":case"month":i[Qh(n)](0);case"day":i[$h(n)](1);case"hour":i[tp(n)](0);case"minute":i[ep(n)](0);case"second":i[np(n)](0),i[ip(n)](0)}return i.getTime()}Lm.registerClass(a_);var f_=a_,g_=Lm.prototype,v_=Zm.prototype,y_=no,m_=Math.floor,__=Math.ceil,x_=Math.pow,b_=Math.log,w_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Zm,e._interval=0,e}return lt(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return Ft(v_.getTicks.call(this,t),(function(t){var e=t.value,r=no(x_(this.base,e));return r=e===n[0]&&this._fixMin?C_(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?C_(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=b_(t)/b_(n),e=b_(e)/b_(n),v_.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=g_.getExtent.call(this);e[0]=x_(t,e[0]),e[1]=x_(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=C_(e[0],n[0])),this._fixMax&&(e[1]=C_(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=b_(t[0])/b_(e),t[1]=b_(t[1])/b_(e),g_.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 i,r=(i=n,Math.pow(10,ho(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[no(__(e[0]/r)*r),no(m_(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){v_.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 Um(t=b_(t)/b_(this.base),this._extent)},e.prototype.normalize=function(t){return Wm(t=b_(t)/b_(this.base),this._extent)},e.prototype.scale=function(t){return t=Hm(t,this._extent),x_(this.base,t)},e.type="log",e}(Lm),S_=w_.prototype;function C_(t,e){return y_(t,ro(e))}S_.getMinorTicks=v_.getMinorTicks,S_.getLabel=v_.getLabel,Lm.registerClass(w_);var M_=w_,k_=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 i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);qt(r)?this._modelMinNum=I_(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=I_(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(qt(o)?this._modelMaxNum=I_(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=I_(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Yt(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=[Rr(s[0],1),Rr(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=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?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ie(a)||ie(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){"production"!==process.env.NODE_ENV&&ue(!this.frozen),this[A_[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=T_[t];"production"!==process.env.NODE_ENV&&ue(!this.frozen&&null==this[n]),this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),T_={min:"_determinedMin",max:"_determinedMax"},A_={min:"_dataMin",max:"_dataMax"};function I_(t,e){return null==e?null:ie(e)?NaN:t.parse(e)}function D_(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new k_(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=e_("bar",a),l=!1;if(zt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=n_(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[t_(e)];return null!=i&&null!=n?i[$m(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;zt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;zt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function O_(t,e){var n=e,i=D_(t,n),r=i.extent,o=n.get("splitNumber");t instanceof M_&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function L_(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):Xt(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):qt(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(E_(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function E_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function N_(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Ar(t.x,t.y,o,a)}function P_(t){var e=t.get("interval");return null==e?"auto":e}function R_(t){return"category"===t.type&&0===P_(t.getLabelModel())}function B_(t,e){var n={};return zt(t.mapDimensionsAll(e),(function(e){n[function(t,e){return Im(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0})),Wt(n)}var V_=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),z_=[],F_={registerPreprocessor:zy,registerProcessor:Fy,registerPostInit:function(t){Gy("afterinit",t)},registerPostUpdate:function(t){Gy("afterupdate",t)},registerUpdateLifecycle:Gy,registerAction:Uy,registerCoordinateSystem:function(t,e){rd.register(t,e)},registerLayout:function(t,e){jy(Dy,t,e,1e3,"layout")},registerVisual:Wy,registerTransform:Xy,registerLoading:Yy,registerMap:qy,registerImpl:function(t,e){"production"!==process.env.NODE_ENV&&Zv[t]&&Co("Already has an implementation of "+t+"."),Zv[t]=e},PRIORITY:Kv,ComponentModel:Tp,ComponentView:rg,SeriesModel:ng,ChartView:fg,registerComponentModel:function(t){Tp.registerClass(t)},registerComponentView:function(t){rg.registerClass(t)},registerSeriesModel:function(t){ng.registerClass(t)},registerChartView:function(t){fg.registerClass(t)},registerSubTypeDefaulter:function(t,e){Tp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Jr[t]=n}};function G_(t){Yt(t)?zt(t,(function(t){G_(t)})):Rt(z_,t)>=0||(z_.push(t),qt(t)&&(t={install:t}),t.install(F_))}function U_(t,e){return Math.abs(t-e)<1e-8}function W_(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=xs(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return U_(r[0],s[0])&&U_(r[1],s[1])||(i+=xs(r[0],r[1],s[0],s[1],e,n)),0!==i}var H_=[];function j_(t,e){for(var n=0;n<t.length;n++)De(t[n],t[n],e)}function Y_(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Oe(e,e,o),Le(n,n,o))}}var q_=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},Z_=function(t){this.type="linestring",this.points=t},J_=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return lt(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return e?[n/e/3,i/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],i=[-1/0,-1/0];return zt(this.geometries,(function(e){"polygon"===e.type?Y_(e.exterior,n,i,t):zt(e.points,(function(e){Y_(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new Ar(n[0],n[1],i[0]-n[0],i[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 i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(W_(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(W_(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Ar(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(j_(c.exterior,s),zt(c.interiors,(function(t){j_(t,s)}))):zt(c.points,(function(t){j_(t,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.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}(q_),K_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return lt(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],i=nr(H_),r=t;r&&!r.isGeoSVGGraphicRoot;)rr(i,r.getLocalTransform(),i),r=r.parent;return lr(i,i),De(n,n,i),n},e}(q_);function Q_(t,e,n){for(var i=0;i<t.length;i++)t[i]=$_(t[i],e[i],n)}function $_(t,e,n){for(var i=[],r=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),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function tx(t,e){return Ft(Ut((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),zt(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=$_(r,i,n);break;case"Polygon":case"MultiLineString":Q_(r,i,n);break;case"MultiPolygon":zt(r,(function(t,e){return Q_(t,i[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,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new X_(o[0],o.slice(1)));break;case"MultiPolygon":zt(i.coordinates,(function(t){t[0]&&r.push(new X_(t[0],t.slice(1)))}));break;case"LineString":r.push(new Z_([i.coordinates]));break;case"MultiLineString":r.push(new Z_(i.coordinates))}var a=new J_(n[e||"name"],r,n.cp);return a.properties=n,a}))}var ex=Ho();function nx(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=rx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=L_(t);return{labels:Ft(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function ix(t,e){return"category"===t.type?function(t,e){var n,i,r=ox(t,"ticks"),o=P_(e),a=ax(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(qt(o))n=ux(t,o,!0);else if("auto"===o){var s=rx(t,t.getLabelModel());i=s.labelCategoryInterval,n=Ft(s.labels,(function(t){return t.tickValue}))}else n=lx(t,i=o,!0);return sx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:Ft(t.scale.getTicks(),(function(t){return t.value}))}}function rx(t,e){var n,i,r=ox(t,"labels"),o=P_(e),a=ax(r,o);return a||(qt(o)?n=ux(t,o):(i="auto"===o?function(t){var e=ex(t).autoInterval;return null!=e?e:ex(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=lx(t,i)),sx(r,o,{labels:n,labelCategoryInterval:i}))}function ox(t,e){return ex(t)[e]||(ex(t)[e]=[])}function ax(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function sx(t,e,n){return t.push({key:e,value:n}),n}function lx(t,e,n){var i=L_(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=R_(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&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:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function ux(t,e,n){var i=t.scale,r=L_(t),o=[];return zt(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var cx=[0,1],hx=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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},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,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+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,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&px(n=n.slice(),i.count()),to(t,cx,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&px(n=n.slice(),i.count());var r=to(t,n,cx,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Ft(ix(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,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;zt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=no(t),e=no(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),Ft(this.scale.getMinorTicks(t),(function(t){return Ft(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return nx(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/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=L_(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.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(i)),h=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,v=Lr(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var y=p/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=ex(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}(this)},t}();function px(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var dx=hx;function fx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}ps.CMD;var gx=new mr,vx=new mr,yx=new mr,mx=new mr,_x=new mr,xx=[],bx=new mr;function Sx(t,e){if(e<=180&&e>0){e=e/180*Math.PI,gx.fromArray(t[0]),vx.fromArray(t[1]),yx.fromArray(t[2]),mr.sub(mx,gx,vx),mr.sub(_x,yx,vx);var n=mx.len(),i=_x.len();if(!(n<.001||i<.001)){mx.scale(1/n),_x.scale(1/i);var r=mx.dot(_x);if(Math.cos(e)<r){var o=fx(vx.x,vx.y,yx.x,yx.y,gx.x,gx.y,xx,!1);bx.fromArray(xx),bx.scaleAndAdd(_x,o/Math.tan(Math.PI-e));var a=yx.x!==vx.x?(bx.x-vx.x)/(yx.x-vx.x):(bx.y-vx.y)/(yx.y-vx.y);if(isNaN(a))return;a<0?mr.copy(bx,vx):a>1&&mr.copy(bx,yx),bx.toArray(t[1])}}}}function Cx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,gx.fromArray(t[0]),vx.fromArray(t[1]),yx.fromArray(t[2]),mr.sub(mx,vx,gx),mr.sub(_x,yx,vx);var i=mx.len(),r=_x.len();if(!(i<.001||r<.001))if(mx.scale(1/i),_x.scale(1/r),mx.dot(e)<Math.cos(n)){var o=fx(vx.x,vx.y,yx.x,yx.y,gx.x,gx.y,xx,!1);bx.fromArray(xx);var a=Math.PI/2,s=a+Math.acos(_x.dot(e))-n;if(s>=a)mr.copy(bx,yx);else{bx.scaleAndAdd(_x,o/Math.tan(Math.PI/2-s));var l=yx.x!==vx.x?(bx.x-vx.x)/(yx.x-vx.x):(bx.y-vx.y)/(yx.y-vx.y);if(isNaN(l))return;l<0?mr.copy(bx,vx):l>1&&mr.copy(bx,yx)}bx.toArray(t[1])}}}function Mx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function kx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Te(i[0],i[1]),o=Te(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Ie([],i[1],i[0],a/r),l=Ie([],i[1],i[2],a/o),u=Ie([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Tx(t,e,n,i){return function(t,e,n,i,r,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,h=0;h<a;h++){var p=t[h],d=p.rect;(s=d[e]-l)<0&&(d[e]-=s,p.label[e]-=s,u=!0),c+=Math.max(-s,0),l=d[e]+d[n]}c>0&&o&&x(-c/a,0,a);var f,g,v=t[0],y=t[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),_(f,g,1),_(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=v.rect[e]-i,g=r-y.rect[e]-y.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function x(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++)x(o[l]*h,0,l+1);else for(l=a-1;l>0;l--)x(-o[l-1]*h,l,a)}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,i)}var Ax=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ix(t,e){return n=Object.create(null),Ax.forEach((function(i){n[i]=function(n){return function(){if(t.value||e(),!t.value)throw new Error("ECharts is not initialized yet.");for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return t.value[n].apply(t.value,r)}}(i)})),n;var n}function Dx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ox,Lx={exports:{}},Ex={exports:{}};(Ox=Ex).exports=function(t){if(Array.isArray(t))return t},Ox.exports.__esModule=!0,Ox.exports.default=Ox.exports;var Nx={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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports}(Nx);var Px={exports:{}},Rx={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i},t.exports.__esModule=!0,t.exports.default=t.exports}(Rx),function(t){var e=Rx.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(Px);var Bx={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}(Bx),function(t){var e=Ex.exports,n=Nx.exports,i=Px.exports,r=Bx.exports;t.exports=function(t,o){return e(t)||n(t,o)||i(t,o)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(Lx);var Vx=Dx(Lx.exports);var zx={autoresize:Boolean};var Fx={loading:Boolean,loadingOptions:Object};function Gx(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}Gx("x-vue-echarts{display:block;height:100%;width:100%}");var Ux=/^on[^a-z]/,Wx=function(t){return Ux.test(t)};var Hx=o({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},zx),Fx),inheritAttrs:!1,setup:function(o,c){var p=c.attrs,d=c.listeners,f=a(),g=a(),v=a(),y=e("ecTheme",null),m=e("ecInitOptions",null),_=e("ecUpdateOptions",null),x=s(o),b=x.autoresize,w=x.manualUpdate,S=x.loading,C=x.loadingOptions,M=n((function(){return v.value||o.option||Object.create(null)})),k=n((function(){return o.theme||i(y)||{}})),T=n((function(){return o.initOptions||i(m)||{}})),A=n((function(){return o.updateOptions||i(_)||{}})),I=n((function(){return function(t){var e={};for(var n in t)Wx(n)||(e[n]=t[n]);return e}(p)}));function D(t){if(!g.value&&f.value){var e=g.value=By(f.value,k.value,T.value);o.group&&(e.group=o.group);var n=d;n||(n={},Object.keys(p).filter((function(t){return 0===t.indexOf("on")&&t.length>2})).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);n[e]=p[t]}))),Object.keys(n).forEach((function(t){var i=n[t];i&&(0===t.indexOf("zr:")?e.getZr().on(t.slice(3).toLowerCase(),i):e.on(t.toLowerCase(),i))})),b.value?h((function(){!function(){if(e&&!e.isDisposed())try{e.resize()}catch(t){if("Cannot read property 'get' of undefined"===t.message)return;throw t}}(),i()})):i()}function i(){e.setOption(t||M.value,A.value)}}function O(){g.value&&(g.value.dispose(),g.value=void 0)}var L=null;t(w,(function(e){"function"==typeof L&&(L(),L=null),e||(L=t((function(){return o.option}),(function(t){t&&(g.value?g.value.setOption(t,A.value):D())}),{deep:!0}))}),{immediate:!0}),t([k,T],(function(){O(),D()}),{deep:!0}),r((function(){o.group&&g.value&&(g.value.group=o.group)}));var E=Ix(g,D);return function(t,o,a){var s=e("ecLoadingOptions",{}),l=n((function(){return Object.assign(Object.assign({},i(s)),null==a?void 0:a.value)}));r((function(){var e=t.value;e&&(o.value?e.showLoading(l.value):e.hideLoading())}))}(g,S,C),function(e,n,i){var r=null;t([i,e,n],(function(t,e,n){var i=Vx(t,3),o=i[0],a=i[1],s=i[2];o&&a&&s&&(r=yg((function(){a.resize()}),100),R(o,r)),n((function(){r&&o&&B(o,r)}))}))}(g,b,f),l((function(){o.option&&D()})),u(O),Object.assign({chart:g,root:f,setOption:function(t,e){o.manualUpdate&&(v.value=t),g.value?g.value.setOption(t,e||{}):D(t)},nonEventAttrs:I},E)},render:function(){var t=Object.assign({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",c("x-vue-echarts",t)}});function jx(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 Yx(t){return t<=1?"".concat(100*Number(t),"%"):t}function qx(t){return 1===t.length?"0"+t:String(t)}function Xx(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 Zx(t){return Jx(t)/255}function Jx(t){return parseInt(t,16)}var Kx={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 Qx(t){var e,n,i,r={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(Kx[t])t=Kx[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=nb.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=nb.rgba.exec(t))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=nb.hsl.exec(t))return{h:n[1],s:n[2],l:n[3]};if(n=nb.hsla.exec(t))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=nb.hsv.exec(t))return{h:n[1],s:n[2],v:n[3]};if(n=nb.hsva.exec(t))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=nb.hex8.exec(t))return{r:Jx(n[1]),g:Jx(n[2]),b:Jx(n[3]),a:Zx(n[4]),format:e?"name":"hex8"};if(n=nb.hex6.exec(t))return{r:Jx(n[1]),g:Jx(n[2]),b:Jx(n[3]),format:e?"name":"hex"};if(n=nb.hex4.exec(t))return{r:Jx(n[1]+n[1]),g:Jx(n[2]+n[2]),b:Jx(n[3]+n[3]),a:Zx(n[4]+n[4]),format:e?"name":"hex8"};if(n=nb.hex3.exec(t))return{r:Jx(n[1]+n[1]),g:Jx(n[2]+n[2]),b:Jx(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(ib(t.r)&&ib(t.g)&&ib(t.b)?(e=t.r,n=t.g,i=t.b,r={r:255*jx(e,255),g:255*jx(n,255),b:255*jx(i,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):ib(t.h)&&ib(t.s)&&ib(t.v)?(a=Yx(t.s),s=Yx(t.v),r=function(t,e,n){t=6*jx(t,360),e=jx(e,100),n=jx(n,100);var i=Math.floor(t),r=t-i,o=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),l=i%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"):ib(t.h)&&ib(t.s)&&ib(t.l)&&(a=Yx(t.s),l=Yx(t.l),r=function(t,e,n){var i,r,o;if(t=jx(t,360),e=jx(e,100),n=jx(n,100),0===e)r=n,o=n,i=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;i=Xx(s,a,t+1/3),r=Xx(s,a,t),o=Xx(s,a,t-1/3)}return{r:255*i,g:255*r,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(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:o}}var $x="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),tb="[\\s|\\(]+(".concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")\\s*\\)?"),eb="[\\s|\\(]+(".concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")\\s*\\)?"),nb={CSS_UNIT:new RegExp($x),rgb:new RegExp("rgb"+tb),rgba:new RegExp("rgba"+eb),hsl:new RegExp("hsl"+tb),hsla:new RegExp("hsla"+eb),hsv:new RegExp("hsv"+tb),hsva:new RegExp("hsva"+eb),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 ib(t){return Boolean(nb.CSS_UNIT.exec(String(t)))}var rb=[{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 ob(t){var e=function(t,e,n){t=jx(t,255),e=jx(e,255),n=jx(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,a=i,s=i-r,l=0===i?0:s/i;if(i===r)o=0;else{switch(i){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 ab(t){var e=t.r,n=t.g,i=t.b;return"#".concat(function(t,e,n,i){var r=[qx(Math.round(t).toString(16)),qx(Math.round(e).toString(16)),qx(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}(e,n,i,!1))}function sb(t,e,n){var i=n/100;return{r:(e.r-t.r)*i+t.r,g:(e.g-t.g)*i+t.g,b:(e.b-t.b)*i+t.b}}function lb(t,e,n){var i;return(i=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?i+=360:i>=360&&(i-=360),i}function ub(t,e,n){return 0===t.h&&0===t.s?t.s:((i=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(i=1),n&&5===e&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function cb(t,e,n){var i;return(i=n?t.v+.05*e:t.v-.15*e)>1&&(i=1),Number(i.toFixed(2))}function hb(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Qx(t),r=5;r>0;r-=1){var o=ob(i),a=ab(Qx({h:lb(o,r,!0),s:ub(o,r,!0),v:cb(o,r,!0)}));n.push(a)}n.push(ab(i));for(var s=1;s<=4;s+=1){var l=ob(i),u=ab(Qx({h:lb(l,s),s:ub(l,s),v:cb(l,s)}));n.push(u)}return"dark"===e.theme?rb.map((function(t){var i=t.index,r=t.opacity;return ab(sb(Qx(e.backgroundColor||"#141414"),Qx(n[i]),100*r))})):n}var pb={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"},db={},fb={};Object.keys(pb).forEach((function(t){db[t]=hb(pb[t]),db[t].primary=db[t][5],fb[t]=hb(pb[t],{theme:"dark",backgroundColor:"#141414"}),fb[t].primary=fb[t][5]})),db.red,db.volcano,db.gold,db.orange,db.yellow,db.lime,db.green,db.cyan,db.blue,db.geekblue,db.purple,db.magenta,db.grey;var gb=[],vb=[];function yb(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,i=!0===e.prepend?"prepend":"append",r=void 0!==e.container?e.container:document.querySelector("head"),o=gb.indexOf(r);return-1===o&&(o=gb.push(r)-1,vb[o]={}),void 0!==vb[o]&&void 0!==vb[o][i]?n=vb[o][i]:(n=vb[o][i]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===i?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}function mb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){_b(t,e,n[e])}))}return t}function _b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xb(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 bb(t){return"object"==typeof t&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"==typeof t.icon||"function"==typeof t.icon)}function wb(t,e,n){return c(t.tag,n?mb({key:e},n,t.attrs):mb({key:e},t.attrs),(t.children||[]).map((function(n,i){return wb(n,"".concat(e,"-").concat(t.tag,"-").concat(i))})))}function Sb(t){return hb(t)[0]}function Cb(t){return t?Array.isArray(t)?t:[t]:[]}var Mb="\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",kb=!1,Tb=["icon","primaryColor","secondaryColor"];function Ab(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ib(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Db(t,e,n[e])}))}return t}function Db(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ob={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Lb=function(t,e){var n=Ib({},t,e.attrs),i=n.icon,r=n.primaryColor,o=n.secondaryColor,a=Ab(n,Tb),s=Ob;if(r&&(s={primaryColor:r,secondaryColor:o||Sb(r)}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mb;h((function(){kb||("undefined"!=typeof window&&window.document&&window.document.documentElement&&yb(t,{prepend:!0}),kb=!0)}))}(),xb(bb(i),"icon should be icon definiton, but got ".concat(i)),!bb(i))return null;var l=i;return l&&"function"==typeof l.icon&&(l=Ib({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),wb(l.icon,"svg-".concat(l.name),Ib({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Lb.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Lb.inheritAttrs=!1,Lb.displayName="IconBase",Lb.getTwoToneColors=function(){return Ib({},Ob)},Lb.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;Ob.primaryColor=e,Ob.secondaryColor=n||Sb(e),Ob.calculated=!!n};var Eb=Lb;function Nb(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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pb(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 Pb(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 Pb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Rb(t){var e=Nb(Cb(t),2),n=e[0],i=e[1];return Eb.setTwoToneColors({primaryColor:n,secondaryColor:i})}var Bb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Vb(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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zb(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 zb(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 zb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Gb(t,e,n[e])}))}return t}function Gb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ub(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}Rb("#1890ff");var Wb=function(t,e){var n,i=Fb({},t,e.attrs),r=i.class,o=i.icon,a=i.spin,s=i.rotate,l=i.tabindex,u=i.twoToneColor,c=i.onClick,h=Ub(i,Bb),d=(Gb(n={anticon:!0},"anticon-".concat(o.name),Boolean(o.name)),Gb(n,r,r),n),f=""===a||a||"loading"===o.name?"anticon-spin":"",g=l;void 0===g&&c&&(g=-1,h.tabindex=g);var v=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,y=Vb(Cb(u),2),m=y[0],_=y[1];return p("span",Fb({role:"img","aria-label":o.name},h,{onClick:c,class:d}),[p(Eb,{class:f,icon:o,primaryColor:m,secondaryColor:_,style:v},null)])};Wb.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Wb.displayName="AntdIcon",Wb.inheritAttrs=!1,Wb.getTwoToneColor=function(){var t=Eb.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},Wb.setTwoToneColor=Rb;var Hb=Wb,jb={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 Yb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){qb(t,e,n[e])}))}return t}function qb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xb=function(t,e){var n=Yb({},t,e.attrs);return p(Hb,Yb({},n,{icon:jb}),null)};Xb.displayName="LoadingOutlined",Xb.inheritAttrs=!1;var Zb=Xb,Jb=o({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:V},setup:function(){return{indicator:c(Zb,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Kb={class:"spin-wrapper"};Gx(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),Jb.render=function(t,e,n,i,r,o){var a=d("a-spin");return f(),g("div",Kb,[t.spinning?(f(),v(a,{key:0,class:"spin",spinning:t.spinning,indicator:t.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):y(t.$slots,"default",{key:1})])},Jb.__file="src/common/spin/Spin.vue";var Qb=o({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:z}});Qb.render=function(t,e,n,i,r,o){var a=d("a-skeleton");return f(),v(a,{active:"",loading:t.loading},{default:m((function(){return[y(t.$slots,"default")]})),_:3},8,["loading"])},Qb.__file="src/common/skeleton/Skeleton.vue";var $b={exports:{}},tw={exports:{}};!function(t){var e=Rx.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(tw);var ew={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}(ew);var nw={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}(nw),function(t){var e=tw.exports,n=ew.exports,i=Px.exports,r=nw.exports;t.exports=function(t){return e(t)||n(t)||i(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}($b);var iw=Dx($b.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var rw=function(t,e){if(t.install=function(n){for(var i=0,r=[t].concat(iw(Object.values(null!=e?e:{})));i<r.length;i++){var o=r[i];n.component(o.name,o)}},e)for(var n=0,i=Object.entries(e);n<i.length;n++){var r=Vx(i[n],2),o=r[0],a=r[1];t[o]=a}return t},ow={exports:{}};!function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.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,i){var r=e&&e.prototype instanceof v?e:v,o=Object.create(r.prototype),a=new A(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=M(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(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?f:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=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 h="suspendedStart",p="suspendedYield",d="executing",f="completed",g={};function v(){}function y(){}function m(){}var _={};l(_,o,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(I([])));b&&b!==n&&i.call(b,o)&&(_=b);var w=m.prototype=v.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function M(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,M(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 r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 k(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(k,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 r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],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 y.prototype=m,l(w,"constructor",m),l(m,"constructor",y),y.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,a,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new C(u(e,n,i,r),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 i=e.pop();if(i in t)return n.value=i,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)&&i.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 r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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 i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"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)}}(ow);var aw,sw,lw=ow.exports,uw={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"},cw=function(t){return Q(t,(function(t){return null==t?{}:{type:t.constructor,default:t}}))},hw={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},pw=cw(hw),dw=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],fw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tt.apply(void 0,[dw].concat(iw(e)));return n((function(){return $(t,i)}))},gw=(null===(aw=null===window||void 0===window?void 0:window.config)||void 0===aw?void 0:aw.uploadPath)||"/api",vw=(null===(sw=null===window||void 0===window?void 0:window.config)||void 0===sw?void 0:sw.baseUrl)||"./",yw=function(n,i){t((function(){return n.id}),(function(t,n){var r=e("EVENT_BUS",{onEvent:function(t,e){},offEvent:function(t){}});null!=n&&""!==n&&r.offEvent(n),null!=t&&""!==t&&r.onEvent(t,i)}),{immediate:!0})},mw=function(t){var n=e("EVENT_BUS",{emitEvent:function(t,e){}});return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(i.call.apply(i,[this].concat(Array.prototype.slice.call(arguments))),n){var r=n.emitEvent;t.forEach((function(t){if(e===t.on)try{r(t.target,t.emit)}catch(t){console.error(t)}}))}}}};function _w(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 xw(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 xw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 xw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var bw=function(t,e){var n=e||{},i=n.name,r=void 0===i?"name":i,o=n.value,a=void 0===o?"value":o,s=n.type,l=void 0===s?"type":s;r=null==r?void 0:r.trim(),a=null==a?void 0:a.trim(),l=null==l?void 0:l.trim();for(var u=new Set,c=new Map,h=t.length,p=0;p<h;p++){var d=t[p],f=d[r]||"",g=d[a]||"",v=d[l]||"";if(u.add(f),c.has(v)){var y=c.get(v);y.push(Object.assign({name:f,value:g},d)),c.set(v,y)}else c.set(v,[Object.assign({name:f,value:g},d)])}var m,_=Array.from(u),x=[],b=_w(c);try{for(b.s();!(m=b.n()).done;){var w=Vx(m.value,2),S=w[0],C=w[1];x.push({name:S,data:C})}}catch(t){b.e(t)}finally{b.f()}return{dimensions:_,dataset:x}},ww={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}(ww);var Sw=Dx(ww.exports),Cw=function(t){return t.replace(/\\n/g,"\n")},Mw=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,")},kw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t+"";if(n.includes("%"))return t;var i=parseFloat(n);return isNaN(i)?t:"".concat((100*i).toFixed(e),"%")},Tw=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLocaleLowerCase().includes(e.toLocaleLowerCase())},Aw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=t.requestUrl,o=t.requestMethod,a=t.requestHeaders,s=t.requestParams,l=t.requestInterval,c=t.isOpenRequestTimer,h=e("GLOBAL_CONFIG",{contextRequestUrl:"",pageMode:"normal"}),p=h.contextRequestUrl,d=h.pageMode,f=e("GLOBAL_MODEL",{getGlobalModel:function(t){}}),g=f.getGlobalModel,v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ut(void 0,void 0,void 0,lw.mark((function e(){var l,u,c,h,f,v;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&o&&a&&"design"!==i(d)){e.next=2;break}return e.abrupt("return");case 2:return l={},s.forEach((function(t){var e=t.key,n=t.value;if("object"===Sw(n)&&n.id){var r=g(n.id)||{},o=n.prop,a=n.propKey,s=null!=r[o]?r[o]:{},u=["date","range"].some((function(t){return Tw(null==r?void 0:r.type,t)}));null==a||""===a||u||(s=r[o][a]);var c=i(s);u&&null!=a&&""!==a&&(c=(null==c?void 0:c.format((null==a?void 0:a.trim())||r.format))||""),l[e]=c}else"string"==typeof n&&(l[e]=n)})),l=Object.assign(Object.assign({},l),t),u="",c=Object.keys(l),h=c.length-1,c.forEach((function(t,e){switch(e){case 0:u+="?".concat(t,"=").concat(l[t],"&");break;case h:u+="".concat(t,"=").concat(l[t]);break;default:u+="".concat(t,"=").concat(l[t],"&")}})),e.prev=9,f=["get","head"].includes(o),e.next=13,nt({baseURL:i(p),url:f?r+u:r,method:o,headers:a,data:f?{}:l});case 13:return v=e.sent,n(v),e.abrupt("return",v);case 18:e.prev=18,e.t0=e.catch(9),console.error(e.t0);case 21:case"end":return e.stop()}}),e,null,[[9,18]])})))},y=c&&setInterval(v,1e3*l);return u((function(){clearInterval(y)})),v};function Iw(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 Dw(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 Dw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 Dw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ow=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},i=n.name,r=void 0===i?"name":i,o=n.types,a=void 0===o?[]:o;r=(null==r?void 0:r.trim())||r;var s=new Set,l=new Map,u=t.length,c=a.length;if(1===u){for(var h=[],p=0;p<c;p++){var d=a[p],f=d.label,g=d.value,v=t[0][g];s.add(f),h.push(v)}var y=t[0][r]||"";l.set(y,h)}else for(var m=0;m<u;m++){var _=t[m],x=_[r];s.add(x);for(var b=0;b<c;b++){var w=a[b],S=w.label,C=w.value,M=_[C];if(l.has(S)){var k=l.get(S);k.push(M),l.set(S,k)}else l.set(S,[M])}}var T,A=Array.from(s),I=[],D=Iw(l);try{for(D.s();!(T=D.n()).done;){var O=Vx(T.value,2),L=O[0],E=O[1];I.push({name:L,data:E})}}catch(t){D.e(t)}finally{D.f()}return{dimensions:A,dataset:I}},Lw=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:gw+t,e&&(n="url(".concat(n,")")),n},Ew=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null!==(e=window.config)&&void 0!==e?e:{};n=Object.assign(Object.assign({},i),n);var r=t.match(/\{.*?\}/g);if(null==r||0===r.length)return t;for(var o=0;o<r.length;o++){var a=r[o],s=a.slice(1,a.length-1),l=n[s];t=null!=l?t.replace(a,l):t.replace(a,"")}return t},Nw=nt.create({});Nw.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),Nw.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)&&F.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"))F.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{var e=t.response.status;e>=400&&e<500&&F.error({content:"请求异常",key:"REQUEST_ERROR"}),e>=500&&F.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(t)}));var Pw=function(t){var n=t.type,i=t.graphicConfig,r=e("GLOBAL_MODEL",{getGlobalModel:function(t){}}).getGlobalModel;function o(t){var e=[];return t.leftAxisList.forEach((function(n){var i=!1;t.leftAxis.includes(n.name)&&(i=!0);var r={label:n.name,columnName:n.label,aggregate:n.calcValue?n.calcValue:"SUM",order:null,location:"LEFT",show:i};"INDICATOR_LIB"===t.source&&(r.hrpIndexCode=n.indexCode),r=a(n,r),e.push(r)})),t.rightAxisList.forEach((function(n){var i=!1;t.rightAxis.includes(n.name)&&(i=!0);var r={label:n.name,columnName:n.label,aggregate:"SUM",order:null,location:"LEFT",show:i};r=a(n,r),"INDICATOR_LIB"===t.source&&(r.hrpIndexCode=n.indexCode),e.push(r)})),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,i=0;i<n.length;i++){var o={alias:n[i].keyName,fieldName:n[i].searchName,rule:n[i].searchType||"NONE",fieldValue:"",valueType:"",variateName:n[i].variateName},a=r(n[i].id)||{};"the_date"===n[i].searchName?o.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(n[i].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 i="";i="and"===t.type?"&&":"||",e.push({conditions:[],join:i}),u(t.children[n],e[e.length-1].conditions)}else if(t.children[n].fieldName){var r="",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(r=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&&(r="#######",o.calcWays=t.children[n].calcWays):"component"===t.children[n].selectType&&(r="${"+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(r)){for(var a=[],s=0;s<r.length;s++)"全选"!==r[s]&&a.push(r[s]);r=a.join(",")}o.fieldValue=r,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 i=n[e].find((function(e){return e.name===t.label}));if(i){var r=[],o=i.filterList;if(o)for(var a=0;a<o.length;a++)o[a].children.length>0&&u(o[a],r);return r}}}return function(){return ut(this,void 0,void 0,lw.mark((function t(){var e,r,a,u,h,p,d,f,g,v,y,m,_,x;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i||(i={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]}),e=i.classify,0!==[].concat(iw(i.leftAxis),iw(i.rightAxis)).length){t.next=5;break}return t.abrupt("return");case 5:for(r=o(i),i.series.length>0&&(u=i.seriesList.find((function(t){return t.name===i.series[0]||t.nameBak===i.series[0]})),a={label:u.name,columnName:u.label}),e.length>0&&(h={label:e[0],columnName:e[0]},p=i.classifyList.find((function(t){return t.name===e[0]||t.nameBak===e[0]}))||{},h.columnName=p.label,l(h,i.classifyList),h.conditions=c(h,"classifyList",i)||[]),a&&(l(a,i.seriesList),a.conditions=c(a,"seriesList",i)||[]),d=0;d<r.length;d++)"RIGHT"===r[d].location?r[d].conditions=c(r[d],"rightAxisList",i):r[d].conditions=c(r[d],"leftAxisList",i);return f=s(i),g="SQL_VIEW",v="",y="",m="","INDICATOR_LIB"===i.source&&(g="INDICATOR_LIB",v=i.fixedDimSql,y=i.dataSourceId,m=i.idxLibMode),_={ecanBar:"bar"},t.prev=17,t.next=20,Nw.get("".concat("http://59.56.182.79:9192/api/","/user/anonymous?username=admin"),{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});case 20:return x=t.sent,t.abrupt("return",Nw.post("".concat("http://59.56.182.79:9192/api/","/diagram"),{dataViewId:i.dataViewId,plugin:"1",layer:"2",chartType:_[n],classification:h,classifications:undefined,indicatorList:r,series:a,sqlConditions:f,source:g,fixedDimSql:v,dataSourceId:y,idxLibMode:m},{headers:{Authentication:x.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]])})))}},Rw=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 i=0;i<n.length;i++){var r=n[i];if(null==r||""===r)break;var o=r.slice(1,-1);o=null==o?void 0:o.replace(/value/g,e);var a=eval,s=a(o);t=t.replace(r,s)}return t},Bw=o({name:"EcanPageConfig",props:Object.assign({},pw),setup:function(t){var e,i=this,r=n((function(){return{width:t.width,height:t.height,backgroundColor:t.backgroundColor,backgroundImage:Lw(t.backgroundImage,!0),backgroundSize:t.backgroundSize}})),o=_(0),a=_(0),s=_(0),c=_(0),p=_(!1),d=_(),f=function(){return new Promise((function(e){h((function(){t.width&&t.height?(o.value=parseFloat(t.width),a.value=parseFloat(t.height)):(o.value=d.value.clientWidth,a.value=d.value.clientHeight),s.value&&c.value||(s.value=window.screen.width,c.value=window.screen.height),e()}))}))},g=function(){var t=document.body.clientWidth,e=document.body.clientHeight,n=t/(o.value||s.value),i=e/(a.value||c.value);d.value&&(d.value.style.transform="scale(".concat(n,", ").concat(i,")"))},v=function(){return ut(i,void 0,void 0,lw.mark((function t(){return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f();case 2:g();case 3:case"end":return t.stop()}}),t)})))};return l((function(){return ut(i,void 0,void 0,lw.mark((function t(){return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.value=!1,t.next=3,f();case 3:o.value&&a.value?(d.value.style.width="".concat(o.value,"px"),d.value.style.height="".concat(a.value,"px")):(d.value.style.width="".concat(s.value,"px"),d.value.style.height="".concat(c.value,"px")),g(),window.addEventListener("resize",et(v,100)),n=void 0,n=window.MutationObserver,(e=new n(v)).observe(d.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),p.value=!0;case 8:case"end":return t.stop()}var n}),t)})))})),u((function(){window.removeEventListener("resize",v),e&&(e.disconnect(),e.takeRecords(),e=null)})),{style:r,container:d,ready:p}}}),Vw={id:"container",ref:"container"};Gx("#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}"),Bw.render=function(t,e,n,i,r,o){return f(),g("div",Vw,[t.ready?(f(),g("div",{key:0,class:"page-config",style:x(t.style)},[y(t.$slots,"default")],4)):b("v-if",!0)],512)},Bw.__scopeId="data-v-f2b96d90",Bw.__file="src/setting/page-config/PageConfig.vue";var zw=rw(Bw),Fw={contextRequestUrl:"",pageMode:"normal",theme:"light"},Gw=cw(Fw),Uw=o({name:"EcanProviderConfig",props:Object.assign({},Gw),setup:function(e,i){var r=this,o=i.expose,a=_(),s=function(){a.value.setAttribute("datav-theme",e.theme)};t((function(){return e.theme}),(function(){s()})),l((function(){s()}));var c=n((function(){return Ew(e.contextRequestUrl)})),h=n((function(){return e.pageMode})),p=n((function(){return e.theme}));w("GLOBAL_CONFIG",{contextRequestUrl:c,pageMode:h,theme:p});var d=new Map;w("GLOBAL_MODEL",{getGlobalModel:function(t){return d.get(t)},setGlobalModel:function(t,e){d.set(t,e)}});var f=it();w("EVENT_BUS",{onEvent:function(t,e){f.on(t,(function(t){return"[object Function]"===Object.prototype.toString.call(e[t])&&e[t]()})),u((function(){f.off(t)}))},offEvent:function(t){f.off(t)},emitEvent:function(t,e){f.emit(t,e)}});var g=new Map,v=function(t){return new Promise((function(e,n){var i=t.map((function(t){return t()}));Promise.all(i).then((function(t){e(t)})).catch((function(t){n(t)}))}))},y=function(){return ut(r,void 0,void 0,lw.mark((function t(){var e,n,i,r;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=Array.from(g)).sort((function(t,e){return e[0]-t[0]})),n=e.length,t.prev=3,i=0;case 5:if(!(i<n)){t.next=12;break}return r=e[i][1],t.next=9,v(r);case 9:i++,t.next=5;break;case 12:g.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 w("REQUEST_MODEL",{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(g.has(e)){var n=g.get(e);null==n||n.push(t)}else g.set(e,[t])},touchRequest:y}),o({touchRequest:y}),{providerConfig:a}}}),Ww={id:"ProviderConfig",ref:"providerConfig"};Uw.render=function(t,e,n,i,r,o){return f(),g(S,null,[b(" 请勿去除属性id "),C("div",Ww,[y(t.$slots,"default")],512)],2112)},Uw.__file="src/setting/provider-config/ProviderConfig.vue";var Hw=rw(Uw),jw=Object.assign(Object.assign({},uw),{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:{}}),Yw=cw(jw),qw=["refreshData","click"],Xw=o({name:"EcanText",components:{Skeleton:Qb},props:Object.assign({},Yw),setup:function(t){var r=this,o=fw(t),a=_(t.data),s=n((function(){var e=t.text,n=i(a),r=e.match(/\{.*?\}/g);if(null==r||0===r.length)return e;for(var o=0;o<r.length;o++){var s=r[o],l=s.slice(1,s.length-1),u=null!=n[l]?n[l]:"0";e=null!=u?e.replace(s,'<span style="color:'.concat(t.variableColor,";font-size:").concat(t.variableFontSize,'">').concat(u,"</span>")):e.replace(s,"")}return"<span>".concat(e,"</span>")})),l=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,u=Aw(t),c=_(!1),h=function(){return ut(r,void 0,void 0,lw.mark((function t(){var e,n;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("design"!==i(l)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,u();case 6:n=t.sent,a.value=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.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,c.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},p=function(){h()};yw(t,{refreshData:p}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),yw(t,{refreshData:p});var d=mw(t.events)("click",(function(){}));return{style:o,myText:s,loading:c,click:d}}}),Zw=["innerHTML"];Gx(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),Xw.render=function(t,e,n,i,r,o){var a=d("skeleton");return t.loading?(f(),g("div",{key:0,class:"skeleton-wrapper",style:x(t.style)},[p(a,{loading:t.loading},null,8,["loading"])],4)):(f(),g("div",{key:1,class:"ecan-text",style:x(t.style),innerHTML:t.myText,onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},null,12,Zw))},Xw.__scopeId="data-v-41a337b4",Xw.__file="src/text/text/Text.vue";var Jw=rw(Xw),Kw=o({name:"EcanScrollText",setup:function(){return{text:_("基础文本")}}}),Qw={class:"red"};Gx(".red[data-v-0cbdffb5]{color:red}"),Kw.render=function(t,e,n,i,r,o){return f(),g("div",Qw,M(t.text),1)},Kw.__scopeId="data-v-0cbdffb5",Kw.__file="src/text/scroll-text/ScrollText.vue";var $w=rw(Kw),tS=Object.assign(Object.assign({},uw),{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"}),eS=cw(tS),nS=o({name:"EcanTimeDisplay",props:Object.assign({},eS),setup:function(t){var e=fw(t),n=_(rt().format(t.format)),i=null,r=function(){clearInterval(i),i=null};return l((function(){i&&r(),i=setInterval((function(){n.value=rt().add(1,"s").format(t.format)}),1e3)})),u((function(){r()})),{style:e,time:n}}});Gx(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),nS.render=function(t,e,n,i,r,o){return f(),g("div",{class:"time-display",style:x(t.style)},M(t.time),5)},nS.__scopeId="data-v-6cb314e1",nS.__file="src/text/time-display/TimeDisplay.vue";var iS=rw(nS),rS=Object.assign(Object.assign({},uw),{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"}]}),oS=cw(rS),aS=["refreshData","click"],sS=o({name:"EcanList",components:{Skeleton:Qb},props:Object.assign({},oS),setup:function(t){var r=this,o=_(t.data),a=fw(t,["backgroundColor"]),s=n((function(){return t.useRanking?{textAlign:"center"}:{textAlign:"left"}})),l=Aw(t),u=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,c=_(!1),h=function(){return ut(r,void 0,void 0,lw.mark((function e(){var n,r;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(u)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,c.value=!0,e.next=6,l();case 6:r=e.sent,o.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data.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,c.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},p=mw(t.events)("click",(function(){}));return yw(t,{refreshData:function(){h()}}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),{style:a,formatFn:function(t,e){return null==e||""===e?t:{money:Mw,percentage:kw,contrast:kw}[e](t)||""},columnStyle:s,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:o,loading:c,click:p}}});function lS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uS(Object(n),!0).forEach((function(e){lS(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var hS={key:0,class:"title"},pS={key:0,class:"ranking"},dS={key:1,class:"ecan-list-content"},fS={key:0,class:"ranking"},gS=function(t){return A("data-v-2d6c92c6"),t=t(),I(),t}((function(){return C("div",{class:"icon"},null,-1)})),vS={class:"sort"},yS={key:2,class:"empty"};Gx('.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}');Gx(".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}"),sS.render=function(t,e,n,i,r,o){var a=d("skeleton");return f(),g("div",{class:"ecan-list",style:x(t.style)},[p(a,{loading:t.loading},{default:m((function(){return[t.useTitle?(f(),g("div",hS,[(f(!0),g(S,null,k(t.columnCount,(function(e){return f(),g("div",{class:"title-inner",style:x({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1,"/ ").concat(t.columnCount,")"),marginRight:e%t.columnCount!=0?t.itemColSpan:""}),key:e},[t.useRanking?(f(),g("div",pS)):b("v-if",!0),(f(!0),g(S,null,k(t.columns,(function(e,n){return f(),g("div",{class:"column",key:e.key||n,style:x(cS({color:e.titleColor},t.columnStyle))},M(e.title),5)})),128))],4)})),128))])):b("v-if",!0),t.dataSource.length>0?(f(),g("div",dS,[t.useTitle?(f(),g("div",{key:0,class:"title-placeholder",style:x({marginBottom:t.itemRowSpan})},null,4)):b("v-if",!0),(f(!0),g(S,null,k(t.dataSource.slice(0,t.sliceCount),(function(n,i){return f(),g("div",{class:"item",style:x({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:n.id||i,onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},[t.useRanking?(f(),g("div",fS,[gS,C("div",vS," Top "+M(i+1),1)])):b("v-if",!0),(f(!0),g(S,null,k(t.columns,(function(e){return f(),g("div",{class:T(["column",t.contrastClass(n[e.key],e.format)]),key:e.key,style:x(cS({fontSize:e.fontSize,color:""===t.contrastClass(n[e.key],e.format)?e.color:"",fontWeight:e.fontWeight},t.columnStyle))},M((null!=e.format||""!==e.format)&&t.formatFn(n[e.key],e.format)),7)})),128))],4)})),128))])):(f(),g("div",yS," 暂无数据 "))]})),_:1},8,["loading"])],4)},sS.__scopeId="data-v-2d6c92c6",sS.__file="src/text/list/List.vue";var mS=rw(sS),_S=Object.assign(Object.assign({},uw),{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"}),xS=cw(_S),bS=["refreshData","click"],wS=o({name:"EcanProportion",components:{AProgress:G,Skeleton:Qb},props:Object.assign({},xS),setup:function(t){var r=this,o=fw(t),a=n((function(){var e=t.width;return parseFloat(e)})),s=_(t.data),l=n((function(){var t,e=i(s);return null==e?0:100*(null!==(t=Object.values(e)[0])&&void 0!==t?t:0)})),u=n((function(){var t=i(s)||{};return Object.keys(t)[0]})),c=n((function(){var e,n=t.text,r=i(s),o=n.match(/\{.*?\}/g)||[];if(""===n)return i(l)+"%";for(var a=0;a<o.length;a++){var c=o[a],h=c.slice(1,c.length-1),p="";n=null!=(p=i(u)===h?i(l).toFixed(2):null!==(e=r[h])&&void 0!==e?e:0)?n.replace(c,p):n.replace(c,"")}return n})),h=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,p=Aw(t),d=_(!1),f=function(){return ut(r,void 0,void 0,lw.mark((function e(){var n,r;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(h)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,d.value=!0,e.next=6,p();case 6:r=e.sent,s.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data)||{},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]])})))};yw(t,{refreshData:function(){f()}});var g=mw(t.events)("click",(function(){}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),{style:o,myWidth:a,text:c,value:l,loading:d,click:g}}});Gx(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),wS.render=function(t,e,n,i,r,o){var a=d("skeleton"),s=d("a-progress");return f(),g("div",{class:"ecan-proportion",style:x(t.style)},[p(s,{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:m((function(){return[t.loading?(f(),v(a,{key:0,loading:t.loading},null,8,["loading"])):(f(),g("div",{key:1,class:"format",style:x({width:t.strokeTextWidth,fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight,lineHeight:t.lineHeight})},M(t.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)},wS.__scopeId="data-v-4a9dae06",wS.__file="src/text/proportion/Proportion.vue";var SS=rw(wS),CS=Object.assign(Object.assign({},uw),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),MS=cw(CS),kS=o({name:"EcanInput",components:{AInput:U},props:Object.assign({},MS),setup:function(t){return{style:fw(t)}}});Gx(".input[data-v-b714c8ac]{height:100%;width:100%}"),kS.render=function(t,e,n,i,r,o){var a=d("a-input");return f(),g("div",{class:"ecan-input",style:x(t.style)},[p(a,{class:"input",value:t.value,placeholder:t.placeholder},null,8,["value","placeholder"])],4)},kS.__scopeId="data-v-b714c8ac",kS.__file="src/control/input/Input.vue";var TS=rw(kS),AS=Object.assign(Object.assign({},uw),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:rt().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),IS=cw(AS),DS=["dateChange"],OS=o({name:"EcanDatePicker",props:Object.assign({},IS),components:{ADatePicker:W},setup:function(t){var n=fw(t),i=_(rt(t.value));(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,format:t.format,value:i});var r=t.events,o=mw(r)("dateChange",(function(){}));return yw(t,{dateChange:o}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:i,locale:ot,dateChange:o}}});Gx(".date-picker[data-v-18740e6e]{height:100%;width:100%}");Gx("[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}"),OS.render=function(t,e,n,i,r,o){var a=d("a-date-picker");return f(),g("div",{class:"ecan-date-picker",style:x(t.style)},[b(" 宽度style有效,class无效 "),p(a,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:t.myValue,"onUpdate:value":e[0]||(e[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)},OS.__scopeId="data-v-18740e6e",OS.__file="src/control/date-picker/DatePicker.vue";var LS=rw(OS),ES=Object.assign(Object.assign({},uw),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),NS=cw(ES),PS=["selectChange"],RS=o({name:"EcanSelect",components:{ASelect:H},props:Object.assign({},NS),setup:function(t){var n=this,r=fw(t),o=Aw(t),a=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,s=_(t.data),l=_(t.value||t.data[0]);(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,value:l});var u=t.events,c=mw(u)("selectChange");return yw(t,{selectChange:c}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)((function(){return ut(n,void 0,void 0,lw.mark((function e(){var n,r,u,c;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(a)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,o();case 4:u=e.sent,s.value=(null===(r=null===(n=null==u?void 0:u.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.rows)||[],c=i(s)[0],""===t.value&&null!=c&&(l.value=c[t.dataFieldNames.value]);case 8:case"end":return e.stop()}}),e)})))}),t.requestSort),{style:r,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:l,selectChange:c,options:s}}});Gx(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");Gx("[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}"),RS.render=function(t,e,n,i,r,o){var a=d("a-select");return f(),g("div",{class:"ecan-select",style:x(t.style)},[p(a,{class:"select",value:t.myValue,"onUpdate:value":e[0]||(e[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)},RS.__scopeId="data-v-b6743858",RS.__file="src/control/select/Select.vue";var BS=rw(RS),VS=Object.assign(Object.assign({},uw),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),zS=cw(VS),FS=["dateChange"],GS=o({name:"EcanRangePicker",components:{ARangePicker:j},props:Object.assign({},zS),setup:function(r){var o=fw(r),a=r.startTime,s=r.endTime,l=_([null,null]);t((function(){return[a,s]}),(function(){l.value=a&&s?[rt(a),rt(s)]:[null,null]}),{immediate:!0});var u=e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel,c=n((function(){return i(l)[0]})),h=n((function(){return i(l)[1]}));u(r.id,{type:r.type,format:r.format,startTime:c,endTime:h});var p=r.events,d=mw(p)("dateChange",(function(){}));return yw(r,{dateChange:d}),{style:o,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:ot,dateChange:d,myValue:l}}});Gx(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");Gx("[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}"),GS.render=function(t,e,n,i,r,o){var a=d("a-range-picker");return f(),g("div",{class:"ecan-range-picker",style:x(t.style)},[p(a,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:t.myValue,"onUpdate:value":e[0]||(e[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)},GS.__scopeId="data-v-9eb3e236",GS.__file="src/control/range-picker/RangePicker.vue";var US=rw(GS),WS=Object.assign(Object.assign({},uw),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),HS=cw(WS),jS=["click"],YS=o({name:"EcanButton",components:{AButton:Y},props:Object.assign({},HS),setup:function(t){var e=fw(t),n=t.events;return{style:e,click:mw(n)("click")}}}),qS=D(" 测试 ");Gx(".button[data-v-34f909d8]{height:100%;width:100%}"),YS.render=function(t,e,n,i,r,o){var a=d("a-button");return f(),g("div",{class:"ecan-input",style:x(t.style)},[p(a,{class:"button",block:"",onClick:t.click},{default:m((function(){return[qS]})),_:1},8,["onClick"])],4)},YS.__scopeId="data-v-34f909d8",YS.__file="src/control/button/Button.vue";var XS=rw(YS),ZS=Object.assign(Object.assign({},uw),{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"}]}),JS=cw(ZS),KS=["tabChange"],QS=o({name:"EcanTabs",props:Object.assign({},JS),setup:function(t){var n,r=fw(t),o=_(0),a=_(t.data),s=_(t.value||i(a)[0]&&(null===(n=i(a)[0])||void 0===n?void 0:n.value)||""),l=t.events,u=mw(l)("tabChange",(function(t,e){s.value=(null==t?void 0:t.value)||"",o.value=e}));return(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{value:s}),yw(t,{tabChange:u}),{style:r,activeKey:o,isActive:function(t){return o.value===t},tabChange:u,myData:a,useImagePath:Lw}}}),$S=["onClick"];Gx(".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}"),QS.render=function(t,e,n,i,r,o){return f(),g("div",{class:"ecan-tabs",style:x(t.style)},[(f(!0),g(S,null,k(t.myData,(function(e,n){return f(),g("div",{class:T(["tab"]),style:x({color:t.isActive(n)?t.activeTabColor:t.tabColor,backgroundImage:t.isActive(n)?t.useImagePath(t.activeTabBackgroundImage,!0):t.useImagePath(t.tabBackgroundImage,!0),marginRight:t.tabBarGutter,fontSize:t.tabFontSize}),key:n,onClick:function(i){return t.tabChange(e,n)}},M(e.title),13,$S)})),128))],4)},QS.__scopeId="data-v-28df6758",QS.__file="src/control/tabs/Tabs.vue";var tC=rw(QS),eC=Object.assign(Object.assign({},uw),{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%"}),nC=cw(eC),iC=["click","refreshData"];function rC(t,e,n){var i=yt.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var oC=function(t){function e(e,n,i){var r,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,i=i||er,"string"==typeof e?r=rC(e,n,i):Kt(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(ve(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return lt(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=rC("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,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ar(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Ar(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Ar(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,d=c.width*c.height,f=l.width*l.height-p-d;f<i&&(i=f,r=u)}}if(s&&(o[r].union(t),n=!0),!n)(e=new Ar(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 h=d.shouldBePainted(n,i,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null)&&u(f);var p=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;h=(d=e[c]).shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{r=!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])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.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(i,0,0,o/u,a/u));var h=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ee(e)?(a=e.__canvasGradient||bv(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a):null!=e.image&&(a=Ov(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&zt(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Be),aC=oC;var sC=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Nt({},n||{}),this.dpr=n.devicePixelRatio||er,this._singleCanvas=r,this.root=t,t.style&&(ve(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){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 aC(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=Sv(t,0,n),this._height=Sv(t,1,n);var h=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(h)}}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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Fv(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){zv(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;wn((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],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)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,d=o&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var x=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,d=0;d<r.length;d++)h(d);return pt.wxa&&zt(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Fv(a,t,r,o),t.setPrevPaintRect(s))}else Fv(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new aC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Lt(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&Lt(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(n[t])"production"!==process.env.NODE_ENV&&Dt("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.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&&Dt("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},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 i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?.01:0),this._needsManuallyCompositing),u.__builtin__||Dt("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),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,zt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Lt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01)Lt(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Rt(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Sv(r,0,i),e=Sv(r,1,i),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(314159).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 aC("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 i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):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];Fv(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),lC=sC;function uC(t){t.registerPainter("canvas",lC)}var cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return lt(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 Dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Zr,n=_v("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,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?r: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}(ng);function hC(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=tf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(tf(t,e,n[a]));return o.join(" ")}}function pC(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Yt(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var dC=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return lt(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=_v(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=fC,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(){Nl(this.childAt(0))},e.prototype.downplay=function(){Pl(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,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):Mc(p,h,a,n),Oc(p)}if(this._updateCommon(t,n,s,i,r),l){var p=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,kc(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=rh(v),p=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var _=xv(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof Fs){var w=f.style;f.useStyle(Nt({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(Nt({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var M=r&&r.useNameLabel;ih(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):hC(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=f.ensureState("emphasis");if(k.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,p){var T=Math.max(Jt(p)?p:1.1,3/this._sizeY);k.scaleX=this._sizeX*T,k.scaleY=this._sizeY*T}this.setSymbolScale(1),ql(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=cl(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ac(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ac(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Yt(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e}(Zr);function fC(t,e){this.parent.drift(t,e)}var gC=dC;function vC(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yC(t){return null==t||Kt(t)||(t={isIgnore:t}),t||{}}function mC(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:rh(e),cursorStyle:e.get("cursor")}}var _C=function(){function t(t){this.group=new Zr,this._SymbolCtor=t||gC}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yC(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=mC(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(vC(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(vC(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):Mc(p,v,i)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mC(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yC(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(vC(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){$c(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}(),xC=_C;function bC(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:Jt(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Ft(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return Im(e,h[0])&&(p=!0,h[0]=d),Im(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function wC(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var SC=Math.min,CC=Math.max;function MC(t,e){return isNaN(t)||isNaN(e)}function kC(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,v=0;v<i;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(MC(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-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===y&&S===m&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var C=v+1;if(l)for(;MC(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,k=0,T=0,A=void 0,I=void 0;if(C>=i||MC(w,S))d=y,f=m;else{k=w-u,T=S-c;var D=y-u,O=w-y,L=m-c,E=S-m,N=void 0,P=void 0;if("x"===s){var R=k>0?1:-1;d=y-R*(N=Math.abs(D))*a,f=m,A=y+R*(P=Math.abs(O))*a,I=m}else if("y"===s){var B=T>0?1:-1;d=y,f=m-B*(N=Math.abs(L))*a,A=y,I=m+B*(P=Math.abs(E))*a}else N=Math.sqrt(D*D+L*L),d=y-k*a*(1-(M=(P=Math.sqrt(O*O+E*E))/(P+N))),f=m-T*a*(1-M),I=m+T*a*M,A=SC(A=y+k*a*M,CC(w,y)),I=SC(I,CC(S,m)),A=CC(A,SC(w,y)),f=m-(T=(I=CC(I,SC(S,m)))-m)*N/P,d=SC(d=y-(k=A-y)*N/P,CC(u,y)),f=SC(f,CC(c,m)),A=y+(k=y-(d=CC(d,SC(u,y))))*P/N,I=m+(T=m-(f=CC(f,SC(c,m))))*P/N}t.bezierCurveTo(h,p,d,f,y,m),h=A,p=I}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var TC=function(){this.smooth=0,this.smoothConstraint=!0},AC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TC},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&MC(n[2*r-2],n[2*r-1]);r--);for(;i<r&&MC(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=kC(t,n,i,r,r,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,i,r=this.path.data,o=ps.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var y=a?Rn(n,u,h,d,t,s):Rn(i,c,p,f,t,s);if(y>0)for(var m=0;m<y;m++){var _=s[m];if(_<=1&&_>=0){v=a?Nn(i,c,p,f,_):Nn(n,u,h,d,_);return a?[t,v]:[v,t]}}n=d,i=f}}},e}(Es),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e}(TC),DC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new IC},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&MC(n[2*o-2],n[2*o-1]);o--);for(;r<o&&MC(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=kC(t,n,r,o,o,1,e.smooth,a,e.connectNulls);kC(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Es);function OC(t,e,n,i,r){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 h=new Xs({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=qt(r)?function(t){r(t,h)}:null;kc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function LC(t,e,n){var i=t.getArea(),r=no(i.r0,1),o=no(i.r,1),a=new Fu({shape:{cx:no(t.cx,1),cy:no(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,kc(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function EC(t,e){return t.type===e}function NC(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function PC(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function RC(t,e){var n=PC(t),i=n[0],r=n[1],o=PC(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function BC(t){return Jt(t)?t:t?.5:0}function VC(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}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 p=(u[o]+c[o])/2,d=[];l[o]=d[o]=p,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 zC(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=ci(e[r]),s=ci(e[o]),l=i-r,u=gi([$n(ri(a[0],s[0],l)),$n(ri(a[1],s[1],l)),$n(ri(a[2],s[2],l)),ti(ri(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}((n-i)/(e.coord-i),[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){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function FC(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*gC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return zt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function GC(t,e){return[t[2*e],t[2*e+1]]}function UC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<gl.length;e++)if(t.get([gl[e],"endLabel","show"]))return!0;return!1}function WC(t,e,n,i){if(EC(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=UC(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=OC(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),LC(e,n,i)}var HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(){var t=new Zr,e=new xC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),_=bC(r,a,m),x=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Qm(2*i),o=0;o<i;o++){var a=wC(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,_),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&FC(t,a,r),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),b||p.remove(),o.add(g);var M,k=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count())if("cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=Ft(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=zC(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";zt(p,(function(t){t.offset=(t.coord-f)/v})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var y=new pc(0,0,0,0,p,!0);return y[r]=f,y[r+"2"]=g,y}"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,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===r.type&&k===this._step){y&&!f?f=this._newPolygon(u,x):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,fp(T));var A=g.getClipPath();if(A)kc(A,{shape:WC(this,r,!1,t).shape},t);else g.setClipPath(WC(this,r,!0,t));b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),NC(this._stackedOnPoints,x)&&NC(this._points,u)||(v?this._doUpdateAnimation(a,x,r,n,k,m,w):(k&&(u=VC(u,r,k,w),x&&(x=VC(x,r,k,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),k&&(u=VC(u,r,k,w),x&&(x=VC(x,r,k,w))),d=this._newPolyline(u),y&&(f=this._newPolygon(u,x)),c||this._initOrUpdateEndLabel(t,r,fp(T)),g.setClipPath(WC(this,r,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),O=I.get("blurScope"),L=I.get("disabled");(d.useStyle(Pt(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Jl(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);cl(d).seriesIndex=t.seriesIndex,ql(d,D,O,L);var E=BC(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Pt(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=BC(P.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:R,smoothMonotone:N,connectNulls:w}),Jl(f,t,"areaStyle"),cl(f).seriesIndex=t.seriesIndex,ql(f,D,O,L)}var B=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=k,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){cl(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Wo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");(s=new gC(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fg.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Wo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fg.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Il(this._polyline,t),e&&Il(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new AC({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 DC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");qt(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=qt(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var y=n;i?(p=y.x,d=y.x+y.width,f=t.x):(p=y.y+y.height,d=y.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=qt(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(UC(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ul({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(ih(o,rh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?pC(r,n):hC(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?d:0)*(v?-1:1),x=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var k=GC(u,S[0]);s.attr({x:k[0]+_,y:k[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(k=l.getPointOn(m,b))&&s.attr({x:k[0]+_,y:k[1]+x});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(Jt(i))return no(f=Io(n||0,i,r),o?Math.max(ro(n||0),ro(i)):e);if(Xt(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,d=l[c],f=Io(p,d,r);a[c]=no(f,o?Math.max(ro(p),ro(d)):e)}}return a}(n,p,T,A,w.t))}i.lastFrameIndex=S[0]}else{var I=1===t||i.lastFrameIndex>0?S[0]:0;k=GC(u,I);r&&(M=c.getRawValue(I)),s.attr({x:k[0]+_,y:k[1]+x})}r&&hh(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,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=[],h=[],p=[],d=[],f=[],g=[],v=bC(r,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var C=y[w],M=y[w+1],k=m[S],T=m[S+1];(isNaN(C)||isNaN(M))&&(C=k,M=T),u.push(C,M),c.push(k,T),h.push(n[w],n[w+1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var A=x.idx,I=v.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],A),e.get(I[1],A)]);S=2*A,u.push(D[0],D[1]),c.push(m[S],m[S+1]);var O=wC(v,r,e,A);h.push(O[0],O[1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(d.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var L=u.length,E=Qm(L),N=Qm(L),P=Qm(L),R=Qm(L),B=[];for(_=0;_<f.length;_++){var V=f[_],z=2*_,F=2*V;E[z]=u[F],E[z+1]=u[F+1],N[z]=c[F],N[z+1]=c[F+1],P[z]=h[F],P[z+1]=h[F+1],R[z]=p[F],R[z+1]=p[F+1],B[_]=d[V]}return{current:E,next:N,stackedOnCurrent:P,stackedOnNext:R,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(h=VC(c.current,n,r,a),p=VC(c.stackedOnCurrent,n,r,a),d=VC(c.next,n,r,a),f=VC(c.stackedOnNext,n,r,a)),RC(h,d)>3e3||l&&RC(p,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=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Mc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),Mc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}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,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+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,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(fg),jC=HC;function YC(t,e){return{seriesType:t,plan:og(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=Ft(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Im(n,a[0])&&(a[0]=l),Im(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Qm(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",r)}}}}}}var qC={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},XC=function(t){return Math.round(t.length/2)};function ZC(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;Xt(r)?d=qC[r]:qt(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,XC))}}}}}function JC(t){t.registerChartView(jC),t.registerSeriesModel(cC),t.registerLayout(YC("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,ZC("line"))}var KC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.getInitialData=function(t,e){return Dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+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}(ng);ng.registerClass(KC);var QC=KC,$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.getInitialData=function(){return Dm(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=Ih(QC.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}(QC),tM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},eM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new tM},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(Es),nM=eM;function iM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function rM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var oM=Math.max,aM=Math.min;var sM=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return lt(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");"cartesian2d"===r||"polar"===r?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i)):"production"!==process.env.NODE_ENV&&So("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){$c(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,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==i.type&&So("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==e.type&&So("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(EC(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=gM[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?Fu:Xs)({shape:wM(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=gM[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&fM[l.type](i)){var s=!1;p&&(s=lM[l.type](d,i));var v=uM[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),yM(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):h?cM(h,c,v,i,e,r,!1,!1):kc(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=gM[l.type](a,e,i);if(g){var C=void 0;0===_.length?C=w(n):((C=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",y),m[e]=C);var M=gM[l.type](a,e);Mc(C,{shape:wM(r,M,l)},c,e)}var k=s.getItemGraphicEl(n);if(a.hasValue(e)&&fM[l.type](S)){var T=!1;if(p&&(T=lM[l.type](d,S))&&o.remove(k),k?Oc(k):k=uM[l.type](t,a,e,S,r,c,u.model,!!k,f),h&&(k.forceLabelAnimation=!0),b){var A=k.getTextContent();if(A){var I=hh(A);null!=I.prevValue&&(I.prevValue=I.value)}}else yM(k,a,e,i,S,t,r,"polar"===l.type);x?k.attr({shape:S}):h?cM(h,c,k,S,e,r,!0,b):Mc(k,{shape:S},t,e,null),a.setItemGraphicEl(e,k),k.ignore=T,o.add(k)}else o.remove(k)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Dc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Zr);S.removeAll();for(var C=0;C<m.length;++C)S.add(m[C]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),xM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xM(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,i,r){return t?"polar"===t.type?LC(t,e,n):"cartesian2d"===t.type?OC(t,e,n,i,r):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Ft(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.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,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},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){Dc(e,t,cl(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}(fg),lM={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=oM(e.x,t.x),s=aM(e.x+e.width,r),l=oM(e.y,t.y),u=aM(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=aM(e.r,t.r),o=oM(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},uM={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Xs({shape:Nt({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?nM:Fu,c=new u({shape:i,z2:1});c.name="item";var h,p,d=vM(r);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===nM}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Br(t,e,n);var r=h(i),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,y=p?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(f),b=l+u*_(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*m(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*m(f)+iM(f,o+y,!1),b=l+d*_(f)+rM(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*m(f)+iM(f,-o+y,!1),b=l+d*_(f)+rM(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+d*m(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*m(g)+iM(g,o+y,!0),b=l+d*_(g)+rM(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*m(g)+iM(g,-o+y,!0),b=l+d*_(g)+rM(g,-o+y,!0),w="right",S="middle";break;default:return Br(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?0:i.startAngle,g[f]=i[f],(s?Mc:kc)(c,{shape:g},o)}return c}};function cM(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Mc:kc)(n,{shape:l},e,r,null),(a?Mc:kc)(n,{shape:u},e?t.baseAxis.model:null,r)}function hM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var pM=["x","y","width","height"],dM=["cx","cy","r","startAngle","endAngle"],fM={cartesian2d:function(t){return!hM(t,pM)},polar:function(t){return!hM(t,dM)}},gM={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function vM(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 yM(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=rh(i);ih(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:hC(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=t.getTextContent();if(s&&p){var d=i.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,i){if(Jt(i))t.setTextConfig({rotation:i});else if(Yt(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===d?c:d,vM(a),i.get(["label","rotate"]))}!function(t,e,n,i){if(t){var r=hh(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}(p,h,o.getRawValue(n),(function(t){return pC(e,t)}));var f=i.getModel(["emphasis"]);ql(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Jl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",zt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var mM=function(){},_M=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new mM},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Es);function xM(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new _M({shape:{points:u},incremental:!!i,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 h=new _M({shape:{points:r.getLayout("largePoints")},incremental:!!i,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),cl(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",bM),h.on("mousemove",bM)),n&&n.push(h)}var bM=yg((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),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);cl(this).dataIndex=e>=0?e:null}),30,!1);function wM(t,e,n){if(EC(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var SM=sM;function CM(t){t.registerChartView(SM),t.registerSeriesModel($C),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,jt(i_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:og(),reset:function(t){if(r_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=Im(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=o_(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&Qm(3*r),u=d&&s&&Qm(3*r),m=d&&Qm(r),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(c?g:o,i),C=b.get(a,i),M=p,k=void 0;c&&(k=+S-b.get(o,i));var T=void 0,A=void 0,I=void 0,D=void 0;if(h){var O=n.dataToPoint([S,C]);c&&(M=n.dataToPoint([k,C])[0]),T=M,A=O[1]+y,I=O[0]-M,D=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([C,S]),c&&(M=n.dataToPoint([C,k])[1]),T=O[0]+y,A=M,I=v,D=O[1]-M,Math.abs(D)<f&&(D=(D<=0?-1:1)*f);d?(l[w]=T,l[w+1]=A,l[w+2]=h?I:D,u&&(u[w]=h?_.x:T,u[w+1]=h?A:_.y,u[w+2]=x),m[i]=i):e.setItemLayout(i,{x:T,y:A,width:I,height:D}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZC("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 MM=2*Math.PI,kM=Math.PI/180;function TM(t,e){return bp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AM(t,e){var n=TM(t,e),i=t.get("center"),r=t.get("radius");Yt(r)||(r=[0,r]),Yt(i)||(i=[i,i]);var o=eo(n.width,e.getWidth()),a=eo(n.height,e.getHeight()),s=Math.min(o,a);return{cx:eo(i[0],o)+n.x,cy:eo(i[1],a)+n.y,r0:eo(r[0],s/2),r:eo(r[1],s/2)}}function IM(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=TM(t,n),o=AM(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*kM,h=t.get("minAngle")*kM,p=0;e.each(i,(function(t){!isNaN(t)&&p++}));var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var _=MM,x=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;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{(i="area"!==v?0===d&&y?f:t*f:MM/p)<h?(i=h,_-=h):x+=t;var r=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:v?to(t,m,[u,l]):l}),b=r}})),_<MM&&p)if(_<=.001){var S=MM/p;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=c+w*n*S,i.endAngle=c+w*(n+1)*S}}))}else f=_/x,b=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===h?h:t*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}}))}))}var DM=Math.PI/180;function OM(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}Tx(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 h=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;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=i+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(p+l.len2)*r,f=d-l.label.x;LM(l,l.targetTextWidth-f*r,!0),l.label.x=d}}}function LM(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function EM(t){return"center"===t.position}function NM(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*DM,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),m=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=eo(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=eo(S,u);var C=w.get("length2");if(C=eo(C,u),Math.abs(h.endAngle-h.startAngle)<a)return zt(p.states,d),void(p.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}(p)){var M,k,T,A,I=(h.startAngle+h.endAngle)/2,D=Math.cos(I),O=Math.sin(I);e=h.cx,n=h.cy;var L="inside"===y||"inner"===y;if("center"===y)M=h.cx,k=h.cy,A="center";else{var E=(L?(h.r+h.r0)/2*D:h.r*D)+e,N=(L?(h.r+h.r0)/2*O:h.r*O)+n;if(M=E+3*D,k=N+3*O,!L){var P=E+D*(S+l-h.r),R=N+O*(S+l-h.r),B=P+(D<0?-1:1)*C;M="edge"===_?D<0?c+x:c+u-x:B+(D<0?-m:m),k=R,T=[[E,N],[P,R],[B,R]]}A=L?"center":"edge"===_?D>0?"right":"left":D>0?"left":"right"}var V=Math.PI,z=0,F=v.get("rotate");if(Jt(F))z=F*(V/180);else if("center"===y)z=0;else if("radial"===F||!0===F){z=D<0?-I+V:-I}else if("tangential"===F&&"outside"!==y&&"outer"!==y){var G=Math.atan2(D,O);G<0&&(G=2*V+G),O>0&&(G=V+G),z=G-V}if(o=!!z,p.x=M,p.y=k,p.rotation=z,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:A});var U=p.states.select;U&&(U.x+=p.x,U.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var H=(p.style.margin||0)+2.1;W.y-=H/2,W.height+=H,r.push({label:p,labelLine:f,position:y,len:S,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new mr(D,O),linePoints:T,textAlign:A,labelDistance:m,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;EM(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!EM(v=t[p])&&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+r-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+r-h-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+r-d.x-v.bleedMargin,v.targetTextWidth=g,LM(v,g)}for(OM(u,e,n,i,1,0,o,0,s,h),OM(l,e,n,i,-1,0,o,0,s,c),p=0;p<t.length;p++){var v;if(!EM(v=t[p])&&v.linePoints){d=v.label,f=v.linePoints;var y="edge"===v.labelAlignTo,m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,b=v.rect.width+x,w=f[1][0]-f[2][0];y?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+r-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}}}(r,e,n,l,u,p,c,h);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&(zt(v.states,d),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=g.linePoints;m||!x?(zt(y.states,d),y.ignore=!0):(Sx(x,g.minTurnAngle),Cx(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new mr(x[0][0],x[0][1])})}}}function PM(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Yt(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Ft(i,(function(t){return Rr(t,r)}))}}var RM=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new ul;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return lt(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Nt(PM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(kc(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,kc(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),kc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Mc(r,{shape:{endAngle:l.endAngle}},o,e))}else Oc(r),Mc(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Jl(r,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Nt({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},PM(s.getModel("itemStyle"),l)),Nt(r.ensureState("select"),{x:d,y:f,shape:PM(a.getModel(["select","itemStyle"]),l)}),Nt(r.ensureState("blur"),{shape:PM(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&Nt(v.ensureState("select"),{x:d,y:f}),Nt(y.ensureState("select"),{x:d,y:f}),ql(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;ih(i,rh(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ju,this.setTextGuideLine(h)),function(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<vl.length;l++){var u=vl[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:oe(r.states[u]&&r.states[u].ignore,s))||!oe(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0);continue}i||(i=new Ju,t.setTextGuideLine(i),h||!s&&a||Mx(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Mx(i,!1,u,c)}}if(i){Pt(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=kx}}else i&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<gl.length;i++){var r=gl[i];n[r]=t.getModel([r,e])}return n}(r),{stroke:s,opacity:ae(o.get(["lineStyle","opacity"]),l,1)})}},e}(Fu),BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return lt(e,t),e.prototype.render=function(t,e,n,i){var r,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&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new Fu({shape:AM(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new RM(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){Dc(a.getItemGraphicEl(e),t,e)})).execute(),NM(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 i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(fg);function VM(t,e,n){e=Yt(e)&&{coordDimensions:e}||Nt({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Sm(i,e).dimensions,o=new wm(r,t);return o.initData(i,n),o}var zM=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}(),FM=zM,GM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FM(Ht(this.getData,this),Ht(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return VM(this,{coordDimensions:["value"],encodeDefaulter:jt(Bp,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=function(t,e,n){if(!t[e])return 0;var i=Gt(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var r=Math.pow(10,n),o=Ft(t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,s=Ft(o,(function(t){return Math.floor(t)})),l=Gt(s,(function(t,e){return t+e}),0),u=Ft(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,d=u.length;p<d;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return s[e]/r}(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Oo(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}(ng),UM=GM;var WM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return lt(e,t),e.prototype.getInitialData=function(t,e){return Dm(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}(ng),HM=function(){},jM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return lt(e,t),e.prototype.getDefaultShape=function(){return new HM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[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,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[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),i=this.getBoundingRect();return t=n[0],e=n[1],i.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,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new Ar(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(Es),YM=function(){function t(){this.group=new Zr}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),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new jM({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),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(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=cl(t);l.seriesIndex=i.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}(),qM=YM,XM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),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 i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=YC("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new qM:new xC,this._isLargeDraw=i,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}(fg),ZM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(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}(Tp),JM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xo).models[0]},e.type="cartesian2dAxis",e}(Tp);Bt(JM,V_);var KM={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)"]}}},QM=Lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KM),$M=Lt({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}}},KM),tk={category:QM,value:$M,time:Lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$M),log:Pt({logBase:10},$M)},ek={value:1,category:1,time:1,log:1};function nk(t,e,n,i){zt(ek,(function(r,o){var a=Lt(Lt({},tk[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return lt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{};Lt(t,e.getTheme().get(o+"Axis")),Lt(t,this.getDefaultOption()),t.type=ik(t),n&&Sp(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Rm.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",ik)}function ik(t){return t.type||(t.data?"category":"value")}var rk=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 Ft(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ut(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}(),ok=["x","y"];function ak(t){return"interval"===t.type||"time"===t.type}var sk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ok,e}return lt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(ak(t)&&ak(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=lr([],p)}}},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 i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return De(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[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 De(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.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]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Ar(n,i,r,o)},e}(rk),lk=sk,uk=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return lt(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}(dx),ck=uk;function hk(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[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[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),re(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 pk(t){return"cartesian2d"===t.get("coordinateSystem")}function dk(t){var e={xAxisModel:null,yAxisModel:null};return zt(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Xo).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(r+' "'+ae(t.get(r+"Index"),t.get(r+"Id"),0)+'" not found');e[i]=o})),e}var fk=Math.log;function gk(t,e,n){var i=Zm.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=D_(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=fk(t.base);u=[fk(u[0])/p,fk(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=zm(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=zm(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=zm(f));var y=f*a;(g=no((v=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,v=no(y)):v>0&&u[1]<=0&&(v=0,g=-no(y))}var m,_,x,b=(r[0].value-o[0].value)/s,w=(r[a].value-o[a].value)/s;if(i.setExtent.call(t,g+f*b,v+f*w),i.setInterval.call(t,f),(b||w)&&i.setNiceExtent.call(t,g+f,v-f),"production"!==process.env.NODE_ENV){var S=i.getTicks.call(t);S[1]&&(m=f,_=Math.pow(10,ho(Math.abs(m))),0!==(x=Math.abs(m/_))&&1!==x&&2!==x&&3!==x&&5!==x||oo(S[1].value)>oo(f))&&So("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var vk=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ok,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 i(t){var e,n=Wt(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Bm(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(O_(l,s),Bm(l)&&(e=a))}r.length&&(e||O_((e=r.pop()).scale,e.model),zt(r,(function(t){gk(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};zt(n.x,(function(t){mk(n,"y",t,r)})),zt(n.y,(function(t){mk(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=bp(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){zt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(zt(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 i,r,o=n.getExtent();r=n instanceof Ym?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=L_(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=l(i?i[c]:{value:o[0]+c},c),p=N_(s.getTextRect(h),s.get("rotate")||0);a?a.union(p):a=p}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),zt(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]}Kt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Xo).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Xo).models[0],a=t.gridModel,s=this._coordsList;if(i)Rt(s,e=i.coordinateSystem)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.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 i=this,r=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,i){if(yk(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 ck(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ym({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new f_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Lm.getClass(e)||Zm)}}(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=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,zt(a.x,(function(e,n){zt(a.y,(function(r,o){var a="x"+n+"y"+o,s=new lk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){zt(B_(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}zt(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(pk(t)){var i=dk(t),r=i.xAxisModel,o=i.yAxisModel;if(!yk(r,e)||!yk(o,e))return;var a=this.getCartesian(r.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 zt(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);Rt(e,r)<0&&e.push(r),Rt(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(pk(t)){var e=dk(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!r)throw new Error('Grid "'+ae(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==i.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=ok,t}();function yk(t,e){return t.getCoordSysModel()===e}function mk(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_k(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&_k(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function _k(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var xk=vk,bk=Math.PI,wk=function(){function t(t,e){this.group=new Zr,this.opt=e,this.axisModel=t,Pt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Zr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Sk[t]},t.prototype.add=function(t){Sk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=so(e-t);return lo(o)?(r=n>0?"top":"bottom",i="center"):lo(o-bk)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<bk?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Sk={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(De(s,s,a),De(l,l,a));var u=Nt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new tc({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 h=e.get(["axisLine","symbol"]);if(null!=h){var p=e.get(["axisLine","symbolSize"]);Xt(h)&&(h=[h,h]),(Xt(p)||Jt(p))&&(p=[p,p]);var d=xv(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],g=p[1];zt([{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,i){if("none"!==h[i]&&null!=h[i]){var r=_v(h[i],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=Tk(r.getTicksCoords(),e.transform,l,Pt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,i,e,t),o=function(t,e,n,i){var r=n.axis;if(!re(i.axisLabelShow,n.get(["axisLabel","show"]))||r.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(re(i.labelRotate,o.get("rotate"))||0)*bk/180,u=wk.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=wk.isLabelSilent(n),d=n.get("triggerEvent");return zt(s,(function(s,l){var f="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,y=o;if(c&&c[f]){var m=c[f];Kt(m)&&m.textStyle&&(y=new kh(m.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(f),b=new ul({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(s.level||0),style:oh(y,{text:g,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:qt(_)?_("category"===r.type?v:"value"===r.type?f+"":f,l):_})});if(b.anid="label_"+f,d){var w=wk.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===r.type&&(w.dataIndex=f),cl(b).eventData=w}e.add(b),b.updateTransform(),h.push(b),t.add(b),b.decomposeTransform()})),h}(n,i,e,t);if(function(t,e,n){if(R_(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=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],h=n[n.length-1],p=n[n.length-2];!1===i?(Ck(o),Ck(u)):Mk(o,a)&&(i?(Ck(a),Ck(c)):(Ck(o),Ck(u)));!1===r?(Ck(s),Ck(h)):Mk(l,s)&&(r?(Ck(l),Ck(p)):(Ck(s),Ck(h)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=Pt(s.getLineStyle(),Pt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=Tk(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.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 _c(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}(Ft(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 Ar(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new _c(f.localRect,f.transform)),h||(h=new _c(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}(a)}},axisName:function(t,e,n,i){var r=re(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,d=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,kk(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*bk/180),kk(s)?o=wk.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=so(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;lo(a-bk/2)?(o=l?"bottom":"top",r="center"):lo(a-1.5*bk)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*bk&&a>bk/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,h),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)||{},y=v.ellipsis,m=re(t.nameTruncateMaxWidth,v.maxWidth,a),_=new ul({x:d[0],y:d[1],rotation:o.rotation,silent:wk.isLabelSilent(e),style:oh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Kc({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=wk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,cl(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Ck(t){t&&(t.ignore=!0)}function Mk(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=nr([]);return ar(r,r,-t.rotation),n.applyTransform(rr([],r,t.getLocalTransform())),i.applyTransform(rr([],r,e.getLocalTransform())),n.intersect(i)}}function kk(t){return"middle"===t||"center"===t}function Tk(t,e,n,i,r){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&&(De(a,a,e),De(s,s,e));var c=new tc({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}var Ak=wk;function Ik(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];zt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Nk(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(zt(n.getAxes(),jt(d,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&zt(p.baseAxes,jt(d,!h||"cross",c)),h&&zt(p.otherAxes,jt(d,"cross",!1))}}function d(i,s,c){var h=c.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||i||Ek(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};zt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Ot(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"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Pt(l,c.textStyle)}}return t.model.getModel("axisPointer",new kh(s,n,i))}(c,u,r,e,i,s):h;var d=h.get("snap"),f=Nk(c.model),g=s||d||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:d,useHandle:Ek(h),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Dk(o[i+"AxisId"],n.id)||Dk(o[i+"AxisIndex"],n.componentIndex)||Dk(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[f]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&zt(t.coordSysAxesInfo[Nk(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function Dk(t,e){return"all"===t||Yt(t)&&Rt(t,e)>=0||t===e}function Ok(t){var e=Lk(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Ek(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Lk(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Nk(t)]}function Ek(t){return!!t.get(["handle","show"])}function Nk(t){return t.type+"||"+t.id}var Pk={},Rk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&Ok(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){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,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Lk(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):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&&Pk[t])throw new Error("axisPointer "+t+" exists");Pk[t]=e},e.getAxisPointerClass=function(t){return t&&Pk[t]},e.type="axis",e}(rg),Bk=Ho();var Vk=["axisLine","axisTickLabel","axisName"],zk=["splitArea","splitLine","minorSplitLine"],Fk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return lt(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Zr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=hk(a,e),l=new Ak(e,Nt({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Bm(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));zt(Vk,l.add,l),this._axisGroup.add(l.getGroup()),zt(zk,(function(t){e.get([t,"show"])&&Gk[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||qc(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){Bk(this).splitAreaColors=null},e.type="cartesianAxis",e}(Rk),Gk={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Yt(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=r.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=c++%s.length,m=h[g].tickValue;e.add(new tc({anid:null!=m?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:Pt({stroke:s[y]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][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 tc({anid:"minor_line_"+l[p][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=Bk(t).splitAreaColors,p=fe(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=Yt(s)?s:[s],f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=m-x));var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new Xs({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:Pt({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Bk(t).splitAreaColors=p}}}(t,e,n,i)}},Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.type="xAxis",e}(Fk),Wk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Uk.type,e}return lt(e,t),e.type="yAxis",e}(Fk),Hk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return lt(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Xs({shape:t.coordinateSystem.getRect(),style:Pt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(rg),jk={offset:0};function Yk(t){t.registerComponentView(Hk),t.registerComponentModel(ZM),t.registerCoordinateSystem("cartesian2d",xk),nk(t,"x",JM,jk),nk(t,"y",JM,jk),t.registerComponentView(Uk),t.registerComponentView(Wk),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function qk(t){G_(Yk),t.registerSeriesModel(WM),t.registerChartView(XM),t.registerLayout(YC("scatter"))}var Xk="\0_ec_interaction_mutex";function Zk(t,e){return!!function(t){return t[Xk]||(t[Xk]={})}(t)[e]}Uy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},me);var Jk=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Ht(n._mousedownHandler,n),r=Ht(n._mousemoveHandler,n),o=Ht(n._mouseupHandler,n),a=Ht(n._mousewheelHandler,n),s=Ht(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Pt(Ot(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return lt(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(!(Qe(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&&$k("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Zk(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Ke(t.event),Qk(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Qe(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=$k("zoomOnMouseWheel",t,this._opt),n=$k("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;Kk(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);Kk(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Zk(this._zr,"globalPan")||Kk(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Be);function Kk(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Ke(i.event),Qk(t,e,n,i,r))}function Qk(t,e,n,i,r){r.isAvailableBehavior=Ht($k,null,n,i),t.trigger(e,r)}function $k(t,e,n){var i=n[t];return!t||i&&(!Xt(i)||e.event[i+"Key"])}var tT=Jk;var eT,nT={axisPointer:1,tooltip:1,brush:1};function iT(t){Xt(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 rT={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"},oT=Wt(rT),aT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},sT=Wt(aT),lT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=iT(t);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Zr;this._root=i;var r=[],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),fT(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=mT(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=ST(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new Zr).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Xs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=eT[s];if(u&&ye(eT,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=uT[s];if(p&&ye(uT,s)){var d=p.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,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Rs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pT(e,n),fT(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(eT={g:function(t,e){var n=new Zr;return pT(e,n),fT(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Xs;return pT(e,n),fT(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 bu;return pT(e,n),fT(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 tc;return pT(e,n),fT(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 Cu;return pT(e,n),fT(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,i=t.getAttribute("points");i&&(n=dT(i));var r=new qu({shape:{points:n||[]},silent:!0});return pT(e,r),fT(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=dT(i));var r=new Ju({shape:{points:n||[]},silent:!0});return pT(e,r),fT(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Fs;return pT(e,n),fT(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",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Zr;return pT(e,a),fT(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Zr;return pT(e,a),fT(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=mu(t.getAttribute("d")||"");return pT(e,n),fT(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),uT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new pc(e,n,i,r);return cT(t,o),hT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new dc(e,n,i);return cT(t,r),hT(t,r),r}};function cT(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function hT(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};wT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function pT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Pt(e.__inheritedStyle,t.__inheritedStyle))}function dT(t){for(var e=mT(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function fT(t,e,n,i,r){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 i=[],r=null;n.replace(_T,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=mT(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":or(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":sr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ar(r,r,-parseFloat(l[0])*xT);break;case"skewX":rr(r,[1,0,Math.tan(parseFloat(l[0])*xT),1,0,0],r);break;case"skewY":rr(r,[1,Math.tan(parseFloat(l[0])*xT),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),wT(t,a,s),i||function(t,e,n){for(var i=0;i<oT.length;i++){var r=oT[i];null!=(o=t.getAttribute(r))&&(e[rT[r]]=o)}for(i=0;i<sT.length;i++){var o;r=sT[i];null!=(o=t.getAttribute(r))&&(n[aT[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=vT(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=vT(o,"stroke",a.stroke,n)),zt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),zt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Ft(mT(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var gT=/^url\(\s*#(.*?)\)/;function vT(t,e,n,i){var r=n&&n.match(gT);if(!r)return"none"===n&&(n=null),n;var o=ce(r[1]);i.push([t,e,o])}var yT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mT(t){return t.match(yT)||[]}var _T=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xT=Math.PI/180;var bT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wT(t,e,n){var i,r=t.getAttribute("style");if(r)for(bT.lastIndex=0;null!=(i=bT.exec(r));){var o=i[1],a=ye(rT,o)?rT[o]:null;a&&(e[a]=i[2]);var s=ye(aT,o)?aT[o]:null;s&&(n[s]=i[2])}}function ST(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var CT=fe(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),MT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=fe(),this._freedGraphics=[],this._mapName=t,this._parsedXML=iT(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=fe();return zt(t,(function(t){if(null==t.namedFrom){var i=new K_(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{ue(null!=(n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new lT).parse(i,r))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Zr;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,h=void 0,p=void 0,d=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(h=0,d=s):l&&(h=l.y,d=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==h&&(h=f.y,d=f.height)}u=this._boundingRect=new Ar(c,h,p,d)}if(l){var g=ST(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Xs({shape:u.plain()}));var v=[];return zt(e.named,(function(t){var e;null!=CT.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 kT=[126,25],TT=[[[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]]],AT=0;AT<TT.length;AT++)for(var IT=0;IT<TT[AT].length;IT++)TT[AT][IT][0]/=10.5,TT[AT][IT][1]/=-14,TT[AT][IT][0]+=kT[0],TT[AT][IT][1]+=kT[1];var DT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var OT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var LT=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=fe(),this._mapName=t,this._specialAreas=n,this._geoJSON=Xt(i=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:ET(i)})}var r=fe(),o=[];return zt(n.regions,(function(e){var n=e.name;t&&ye(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Ar(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?tx(i,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)return;e.push(new J_("南海诸岛",Ft(TT,(function(t){return{type:"polygon",exterior:t}})),kT))}}(n,e),zt(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=DT[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:OT[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function ET(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var NT=fe(),PT=function(t,e,n){if(e.svg){var i=new MT(t,e.svg);NT.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new LT(t,r,n);NT.set(t,i)}},RT=function(t){return NT.get(t)},BT=function(t){var e=NT.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},VT=function(t,e,n){var i=NT.get(t);if(i)return i.load(e,n);"production"!==process.env.NODE_ENV&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.")},zT=["rect","circle","line","ellipse","polygon","polyline","path"],FT=fe(zT),GT=fe(zT.concat(["g"])),UT=fe(zT.concat(["g"])),WT=Ho();function HT(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function jT(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var YT=function(){function t(t){var e=new Zr;this.uid=Ah("ec_map_draw"),this._controller=new tT(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Zr),e.add(this._svgGroup=new Zr)}return t.prototype.draw=function(t,e,n,i,r){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(),h=c.raw,p=c.roam;!l.childAt(0)||r?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):Mc(u,p,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:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=fe(),n=fe(),i=this._regionsGroup,r=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]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function h(t){return{shape:{points:c(t)}}}i.removeAll(),zt(t.geo.regions,(function(r){var c=r.name,p=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;p||(p=e.set(c,new Zr),i.add(p),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=[],y=[];zt(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=QT(e,l)),zt(e,(function(t){v.push(new qu(h(t)))}))}else{var n=t.points;l&&(n=QT(n,l,!0)),zt(n,(function(t){y.push(new Ju(h(t)))}))}}));var m=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new cc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),qT(t,i,f,g),XT(t,i,c,g,o,f,m),n&&(jT(i),zt(i.states,jT))}}_(v),_(y,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;ZT(t,e,i,s,o,a),JT(t,e,i,s,o),KT(t,e,i,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 i=this._svgDispatcherMap=fe(),r=!1;zt(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!=FT.get(s)&&l instanceof Ea&&qT(t,l,u,c),l instanceof Ea&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=UT.get(s)&&XT(t,l,n,c,o,u,null),ZT(t,l,n,c,o,u),JT(t,l,n,c,o),null!=GT.get(s)&&("self"===KT(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,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){Ol(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 i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}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=RT(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=RT(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 i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,function(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}(o,t.dx,t.dy),n.dispatchAction(Nt(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,function(t,e,n,i){var r=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,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}(o,t.scale,t.originX,t.originY),n.dispatchAction(Nt(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!function(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!nT.hasOwnProperty(i.mainType)&&r&&r.model!==n}(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=WT(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function qT(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=HT(r),u=HT(o),c=HT(s),h=HT(a),p=t.data;if(p){var d=p.getItemVisual(n,"style"),f=p.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=h,Ol(e)}function XT(t,e,n,i,r,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 h=l?n:o,p=void 0;(!s||o>=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ih(e,rh(i),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(WT(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 ZT(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):cl(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function JT(t,e,n,i,r){t.data||Kc({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function KT(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return ql(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=cl(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function QT(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),zt(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(),r}var $T=YT,tA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new $T(n);r.add(o.group),o.draw(t,e,n,this,i),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 i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new bu({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=i.getName(n),h=u.indexOfName(c),p=i.getItemModel(n),d=p.getModel("label"),f=u.getItemGraphicEl(h);ih(l,rh(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Il(l,t)}}r.add(l)}}}))},e.type="map",e}(fg),eA=tA,nA=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,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return lt(e,t),e.prototype.getInitialData=function(t){for(var e=VM(this,{coordDimensions:["value"],encodeDefaulter:jt(Bp,this)}),n=fe(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}return zt(VT(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),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 i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Nf("section",{header:s.join(", "),noHeader:!s.length,blocks:[Nf("nameValue",{name:o,value:r})]})},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}(ng),iA=nA;function rA(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),zt(e,(function(t,e){for(var n,i,r,o=(n=Ft(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},zt(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].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=r[o].length,c=0;c<u;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?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 oA(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};zt(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.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=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var aA=De,sA=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new gr,n._rawTransformable=new gr,n.name=e,n}return lt(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Ar(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Ar(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Ar(t,e,n,i));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(),i=this.getCenter(),r=this.getZoom();i=De([],i,t),n=De([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ir(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],lr(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new gr;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 i=e?this._rawTransform:this.transform;return n=n||[],i?aA(n,t,i):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?aA([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=lA(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=lA(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(gr);function lA(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var uA=sA,cA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},hA=["lng","lat"],pA=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=hA,r.type="geo",r._nameCoordMap=fe(),r.map=n;var o,a=i.projection,s=VT(n,i.nameMap,i.nameProperty),l=RT(n),u=r.resourceType=l?l.type:null,c=r.regions=s.regions,h=cA[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&So("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&&So("project and unproject must be both provided in the projeciton."),a=null)),r.projection=a,a)for(var p=0;p<c.length;p++){var d=c[p].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:oe(i.aspectScale,h.aspectScale),r._invertLongitute=!a&&h.invertLongitute,r}return lt(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Ar(t,e,n,i));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 i=e[n];if("geoJSON"===i.type&&i.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(Xt(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.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,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=dA(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=dA(e);return i===this?i.pointToData(n):null},e}(uA);function dA(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Xo).models[0]||{}).coordinateSystem:null}Bt(pA,uA);var fA=pA;function gA(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-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,h=o.project([t+s*c,e+l*c]);Oe(i,i,h),Le(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var h,p,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),_=f.width/f.height*this.aspectScale,x=!1;if(g&&v&&(h=[eo(g[0],y),eo(g[1],m)],p=eo(v,Math.min(y,m)),isNaN(h[0])||isNaN(h[1])||isNaN(p)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):x=!0),x)d={},_>1?(d.width=p,d.height=p/_):(d.height=p,d.width=p*_),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,d=bp(b,{width:y,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var vA=function(){function t(){this.dimensions=hA}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new fA(o+r,o,Nt({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=gA,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),zt(r,(function(t,r){var o=Ft(t,(function(t){return t.get("nameMap")})),a=new fA(r,r,Nt({nameMap:Et(o)},i(t[0])));a.zoomLimit=re.apply(null,Ft(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=gA,a.resize(t[0],e),zt(t,(function(t){t.coordinateSystem=a,function(t,e){zt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=fe(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return zt(VT(e,n,i).regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}(),yA=new vA,mA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.init=function(t,e,n){var i=RT(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Oo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=yA.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Gt(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new kh(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),fe()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new kh(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return qt(i)?(r.status=e,i(r)):Xt(i)?i.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}(Tp),_A=mA;function xA(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}var bA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return lt(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new $T(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;av(t.target,(function(t){return null!=(e=cl(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=cl(t).eventData;if(e)return i._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}(rg),wA=bA;function SA(t,e,n){PT(t,e,n)}function CA(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),zt(n.coordinateSystem.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];zt(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",yA),t.registerComponentModel(_A),t.registerComponentView(wA),t.registerImpl("registerMap",SA),t.registerImpl("getMap",(function(t){return BT(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 i=e.coordinateSystem;if("geo"===i.type){var r=function(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.projectedToPoint?t.projectedToPoint(r):t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(xA(t,a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}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(xA(t,a)),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===n&&zt(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))}var MA=zt,kA=Kt,TA=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=Ot(e);this.type=i,this.mappingMethod=n,this._normalizeData=BA[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(AA(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,zt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(MA(e,(function(t,e){n[t]=e})),!Yt(i)){var r=[];Kt(i)?MA(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=RA(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):AA(r,!0):(ue("linear"!==n||r.dataExtent),AA(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Ht(this._normalizeData,this)},t.listVisualTypes=function(){return Wt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Kt(t)?zt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=Yt(e)?[]:Kt(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&MA(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(Yt(t))t=t.slice();else{if(!kA(t))return[];var e=[];MA(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 i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||Xt(s)&&s===t+"")return o;n&&h(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(VA(c[1],t,u[1]))return o}else if(u[1]===1/0){if(VA(c[0],u[0],t))return o}else if(VA(c[0],u[0],t)&&VA(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:OA("color"),getColorMapper:function(){var t=this.option;return Ht("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),LA.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=di(e,t.parsedVisual,i),r?i:gi(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return gi(di(t,this.option.parsedVisual),"rgba")},category:LA,piecewise:function(t,e){var n=PA.call(this,e);return null==n&&(n=gi(di(t,this.option.parsedVisual),"rgba")),n},fixed:EA}},colorHue:IA((function(t,e){return fi(t,e)})),colorSaturation:IA((function(t,e){return fi(t,null,e)})),colorLightness:IA((function(t,e){return fi(t,null,null,e)})),colorAlpha:IA((function(t,e){return function(t,e){var n=ci(t);if(n&&null!=e)return n[3]=ti(e),gi(n,"rgba")}(t,e)})),decal:{applyVisual:OA("decal"),_normalizedToVisual:{linear:null,category:LA,piecewise:null,fixed:null}},opacity:{applyVisual:OA("opacity"),_normalizedToVisual:NA([0,1])},liftZ:{applyVisual:OA("liftZ"),_normalizedToVisual:{linear:EA,category:EA,piecewise:EA,fixed:EA}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:DA,category:LA,piecewise:function(t,e){var n=PA.call(this,e);return null==n&&(n=DA.call(this,t)),n},fixed:EA}},symbolSize:{applyVisual:OA("symbolSize"),_normalizedToVisual:NA([0,1])}},t}();function AA(t,e){var n=t.visual,i=[];Kt(n)?MA(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),RA(t,i)}function IA(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:NA([0,1])}}function DA(t){var e=this.option.visual;return e[Math.round(to(t,[0,1],[0,e.length-1],!0))]||{}}function OA(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function LA(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function EA(){return this.option.visual[0]}function NA(t){return{linear:function(e){return to(e,t,this.option.visual,!0)},category:LA,piecewise:function(e,n){var i=PA.call(this,n);return null==i&&(i=to(e,t,this.option.visual,!0)),i},fixed:EA}}function PA(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[TA.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function RA(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Ft(e,(function(t){var e=ci(t);return e||"production"===process.env.NODE_ENV||So("'"+t+"' is an illegal color, fallback to '#000000'",!0),e||[0,0,0,1]}))),e}var BA={linear:function(t){return to(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=TA.findPieceIndex(t,e,!0);if(null!=n)return to(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:me};function VA(t,e,n){return t?e<=n:e<n}var zA=TA;function FA(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 GA(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var UA=Ho(),WA=Ot,HA=Ht,jA=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,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,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=jt(YA,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Zr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);JA(a,e,!0),this._renderHandle(r)}},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"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Lk(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=UA(t).pointerEl=new th[r.type](WA(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=UA(t).labelEl=new ul(WA(e.label));t.add(r),XA(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=UA(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=UA(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),XA(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Xc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ke(t.event)},onmousedown:HA(this._onHandleDragMove,this,0,0),drift:HA(this._onHandleDragMove,this),ondragend:HA(this._onHandleDragEnd,this)}),i.add(r)),JA(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Yt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,mg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){YA(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ZA(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ZA(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ZA(i)),UA(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,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_g(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 YA(t,e,n,i){qA(UA(n).lastProp,i)||(UA(n).lastProp=i,e?Mc(n,i,t):(n.stopAnimation(),n.attr(i)))}function qA(t,e){if(Kt(t)&&Kt(e)){var n=!0;return zt(e,(function(e,i){n=n&&qA(t[i],e)})),!!n}return t===e}function XA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ZA(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function JA(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}function KA(t,e,n,i,r){var o=QA(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=ap(a.get("padding")||0),l=a.getFont(),u=Lr(o,l),c=r.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-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,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:oh(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function QA(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:E_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};zt(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),Xt(a)?o=a.replace("{value}",o):qt(a)&&(o=a(s))}return o}function $A(t,e,n){var i=[1,0,0,1,0,0];return ar(i,i,n.rotation),or(i,i,n.position),Hc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var tI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=eI(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"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=nI[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Ak.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),KA(e,i,r,o,{position:$A(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,hk(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=hk(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=$A(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=eI(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(jA);function eI(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var nI={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=iI(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=iI(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function iI(t){return"x"===t.dim?0:1}var rI=tI,oI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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}(Tp),aI=Ho(),sI=zt;function lI(t,e,n){if(!pt.node){var i=e.getZr();aI(i).records||(aI(i).records={}),function(t,e){if(aI(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);sI(aI(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}aI(t).initialized=!0,n("click",jt(cI,"click")),n("mousemove",jt(cI,"mousemove")),n("globalout",uI)}(i,e),(aI(i).records[t]||(aI(i).records[t]={})).handler=n}}function uI(t,e,n){t.handler("leave",null,n)}function cI(t,e,n,i){e.handler(t,n,i)}function hI(t,e){if(!pt.node){var n=e.getZr();(aI(n).records||{})[t]&&(aI(n).records[t]=null)}}var pI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lI("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){hI("axisPointer",e)},e.prototype.dispose=function(t,e){hI("axisPointer",e)},e.type="axisPointer",e}(rg),dI=pI;function fI(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Wo(o,t);if(null==a||a<0||Yt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(Ft(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var gI=Ho();function vI(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Ht(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bI(r)&&(r=fI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bI(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||bI(r),p={},d={},f={list:[],map:{}},g={showPointer:jt(mI,d),showTooltip:jt(_I,f)};zt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);zt(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&yI(t,a,g,!1,p)}}))}));var v={};return zt(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&zt(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,xI(e),xI(t)))),v[t.key]=o}}))})),zt(v,(function(t,e){yI(c[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];zt(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,c,p),function(t,e,n,i){if(bI(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=gI(i)[r]||{},a=gI(i)[r]={};zt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&zt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];zt(o,(function(t,e){!a[e]&&l.push(t)})),zt(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),p}}function yI(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return zt(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[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,r=u,o.length=0),zt(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Nt(r,s[0]),!i&&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 mI(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function _I(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Nk(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:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function xI(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function wI(t){Rk.registerAxisPointerClass("CartesianAxisPointer",rI),t.registerComponentModel(oI),t.registerComponentView(dI),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Yt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ik(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vI)}var SI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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}(Tp);function CI(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function MI(t){if(pt.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var kI=MI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function TI(t,e){if(!t)return e;e=op(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var AI=TI(MI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),II=TI(kI,"transform"),DI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(pt.transform3dSupported?"will-change:transform;":"");function OI(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!pt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=pt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+II+":"+a+";":[["top",0],["left",0],[kI,a]]}function LI(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Wf(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=pt.transformSupported?","+II+i:",left"+i+",top"+i),AI+":"+r}(r,n)),o&&i.push("background-color:"+o),zt(["width","color","radius"],(function(e){var n="border-"+e,r=op(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),zt(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=h&&i.push("padding:"+ap(h).join("px ")+"px"),i.join(";")+";"}function EI(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Ue(Ge,e,i,r,!0)&&Ue(t,n,Ge[0],Ge[1])}(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;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 NI=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,pt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;EI(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;Je(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e,n,i,r=this._container,o=(n="position",(i=(e=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?i[n]:i:null),a=r.style;"absolute"!==a.position&&"absolute"!==o&&(a.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,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=DI+LI(t,!this._firstShow,this._longHide)+OI(r[0],r[1],!0)+"border-color:"+fp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Xt(r)&&"item"===n.get("trigger")&&!CI(n)&&(a=function(t,e,n){if(!Xt(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=fp(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=II+":";Rt(["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 h=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),Xt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Yt(t)||(t=[t]);for(var s=0;s<t.length;s++)te(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(EI(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;zt(OI(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",pt.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(Ht(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),PI=NI;function RI(t){return Math.max(0,t)}function BI(t){var e=RI(t.shadowBlur||0),n=RI(t.shadowOffsetX||0),i=RI(t.shadowOffsetY||0);return{left:RI(e-n),right:RI(e+n),top:RI(e-i),bottom:RI(e+i)}}function VI(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var zI=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),VI(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,i,r){var o=this;Kt(t)&&Ao("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 ul({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Wf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),zt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),zt(["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=BI(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 i=this._styleCoord;VI(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=RI(r.borderWidth||0),a=BI(r);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(Ht(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),FI=new Xs({shape:{x:-1,y:-1,width:2,height:2}}),GI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.init=function(t,e){if(!pt.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?pt.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new zI(e):new PI(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!pt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?mg(this,"_updatePosition",50,"fixRate"):_g(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");lI("itemTooltip",this._api,Ht((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),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 i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!pt.node&&n.getDom()){var r=WI(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=qo(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o,a=Zo(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=cl(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(i,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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=FI;l.x=i.x,l.y=i.y,l.update(),cl(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=fI(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(WI(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===UI([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,av(n,(function(t){return null!=cl(t).dataIndex?(r=t,!0):null!=cl(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,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=Ht(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=UI([e.tooltipOption],i),a=this._renderMode,s=[],l=Nf("section",{blocks:[],noHeader:!0}),u=[],c=new Hf;zt(t,(function(t){zt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=QA(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Nf("section",{header:o,noHeader:!ce(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),zt(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=E_(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",fp(f.color),a);var g=rf(p.formatTooltip(d,!0,null)),v=g.frag;if(v){var y=UI([p],i).get("valueFormatter");h.blocks.push(y?Nt({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=Ff(l,c,a,p,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,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=cl(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=UI([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Hf;g.marker=v.makeTooltipMarker("item",fp(g.color),h);var y=rf(s.formatTooltip(l,!1,u)),m=d.get("order"),_=d.get("valueFormatter"),x=y.frag,b=x?Ff(_?Nt({valueFormatter:_},x):x,v,h,m,i.get("useUTC"),d.get("textStyle")):y.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 i=cl(e),r=i.tooltipConfig.option||{};if(Xt(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UI(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Hf;this._showOrMove(l,(function(){var n=Ot(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(Xt(c)){var d=t.ecModel.get("useUTC"),f=Yt(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=Gh(f.axisValue,h,d)),h=dp(h,n,!0)}else if(qt(c)){var g=Ht((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Yt(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Yt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),qt(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),Yt(e))n=eo(e[0],s),i=eo(e[1],l);else if(Kt(e)){var d=e;d.width=u[0],d.height=u[1];var f=bp(d,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(Xt(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-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,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=HI(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=HI(h)?u[1]/2:"bottom"===h?u[1]:0),CI(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&zt(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&zt(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&zt(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&zt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!pt.node&&e.getDom()&&(_g(this,"_updatePosition"),this._tooltipContent.dispose(),hI("itemTooltip",e))},e.type="tooltip",e}(rg);function UI(t,e,n){var i,r=e.ecModel;n?(i=new kh(n,r,r),i=new kh(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof kh&&(a=a.get("tooltip",!0)),Xt(a)&&(a={formatter:a}),a&&(i=new kh(a,i,r)))}return i}function WI(t,e){return t.dispatchAction||Ht(e.dispatchAction,e)}function HI(t){return"center"===t||"middle"===t}var jI=GI;function YI(t){G_(wI),t.registerComponentModel(SI),t.registerComponentView(jI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},me),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},me)}var qI=zt;function XI(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function ZI(t,e,n){var i={};return qI(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);qI(t[e],(function(t,i){if(zA.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new zA(r),"opacity"===i&&((r=Ot(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new zA(r))}}))})),i}function JI(t,e,n,i){var r={};return zt(t,(function(t){var n=zA.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,o){var a,s;function l(t){return nv(o,s,t)}function u(t,e){!function(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}(o,s,t,e)}null!=i&&(a=o.getDimensionIndex(i));for(var c=o.getStore();null!=(s=t.next());){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var p=null!=i?c.get(a,s):s,d=n(p),f=e[d],g=r[d],v=0,y=g.length;v<y;v++){var m=g[v];f[m]&&f[m].applyVisual(p,l,u)}}}}}var KI=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 lt(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}(Tp),QI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=oe(t.get("textBaseline"),t.get("textVerticalAlign")),l=new ul({style:oh(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new ul({style:oh(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){gp(p,"_"+t.get("target"))})),d&&h.on("click",(function(){gp(d,"_"+t.get("subtarget"))})),cl(l).eventData=cl(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=bp(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new Xs({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(rg);function $I(t){t.registerComponentModel(KI),t.registerComponentView(QI)}var tD=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 lt(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"]),Yt(e)&&zt(e,(function(t,i){Xt(t)&&(t={type:t}),e[i]=Lt(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 i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Go(i)&&e.push(i.name)})),this._availableNames=n;var i=Ft(this.get("data")||e,(function(t){return(Xt(t)||Jt(t))&&(t={name:t}),new kh(t,this,this.ecModel)}),this);this._data=i},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&zt(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;zt(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;zt(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])&&Rt(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}(Tp),eD=tD,nD=jt,iD=zt,rD=Zr,oD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return lt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rD),this.group.add(this._selectorGroup=new rD),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 i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="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(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=bp(l,u,c),p=this.layoutInner(t,r,h,i,a,s),d=bp(Pt({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=ap(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Xs({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}(p,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,i,r,o,a){var s=this.getContentGroup(),l=fe(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),iD(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rD;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(p,a,o,r,e,t,f,v,g,u).on("click",nD(aD,a,null,i,c)).on("mouseover",nD(lD,p.name,null,i,c)).on("mouseout",nD(uD,p.name,null,i,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 h=s.indexOfName(a),p=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),f=ci(p.fill);f&&0===f[3]&&(f[3]=.2,p=Nt(Nt({},p),{fill:gi(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},p,d,u).on("click",nD(aD,null,a,i,c)).on("mouseover",nD(lD,null,a,i,c)).on("mouseout",nD(uD,null,a,i,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),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();iD(t,(function(t){var i=t.type,r=new ul({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),ih(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Yl(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var c=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),d=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),iD(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]);"inherit"===s.stroke&&(s.stroke=i[l]);"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity);a(s,i);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),!o){var h=e.get("inactiveBorderWidth"),p=s[l];s.lineWidth="auto"===h?i.lineWidth>0&&p?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",i,a,s,c,d),m=new rD,_=i.getModel("textStyle");if(!qt(t.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;m.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:h,itemHeight:p,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:f,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var b="left"===o?h+5:-5,w=o,S=r.get("formatter"),C=e;Xt(S)&&S?C=S.replace("{name}",null!=e?e:""):qt(S)&&(C=S(e));var M=i.get("inactiveColor");m.add(new ul({style:oh(_,{text:C,x:b,y:p/2,fill:d?_.getTextColor():M,align:w,verticalAlign:"middle"})}));var k=new Xs({shape:m.getBoundingRect(),invisible:!0}),T=i.getModel("tooltip");return T.get("show")&&Kc({el:k,componentModel:r,itemName:e,itemTooltipOption:T.option}),m.add(k),m.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(m),Yl(m),m.__legendDataIndex=n,m},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xp(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(),r){xp("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=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?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+p+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(rg);function aD(t,e,n,i){uD(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),lD(t,e,n,i)}function sD(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function lD(t,e,n,i){sD(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function uD(t,e,n,i){sD(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var cD=oD;function hD(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 i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),zt(n.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function dD(t){t.registerComponentModel(eD),t.registerComponentView(cD),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,hD),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",jt(pD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",jt(pD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",jt(pD,"inverseSelect")),t.registerAction("legendSelect","legendselected",jt(pD,"select")),t.registerAction("legendUnSelect","legendunselected",jt(pD,"unSelect"))}(t)}function fD(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Sp(e,n,{type:"box",ignoreSize:!!i})}var gD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Cp(e);t.prototype.init.call(this,e,n,i),fD(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),fD(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ih(eD.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}(eD),vD=Zr,yD=["width","height"],mD=["x","y"],_D=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 lt(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new vD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vD)},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,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=Yt(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=t+"DataIndex",o=Xc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Ht(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new ul({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=yD[s],u=mD[s],c=yD[1-s],h=mD[1-s];r&&xp("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=Ot(n);r&&(g[l]=n[l]-d[l]-p);var v=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=v[l]+p;else{var y=d[l]+p;f[s]-=y,v[u]-=y}v[l]+=d[l]+p,f[1-s]+=v[h]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[h]=Math.min(v[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;xp(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),xp("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=oe(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+y);v[1-i]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var m={x:0,y:0};if(m[r]=d?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-y,0),_[o]=m[o],u.setClipPath(new Xs({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&Mc(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;zt(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",Xt(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=yD[r],a=mD[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(f=s-1,g=d,v=d,y=null;f>=-1;--f)(y=m(l[f]))&&_(v,y.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(cD),xD=_D;function bD(t){G_(dD),t.registerComponentModel(gD),t.registerComponentView(xD),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 wD(t){G_(dD),G_(bD)}var SD={get:function(t,e,n){var i=Ot((CD[t]||{})[e]);return n&&Yt(i)?i[i.length-1]:i}},CD={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]}},MD=SD,kD=zA.mapVisual,TD=zA.eachVisual,AD=Yt,ID=zt,DD=io,OD=to,LD=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 lt(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 i;zt(n,(function(t){e.hasOwnProperty(t)&&XI(e[t])&&(i=!0)})),i&&zt(n,(function(n){e.hasOwnProperty(n)&&XI(e[n])?t[n]=Ot(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=Ht(t,this),this.controllerVisuals=ZI(this.option.controller,e,t),this.targetVisuals=ZI(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=Do(t),e},e.prototype.eachTargetSeries=function(t,e){zt(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),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 i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],Yt(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return Xt(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):qt(s)?i?s(t[0],t[1]):s(t):i?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=DD([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,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);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},i=e.target||(e.target={}),r=e.controller||(e.controller={});Lt(i,n),Lt(r,n);var o=this.isCategory();function a(n){AD(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},ID(i,(function(t,e){if(zA.isValidType(e)){var n=MD.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";ID(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&Ot(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&Ot(n)||(o?s[0]:[s[0],s[0]])),l.symbol=kD(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;TD(u,(function(t){t>c&&(c=t)})),l.symbolSize=kD(u,(function(t){return OD(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},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}(Tp),ED=LD,ND=[20,140],PD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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]=ND[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=ND[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Yt(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),zt(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=io((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 i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=RD(this,"outOfRange",this.getExtent()),n=RD(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.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]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ih(ED.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}(ED);function RD(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var BD=PD,VD=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 lt(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=ap(e.get("padding")||0),i=t.getBoundingRect();t.add(new Xs({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.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 i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)];return zt(zA.prepareVisualTypes(u),(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),zA.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;!function(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.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 Ar(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 h=bp(Pt({width:a.width,height:a.height},e),n,i),p=s?h.x-a.x:0,d=l?h.y-a.y:0;"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw()}(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(rg),zD=VD,FD=[["left","right","width"],["top","bottom","height"]];function GD(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=FD[a],l=[0,null,10],u={},c=0;c<3;c++)u[FD[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=bp(u,o,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function UD(t,e){return zt(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var WD=to,HD=zt,jD=Math.min,YD=Math.max,qD=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 lt(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.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 i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.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,h=this.visualMapModel.textStyleModel;this.group.add(new ul({style:oh(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=GD(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Zr;s.add(l),l.add(n.outOfRange=XD()),l.add(n.inRange=XD(null,o?JD(this._orient):null,Ht(this._dragHandle,this,"all",!1),Ht(this._dragHandle,this,"all",!0))),l.setClipPath(new Xs({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=YD(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=Ht(this._dragHandle,this,n,!1),s=Ht(this._dragHandle,this,n,!0),l=Rr(t.get("handleSize"),i[0]),u=_v(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=JD(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Ke(t.event)}}),u.x=i[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(),Kl(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new ul({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Ke(t.event)},ondragend:s,style:oh(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=Rr(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(Nt({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 ul({silent:!0,invisible:!0,style:oh(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[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():ZD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[WD(e[0],n,i,!0),WD(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];!function(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=GA(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=GA(s,[0,a]),r=o=GA(s,[r,o]),i=0}e[0]=GA(e[0],n),e[1]=GA(e[1],n);var l=FA(e,i);e[i]+=t;var u,c=r||0,h=n.slice();l.sign<0?h[0]+=c:h[1]-=c,e[i]=GA(e[i],h),u=FA(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=FA(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o)}(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[WD(i[0],r,o,!0),WD(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new pc(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/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 Zr("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,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();HD([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=WD(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=Hc(n.handleLabelPoints[l],Wc(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.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}),h=this.getControllerVisual(t,"symbolSize"),p=WD(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=Hc(l.indicatorLabelPoint,Wc(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?y:"middle",align:m?"center":y});var _={x:d,y:p,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,b),v.animateTo(x,b)}else u.attr(_),v.attr(x);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,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=jD(YD(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=jD(YD(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=WD(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=WD(t,r,o,!0),u=[WD(s[0],r,o,!0),WD(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[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,h=[];(e||ZD(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=Vo(t[i].seriesId,null);if(null==o)return;for(var a=Do(t[i].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 i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(c,h);this._dispatchHighDown("downplay",UD(p[0],n)),this._dispatchHighDown("highlight",UD(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=cl(e).dataIndex){var i=cl(e),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.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",UD(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,i){var r=Wc(e,i?null:this.group);return Yt(t)?Hc(t,r,n):jc(t,r,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}(zD);function XD(t,e,n,i){return new qu({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ke(t.event)},ondragend:i})}function ZD(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function JD(t){return"vertical"===t?"ns-resize":"ew-resize"}var KD=qD,QD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},$D=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},tO=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(JI(e.stateList,e.targetVisuals,Ht(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(Ht(eO,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function eO(t,e,n,i){for(var r=e.targetVisuals[i],o=zA.prepareVisualTypes(r),a={color:iv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}var nO=zt;function iO(t){var e=t&&t.visualMap;Yt(e)||(e=e?[e]:[]),nO(e,(function(t){if(t){rO(t,"splitList")&&!rO(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Yt(e)&&nO(e,(function(t){Kt(t)&&(rO(t,"start")&&!rO(t,"min")&&(t.min=t.start),rO(t,"end")&&!rO(t,"max")&&(t.max=t.end))}))}}))}function rO(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var oO=!1;function aO(t){oO||(oO=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(QD,$D),zt(tO,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(iO))}function sO(t){t.registerComponentModel(BD),t.registerComponentView(KD),aO(t)}var lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return lt(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],uO[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=Ot(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Ft(this._pieceList,(function(t){return t=Ot(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=zA.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}zt(e.pieces,(function(t){zt(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),zt(n,(function(t,n){var i=!1;zt(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&zt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=MD.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,zt(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;zt(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[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=Ot(t)},e.prototype.getValueState=function(t){var e=zA.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(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){zA.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),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=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return zt(r,(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(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Ih(ED.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}(ED),uO={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),fo(t),zt(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;zt(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),cO(e,t)},pieces:function(t){var e=this.option;zt(e.pieces,(function(e,n){Kt(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;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]&&(i.value=o[0])}i.visual=zA.retrieveVisuals(e),t.push(i)}),this),cO(e,t),fo(t),zt(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 cO(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var hO=lO,pO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=re(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),zt(l.viewPieceList,(function(i){var l=i.piece,u=new Zr;u.onclick=Ht(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new ul({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),xp(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 i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:UD(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return GD(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Zr,a=this.visualMapModel.textStyleModel;o.add(new ul({style:oh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=Ft(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?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,i=Ot(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,zt(i,(function(t,e){i[e]=e===r}))):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(zD),dO=pO;function fO(t){t.registerComponentModel(hO),t.registerComponentView(dO),aO(t)}var gO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return lt(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Tf(this),Af(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Af(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:"column"},e}(Tp),vO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return lt(e,t),e.type="dataset",e}(rg);function yO(t){t.registerComponentModel(gO),t.registerComponentView(vO)}G_([uC,function(t){t.registerChartView(BM),t.registerSeriesModel(UM),rv("pie",t.registerAction),t.registerLayout(jt(IM,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].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"),i=n.get(e,t);return!(Jt(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},$I,YI,wD]);var mO=o({name:"EcanPie",props:Object.assign({},nC),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){var t=(i(s)[0]||{}).data,e=void 0===t?[]:t;if(Array.isArray(r.colors)){var n=r.isUseLabelColors,o=r.colors;e=e.map((function(t,e){return Object.assign({label:n?{color:o[e]}:{}},t)}))}return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},tooltip:{show:r.tooltipShow,trigger:r.tooltipTrigger,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},color:r.colors,series:[{data:e,type:"pie",radius:[r.innerRadius,r.outerRadius],center:[r.centerLeft,r.centerTop],roseType:r.roseType,avoidLabelOverlap:!1,label:{show:"center"!==r.labelPosition&&r.labelShow,color:r.labelColor,fontSize:r.labelFontSize,position:r.labelPosition,formatter:Cw(r.labelFormatter)},labelLine:{show:r.labelLineShow,length:r.labelLineLength,length2:r.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),u=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),c=u.getGlobalModel,h=u.setGlobalModel,p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=bw(t,e),i=n.dataset;s.value=i};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var f=_(!1),g=Aw(r),v=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,f.value=!0,t.next=6,g();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,r.valueTypeDataFieldNames),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,f.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},y=mw(r.events)("click",(function(t){var e=r.id,n=c(e);h(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return yw(r,{refreshData:function(){v()},click:y}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(v,r.requestSort),{option:l,style:a,click:y,loading:f}}});mO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},mO.__file="src/graph/pie/Pie.vue";var _O=rw(mO),xO=Object.assign(Object.assign({},uw),{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"}),bO=cw(xO),wO=["click","refreshData"];G_([uC,JC,$I,wD]);var SO=o({name:"EcanLine",props:Object.assign({},bO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=_([]),u=n((function(){return{title:{text:r.titleText,subText:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,xAxis:{type:"category",data:i(l),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft},series:i(s)}})),c=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),h=c.getGlobalModel,p=c.setGlobalModel,d=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,f=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}l.value=t.dimensions;for(var a=t.dataset,u=[],c=a.length,h=0;h<c;h++)u.push(Object.assign(Object.assign({type:"line"},a[h]),{symbolSize:r.symbolSize,smooth:r.smooth,lineStyle:{width:r.lineStyleWidth}}));s.value=u};t((function(){return[r.data,r.symbolSize,r.smooth,r.lineStyleWidth]}),(function(t){var e=Vx(t,1)[0];"static"!==r.dataType&&"design"!==i(d)||f(e)}),{immediate:!0,deep:!0});var g=_(!1),v=Aw(r),y=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(d)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,g.value=!0,t.next=6,v();case 6:o=t.sent,f(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,g.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},m=mw(r.events)("click",(function(t){var e=r.id,n=h(e);p(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return yw(r,{refreshData:function(){y()},click:m}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(y,r.requestSort),{option:u,style:a,click:m,loading:g}}});SO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},SO.__file="src/graph/line/Line.vue";var CO=rw(SO),MO=Object.assign(Object.assign({},uw),{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}),kO=cw(MO),TO=["refreshData","click"];G_([uC,CM,$I,wD,yO]);var AO=o({name:"EcanBar",props:Object.assign({},kO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){for(var t=i(s),e=t.length,n=[],o=0;o<e;o++)n.push(Object.assign(Object.assign({},t[o]),{type:"bar",barWidth:r.barWidth}));return n})),u=_([]),c=_(!1),h=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,tooltip:{trigger:"axis",show:r.tooltipShow,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},xAxis:{type:"category",data:i(u),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},series:i(l)}})),p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}s.value=t.dataset,u.value=t.dimensions},f=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],i=n?e:null,r=Ow(t,i);s.value=r.dataset,u.value=r.dimensions};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var g=Aw(r),v=Pw(r),y=function(){"design"!==i(p)&&(ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,v();case 6:l=t.sent,(null===(o=null===(n=null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.columns)||void 0===o?void 0:o.length)>0&&(u={name:l.data.data.columns[0],types:l.data.data.columns.slice(1).map((function(t){return{label:t,value:t}}))}),f(null===(s=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.data)||void 0===s?void 0:s.rows,u,!0),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error(t.t0);case 14:return t.prev=14,c.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,11,14,17]])}))),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,g();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,c.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])}))))},m=function(){y()},x=mw(r.events),b=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),w=b.getGlobalModel,S=b.setGlobalModel,C=x("click",(function(t){var e=r.id,n=w(e);S(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(y,r.requestSort),yw(r,{refreshData:m,click:C}),{option:h,style:a,refreshData:m,click:C,loading:c}}});AO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},AO.__file="src/graph/bar/Bar.vue";var IO=rw(AO),DO=Object.assign(Object.assign({},uw),{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%"}),OO=cw(DO),LO=["click","refreshData"];G_([uC,qk,$I,YI,wD]);var EO=o({name:"EcanScatter",props:Object.assign({},OO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,xAxis:{splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},tooltip:{show:r.tooltipShow,trigger:r.tooltipTrigger,formatter:function(t){var e,n,i=null!==(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.record)&&void 0!==n?n:{};return Ew(r.tooltipFormatter,i)},axisPointer:{type:"cross"}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft},series:[{data:i(s),type:"scatter",symbolSize:r.symbolSize}]}})),u=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),c=u.getGlobalModel,h=u.setGlobalModel,p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},i=n.name,r=void 0===i?"name":i,o=n.value,a=void 0===o?"value":o;s.value=t.map((function(t){return{value:[t[r],t[a]],record:t}})),console.log(t.map((function(t){return{value:[t[r],t[a]],record:t}})))};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var f=_(!1),g=Aw(r),v=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return f.value=!0,t.prev=3,t.next=6,g();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,r.dataFieldNames),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error(t.t0);case 13:return t.prev=13,f.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[3,10,13,16]])})))},y=mw(r.events)("click",(function(t){var e=r.id,n=c(e);h(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return yw(r,{refreshData:function(){v()},click:y}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(v,r.requestSort),{option:l,style:a,click:y,loading:f}}});EO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},EO.__file="src/graph/scatter/Scatter.vue";var NO=rw(EO),PO=Object.assign(Object.assign({},uw),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),RO=cw(PO),BO=o({name:"EcanCustomGraph",props:Object.assign({},RO),components:{Echarts:Hx},setup:function(e){var n=fw(e),i=_();return t((function(){return e.optionCode}),(function(t){try{var e=eval;i.value=e(t)}catch(t){console.error(t)}}),{immediate:!0}),{style:n,myOption:i,echarts:at}}});BO.render=function(t,e,n,i,r,o){var a=d("echarts");return f(),g("div",{style:x(t.style)},[p(a,{option:t.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},BO.__file="src/graph/custom-graph/CustomGraph.vue";var VO=rw(BO),zO=Object.assign(Object.assign({},uw),{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%"}),FO=cw(zO),GO=["refreshData","click"];G_([uC,CM,JC,$I,wD,yO]);var UO=o({name:"EcanComboGraph",props:Object.assign({},FO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=_([]),u=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,tooltip:{trigger:"axis",show:r.tooltipShow,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},xAxis:{type:"category",data:i(l),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:i(p),series:i(s)}})),c=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,h=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}l.value=t.dimensions;for(var a=t.dataset,u=[],c=a.length,h=r.seriesTypes,p=0;p<c;p++){var d=h[p];u.push(Object.assign({type:null==d?void 0:d.type,yAxisIndex:null==d?void 0:d.axisIndex},a[p]))}s.value=u};t((function(){return[r.data,r.seriesTypes]}),(function(t){var e=Vx(t,1)[0];"static"!==r.dataType&&"design"!==i(c)||h(e)}),{immediate:!0,deep:!0});var p=n((function(){var t=r.yAxis;return null==t?void 0:t.map((function(t){return{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(e){return Rw(t.axisLabelFormatter,e)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}}}))})),d=_(!1),f=Aw(r),g=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(c)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,d.value=!0,t.next=6,f();case 6:o=t.sent,h(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,d.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},v=mw(r.events),y=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),m=y.getGlobalModel,x=y.setGlobalModel,b=v("click",(function(t){var e=r.id,n=m(e);x(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(g,r.requestSort),yw(r,{refreshData:function(){g()},click:b}),{style:a,option:u,click:b,loading:d}}});UO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},UO.__file="src/graph/combo-graph/ComboGraph.vue";var WO=rw(UO),HO=Object.assign(Object.assign({},uw),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),jO=cw(HO),YO=["click"],qO=o({name:"EcanBorder",props:Object.assign({},jO),setup:function(t){var e=fw(t),n=mw(t.events)("click",(function(){}));return yw(t,{click:n}),{style:e,click:n}}}),XO=function(t){return A("data-v-af8a0f90"),t=t(),I(),t},ZO={key:0,class:"top-title"},JO={class:"title-item-wrapper"},KO={class:"title-item"},QO=XO((function(){return C("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)})),$O={class:"title"},tL=XO((function(){return C("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),eL=XO((function(){return C("div",{class:"top-left border-item"},null,-1)})),nL=XO((function(){return C("div",{class:"top-right border-item"},null,-1)})),iL=XO((function(){return C("div",{class:"bottom-left border-item"},null,-1)})),rL=XO((function(){return C("div",{class:"bottom-right border-item"},null,-1)})),oL={key:1,class:"no-title"},aL=[XO((function(){return C("div",{class:"top-left border-item"},null,-1)})),XO((function(){return C("div",{class:"top-right border-item"},null,-1)})),XO((function(){return C("div",{class:"bottom-left border-item"},null,-1)})),XO((function(){return C("div",{class:"bottom-right border-item"},null,-1)}))],sL={key:2,class:"only-border"},lL={key:3,class:"left-title"},uL={class:"title"};Gx('.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}'),qO.render=function(t,e,n,i,r,o){return f(),g("div",{class:"ecan-border",style:x(t.style),onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},["top-title"===t.mode?(f(),g("div",ZO,[C("div",JO,[C("div",KO,[QO,C("div",$O,M(t.title),1),tL])]),eL,nL,iL,rL])):b("v-if",!0),"no-title"===t.mode?(f(),g("div",oL,aL)):b("v-if",!0),"only-border"===t.mode?(f(),g("div",sL)):b("v-if",!0),"left-title"===t.mode?(f(),g("div",lL,[C("div",uL,[C("span",null,M(t.title),1)])])):b("v-if",!0)],4)},qO.__scopeId="data-v-af8a0f90",qO.__file="src/container/border/Border.vue";var cL=rw(qO),hL={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"},pL=cw(hL),dL=["showModal"],fL=o({name:"EcanModal",components:{AModal:q},props:Object.assign({},pL),setup:function(t){var r=n((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[t.position]}})),o=t.width,a=t.height,s=t.originalWidth,l=t.originalHeight,u=n((function(){return parseFloat(o)/parseFloat(s)})),c=n((function(){return parseFloat(a)/parseFloat(l)})),p=n((function(){return"".concat(100*i(u),"%")})),d=n((function(){return document.body.offsetWidth})),f=n((function(){return document.body.offsetHeight})),g=n((function(){return i(d)*i(u)})),v=n((function(){return i(f)*i(c)})),y=n((function(){return{width:"".concat(i(g),"px"),height:"".concat(i(v),"px")}})),m=fw(t),x=n((function(){return Object.assign(Object.assign({},i(m)),{backgroundImage:Lw(t.backgroundImage,!0),transform:"scale(".concat(i(g)/parseFloat(o),",").concat(i(v)/parseFloat(a),")")})})),b=n((function(){return i(u)>=1})),w=n((function(){return t.fullModal})),S=n((function(){var t="ecan-modal";return i(b)&&(t+=" ecan-full-width-modal"),i(w)&&(t+=" ecan-full-modal"),t})),C=_(!1),M=_(),k=e("REQUEST_MODEL",{touchRequest:function(){}}).touchRequest,T=function(){C.value=!0,h((function(){k()}))},A=function(){C.value=!1};return yw(t,{showModal:T}),{contain:M,containStyle:y,contentStyle:x,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:r,modalWith:p,isFullModal:w,style:m,visible:C,showModal:T,onOk:function(){A()},onCancel:function(){A()},isFullWidth:b,wrapClassName:S}}});Gx(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");Gx(".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}"),fL.render=function(t,e,n,i,r,o){var a=d("a-modal");return f(),g(S,null,[b(" centered + style 中的 verticalAlign 调整弹窗位置 "),p(a,{getContainer:t.getContainer,wrapClassName:t.wrapClassName,centered:"",visible:t.visible,footer:null,width:t.isFullModal||t.isFullWidth?"100%":t.modalWith,destroyOnClose:t.destroyOnClose,style:x(t.modalStyle),bodyStyle:{background:"red"},onOk:t.onOk,onCancel:t.onCancel},O({default:m((function(){return[C("div",{class:"contain",ref:"contain",style:x(t.containStyle)},[C("div",{class:"content",style:x(t.contentStyle)},[(f(!0),g(S,null,k(t.componentList,(function(t,e){return f(),v(L(t.type),E({key:t.id+e},t),null,16)})),128))],4)],4)]})),_:2},[t.title?{name:"title",fn:m((function(){return[C("div",{style:x({fontSize:t.titleFontSize,color:t.titleColor,backgroundColor:t.backgroundColor,padding:"16px 24px"})},M(t.title),5)]}))}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},fL.__scopeId="data-v-4efa8b94",fL.__file="src/container/modal/Modal.vue";var gL=rw(fL),vL=Object.assign(Object.assign({},uw),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),yL=cw(vL),mL=o({name:"EcanImage",props:Object.assign({},yL),setup:function(t){var r=fw(t),o=n((function(){return Lw(t.imgUrl)})),a=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode;return{style:r,myImgUrl:o,onClick:function(){var e=t.linkPage,n=""!==e?function(t,e){var n="/preview?pageId=".concat(e),i="".concat(vw).concat(e);return"preview"!==t?i:n}(i(a),e):"",r=t.linkUrl,o=""!==r?r:n;""!==o&&window.open(o,t.linkMethod)}}}}),_L=["src"];Gx(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),mL.render=function(t,e,n,i,r,o){return""!==t.myImgUrl?(f(),g("img",{key:0,style:x(t.style),src:t.myImgUrl,onClick:e[0]||(e[0]=function(){return t.onClick&&t.onClick.apply(t,arguments)})},null,12,_L)):(f(),g("div",{key:1,class:"image-placeholder",style:x(t.style)}," 请上传图片 ",4))},mL.__scopeId="data-v-5a006553",mL.__file="src/media/image/Image.vue";var xL=rw(mL),bL=Object.assign(Object.assign({},uw),{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}),wL=cw(bL),SL=["click","refreshData"],CL=o({name:"EcanTable",components:{Skeleton:Qb,ATable:X,ATableSummary:Z,ATableSummaryRow:J,ATableSummaryCell:K},props:Object.assign({},wL),setup:function(r){var o=this,a=fw(r),s=n((function(){if(r.paginationShow)switch(r.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(r.size){case"small":return 40;case"middle":return 47;default:return 55}})),l=n((function(){return r.scrollX})),u=n((function(){return parseFloat(r.height)-i(s)})),c=n((function(){var t=[];r.isUseSeq&&t.push({title:"序号",dataIndex:"SEQ"});for(var e=(t=t.concat(r.columns)).length,n=r.columnsFixedNum,i=function(e){var i=t[e];i.fixed=e<n&&"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:r.headerCellBackgroundColor,borderBottomColor:r.borderColor}}},i.customCell=function(){return{style:{textAlign:u,color:c,backgroundColor:r.cellBackgroundColor,borderBottomColor:r.borderColor}}}},o=0;o<e;o++)i(o);return t})),h=_(0),p=_(1),d=n((function(){return r.paginationPageSize})),f=_(r.data);t((function(){return[r.data,r.dataType]}),(function(t){var e=Vx(t,2),n=e[0];"static"===e[1]&&(f.value=n)}));var g=Aw(r),v=_(!1),y=n((function(){var t=r.simple,e=[r.paginationPosition];return r.paginationShow&&{simple:t,position:e,total:i(h),current:i(p),pageSize:i(d)}})),m=function(t){return 1==+t?"是":0==+t?"否":t},x=mw(r.events),b=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,w=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),S=w.getGlobalModel,C=w.setGlobalModel,M=_([]),k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];M.value=t.map((function(t){return{title:t,dataIndex:t,key:t}})),f.value=e},T=Pw(r),A=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,i,o,a;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,T();case 6:a=t.sent,k(null===(n=null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.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),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,v.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},I=function(){"design"!==i(b)&&(A(),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,g({pageNum:i(p),pageSize:i(d)});case 6:n=t.sent,o=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.data)||{},a=o.rows,s=void 0===a?[]:a,l=o.total,u=void 0===l?0:l,h.value=u,f.value=s,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),console.error(t.t0);case 15:return t.prev=15,v.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])}))))};yw(r,{refreshData:function(){I()}});var D=n((function(){for(var t=r.columns,e=r.isUseSeq?[{total:"小计"}]:[],n=0,o=0;o<t.length;o++){var a=t[o];a.isCalcTotal?(e.push(Object.assign(Object.assign({},a),{index:o,total:0})),n++):e.push(Object.assign({},a))}if(0===n)return[];for(var s=(i(p)-1)*i(d),l=s+i(d),u=i(f).slice(s,l),c=0;c<u.length;c++)for(var h=u[c],g=0;g<e.length;g++){var v=e[g],y=v.dataIndex,m=v.total,_=+h[y];Number.isNaN(_)||null==m||(v.total=_+m)}return e}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(I,r.requestSort),{x:l,y:u,myColumns:c,style:a,customRow:function(t){return{onClick:x("click",(function(){var e=r.id,n=S(e);C(e,Object.assign(Object.assign({},n),{RECORD:t}))}))}},pagination:y,formatFn:function(t,e){return null==e||""===e?t:{money:Mw,percentage:kw,contrast:kw,boolean:m}[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 i=t.current;p.value=i,A()},dataColumns:M,dataSource:f,summaryList:D,loading:v}}});Gx('.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}');Gx(".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}"),CL.render=function(t,e,n,i,r,o){var a=d("a-table-summary-cell"),s=d("a-table-summary-row"),l=d("a-table-summary"),u=d("a-table"),c=d("skeleton");return f(),g("div",{class:"ecan-table",style:x(t.style)},[p(c,{loading:t.loading},{default:m((function(){return[p(u,{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:m((function(e){var n=e.column,i=e.index,r=e.text;return[b(" 序列配置 "),"SEQ"===n.dataIndex?(f(),g(S,{key:0},[D(M(i+1),1)],2112)):(f(),g("div",{key:1,class:T([t.contrastClass(r,n.format)])},M((null!=n.format||""!==n.format)&&t.formatFn(r,n.format)),3))]})),summary:m((function(){return[t.summaryList.length>0?(f(),v(l,{key:0},{default:m((function(){return[p(s,null,{default:m((function(){return[(f(!0),g(S,null,k(t.summaryList,(function(e,n){return f(),v(a,{key:e.dataIndex+n,index:e.index,style:x({backgroundColor:t.cellBackgroundColor,textAlign:e.cellAlign||"center",color:e.cellColor,borderBottomColor:t.borderColor})},{default:m((function(){return[C("div",{class:T([t.contrastClass(e.total,e.format)])},M((null!=e.format||""!==e.format)&&t.formatFn(e.total,e.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):b("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},CL.__scopeId="data-v-21849ce3",CL.__file="src/table/table/Table.vue";var ML=rw(CL),kL=Object.assign(Object.assign({},uw),{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}"}),TL=cw(kL);G_([uC,function(t){G_(CA),t.registerChartView(eA),t.registerSeriesModel(iA),t.registerLayout(oA),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,rA),rv("map",t.registerAction)},qk,function(t){G_(sO),G_(fO)},YI]);var AL=o({name:"EcanMap",components:{Echarts:Hx},props:Object.assign({},TL),setup:function(e){var r=this,o=fw(e,["backgroundImage"]),a=_(),s=n((function(){return Lw(e.geoBackgroundImage)})),l=_(),u=n((function(){return Lw(e.backgroundImage)})),c=n((function(){return e.backgroundImage?{image:i(l),repeat:"no-repeat",width:"auto"}:""})),h=n((function(){return e.geoBackgroundImage?{image:i(a),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor})),p=n((function(){var t=e.symbolImage;return e.symbolImage?"image://"+Lw(t):"circle"})),d=n((function(){var t;return null===(t=e.geoCenter)||void 0===t?void 0:t.split(",")})),f=n((function(){return{backgroundColor:i(c),tooltip:{show:!0},geo:{zoom:e.geoZoom,roam:e.geoRoam,center:i(d),map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:i(h),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:i(p),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}})),g=_(!1);return t((function(){return e.mapJson}),(function(){ut(r,void 0,void 0,lw.mark((function t(){var n,i;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(n=e.mapJson)&&null!=n.path){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Nw(gw+n.path);case 5:qy("map",(null==(i=t.sent)?void 0:i.data)||{}),g.value=!0;case 8:case"end":return t.stop()}}),t)})))}),{immediate:!0}),{option:f,style:o,isLoadedData:g,myBackgroundImage:u,backgroundImageRef:l,geoBackgroundImageRef:a,myGeoBackgroundImage:s}}}),IL=["src"],DL=["src"];Gx(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),AL.render=function(t,e,n,i,r,o){var a=d("echarts");return f(),g("div",{class:"ecan-map",style:x(t.style)},[t.isLoadedData?(f(),v(a,{key:0,option:t.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):b("v-if",!0),N(C("img",{ref:"geoBackgroundImageRef",src:t.myGeoBackgroundImage},null,8,IL),[[P,!1]]),N(C("img",{ref:"backgroundImageRef",src:t.myBackgroundImage},null,8,DL),[[P,!1]])],4)},AL.__scopeId="data-v-7865460d",AL.__file="src/map/map/Map.vue";var OL=rw(AL),LL=Object.freeze({__proto__:null,pageConfig:hw,pageConfigComponentProps:pw,EcanPageConfig:zw,providerConfig:Fw,providerConfigComponentProps:Gw,EcanProviderConfig:Hw,textProps:jw,textComponentProps:Yw,textEvents:qw,EcanText:Jw,EcanScrollText:$w,timeDisplayProps:tS,timeDisplayComponentProps:eS,EcanTimeDisplay:iS,listProps:rS,listComponentProps:oS,listEvents:aS,EcanList:mS,proportionProps:_S,proportionComponentProps:xS,proportionEvents:bS,EcanProportion:SS,inputProps:CS,inputComponentProps:MS,EcanInput:TS,datePickerProps:AS,datePickerComponentProps:IS,datePickerEvents:DS,EcanDatePicker:LS,selectProps:ES,selectComponentProps:NS,selectEvents:PS,EcanSelect:BS,rangePickerProps:VS,rangePickerComponentProps:zS,rangePickerEvents:FS,EcanRangePicker:US,buttonProps:WS,buttonComponentProps:HS,buttonEvents:jS,EcanButton:XS,tabsProps:ZS,tabsComponentProps:JS,tabsEvents:KS,EcanTabs:tC,pieProps:eC,pieComponentProps:nC,pieEvents:iC,EcanPie:_O,lineProps:xO,lineComponentProps:bO,lineEvents:wO,EcanLine:CO,barProps:MO,barComponentProps:kO,barEvents:TO,EcanBar:IO,scatterProps:DO,scatterComponentProps:OO,scatterEvents:LO,EcanScatter:NO,customGraphProps:PO,customGraphComponentProps:RO,EcanCustomGraph:VO,comboGraphProps:zO,comboGraphComponentProps:FO,comboGraphEvents:GO,EcanComboGraph:WO,borderProps:HO,borderComponentProps:jO,borderEvents:YO,EcanBorder:cL,modalProps:hL,modalComponentProps:pL,modalEvents:dL,EcanModal:gL,imageProps:vL,imageComponentProps:yL,EcanImage:xL,tableProps:bL,tableComponentProps:wL,tableEvents:SL,EcanTable:ML,mapProps:kL,mapComponentProps:TL,EcanMap:OL}),EL={install:function(t){Object.keys(LL).forEach((function(e){var n=LL[e];n.install&&t.use(n)}))}};export{IO as EcanBar,cL as EcanBorder,XS as EcanButton,WO as EcanComboGraph,VO as EcanCustomGraph,LS as EcanDatePicker,xL as EcanImage,TS as EcanInput,CO as EcanLine,mS as EcanList,OL as EcanMap,gL as EcanModal,zw as EcanPageConfig,_O as EcanPie,SS as EcanProportion,Hw as EcanProviderConfig,US as EcanRangePicker,NO as EcanScatter,$w as EcanScrollText,BS as EcanSelect,ML as EcanTable,tC as EcanTabs,Jw as EcanText,iS as EcanTimeDisplay,kO as barComponentProps,TO as barEvents,MO as barProps,jO as borderComponentProps,YO as borderEvents,HO as borderProps,HS as buttonComponentProps,jS as buttonEvents,WS as buttonProps,FO as comboGraphComponentProps,GO as comboGraphEvents,zO as comboGraphProps,RO as customGraphComponentProps,PO as customGraphProps,IS as datePickerComponentProps,DS as datePickerEvents,AS as datePickerProps,EL as default,yL as imageComponentProps,vL as imageProps,MS as inputComponentProps,CS as inputProps,bO as lineComponentProps,wO as lineEvents,xO as lineProps,oS as listComponentProps,aS as listEvents,rS as listProps,TL as mapComponentProps,kL as mapProps,pL as modalComponentProps,dL as modalEvents,hL as modalProps,hw as pageConfig,pw as pageConfigComponentProps,nC as pieComponentProps,iC as pieEvents,eC as pieProps,xS as proportionComponentProps,bS as proportionEvents,_S as proportionProps,Fw as providerConfig,Gw as providerConfigComponentProps,zS as rangePickerComponentProps,FS as rangePickerEvents,VS as rangePickerProps,OO as scatterComponentProps,LO as scatterEvents,DO as scatterProps,NS as selectComponentProps,PS as selectEvents,ES as selectProps,wL as tableComponentProps,SL as tableEvents,bL as tableProps,JS as tabsComponentProps,KS as tabsEvents,ZS as tabsProps,Yw as textComponentProps,qw as textEvents,jw as textProps,eS as timeDisplayComponentProps,tS as timeDisplayProps};
10
+ */var Qr=function(){function t(t,e,n){var i=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 r=new bn,o=n.renderer||"canvas";if(Jr[o]||(o=Wt(Jr)[0]),"production"!==process.env.NODE_ENV&&!Jr[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Jr[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l=pt.node||pt.worker||s?null:new $i(a.getViewportRoot(),a.root);this.handler=new cn(r,a,l,a.root),this.animation=new Ri({stage:{update:s?null:function(){return i._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 vi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=vi(e[r].color,1);return(n/=i)<.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=Li();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Li();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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 Zr&&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 Kr[t]},t}();function $r(t,e){var n=new Qr(It(),t,e);return Kr[n.id]=n,n}function to(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function eo(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 Xt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function no(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function io(t){return t.sort((function(t,e){return t-e})),t}function ro(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 oo(t)}function oo(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function ao(t,e){var n=Math.max(ro(t),ro(e)),i=t+e;return n>20?i:no(i,n)}function so(t){var e=2*Math.PI;return(t%e+e)%e}function lo(t){return t>-1e-4&&t<1e-4}var uo=/^(?:(\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 co(t){if(t instanceof Date)return t;if(Xt(t)){var e=uo.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 ho(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 po(t,e){var n=ho(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function fo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}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 go(t){var e=parseFloat(t);return e==t&&(0!==e||!Xt(t)||t.indexOf("x")<=0)?e:NaN}function vo(t){return!isNaN(go(t))}function yo(){return Math.round(9*Math.random())}function mo(t,e){return 0===e?t:mo(e,t%e)}function _o(t,e){return null==t?e:null==e?t:t*e/mo(t,e)}var xo={},bo="undefined"!=typeof console&&console.warn&&console.log;function wo(t,e,n){if(bo){if(n){if(xo[e])return;xo[e]=!0}console[t]("[ECharts] "+e)}}function So(t,e){wo("warn",t,e)}function Co(t,e){wo("error",t,e)}function Mo(t){"production"!==process.env.NODE_ENV&&wo("warn","DEPRECATED: "+t,!0)}function ko(t,e,n){"production"!==process.env.NODE_ENV&&Mo((n?"["+n+"]":"")+t+" is deprecated, use "+e+" instead.")}function To(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if("production"!==process.env.NODE_ENV){var i=function(t){return void 0===t?"undefined":t===1/0?"Infinity":t===-1/0?"-Infinity":ie(t)?"NaN":t instanceof Date?"Date("+t.toISOString()+")":qt(t)?"function () { ... }":ne(t)?t+"":null};n=Ft(t,(function(t){if(Xt(t))return t;var e=i(t);if(null!=e)return e;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(t,(function(t,e){var n=i(e);return null==n?e:n}))}catch(t){return"?"}})).join(" ")}return n}function Ao(t){throw new Error(t)}function Io(t,e,n){return(e-t)*n+t}function Do(t){return t instanceof Array?t:null==t?[]:[t]}function Oo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Lo=["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 Eo(t){return!Kt(t)||Yt(t)||t instanceof Date?t:t.value}function No(t){return Kt(t)&&!(t instanceof Array)}function Po(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=fe();zt(e,(function(t,n){Kt(t)?"production"!==process.env.NODE_ENV&&(null==t.id||Fo(t.id)||zo(t.id),null==t.name||Fo(t.name)||zo(t.name)):e[n]=null}));var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Uo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){zt(i,(function(r,o){if(r&&null!=r.id){var a=Bo(r.id),s=n.get(a);if(null!=s){var l=t[s];ue(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){zt(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Uo(n)&&!Uo(o)&&Ro("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){zt(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Uo(i.existing)||i.existing&&null!=e.id&&!Ro("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){zt(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=fe(),zt(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),zt(s,(function(t){var e=t.newOption;ue(!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={})})),zt(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(Kt(i)){if(r.name=null!=i.name?Bo(i.name):n?n.name:"series\0"+e,n)r.id=Bo(n.id);else if(null!=i.id)r.id=Bo(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function Ro(t,e,n){var i=Vo(e[t],null),r=Vo(n[t],null);return null!=i&&null!=r&&i===r}function Bo(t){if("production"!==process.env.NODE_ENV&&null==t)throw new Error;return Vo(t,"")}function Vo(t,e){return null==t?e:Xt(t)?t:Jt(t)||Zt(t)?t+"":e}function zo(t){"production"!==process.env.NODE_ENV&&So("`"+t+"` is invalid id or name. Must be a string or number.")}function Fo(t){return Zt(t)||vo(t)}function Go(t){var e=t.name;return!(!e||!e.indexOf("series\0"))}function Uo(t){return t&&null!=t.id&&0===Bo(t.id).indexOf("\0_ec_\0")}function Wo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Yt(e.dataIndex)?Ft(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Yt(e.name)?Ft(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Ho(){var t="__ec_inner_"+jo++;return function(e){return e[t]||(e[t]={})}}var jo=yo();function Yo(t,e,n){var i=qo(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=Zo(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function qo(t,e){var n;if(Xt(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=fe(),o={},a=!1;return zt(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Rt(e.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Xo={useDefault:!0,enableAll:!1,enableNone:!1};function Zo(t,e,n,i){i=i||Xo;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Jo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var Ko="___EC__COMPONENT__CONTAINER___";function Qo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function $o(t,e){t.$constructor=t,t.extend=function(t){"production"!==process.env.NODE_ENV&&zt(e,(function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")}));var n,i,r=this;return qt(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?n=function(t){function e(){return t.apply(this,arguments)||this}return lt(e,t),e}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(n,this)),Nt(n.prototype,t),n.___EC__EXTENDED_CLASS___=!0,n.extend=this.extend,n.superCall=na,n.superApply=ia,n.superClass=r,n}}function ta(t,e){t.extend=e.extend}var ea=Math.round(10*Math.random());function na(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ia(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ra(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Qo(i);if(r.sub){if(r.sub!==Ko){var o=function(t){var n=e[t.main];n&&n[Ko]||((n=e[t.main]={})[Ko]=!0);return n}(r);o[r.sub]=t}}else"production"!==process.env.NODE_ENV&&e[r.main]&&console.warn(r.main+" exists."),e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ko]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Qo(t),i=[],r=e[n.main];return r&&r[Ko]?zt(r,(function(t,e){e!==Ko&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Qo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return zt(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Qo(t),i=e[n.main];return i&&i[Ko]}}function oa(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,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&Rt(i,s)>=0||r&&Rt(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var aa=oa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),sa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return aa(this,t,e)},t}(),la=new Kn(50);function ua(t){if("string"==typeof t){var e=la.get(t);return e&&e.image}return t}function ca(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=la.get(t),a={hostEl:n,cb:i,cbPayload:r};if(o)!pa(e=o.image)&&o.pending.push(a);else{var s=yt.loadImage(t,ha,ha);s.__zrImageSrc=t,la.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function ha(){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],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function pa(t){return t&&t.width&&t.height}var da=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function fa(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=ga(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=va(o[a],r);return o.join("\n")}function ga(t,e,n,i){var r=Nt({},i=i||{});r.font=e,n=oe(n,"..."),r.maxIterations=oe(i.maxIterations,2);var o=r.minChar=oe(i.minChar,0);r.cnCharWidth=Dr("国",e);var a=r.ascCharWidth=Dr("a",e);r.placeholder=oe(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Dr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function va(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Dr(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?ya(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Dr(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function ya(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var ma=function(){},_a=function(t){this.tokens=[],t&&(this.tokens=t)},xa=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function ba(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Rr(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=Ca(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new ma;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[v]:Dr(y,c),v||h)u.push(new _a([m]));else{var _=(u[u.length-1]||(u[0]=new _a)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}var wa=Gt(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Sa(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&e<=383}(t)||!!wa[t]}function Ca(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var d=Dr(p,e),f=!i&&!Sa(p);(o.length?c+d>n:r+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}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+=r),{accumWidth:c,lines:o,linesWidths:a}}var Ma="__zr_style_"+Math.round(10*Math.random()),ka={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ka[Ma]=!0;var Aa=["z","z2","invisible"],Ia=["invisible"],Da=function(t){function e(e){return t.call(this,e)||this}var n;return lt(e,t),e.prototype._init=function(e){for(var n=Wt(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}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,i){var r=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 La.width=e,La.height=n,!Oa.intersect(La)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&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(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ar(0,0,0,0)),e?Ar.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));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 Ar(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:Nt(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 ge(ka,t)},e.prototype.useStyle=function(t){t[Ma]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Ma]},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,Aa)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Wt(u),h=0;h<c.length;h++){(d=c[h])in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Wt(s);for(h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Ia:Aa;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Nt(t,e),t},e.prototype.getAnimationStyleProps=function(){return Ta},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}(qr),Oa=new Ar(0,0,0,0),La=new Ar(0,0,0,0);var Ea=Da,Na=Math.min,Pa=Math.max,Ra=Math.sin,Ba=Math.cos,Va=2*Math.PI,za=xe(),Fa=xe(),Ga=xe();function Ua(t,e,n,i,r,o){r[0]=Na(t,n),r[1]=Na(e,i),o[0]=Pa(t,n),o[1]=Pa(e,i)}var Wa=[],Ha=[];function ja(t,e,n,i,r,o,a,s,l,u){var c=Bn,h=Nn,p=c(t,n,r,a,Wa);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(t,n,r,a,Wa[d]);l[0]=Na(f,l[0]),u[0]=Pa(f,u[0])}p=c(e,i,o,s,Ha);for(d=0;d<p;d++){var g=h(e,i,o,s,Ha[d]);l[1]=Na(g,l[1]),u[1]=Pa(g,u[1])}l[0]=Na(t,l[0]),u[0]=Pa(t,u[0]),l[0]=Na(a,l[0]),u[0]=Pa(a,u[0]),l[1]=Na(e,l[1]),u[1]=Pa(e,u[1]),l[1]=Na(s,l[1]),u[1]=Pa(s,u[1])}function Ya(t,e,n,i,r,o,a,s){var l=Un,u=Fn,c=Pa(Na(l(t,n,r),1),0),h=Pa(Na(l(e,i,o),1),0),p=u(t,n,r,c),d=u(e,i,o,h);a[0]=Na(t,r,p),a[1]=Na(e,o,d),s[0]=Pa(t,r,p),s[1]=Pa(e,o,d)}function qa(t,e,n,i,r,o,a,s,l){var u=Oe,c=Le,h=Math.abs(r-o);if(h%Va<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(za[0]=Ba(r)*n+t,za[1]=Ra(r)*i+e,Fa[0]=Ba(o)*n+t,Fa[1]=Ra(o)*i+e,u(s,za,Fa),c(l,za,Fa),(r%=Va)<0&&(r+=Va),(o%=Va)<0&&(o+=Va),r>o&&!a?o+=Va:r<o&&a&&(r+=Va),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(Ga[0]=Ba(d)*n+t,Ga[1]=Ra(d)*i+e,u(s,Ga,s),c(l,Ga,l))}var Xa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Za=[],Ja=[],Ka=[],Qa=[],$a=[],ts=[],es=Math.min,ns=Math.max,is=Math.cos,rs=Math.sin,os=Math.abs,as=Math.PI,ss=2*as,ls="undefined"!=typeof Float32Array,us=[];function cs(t){return Math.round(t/as*1e8)/1e8%2*as}var hs=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=os(n/er/t)||0,this._uy=os(n/er/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(Xa.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=os(t-this._xi),i=os(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Xa.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Xa.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Xa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),us[0]=i,us[1]=r,function(t,e){var n=cs(t[0]);n<0&&(n+=ss);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ss?r=n+ss:e&&n-r>=ss?r=n-ss:!e&&n>r?r=n+(ss-cs(n-r)):e&&n<r&&(r=n-(ss-cs(r-n))),t[0]=n,t[1]=r}(us,o),i=us[0];var a=(r=us[1])-i;return this.addData(Xa.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=is(r)*n+t,this._yi=rs(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Xa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xa.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||!ls||(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,i=this._len,r=0;r<e;r++)n+=t[r].len();ls&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,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,ls&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ka[0]=Ka[1]=$a[0]=$a[1]=Number.MAX_VALUE,Qa[0]=Qa[1]=ts[0]=ts[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Xa.M:n=r=e[t++],i=o=e[t++],$a[0]=r,$a[1]=o,ts[0]=r,ts[1]=o;break;case Xa.L:Ua(n,i,e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.C:ja(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.Q:Ya(n,i,e[t++],e[t++],e[t],e[t+1],$a,ts),n=e[t++],i=e[t++];break;case Xa.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=is(p)*c+l,o=rs(p)*h+u),qa(l,u,c,h,p,d,f,$a,ts),n=is(d)*c+l,i=rs(d)*h+u;break;case Xa.R:Ua(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],$a,ts);break;case Xa.Z:n=r,i=o}Oe(Ka,Ka,$a),Le(Qa,Qa,ts)}return 0===t&&(Ka[0]=Ka[1]=Qa[0]=Qa[1]=0),new Ar(Ka[0],Ka[1],Qa[0]-Ka[0],Qa[1]-Ka[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(p){case Xa.M:r=a=t[h++],o=s=t[h++];break;case Xa.L:var g=t[h++],v=(_=t[h++])-o;(os(I=g-r)>n||os(v)>i||h===e-1)&&(f=Math.sqrt(I*I+v*v),r=g,o=_);break;case Xa.C:var y=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];f=zn(r,o,y,m,g,_,x,b,10),r=x,o=b;break;case Xa.Q:f=Hn(r,o,y=t[h++],m=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Xa.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],k=t[h++],T=t[h++],A=T+k;h+=1,t[h++],d&&(a=is(k)*C+w,s=rs(k)*M+S),f=ns(C,M)*es(ss,Math.abs(T)),r=is(A)*C+w,o=rs(A)*M+S;break;case Xa.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case Xa.Z:var I=a-r;v=s-o;f=Math.sqrt(I*I+v*v),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,y=0,m=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=p[x++],w=1===x;switch(w&&(n=r=p[x],i=o=p[x+1]),b!==Xa.L&&_>0&&(t.lineTo(c,h),_=0),b){case Xa.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case Xa.L:a=p[x++],s=p[x++];var S=os(a-r),C=os(s-o);if(S>d||C>f){if(v){if(y+(X=l[m++])>u){var M=(u-y)/X;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=X}t.lineTo(a,s),r=a,o=s,_=0}else{var k=S*S+C*C;k>_&&(c=a,h=s,_=k)}break;case Xa.C:var T=p[x++],A=p[x++],I=p[x++],D=p[x++],O=p[x++],L=p[x++];if(v){if(y+(X=l[m++])>u){Vn(r,T,I,O,M=(u-y)/X,Za),Vn(o,A,D,L,M,Ja),t.bezierCurveTo(Za[1],Ja[1],Za[2],Ja[2],Za[3],Ja[3]);break t}y+=X}t.bezierCurveTo(T,A,I,D,O,L),r=O,o=L;break;case Xa.Q:T=p[x++],A=p[x++],I=p[x++],D=p[x++];if(v){if(y+(X=l[m++])>u){Wn(r,T,I,M=(u-y)/X,Za),Wn(o,A,D,M,Ja),t.quadraticCurveTo(Za[1],Ja[1],Za[2],Ja[2]);break t}y+=X}t.quadraticCurveTo(T,A,I,D),r=I,o=D;break;case Xa.A:var E=p[x++],N=p[x++],P=p[x++],R=p[x++],B=p[x++],V=p[x++],z=p[x++],F=!p[x++],G=P>R?P:R,U=os(P-R)>.001,W=B+V,H=!1;if(v)y+(X=l[m++])>u&&(W=B+V*(u-y)/X,H=!0),y+=X;if(U&&t.ellipse?t.ellipse(E,N,P,R,z,B,W,F):t.arc(E,N,G,B,W,F),H)break t;w&&(n=is(B)*P+E,i=rs(B)*R+N),r=is(W)*P+E,o=rs(W)*R+N;break;case Xa.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var j=p[x++],Y=p[x++];if(v){if(y+(X=l[m++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+es(q,j),s),(q-=j)>0&&t.lineTo(a+j,s+es(q,Y)),(q-=Y)>0&&t.lineTo(a+ns(j-q,0),s+Y),(q-=j)>0&&t.lineTo(a,s+ns(Y-q,0));break t}y+=X}t.rect(a,s,j,Y);break;case Xa.Z:if(v){var X;if(y+(X=l[m++])>u){M=(u-y)/X;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}y+=X}t.closePath(),r=n,o=i}}},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=Xa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ps=hs;function ds(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-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-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function fs(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=function(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;In[0]=l,In[1]=u;for(var m=0;m<1;m+=.05)Dn[0]=Nn(t,n,r,a,m),Dn[1]=Nn(e,i,o,s,m),(f=Ae(In,Dn))<y&&(h=m,y=f);y=1/0;for(var _=0;_<32&&!(v<1e-4);_++)p=h-v,d=h+v,Dn[0]=Nn(t,n,r,a,p),Dn[1]=Nn(e,i,o,s,p),f=Ae(Dn,In),p>=0&&f<y?(h=p,y=f):(On[0]=Nn(t,n,r,a,d),On[1]=Nn(e,i,o,s,d),g=Ae(On,In),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=Nn(t,n,r,a,h),c[1]=Nn(e,i,o,s,h)),kn(y)}(t,e,n,i,r,o,a,s,u,c,null);return p<=h/2}function gs(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;In[0]=a,In[1]=s;for(var p=0;p<1;p+=.05)Dn[0]=Fn(t,n,r,p),Dn[1]=Fn(e,i,o,p),(v=Ae(In,Dn))<h&&(u=p,h=v);h=1/0;for(var d=0;d<32&&!(c<1e-4);d++){var f=u-c,g=u+c;Dn[0]=Fn(t,n,r,f),Dn[1]=Fn(e,i,o,f);var v=Ae(Dn,In);if(f>=0&&v<h)u=f,h=v;else{On[0]=Fn(t,n,r,g),On[1]=Fn(e,i,o,g);var y=Ae(On,In);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Fn(t,n,r,u),l[1]=Fn(e,i,o,u)),kn(h)}(t,e,n,i,r,o,s,l,null);return c<=u/2}var vs=2*Math.PI;function ys(t){return(t%=vs)<0&&(t+=vs),t}var ms=2*Math.PI;function _s(t,e,n,i,r,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(i-r)%ms<1e-4)return!0;if(o){var h=i;i=ys(r),r=ys(h)}else i=ys(i),r=ys(r);i>r&&(r+=ms);var p=Math.atan2(l,s);return p<0&&(p+=ms),p>=i&&p<=r||p+ms>=i&&p+ms<=r}function xs(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var bs=ps.CMD,ws=2*Math.PI;var Ss=[-1,-1,-1],Cs=[-1,-1];function Ms(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c,h=Rn(e,i,o,s,u,Ss);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,v=0;v<h;v++){var y=Ss[v],m=0===y||1===y?.5:1;Nn(t,n,r,a,y)<l||(d<0&&(d=Bn(e,i,o,s,Cs),Cs[1]<Cs[0]&&d>1&&(c=void 0,c=Cs[0],Cs[0]=Cs[1],Cs[1]=c),f=Nn(e,i,o,s,Cs[0]),d>1&&(g=Nn(e,i,o,s,Cs[1]))),2===d?y<Cs[0]?p+=f<e?m:-m:y<Cs[1]?p+=g<f?m:-m:p+=s<g?m:-m:y<Cs[0]?p+=f<e?m:-m:p+=s<f?m:-m)}return p}function ks(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Ln(o))En(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Ln(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=kn(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Ss);if(0===l)return 0;var u=Un(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Fn(e,i,o,u),p=0;p<l;p++){var d=0===Ss[p]||1===Ss[p]?.5:1;Fn(t,n,r,Ss[p])<a||(Ss[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}d=0===Ss[0]||1===Ss[0]?.5:1;return Fn(t,n,r,Ss[0])<a?0:o<e?d:-d}function Ts(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ss[0]=-l,Ss[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ws-1e-4){i=0,r=ws;var c=o?1:-1;return a>=Ss[0]+t&&a<=Ss[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ws,r+=ws);for(var p=0,d=0;d<2;d++){var f=Ss[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=ws+g),(g>=i&&g<=r||g+ws>=i&&g+ws<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function As(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,d=0,f=0,g=0,v=0;v<c;){var y=u[v++],m=1===v;switch(y===bs.M&&v>1&&(n||(h+=xs(p,d,f,g,i,r))),m&&(f=p=u[v],g=d=u[v+1]),y){case bs.M:p=f=u[v++],d=g=u[v++];break;case bs.L:if(n){if(ds(p,d,u[v],u[v+1],e,i,r))return!0}else h+=xs(p,d,u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.C:if(n){if(fs(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=Ms(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.Q:if(n){if(gs(p,d,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=ks(p,d,u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case bs.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,m?(f=o,g=a):h+=xs(p,d,o,a,i,r);var k=(i-_)*w/b+_;if(n){if(_s(_,x,w,S,S+C,M,e,k,r))return!0}else h+=Ts(_,x,w,S,S+C,M,k,r);p=Math.cos(S+C)*b+_,d=Math.sin(S+C)*w+x;break;case bs.R:if(f=p=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(ds(f,g,o,g,e,i,r)||ds(o,g,o,a,e,i,r)||ds(o,a,f,a,e,i,r)||ds(f,a,f,g,e,i,r))return!0}else h+=xs(o,g,o,a,i,r),h+=xs(f,a,f,g,i,r);break;case bs.Z:if(n){if(ds(p,d,f,g,e,i,r))return!0}else h+=xs(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(h+=xs(p,d,f,g,i,r)||0),0!==h}var Is=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ka),Ds={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},Os=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ls=function(t){function e(e){return t.call(this,e)||this}var n;return lt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Os.length;++s)r[Os[s]]=this[Os[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Wt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?Nt(this.style,a):this.useStyle(a):"shape"===o?Nt(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(Xt(t)){var e=vi(t,0);return e>.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Xt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===vi(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 ps(!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 i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._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),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return As(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return As(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:Nt(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return ge(Is,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Nt({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Nt({},i.shape),Nt(s,n.shape)):(s=Nt({},r?this.shape:i.shape),Nt(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Nt({},this.shape);for(var u={},c=Wt(s),h=0;h<c.length;h++){var p=c[h];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Ds},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return lt(n,e),n.prototype.getDefaultStyle=function(){return Ot(t.style)},n.prototype.getDefaultShape=function(){return Ot(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);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}(Ea),Es=Ls,Ns=Pt({strokeFirst:!0,font:dt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Is),Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(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 ge(Ns,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=Lr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Ea);Ps.prototype.type="tspan";var Rs=Ps,Bs=Pt({x:0,y:0},ka),Vs={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ta.style)};var zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.createStyle=function(t){return ge(Bs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ar(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ea);zs.prototype.type="image";var Fs=zs;var Gs=Math.round;function Us(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Gs(2*i)===Gs(2*r)&&(t.x1=t.x2=Hs(i,s,!0)),Gs(2*o)===Gs(2*a)&&(t.y1=t.y2=Hs(o,s,!0)),t):t}}function Ws(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Hs(i,s,!0),t.y=Hs(r,s,!0),t.width=Math.max(Hs(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Hs(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Hs(t,e,n){if(!e)return t;var i=Gs(2*t);return(i+Gs(e))%2==0?i/2:(i+(n?1:-1))/2}var js=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ys={},qs=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new js},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ws(Ys,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,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,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Es);qs.prototype.type="rect";var Xs=qs,Zs={fill:"#000"},Js={style:Pt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ta.style)},Ks=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Zs,n.attr(e),n}return lt(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(){var t;this._childCursor=0,il(t=this.style),zt(t.rich,il),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 Ar(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Zs},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,i=t.rich||n&&{};return Nt(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Wt(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Nt(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Js},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||dt,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Pr(o),l=oe(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(n=null==h||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Ca(t,e.font,h,"breakAll"===i,0).lines:[]).length*l,d=oe(e.height,p);if(p>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=ga(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=va(n[v],g);var y=d,m=0;for(v=0;v<n.length;v++)m=Math.max(Dr(n[v],o),m);null==h&&(h=m);var _=m;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],h+=r[1]+r[3]),u&&(_=h),{lines:n,height:d,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:h}}(sl(t),t),r=ll(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,h=this._defaultStyle,p=t.x||0,d=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",v=p,y=Nr(d,i.contentHeight,g);if(r||n){var m=Er(p,s,f),_=Nr(d,a,g);r&&this._renderBackground(t,t,m,_,s,a)}y+=c/2,n&&(v=al(p,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var x=0,b=!1,w=(ol("fill"in t?t.fill:(b=!0,h.fill))),S=(rl("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(x=2,h.stroke))),C=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),k=i.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(Rs),I=A.createStyle();A.useStyle(I),I.text=u[T],I.x=v,I.y=y,f&&(I.textAlign=f),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,C&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=t.lineWidth||x,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,nl(I,t),y+=c,M&&A.setBoundingRect(new Ar(Er(I.x,t.width,I.textAlign),Nr(I.y,k,I.textBaseline),l,k))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new xa;if(null!=t&&(t+=""),!t)return n;for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=da.lastIndex=0;null!=(i=da.exec(t));){var u=i.index;u>l&&ba(n,t.substring(l,u),e,s),ba(n,i[2],e,s,i[1]),l=da.lastIndex}l<t.length&&ba(n,t.substring(l,t.length),e,s);var c=[],h=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,x=0,b=0;b<m.tokens.length;b++){var w=(L=m.tokens[b]).styleName&&e.rich[L.styleName]||{},S=L.textPadding=w.padding,C=S?S[1]+S[3]:0,M=L.font=w.font||e.font;L.contentHeight=Pr(M);var k=oe(w.height,L.contentHeight);if(L.innerHeight=k,S&&(k+=S[0]+S[2]),L.height=k,L.lineHeight=ae(w.lineHeight,e.lineHeight,k),L.align=w&&w.align||e.align,L.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&h+L.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),v(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))L.percentWidth=T,c.push(L),L.contentWidth=Dr(L.text,M);else{if(A){var I=w.backgroundColor,D=I&&I.image;D&&pa(D=ua(D))&&(L.width=Math.max(L.width,D.width*k/D.height))}var O=f&&null!=r?r-x:null;null!=O&&O<L.width?!A||O<C?(L.text="",L.width=L.contentWidth=0):(L.text=fa(L.text,O-C,M,e.ellipsis,{minChar:e.truncateMinChar}),L.width=L.contentWidth=Dr(L.text,M)):L.contentWidth=Dr(L.text,M)}L.width+=C,x+=L.width,w&&(_=Math.max(_,L.lineHeight))}v(m,x,_)}for(n.outerWidth=n.width=oe(r,p),n.outerHeight=n.height=oe(o,h),n.contentHeight=h,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),y=0;y<c.length;y++){var L,E=(L=c[y]).percentWidth;L.width=parseInt(E,10)/100*n.width}return n}(sl(t),t),n=e.width,i=e.outerWidth,r=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,h=Er(a,i,u),p=Nr(s,r,c),d=h,f=p;o&&(d+=o[3],f+=o[0]);var g=d+n;ll(t)&&this._renderBackground(t,t,h,p,i,r);for(var v=!!t.backgroundColor,y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=m.tokens,x=_.length,b=m.lineHeight,w=m.width,S=0,C=d,M=g,k=x-1,T=void 0;S<x&&(!(T=_[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,C,"left",v),w-=T.width,C+=T.width,S++;for(;k>=0&&"right"===(T=_[k]).align;)this._placeToken(T,t,b,f,M,"right",v),w-=T.width,M-=T.width,k--;for(C+=(n-(C-d)-(g-M)-w)/2;S<=k;)T=_[S],this._placeToken(T,t,b,f,C+T.width/2,"center",v),C+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&ll(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=al(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(Rs),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,y=ol("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=rl("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,_&&(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||dt,d.opacity=ae(s.opacity,e.opacity,1),nl(d,s),m&&(d.lineWidth=ae(s.lineWidth,e.lineWidth,v),d.lineDash=oe(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),y&&(d.fill=y);var x=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new Ar(Er(d.x,x,d.textAlign),Nr(d.y,b,d.textBaseline),x,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&h){(a=this._getOrCreateChild(Xs)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=oe(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Fs)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=oe(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 m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=ae(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,el(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ce(e)||t.textFont||t.font},e}(Ea),Qs={left:!0,right:1,center:1},$s={top:1,bottom:1,middle:1},tl=["fontStyle","fontWeight","fontSize","fontFamily"];function el(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function nl(t,e){for(var n=0;n<tl.length;n++){var i=tl[n],r=e[i];null!=r&&(t[i]=r)}}function il(t){if(t){t.font=Ks.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Qs[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||$s[n]?n:"top",t.padding&&(t.padding=le(t.padding))}}function rl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ol(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function al(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sl(t){var e=t.text;return null!=e&&(e+=""),e}function ll(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ul=Ks,cl=Ho(),hl=1,pl={},dl=Ho(),fl=Ho(),gl=["emphasis","blur","select"],vl=["normal","emphasis","blur","select"];function yl(t){return null!=t&&"none"!==t}var ml=new Kn(100);function _l(t){if(Xt(t)){var e=ml.get(t);return e||(e=pi(t,-.1),ml.put(t,e)),e}if(ee(t)){var n=Nt({},t);return n.colorStops=Ft(t.colorStops,(function(t){return{offset:t.offset,color:pi(t.color,-.1)}})),n}return t}function xl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function bl(t){xl(t,"emphasis",2)}function wl(t){2===t.hoverState&&xl(t,"normal",0)}function Sl(t){xl(t,"blur",1)}function Cl(t){1===t.hoverState&&xl(t,"normal",0)}function Ml(t){t.selected=!0}function kl(t){t.selected=!1}function Tl(t,e,n){e(t,n)}function Al(t,e,n){Tl(t,e,n),t.isGroup&&t.traverse((function(t){Tl(t,e,n)}))}function Il(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 Dl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&Rt(n,"select")>=0,o=!1;if(t instanceof Es){var a=dl(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(yl(s)||yl(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=Nt({},i),(u=Nt({},u)).fill=s):!yl(u.fill)&&yl(s)?(o=!0,i=Nt({},i),(u=Nt({},u)).fill=_l(s)):!yl(u.stroke)&&yl(l)&&(o||(i=Nt({},i),u=Nt({},u)),u.stroke=_l(l)),i.style=u}}if(i&&null==i.z2){o||(i=Nt({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=Rt(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[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=Nt({},n),a=Nt({opacity:i?r:.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=Nt({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Ol(t){t.stateProxy=Dl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Dl),n&&(n.stateProxy=Dl)}function Ll(t,e){!zl(t,e)&&!t.__highByOuter&&Al(t,bl)}function El(t,e){!zl(t,e)&&!t.__highByOuter&&Al(t,wl)}function Nl(t,e){t.__highByOuter|=1<<(e||0),Al(t,bl)}function Pl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Al(t,wl)}function Rl(t){Al(t,Cl)}function Bl(t){Al(t,Ml)}function Vl(t){Al(t,kl)}function zl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Fl(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=fl(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){Cl(t)})),a&&n.push(r)),o.isBlured=!1})),zt(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Gl(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Rl(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){Sl(t)})),Vt(e))o(t.getData(),e);else if(Kt(e))for(var c=Wt(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),fl(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Ul(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){fl(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Sl(t)}))}}}function Wl(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||Ql(l[u])||Co("param should be highDownDispatcher"),"self"===cl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Hl(t){zt(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Bl(e):Vl(e)}))}))}function jl(t){var e=[];return t.eachSeries((function(t){zt(t.getAllData(),(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Yl(t,e,n){Kl(t,!0),Al(t,Ol),function(t,e,n){var i=cl(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function ql(t,e,n,i){i?function(t){Kl(t,!1)}(t):Yl(t,e,n)}var Xl=["emphasis","blur","select"],Zl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jl(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Xl.length;r++){var o=Xl[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Zl[n]]()}}function Kl(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ql(t){return!(!t||!t.__highDownDispatcher)}function $l(t){var e=t.type;return"select"===e||"unselect"===e||"toggleSelect"===e}function tu(t){var e=t.type;return"highlight"===e||"downplay"===e}var eu=ps.CMD,nu=[[],[],[]],iu=Math.sqrt,ru=Math.atan2;var ou=Math.sqrt,au=Math.sin,su=Math.cos,lu=Math.PI;function uu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cu(t,e){return(t[0]*e[0]+t[1]*e[1])/(uu(t)*uu(e))}function hu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(cu(t,e))}function pu(t,e,n,i,r,o,a,s,l,u,c){var h=l*(lu/180),p=su(h)*(t-n)/2+au(h)*(e-i)/2,d=-1*au(h)*(t-n)/2+su(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=ou(f),s*=ou(f));var g=(r===o?-1:1)*ou((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(t+n)/2+su(h)*v-au(h)*y,_=(e+i)/2+au(h)*v+su(h)*y,x=hu([1,0],[(p-v)/a,(d-y)/s]),b=[(p-v)/a,(d-y)/s],w=[(-1*p-v)/a,(-1*d-y)/s],S=hu(b,w);if(cu(b,w)<=-1&&(S=lu),cu(b,w)>=1&&(S=0),S<0){var C=Math.round(S/lu*1e6)/1e6;S=2*lu+C%2*lu}c.addData(u,m,_,a,s,x,S,h,o)}var du=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,fu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var gu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.applyTransform=function(t){},e}(Es);function vu(t){return null!=t.setData}function yu(t,e){var n=function(t){var e=new ps;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ps.CMD,l=t.match(du);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(fu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,M=r,k=void 0,T=void 0;switch(h){case"l":i+=d[v++],r+=d[v++],p=s.L,e.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=d[v++],r=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=d[v++],p=s.L,e.addData(p,i,r);break;case"H":i=d[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,e.addData(p,i,r);break;case"V":r=d[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":y=i,m=r,k=e.len(),T=e.data,n===s.C&&(y+=i-T[k-4],m+=r-T[k-3]),p=s.C,C=d[v++],M=d[v++],i=d[v++],r=d[v++],e.addData(p,y,m,C,M,i,r);break;case"s":y=i,m=r,k=e.len(),T=e.data,n===s.C&&(y+=i-T[k-4],m+=r-T[k-3]),p=s.C,C=i+d[v++],M=r+d[v++],i+=d[v++],r+=d[v++],e.addData(p,y,m,C,M,i,r);break;case"Q":C=d[v++],M=d[v++],i=d[v++],r=d[v++],p=s.Q,e.addData(p,C,M,i,r);break;case"q":C=d[v++]+i,M=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,C,M,i,r);break;case"T":y=i,m=r,k=e.len(),T=e.data,n===s.Q&&(y+=i-T[k-4],m+=r-T[k-3]),i=d[v++],r=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,k=e.len(),T=e.data,n===s.Q&&(y+=i-T[k-4],m+=r-T[k-3]),i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],pu(C=i,M=r,i=d[v++],r=d[v++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],pu(C=i,M=r,i+=d[v++],r+=d[v++],w,S,_,x,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}(t),i=Nt({},e);return i.buildPath=function(t){if(vu(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=eu.M,h=eu.C,p=eu.L,d=eu.R,f=eu.A,g=eu.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=e[4],y=e[5],m=iu(e[0]*e[0]+e[1]*e[1]),_=iu(e[2]*e[2]+e[3]*e[3]),x=ru(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case d:s[0]=l[r++],s[1]=l[r++],De(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],De(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=nu[a];b[0]=l[r++],b[1]=l[r++],De(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}function mu(t,e){return new gu(yu(t,e))}var _u=function(){this.cx=0,this.cy=0,this.r=0},xu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new _u},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}(Es);xu.prototype.type="circle";var bu=xu,wu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Su=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new wu},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Es);Su.prototype.type="ellipse";var Cu=Su,Mu=Math.PI,ku=2*Mu,Tu=Math.sin,Au=Math.cos,Iu=Math.acos,Du=Math.atan2,Ou=Math.abs,Lu=Math.sqrt,Eu=Math.max,Nu=Math.min,Pu=1e-4;function Ru(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Lu(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,b=r-o,w=p*g-f*d,S=(_<0?-1:1)*Lu(Eu(0,b*b*x-w*w)),C=(w*_-m*S)/x,M=(-w*m-_*S)/x,k=(w*_+m*S)/x,T=(-w*m+_*S)/x,A=C-v,I=M-y,D=k-v,O=T-y;return A*A+I*I>D*D+O*O&&(C=k,M=T),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/b-1),y1:M*(r/b-1)}}function Bu(t,e){var n,i=Eu(e.r,0),r=Eu(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=Ou(l-s),d=p>ku&&p%ku;if(d>Pu&&(p=d),i>Pu)if(p>ku-Pu)t.moveTo(u+i*Au(s),c+i*Tu(s)),t.arc(u,c,i,s,l,!h),r>Pu&&(t.moveTo(u+r*Au(l),c+r*Tu(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=void 0,M=void 0,k=void 0,T=void 0,A=void 0,I=void 0,D=i*Au(s),O=i*Tu(s),L=r*Au(l),E=r*Tu(l),N=p>Pu;if(N){var P=e.cornerRadius;P&&(n=function(t){var e;if(Yt(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],y=n[3]);var R=Ou(i-r)/2;if(m=Nu(R,v),_=Nu(R,y),x=Nu(R,f),b=Nu(R,g),C=w=Eu(m,_),M=S=Eu(x,b),(w>Pu||S>Pu)&&(k=i*Au(l),T=i*Tu(l),A=r*Au(s),I=r*Tu(s),p<Mu)){var B=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<Pu))return[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(D,O,A,I,k,T,L,E);if(B){var V=D-B[0],z=O-B[1],F=k-B[0],G=T-B[1],U=1/Tu(Iu((V*F+z*G)/(Lu(V*V+z*z)*Lu(F*F+G*G)))/2),W=Lu(B[0]*B[0]+B[1]*B[1]);C=Nu(w,(i-W)/(U+1)),M=Nu(S,(r-W)/(U-1))}}}if(N)if(C>Pu){var H=Nu(v,C),j=Nu(y,C),Y=Ru(A,I,D,O,i,H,h),q=Ru(k,T,L,E,i,j,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<w&&H===j?t.arc(u+Y.cx,c+Y.cy,C,Du(Y.y0,Y.x0),Du(q.y0,q.x0),!h):(H>0&&t.arc(u+Y.cx,c+Y.cy,H,Du(Y.y0,Y.x0),Du(Y.y1,Y.x1),!h),t.arc(u,c,i,Du(Y.cy+Y.y1,Y.cx+Y.x1),Du(q.cy+q.y1,q.cx+q.x1),!h),j>0&&t.arc(u+q.cx,c+q.cy,j,Du(q.y1,q.x1),Du(q.y0,q.x0),!h))}else t.moveTo(u+D,c+O),t.arc(u,c,i,s,l,!h);else t.moveTo(u+D,c+O);if(r>Pu&&N)if(M>Pu){H=Nu(f,M),Y=Ru(L,E,k,T,r,-(j=Nu(g,M)),h),q=Ru(D,O,A,I,r,-H,h);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),M<S&&H===j?t.arc(u+Y.cx,c+Y.cy,M,Du(Y.y0,Y.x0),Du(q.y0,q.x0),!h):(j>0&&t.arc(u+Y.cx,c+Y.cy,j,Du(Y.y0,Y.x0),Du(Y.y1,Y.x1),!h),t.arc(u,c,r,Du(Y.cy+Y.y1,Y.cx+Y.x1),Du(q.cy+q.y1,q.cx+q.x1),h),H>0&&t.arc(u+q.cx,c+q.cy,H,Du(q.y1,q.x1),Du(q.y0,q.x0),!h))}else t.lineTo(u+L,c+E),t.arc(u,c,r,l,s,h);else t.lineTo(u+L,c+E)}else t.moveTo(u,c);t.closePath()}}}var Vu=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},zu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new Vu},e.prototype.buildPath=function(t,e){Bu(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Es);zu.prototype.type="sector";var Fu=zu,Gu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Uu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new Gu},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Es);Uu.prototype.type="ring";var Wu=Uu;function Hu(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Oe(a,a,t[p]),Le(s,s,t[p]);Oe(a,a,i[0]),Le(s,s,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(be(t[p]));continue}r=t[p-1],o=t[p+1]}Se(u,o,r),Ce(u,u,e);var g=ke(f,r),v=ke(f,o),y=g+v;0!==y&&(g/=y,v/=y),Ce(c,u,-g),Ce(h,u,v);var m=we([],f,c),_=we([],f,h);i&&(Le(m,m,a),Oe(m,m,s),Le(_,_,a),Oe(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var ju=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Yu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultShape=function(){return new ju},e.prototype.buildPath=function(t,e){Hu(t,e,!0)},e}(Es);Yu.prototype.type="polygon";var qu=Yu,Xu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Zu=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xu},e.prototype.buildPath=function(t,e){Hu(t,e,!1)},e}(Es);Zu.prototype.type="polyline";var Ju=Zu,Ku={},Qu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},$u=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qu},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Us(Ku,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,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}(Es);$u.prototype.type="line";var tc=$u,ec=[],nc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ic(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Pn:Nn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Pn:Nn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Gn:Fn)(t.x1,t.cpx1,t.x2,e),(n?Gn:Fn)(t.y1,t.cpy1,t.y2,e)]}var rc=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nc},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=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,i),null==l||null==u?(c<1&&(Wn(n,a,r,c,ec),a=ec[1],r=ec[2],Wn(i,s,o,c,ec),s=ec[1],o=ec[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Vn(n,a,l,r,c,ec),a=ec[1],l=ec[2],r=ec[3],Vn(i,s,u,o,c,ec),s=ec[1],u=ec[2],o=ec[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return ic(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=ic(this.shape,t,!0);return Me(e,e)},e}(Es);rc.prototype.type="bezier-curve";var oc=rc,ac=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sc=function(t){function e(e){return t.call(this,e)||this}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ac},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=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*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(Es);sc.prototype.type="arc";var lc=sc,uc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return lt(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||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].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),Es.prototype.getBoundingRect.call(this)},e}(Es),cc=uc,hc=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),pc=function(t){function e(e,n,i,r,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==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return lt(e,t),e}(hc),dc=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return lt(e,t),e}(hc),fc=[0,0],gc=[0,0],vc=new mr,yc=new mr,mc=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new mr;for(n=0;n<2;n++)this._axes[n]=new mr;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);mr.sub(i[0],n[1],n[0]),mr.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return vc.set(1/0,1/0),yc.set(0,0),!this._intersectCheckOneSide(this,t,vc,yc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,vc,yc,i,-1)&&(n=!1,i)||i||mr.copy(e,n?vc:yc),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,fc),this._getProjMinMaxOnAxis(s,e._corners,gc),fc[1]<gc[0]||fc[0]>gc[1]){if(a=!1,r)return a;var u=Math.abs(gc[0]-fc[1]),c=Math.abs(fc[0]-gc[1]);Math.min(u,c)>i.len()&&(u<c?mr.scale(i,l,-u*o):mr.scale(i,l,c*o))}else if(n){u=Math.abs(gc[0]-fc[1]),c=Math.abs(fc[0]-gc[1]);Math.min(u,c)<n.len()&&(u<c?mr.scale(n,l,u*o):mr.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),_c=mc,xc=[],bc=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 lt(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 Ar(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(xc)),t.union(i)}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 i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(Ea),wc=bc,Sc=Ho();function Cc(t,e,n,i,r,o,a){var s,l=!1;qt(r)?(a=o,o=r,r=null):Kt(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){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 i?(l=oe(i.duration,200),u=oe(i.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)),qt(c)&&(c=c(n,r)),qt(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={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,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Mc(t,e,n,i,r,o){Cc("update",t,e,n,i,r,o)}function kc(t,e,n,i,r,o){Cc("enter",t,e,n,i,r,o)}function Tc(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 Ac(t,e,n,i,r,o){Tc(t)||Cc("leave",t,e,n,i,r,o)}function Ic(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Ac(t,{style:{opacity:0}},e,n,i)}function Dc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Ic(t,e,n,i)})):Ic(t,e,n,i)}function Oc(t){Sc(t).oldStyle=t.style}var Lc=Math.max,Ec=Math.min,Nc={};var Pc=function(t,e){var n=yu(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return lt(e,t),e}(gu)};function Rc(t,e){Nc[t]=e}function Bc(t,e,n,i){var r=mu(t,e);return n&&("center"===i&&(n=zc(n,r.getBoundingRect())),Gc(r,n)),r}function Vc(t,e,n){var i=new Fs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(zc(e,r))}}});return i}function zc(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Fc=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Es(e);return a.createPathProxy(),a.buildPath=function(t){if(vu(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Gc(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var Uc=Hs;function Wc(t,e){for(var n=nr([]);t&&t!==e;)rr(n,t.getLocalTransform(),n),t=t.parent;return n}function Hc(t,e,n){return e&&!Vt(e)&&(e=gr.getLocalTransform(e)),n&&(e=lr([],e)),De([],t,e)}function jc(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Hc(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Yc(t){return!t.isGroup}function qc(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Yc(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Yc(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Mc(t,i,n,cl(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=Nt({},t.shape)),e}}function Xc(t,e,n){var i=Nt({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Pt(r,n),new Fs(i)):Bc(t.replace("path://",""),i,n,"center")}function Zc(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=Jc(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=Jc(f,g,u,c)/d;if(v<0||v>1)return!1;var y=Jc(f,g,h,p)/d;return!(y<0||y>1)}function Jc(t,e,n,i){return t*i-n*e}function Kc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Xt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&zt(Wt(l),(function(t){ye(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=cl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Pt({content:i,formatterParams:s},r)}}function Qc(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function $c(t,e){if(t)if(Yt(t))for(var n=0;n<t.length;n++)Qc(t[n],e);else Qc(t,e)}Rc("circle",bu),Rc("ellipse",Cu),Rc("sector",Fu),Rc("ring",Wu),Rc("polygon",qu),Rc("polyline",Ju),Rc("rect",Xs),Rc("line",tc),Rc("bezierCurve",oc),Rc("arc",lc);var th=Object.freeze({__proto__:null,updateProps:Mc,initProps:kc,removeElement:Ac,removeElementWithFadeOut:Dc,isElementRemoved:Tc,extendShape:function(t){return Es.extend(t)},extendPath:function(t,e){return Pc(t,e)},registerShape:Rc,getShapeClass:function(t){if(Nc.hasOwnProperty(t))return Nc[t]},makePath:Bc,makeImage:Vc,mergePath:Fc,resizePath:Gc,subPixelOptimizeLine:function(t){return Us(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ws(t.shape,t.shape,t.style),t},subPixelOptimize:Uc,getTransform:Wc,applyTransform:Hc,transformDirection:jc,groupTransition:qc,clipPointsByRect:function(t,e){return Ft(t,(function(t){var n=t[0];n=Lc(n,e.x),n=Ec(n,e.x+e.width);var i=t[1];return i=Lc(i,e.y),[n,i=Ec(i,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=Lc(t.x,e.x),i=Ec(t.x+t.width,e.x+e.width),r=Lc(t.y,e.y),o=Ec(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:Xc,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Zc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:Zc,setTooltipConfig:Kc,traverseElements:$c,Group:Zr,Image:Fs,Text:ul,Circle:bu,Ellipse:Cu,Sector:Fu,Ring:Wu,Polygon:qu,Polyline:Ju,Rect:Xs,Line:tc,BezierCurve:oc,Arc:lc,IncrementalDisplayable:wc,CompoundPath:cc,LinearGradient:pc,RadialGradient:dc,BoundingRect:Ar,OrientedBoundingRect:_c,Point:mr,Path:Es}),eh={};function nh(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=qt(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<gl.length;u++){var c=gl[u],h=e[c];l[c]=oe(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function ih(t,e,n,i){n=n||eh;for(var r=t instanceof ul,o=!1,a=0;a<vl.length;a++){if((p=e[vl[a]])&&p.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new ul,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=nh(n,e),u=e.normal,c=!!u.getShallow("show"),h=oh(u,i&&i.normal,n,!1,!r);h.text=l.normal,r||t.setTextConfig(ah(u,n,!1));for(a=0;a<gl.length;a++){var p,d=gl[a];if(p=e[d]){var f=s.ensureState(d),g=!!oe(p.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=oh(p,i&&i[d],n,!0,!r),f.style.text=l[d],!r)t.ensureState(d).textConfig=ah(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(hh(s).setLabelText=function(t){var i=nh(n,e,t);!function(t,e){for(var n=0;n<gl.length;n++){var i=gl[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function rh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<gl.length;i++){var r=gl[i];n[r]=t.getModel([r,e])}return n}function oh(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||eh;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||eh).rich;if(n){e=e||{};for(var i=Wt(n),r=0;r<i.length;r++){e[i[r]]=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]);ch(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p);ch(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&Nt(o,e),o}function ah(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=oe(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var sh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lh=["align","lineHeight","width","height","tag","verticalAlign"],uh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ch(t,e,n,i,r,o,a,s){n=!r&&n||eh;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=oe(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&ko("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&ko("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 p=oe(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var d=oe(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=oe(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<sh.length;g++){var v=sh[g];null!=(m=oe(e.getShallow(v),n[v]))&&(t[v]=m)}for(g=0;g<lh.length;g++){v=lh[g];null!=(m=e.getShallow(v))&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<uh.length;g++){var m;v=uh[g];null!=(m=e.getShallow(v))&&(t[v]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.backgroundColor&&ko("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.borderColor&&ko("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}var hh=Ho();var ph,dh,fh=["textStyle","color"],gh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vh=new ul,yh=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(fh):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"),ce([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<gh.length;n++)e[gh[n]]=this.getShallow(gh[n]);return vh.useStyle(e),vh.update(),vh.getBoundingRect()},t}(),mh=yh,_h=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xh=oa(_h),bh=function(){function t(){}return t.prototype.getLineStyle=function(t){return xh(this,t)},t}(),wh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Sh=oa(wh),Ch=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Sh(this,t,e)},t}(),Mh=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 i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Lt(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,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Ot(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(!pt.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 i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();$o(Mh),ph=Mh,dh=["__\0is_clz",ea++].join("_"),ph.prototype[dh]=!0,"production"!==process.env.NODE_ENV&&ue(!ph.isInstance,'The method "is" can not be defined.'),ph.isInstance=function(t){return!(!t||!t[dh])},Bt(Mh,bh),Bt(Mh,Ch),Bt(Mh,sa),Bt(Mh,mh);var kh=Mh,Th=Math.round(10*Math.random());function Ah(t){return[t||"",Th++].join("_")}function Ih(t,e){return Lt(Lt({},t,!0),e,!0)}var Dh={},Oh={},Lh=pt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function Eh(t,e){t=t.toUpperCase(),Oh[t]=new kh(e),Dh[t]=e}Eh("EN",{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:". "}}}}),Eh("ZH",{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 Nh={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}"},Ph={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Nh.hour,minute:"{yyyy}-{MM}-{dd} "+Nh.minute,second:"{yyyy}-{MM}-{dd} "+Nh.second,millisecond:Nh.none},Rh=["year","month","day","hour","minute","second","millisecond"],Bh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vh(t,e){return"0000".substr(0,e-(t+="").length)+t}function zh(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 Fh(t){return t===zh(t)}function Gh(t,e,n,i){var r=co(t),o=r[Hh(n)](),a=r[jh(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Yh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[qh(n)](),h=(c-1)%12+1,p=r[Xh(n)](),d=r[Zh(n)](),f=r[Jh(n)](),g=i instanceof kh?i:function(t){return Oh[t]}(i||Lh)||Oh.EN,v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Vh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Vh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Vh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Vh(f,3)).replace(/{S}/g,f+"")}function Uh(t,e){var n=co(t),i=n[jh(e)]()+1,r=n[Yh(e)](),o=n[qh(e)](),a=n[Xh(e)](),s=n[Zh(e)](),l=0===n[Jh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Wh(t,e,n){var i=Jt(t)?co(t):t;switch(e=e||Uh(t,n)){case"year":return i[Hh(n)]();case"half-year":return i[jh(n)]()>=6?1:0;case"quarter":return Math.floor((i[jh(n)]()+1)/4);case"month":return i[jh(n)]();case"day":return i[Yh(n)]();case"half-day":return i[qh(n)]()/24;case"hour":return i[qh(n)]();case"minute":return i[Xh(n)]();case"second":return i[Zh(n)]();case"millisecond":return i[Jh(n)]()}}function Hh(t){return t?"getUTCFullYear":"getFullYear"}function jh(t){return t?"getUTCMonth":"getMonth"}function Yh(t){return t?"getUTCDate":"getDate"}function qh(t){return t?"getUTCHours":"getHours"}function Xh(t){return t?"getUTCMinutes":"getMinutes"}function Zh(t){return t?"getUTCSeconds":"getSeconds"}function Jh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Kh(t){return t?"setUTCFullYear":"setFullYear"}function Qh(t){return t?"setUTCMonth":"setMonth"}function $h(t){return t?"setUTCDate":"setDate"}function tp(t){return t?"setUTCHours":"setHours"}function ep(t){return t?"setUTCMinutes":"setMinutes"}function np(t){return t?"setUTCSeconds":"setSeconds"}function ip(t){return t?"setUTCMilliseconds":"setMilliseconds"}function rp(t){if(!vo(t))return Xt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function op(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 ap=le,sp=/([&<>"'])/g,lp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function up(t){return null==t?"":(t+"").replace(sp,(function(t,e){return lp[e]}))}function cp(t,e,n){function i(t){return t&&ce(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?co(t):t;if(!isNaN(+s))return Gh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Zt(t)?i(t):Jt(t)&&r(t)?t+"":"-";var l=go(t);return r(l)?rp(l):Zt(t)?i(t):"boolean"==typeof t?t+"":"-"}var hp=["a","b","c","d","e","f","g"],pp=function(t,e){return"{"+t+(null==e?"":e)+"}"};function dp(t,e,n){Yt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=hp[o];t=t.replace(pp(a),pp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(pp(hp[l],s),n?up(u):u)}return t}function fp(t,e){return e=e||"transparent",Xt(t)?t:Kt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function gp(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var vp=zt,yp=["left","right","top","bottom","width","height"],mp=[["width","left","right"],["height","top","bottom"]];function _p(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var xp=_p;function bp(t,e,n){n=ap(n||0);var i=e.width,r=e.height,o=eo(t.left,i),a=eo(t.top,r),s=eo(t.right,i),l=eo(t.bottom,r),u=eo(t.width,i),c=eo(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new Ar(o+n[3],a+n[0],u,c);return f.margin=n,f}function wp(t){var e=t.layoutMode||t.constructor.layoutMode;return Kt(e)?e:e?{type:e}:null}function Sp(t,e,n){var i=n&&n.ignoreSize;!Yt(i)&&(i=[i,i]);var r=a(mp[0],0),o=a(mp[1],1);function a(n,r){var o={},a=0,u={},c=0;if(vp(n,(function(e){u[e]=t[e]})),vp(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])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 h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){vp(t,(function(t){e[t]=n[t]}))}u(mp[0],t,r),u(mp[1],t,o)}function Cp(t){return function(t,e){return e&&t&&vp(yp,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}({},t)}jt(_p,"vertical"),jt(_p,"horizontal");var Mp=Ho(),kp=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Ah("ec_cpt_model"),r}return lt(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{};Lt(t,e.getTheme().get(this.mainType)),Lt(t,this.getDefaultOption()),n&&Sp(t,i,n)},e.prototype.mergeOption=function(t,e){Lt(this.option,t,!0);var n=wp(this);n&&Sp(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}(t))return t.defaultOption;var e=Mp(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Lt(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Zo(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!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}(kh);ta(kp,kh),ra(kp),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Qo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Qo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(kp),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return zt(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return zt(t,(function(t){Rt(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),zt(s,(function(t){Rt(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);Rt(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(zt(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),zt(h.successor,p?f:d)}zt(u,(function(){var e="";throw"production"!==process.env.NODE_ENV&&(e=To("Circular dependency may exists: ",u,t,i)),new Error(e)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(kp,(function(t){var e=[];zt(kp.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Ft(e,(function(t){return Qo(t).main})),"dataset"!==t&&Rt(e,"dataset")<=0&&e.unshift("dataset");return e}));var Tp=kp,Ap="";"undefined"!=typeof navigator&&(Ap=navigator.platform||"");var Ip="rgba(0, 0, 0, 0.2)",Dp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ip,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ip,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ip,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ip,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ip,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ip,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ap.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},Op=fe(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Lp=1,Ep=2,Np=3,Pp=Ho();function Rp(t,e,n){var i={},r=Vp(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=Pp(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;zt(t=t.slice(),(function(e,n){var r=Kt(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return zt(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=p.valueWayDim;d(i[n],a,r),d(l,a,r),p.valueWayDim+=r}else if(o===e)d(i[n],0,r),d(s,0,r);else{a=p.categoryWayDim;d(i[n],a,r),d(l,a,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Bp(t,e,n){var i={};if(!Vp(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;"objectRows"!==o&&"keyedColumns"!==o||zt(a,(function(t,e){"name"===(Kt(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Fp(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===Np;if(h&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===Np)&&(t.n=l),p(t)&&s[t.n]!==Np)return t;h||(c===Ep&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function Vp(t){if(!t.get("data",!0))return Zo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Xo).models[0]}function zp(t,e){return Fp(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Fp(t,e,n,i,r,o){var a,s,l;if($t(t))return Np;if(i){var u=i[o];Kt(u)?(s=u.name,l=u.type):Xt(u)&&(s=u)}if(null!=l)return"ordinal"===l?Lp:Np;if("arrayRows"===e){var c=t;if("row"===n){for(var h=c[o],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=m(h[r+p])))return a}else for(p=0;p<c.length&&p<5;p++){var d=c[r+p];if(d&&null!=(a=m(d[o])))return a}}else if("objectRows"===e){var f=t;if(!s)return Np;for(p=0;p<f.length&&p<5;p++){if((v=f[p])&&null!=(a=m(v[s])))return a}}else if("keyedColumns"===e){if(!s)return Np;if(!(h=t[s])||$t(h))return Np;for(p=0;p<h.length&&p<5;p++)if(null!=(a=m(h[p])))return a}else if("original"===e){var g=t;for(p=0;p<g.length&&p<5;p++){var v,y=Eo(v=g[p]);if(!Yt(y))return Np;if(null!=(a=m(y[o])))return a}}function m(t){var e=Xt(t);return null!=t&&isFinite(t)&&""!==t?e?Ep:Np:e&&"-"!==t?Lp:void 0}return Np}var Gp=fe();var Up=Ho();Ho();var Wp,Hp,jp,Yp=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Do(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if(!(c=c||n)||!c.length)return;var h=c[l];r&&(u[r]=h);return s.paletteIdx=(l+1)%c.length,h}(this,Up,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Up)},t}();var qp={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"},Xp={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"},Zp={};var Jp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new kh(i),this._locale=new kh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){"production"!==process.env.NODE_ENV&&(ue(null!=t,"option is null/undefined"),ue(1!==t["\0_ec_inner"],"please use chart.getOption()"));var i=$p(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,$p(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);"production"!==process.env.NODE_ENV&&zt(r,(function(t,e){if(!Tp.hasClass(e)){var n=qp[e];n&&!Zp[n]&&(Co("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Zp[n]=!0)}})),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):jp(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&zt(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,i=this._componentsMap,r=this._componentsCount,o=[],a=fe(),s=e&&e.replaceMergeMainTypeMap;Pp(this).datasetMap=fe(),zt(t,(function(t,e){null!=t&&(Tp.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Ot(t):Lt(n[e],t,!0))})),s&&s.each((function(t,e){Tp.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Tp.topologicalTravel(o,Tp.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Gp.get(e);if(!i)return n;var r=i(t);if(!r)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<r.length;o++)ue(Uo(r[o]));return n.concat(r)}(this,e,Do(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Po(a,o,l);(function(t,e,n){zt(t,(function(t){var i=t.newOption;Kt(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,Tp),n[e]=null,i.set(e,null),r.set(e,0);var c,h,p=[],d=[],f=0;zt(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Tp.getClass(e,t.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=t.keyInfo.subType,l=Xp[s];Zp[s]||(Zp[s]=!0,Co(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&&(h||(So("Currently only one tooltip component is allowed."),h=!0)));c=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var u=Nt({componentIndex:n},t.keyInfo);Nt(i=new a(r,this,this,u),u),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))}),this),n[e]=p,i.set(e,d),r.set(e,f),"series"===e&&Wp(this)}),this),this._seriesIndices||Wp(this)},e.prototype.getOption=function(){var t=Ot(this.option);return zt(t,(function(e,n){if(Tp.hasClass(n)){for(var i=Do(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Uo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),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 i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],zt(Do(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Kp("id",r,a):null!=o?Kp("name",o,a):Ut(a,(function(t){return!!t})),Qp(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):Ut(this._componentsMap.get(s),(function(t){return!!t}));return o=Qp(u,t),t.filter?Ut(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(qt(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=Xt(t)?i.get(t):Kt(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=Vo(t,null);return Ut(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 Ut(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Ut(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Hp(this),zt(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){zt(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Hp(this),zt(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return zt(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Hp(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Hp(this);var n=[];zt(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=fe(n)},e.prototype.restoreData=function(t){Wp(this);var e=this._componentsMap,n=[];e.each((function(t,e){Tp.hasClass(e)&&n.push(e)})),Tp.topologicalTravel(n,Tp.getAllClassMainTypes(),(function(n){zt(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(Wp=function(t){var e=t._seriesIndices=[];zt(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=fe(e)},Hp=function(t){if("production"!==process.env.NODE_ENV&&!t._seriesIndices)throw new Error("Option should contains series.")},void(jp=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=fe({series:[]}),t._componentsCount=fe();var n=e.aria;Kt(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;zt(e,(function(e,i){"colorLayer"===i&&n||Tp.hasClass(i)||("object"==typeof e?t[i]=t[i]?Lt(t[i],e,!1):Ot(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),Lt(e,Dp,!1),t._mergeOption(e,null)})),e}(kh);function Kp(t,e,n){if(Yt(e)){var i=fe();return zt(e,(function(t){null!=t&&(null!=Vo(t,null)&&i.set(t,!0))})),Ut(n,(function(e){return e&&i.get(e[t])}))}var r=Vo(e,null);return Ut(n,(function(e){return e&&null!=r&&e[t]===r}))}function Qp(t,e){return e.hasOwnProperty("subType")?Ut(t,(function(t){return t&&t.subType===e.subType})):t}function $p(t){var e=fe();return t&&zt(Do(t.replaceMerge),(function(t){"production"!==process.env.NODE_ENV&&ue(Tp.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Bt(Jp,Yp);var td=Jp,ed=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nd=function(t){zt(ed,(function(e){this[e]=Ht(t[e],t)}),this)},id={},rd=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];zt(id,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){zt(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){id[t]=e},t.get=function(t){return id[t]},t}(),od=/^(min|max)?(.+)$/,ad=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(zt(Do(t.series),(function(t){t&&t.data&&$t(t.data)&&he(t.data)})),zt(Do(t.dataset),(function(t){t&&t.source&&$t(t.source)&&he(t.source)}))),t=Ot(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t);c&&(Yt(u)?zt(u,(function(t){"production"!==process.env.NODE_ENV&&t&&!t.option&&Kt(t.query)&&Kt(t.query.option)&&Co("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),t&&t.option&&(t.query?o.push(t):i||(i=t))})):"production"!==process.env.NODE_ENV&&Co("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function p(t){zt(e,(function(e){e(t,n)}))}return p(r),zt(l,(function(t){return p(t)})),zt(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Ot(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Ot(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=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++)sd(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Ft(s,(function(t){return Ot(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function sd(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return zt(t,(function(t,e){var n=e.match(od);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})(i[a],t,o)||(r=!1)}})),r}var ld=ad,ud=zt,cd=Kt,hd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=hd.length;n<i;n++){var r=hd[n],o=e.normal,a=e.emphasis;o&&o[r]&&("production"!==process.env.NODE_ENV&&ko("itemStyle.normal."+r,r),t[r]=t[r]||{},t[r].normal?Lt(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&("production"!==process.env.NODE_ENV&&ko("itemStyle.emphasis."+r,"emphasis."+r),t[r]=t[r]||{},t[r].emphasis?Lt(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function dd(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&("production"!==process.env.NODE_ENV&&Mo("'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,Pt(t[e],i)):t[e]=i),r&&("production"!==process.env.NODE_ENV&&Mo(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function fd(t){dd(t,"itemStyle"),dd(t,"lineStyle"),dd(t,"areaStyle"),dd(t,"label"),dd(t,"labelLine"),dd(t,"upperLabel"),dd(t,"edgeLabel")}function gd(t,e){var n=cd(t)&&t[e],i=cd(n)&&n.textStyle;if(i){"production"!==process.env.NODE_ENV&&Mo("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var r=0,o=Lo.length;r<o;r++){var a=Lo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function vd(t){t&&(fd(t),gd(t,"label"),t.emphasis&&gd(t.emphasis,"label"))}function yd(t){return Yt(t)?t:t?[t]:[]}function md(t){return(Yt(t)?t[0]:t)||{}}function _d(t,e){ud(yd(t.series),(function(t){cd(t)&&function(t){if(cd(t)){pd(t),fd(t),gd(t,"label"),gd(t,"upperLabel"),gd(t,"edgeLabel"),t.emphasis&&(gd(t.emphasis,"label"),gd(t.emphasis,"upperLabel"),gd(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(pd(e),vd(e));var n=t.markLine;n&&(pd(n),vd(n));var i=t.markArea;i&&vd(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!$t(o))for(var a=0;a<o.length;a++)vd(o[a]);zt(t.categories,(function(t){fd(t)}))}if(r&&!$t(r))for(a=0;a<r.length;a++)vd(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)vd(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Yt(l[a])?(vd(l[a][0]),vd(l[a][1])):vd(l[a])}"gauge"===t.type?(gd(t,"axisLabel"),gd(t,"title"),gd(t,"detail")):"treemap"===t.type?(dd(t.breadcrumb,"itemStyle"),zt(t.levels,(function(t){fd(t)}))):"tree"===t.type&&fd(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ud(n,(function(e){ud(yd(t[e]),(function(t){t&&(gd(t,"axisLabel"),gd(t.axisPointer,"label"))}))})),ud(yd(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;gd(e,"axisLabel"),gd(e&&e.axisPointer,"label")})),ud(yd(t.calendar),(function(t){dd(t,"itemStyle"),gd(t,"dayLabel"),gd(t,"monthLabel"),gd(t,"yearLabel")})),ud(yd(t.radar),(function(t){gd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name,"production"!==process.env.NODE_ENV&&Mo("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&&Mo("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&ud(t.indicator,(function(t){t.text&&ko("text","name","radar.indicator")}))})),ud(yd(t.geo),(function(t){cd(t)&&(vd(t),ud(yd(t.regions),(function(t){vd(t)})))})),ud(yd(t.timeline),(function(t){vd(t),dd(t,"label"),dd(t,"itemStyle"),dd(t,"controlStyle",!0);var e=t.data;Yt(e)&&zt(e,(function(t){Kt(t)&&(dd(t,"label"),dd(t,"itemStyle"))}))})),ud(yd(t.toolbox),(function(t){dd(t,"iconStyle"),ud(t.feature,(function(t){dd(t,"iconStyle")}))})),gd(md(t.axisPointer),"label"),gd(md(t.tooltip).axisPointer,"label")}function xd(t){t&&zt(bd,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var bd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Sd.length;n++){var i=Sd[n][1],r=Sd[n][0];null!=e[i]&&(e[r]=e[i],"production"!==process.env.NODE_ENV&&ko(i,r))}}function Md(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&("production"!==process.env.NODE_ENV&&ko("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function kd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,"production"!==process.env.NODE_ENV&&ko("downplay","blur","sunburst"))}function Td(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Td(t[n].children,e)}function Ad(t,e){_d(t,e),t.series=Do(t.series),zt(t.series,(function(t){if(Kt(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow,"production"!==process.env.NODE_ENV&&ko("clipOverflow","clip","line"));else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise,"production"!==process.env.NODE_ENV&&ko("clockWise","clockwise")),Md(t.label),(r=t.data)&&!$t(r))for(var n=0;n<r.length;n++)Md(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&ko("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(Cd(t),Cd(t.backgroundStyle),Cd(t.emphasis),(r=t.data)&&!$t(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Cd(r[n]),Cd(r[n]&&r[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&&ko("highlightPolicy","emphasis.focus","sunburst"))),kd(t),Td(t.data,kd)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&("production"!==process.env.NODE_ENV&&ko("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&("production"!==process.env.NODE_ENV&&ko("mapType","map","map"),t.map=t.mapType),t.mapLocation&&("production"!==process.env.NODE_ENV&&Mo("`mapLocation` is not used anymore."),Pt(t,t.mapLocation)));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&("production"!==process.env.NODE_ENV&&ko("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),xd(t)}})),t.dataRange&&(t.visualMap=t.dataRange),zt(wd,(function(e){var n=t[e];n&&(Yt(n)||(n=[n]),zt(n,(function(t){xd(t)})))}))}function Id(t){zt(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,(function(o,l,u){var c,h,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?h=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||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(p>=0&&v>0||p<=0&&v<0){p=ao(p,v),d=v;break}}}return i[0]=p,i[1]=d,i}))}))}var Dd,Od,Ld,Ed,Nd,Pd=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",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 i=e[n];null==i.type&&zp(this,n)===Lp&&(i.type="ordinal")}};function Rd(t){return t instanceof Pd}function Bd(t,e,n){n=n||zd(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Fd(r),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===e){var s=t;"auto"===i||null==i?Gd((function(t){null!=t&&"-"!==t&&(Xt(t)?null==a&&(a=1):a=0)}),n,s,10):a=Jt(i)?i:i?1:0,r||1!==a||(r=[],Gd((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:"row"===n?s.length:s[0]?s[0].length:null}else if("objectRows"===e)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return zt(e,(function(t,e){i.push(e)})),i}}(t));else if("keyedColumns"===e)r||(r=[],zt(t,(function(t,e){r.push(e)})));else if("original"===e){var l=Eo(t[0]);o=Yt(l)&&l.length||1}else"typedArray"===e&&"production"!==process.env.NODE_ENV&&ue(!!r,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:Fd(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Pd({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Ot(e)})}function Vd(t){return new Pd({data:t,sourceFormat:$t(t)?"typedArray":"original"})}function zd(t){var e="unknown";if($t(t))e="typedArray";else if(Yt(t)){0===t.length&&(e="arrayRows");for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Yt(r)){e="arrayRows";break}if(Kt(r)){e="objectRows";break}}}}else if(Kt(t))for(var o in t)if(ye(t,o)&&Vt(t[o])){e="keyedColumns";break}return e}function Fd(t){if(t){var e=fe();return Ft(t,(function(t,n){var i={name:(t=Kt(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Gd(t,e,n,i){if("row"===e)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function Ud(t){var e=t.sourceFormat;return"objectRows"===e||"keyedColumns"===e}var Wd=function(){function t(t,e){var n=Rd(t)?t:Vd(t);this._source=n;var i=this._data=n.data;if("typedArray"===n.sourceFormat){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=i}Nd(this,i,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;Nd=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Ed[$d(a,s)];if("production"!==process.env.NODE_ENV&&ue(c,"Invalide sourceFormat: "+a),Nt(t,c),"typedArray"===a)t.getItem=e,t.count=i,t.fillStorage=n;else{var h=Yd(a,s);t.getItem=Ht(h,null,r,l,u);var p=Zd(a,s);t.count=Ht(p,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=r[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:r},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:r},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;zt(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t.original={appendData:r},t.typedArray={persistent:!1,pure:!0,appendData:function(t){"production"!==process.env.NODE_ENV&&ue($t(t),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Ed=t}(),t}(),Hd=function(t,e,n,i){return t[i]},jd=((Dd={}).arrayRows_column=function(t,e,n,i){return t[i+e]},Dd.arrayRows_row=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Dd.objectRows=Hd,Dd.keyedColumns=function(t,e,n,i,r){for(var o=r||[],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[i]:null}return o},Dd.original=Hd,Dd);function Yd(t,e){var n=jd[$d(t,e)];return"production"!==process.env.NODE_ENV&&ue(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var qd=function(t,e,n){return t.length},Xd=((Od={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},Od.arrayRows_row=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Od.objectRows=qd,Od.keyedColumns=function(t,e,n){var i=n[0].name;if("production"!==process.env.NODE_ENV&&null==i)throw new Error;var r=t[i];return r?r.length:0},Od.original=qd,Od);function Zd(t,e){var n=Xd[$d(t,e)];return"production"!==process.env.NODE_ENV&&ue(n,'Do not suppport count on "'+t+'", "'+e+'".'),n}var Jd=function(t,e,n){return t[e]},Kd=((Ld={}).arrayRows=Jd,Ld.objectRows=function(t,e,n){return t[n]},Ld.keyedColumns=Jd,Ld.original=function(t,e,n){var i=Eo(t);return i instanceof Array?i[e]:i},Ld.typedArray=Jd,Ld);function Qd(t){var e=Kd[t];return"production"!==process.env.NODE_ENV&&ue(e,'Do not suppport get value on "'+t+'".'),e}function $d(t,e){return"arrayRows"===t?t+"_"+e:t}function tf(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Qd(o)(i,a,s)}var l=i;return"original"===o&&(l=Eo(i)),l}}}var ef=/\{@(.+?)\}/g,nf=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&Yt(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return qt(r)?(s.status=e,s.dimensionIndex=i,r(s)):Xt(r)?dp(r,s).replace(ef,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1),"production"!==process.env.NODE_ENV&&isNaN(r)&&Co("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=tf(a,t,r);if(o&&Yt(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return tf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function rf(t){var e,n;return Kt(t)?t.type?n=t:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+To(t)):e=t,{text:e,frag:n}}function of(t){return new af(t)}var af=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,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(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(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(n?("production"!==process.env.NODE_ENV&&ue(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||p<d)){var f=this._progress;if(Yt(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,d,l,u);else this._doProgress(f,p,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&ue(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,i,r){sf.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:sf.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),Yt(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){"production"!==process.env.NODE_ENV&&ue(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}(),sf=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function lf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Jt(t)||null==t||"-"===t||(t=+co(t)),null==t||""===t?NaN:+t)}fe({number:function(t){return parseFloat(t)},time:function(t){return+co(t)},trim:function(t){return Xt(t)?ce(t):t}});var uf=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=Jt(t)?t:go(t),i=Jt(e)?e:go(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Xt(t),s=Xt(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),cf=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 lf(t,e)},t}();function hf(t){var e=t.sourceFormat;if(!yf(e)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+e),Ao(n)}return t.data}function pf(t){var e=t.sourceFormat,n=t.data;if(!yf(e)){var i="";"production"!==process.env.NODE_ENV&&(i="`cloneRawData` is not supported in source format "+e),Ao(i)}if("arrayRows"===e){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if("objectRows"===e){for(r=[],o=0,a=n.length;o<a;o++)r.push(Nt({},n[o]));return r}}function df(t,e,n){if(null!=n)return Jt(n)||!isNaN(n)&&!ye(e,n)?t[n]:ye(e,n)?e[n]:void 0}function ff(t){return Ot(t)}var gf=fe();function vf(t,e,n,i){var r="";e.length||("production"!==process.env.NODE_ENV&&(r="Must have at least one upstream dataset."),Ao(r)),Kt(t)||("production"!==process.env.NODE_ENV&&(r="transform declaration must be an object rather than "+typeof t+"."),Ao(r));var o=t.type,a=gf.get(o);a||("production"!==process.env.NODE_ENV&&(r='Can not find transform on type "'+o+'".'),Ao(r));var s,l=Ft(e,(function(t){return function(t,e){var n=new cf,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";"column"!==t.seriesLayoutBy&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ao(a));var s=[],l={},u=t.dimensionsDefine;if(u)zt(u,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";ye(l,n)&&("production"!==process.env.NODE_ENV&&(r='dimension name "'+n+'" duplicated.'),Ao(r)),l[n]=i}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Yd(r,"column");e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,s,t)},n.getRawData=Ht(hf,null,t)),n.cloneRawData=Ht(pf,null,t);var p=Zd(r,"column");n.count=Ht(p,null,i,o,s);var d=Qd(r);n.retrieveValue=function(t,e){var n=h(i,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Ht(df,null,s,l),n.cloneAllDimensionInfo=Ht(ff,null,s),n}(t,a)})),u=Do(a.transform({upstream:l[0],upstreamList:l,config:Ot(t.config)}));if("production"!==process.env.NODE_ENV&&t.print){var c=Ft(u,(function(t){var e=null!=i?" === pipe index: "+i:"";return["=== dataset index: "+n.datasetIndex+e+" ===","- transform result data:",To(t.data),"- transform result dimensions:",To(t.dimensions)].join("\n")})).join("\n");wo("log",c,s)}return Ft(u,(function(t,n){var i,r="";Kt(t)||("production"!==process.env.NODE_ENV&&(r="A transform should not return some empty results."),Ao(r)),t.data||("production"!==process.env.NODE_ENV&&(r="Transform result data should be not be null or undefined"),Ao(r)),yf(zd(t.data))||("production"!==process.env.NODE_ENV&&(r="Transform result data should be array rows or object rows."),Ao(r));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)),i={seriesLayoutBy:"column",sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:"column",sourceHeader:0,dimensions:t.dimensions};return Bd(t.data,i,null)}))}function yf(t){return"arrayRows"===t||"objectRows"===t}var mf,_f="undefined"==typeof Uint32Array?Array:Uint32Array,xf="undefined"==typeof Uint16Array?Array:Uint16Array,bf="undefined"==typeof Int32Array?Array:Int32Array,wf="undefined"==typeof Float64Array?Array:Float64Array,Sf={float:wf,int:bf,ordinal:Array,number:Array,time:wf};function Cf(t){return t>65535?_f:xf}function Mf(t,e,n,i,r){var o=Sf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var kf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fe()}return t.prototype.initData=function(t,e,n){"production"!==process.env.NODE_ENV&&ue(qt(t.getItem)&&qt(t.count),"Inavlid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=mf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];var o=Ud(i);this._dimensions=Ft(e,(function(t){return"production"!==process.env.NODE_ENV&&o&&ue(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,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Sf[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[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]))}i.ordinalMeta=e,i.ordinalOffset=a,i.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&&ue(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){Mf(n,l,(d=i[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<r;p++){var d=i[p],f=mf.arrayRows.call(this,t[h]||u,d.property,h,p);n[p][c]=f;var g=o[p];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 i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Ft(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),Mf(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;p<e;p++){h=i.getItem(p,h);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.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=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],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,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}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})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/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 i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;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-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=Cf(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Cf(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][p],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(r[s++]=p)}return s<i&&(n._indices=r),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 i=Wt(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Cf(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++){((_=f[g])>=u&&_<=c||isNaN(_))&&(a[s++]=d),d++}p=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],y=t[i[1]][0],m=t[i[1]][1];for(g=0;g<n;g++){var _=f[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=y&&x<=m||isNaN(x))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((_=h[C][b])<t[C][0]||_>t[C][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 i=t._chunks,r=[],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 h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],y=i[f];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Cf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,y=d;y<f;y++){var m=a[M=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=f-d;var _=p,x=Math.min(p+u,s),b=p-1,w=a[c];n=-1,r=_;var S=-1,C=0;for(y=_;y<x;y++){var M;m=a[M=this.getRawIndex(y)];isNaN(m)?(C++,S<0&&(S=M)):(i=Math.abs((b-g)*(m-w)-(b-y)*(v-w)))>n&&(n=i,r=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Cf(this._rawCount))(Math.ceil(u/s)),p=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),y=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&Gt(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):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=Ot(this._extent),t._rawExtent=Ot(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 i=0;i<n;i++)e[i]=this._indices[i]}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,i){return lf(t[i],this._dimensions[i])}mf={arrayRows:t,objectRows:function(t,e,n,i){return lf(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return lf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Tf=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if(If(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=$t(a=o.get("data",!0))?"typedArray":"original",e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=oe(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=oe(c.sourceHeader,h.sourceHeader),f=oe(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||f?[Bd(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[Bd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}"production"!==process.env.NODE_ENV&&ue(t&&e),this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&ue(null!=r||null!=i),null!=r){var o="";1!==t.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Df(o))}var a,s=[],l=[];return zt(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+r),Df(n)),s.push(e),l.push(t._getVersionSign())})),i?e=function(t,e,n){var i=Do(t),r=i.length,o="";r||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),Ao(o));for(var a=0,s=r;a<s;a++)e=vf(i[a],e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}(i,s,{datasetIndex:n.componentIndex}):null!=r&&(e=[(a=s[0],new Pd({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:Ot(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&&ue(If(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 i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];If(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new kf).initData(new Wd(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(If(t)){var e=Vp(t);return e?[e.getSourceManager()]:[]}return Ft(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Zo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Xo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(If(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Af(t){t.option.transform&&he(t.option.transform)}function If(t){return"series"===t.mainType}function Df(t){throw new Error(t)}function Of(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+up(i+"")+"px;color:"+up(n)+";font-weight:"+up(r+""),valueStyle:"font-size:"+up(a+"")+"px;color:"+up(o)+";font-weight:"+up(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Lf=[0,10,20,30],Ef=["","\n","\n\n","\n\n\n"];function Nf(t,e){return e.type=t,e}function Pf(t){return"section"===t.type}function Rf(t){return Pf(t)?Vf:zf}function Bf(t){if(Pf(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return zt(t.blocks,(function(t){var n=Bf(t);n>=e&&(e=n+ +(i&&(!n||Pf(t)&&!t.noHeader)))})),e}return 0}function Vf(t,e,n,i){var r,o=e.noHeader,a=(r=Bf(e),{html:Lf[r],richText:Ef[r]}),s=[],l=e.blocks||[];ue(!l||Yt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(ye(c,u)){var h=new uf(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}zt(l,(function(n,r){var o=e.valueFormatter,l=Rf(n)(o?Nt(Nt({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Gf(s.join(""),o?n:a.html);if(o)return p;var d=cp(e.header,"ordinal",t.useUTC),f=Of(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Uf(t,d,f)+a.richText+p:Gf('<div style="'+f+';line-height:1;">'+up(d)+"</div>"+p,n)}function zf(t,e,n,i){var r=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 Ft(t=Yt(t)?t:[t],(function(t,e){return cp(t,Yt(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":cp(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!o,v=!s&&o,y=Of(i,r),m=y.nameStyle,_=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":Uf(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Yt(e)?e.join(" "):e,o)}(t,f,g,v,_)):Gf((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+up(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Yt(t)?t:[t],'<span style="'+o+";"+i+'">'+Ft(t,(function(t){return up(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,_)),n)}}function Ff(t,e,n,i,r,o){if(t)return Rf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Gf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+';line-height:1;">'+t+'<div style="clear:both"></div></div>'}function Uf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Wf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Hf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=yo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=Xt(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+up(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+up(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return Xt(r)?r:("production"!==process.env.NODE_ENV&&ue(i),this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Yt(e)?zt(e,(function(t){return Nt(n,t)})):Nt(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function jf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=Yt(h),d=function(t,e){return fp(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||p&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=Gt(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Nf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?zt(i,(function(t){c(tf(o,n,t),t)})):zt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=tf(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var v=Go(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Nf("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[Nf("nameValue",{markerType:"item",markerColor:d,name:_,noName:!ce(_),value:e,valueType:n})].concat(i||[])})}var Yf=Ho();function qf(t,e){return t.getName(e)||t.getId(e)}var Xf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return lt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=of({count:Jf,reset:Kf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Yf(this).sourceManager=new Tf(this)).prepareSource();var i=this.getInitialData(t,n);$f(i,this),this.dataTask.context.data=i,"production"!==process.env.NODE_ENV&&ue(i,"getInitialData returned invalid data."),Yf(this).dataBeforeProcessed=i,Zf(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{},r=this.subType;Tp.hasClass(r)&&(r+="Series"),Lt(t,e.getTheme().get(this.subType)),Lt(t,this.getDefaultOption()),Oo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Sp(t,i,n)},e.prototype.mergeOption=function(t,e){t=Lt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=wp(this);n&&Sp(this.option,t,n);var i=Yf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);$f(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Yf(this).dataBeforeProcessed=r,Zf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!$t(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Oo(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=eg(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Yf(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=eg(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Yf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return fe(t)},e.prototype.getSourceManager=function(){return Yf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Yf(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 jf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(pt.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 i=this.ecModel,r=Yp.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},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 i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=qf(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],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=Wt(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[qf(i,t)])&&!i.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,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){Kt(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=qf(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=qf(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Tp.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}(Tp);function Zf(t){var e=t.name;Go(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return zt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Jf(t){return t.model.getRawData().count()}function Kf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Qf}function Qf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function $f(t,e){zt(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,jt(tg,e))}))}function tg(t,e){var n=eg(t);return n&&n.setOutputEnd((e||this).count()),e}function eg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}Bt(Xf,nf),Bt(Xf,Yp),ta(Xf,Tp);var ng=Xf,ig=function(){function t(){this.group=new Zr,this.uid=Ah("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();$o(ig),ra(ig);var rg=ig;function og(){var t=Ho();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var ag=Ho(),sg=og(),lg=function(){function t(){this.group=new Zr,this.uid=Ah("viewChart"),this.renderTask=of({plan:hg,reset:pg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r?cg(r,i,"emphasis"):"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+i.dataType)},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r?cg(r,i,"normal"):"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+i.dataType)},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){$c(this.group,t)},t.markUpdateMethod=function(t,e){ag(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function ug(t,e,n){t&&Ql(t)&&("emphasis"===e?Nl:Pl)(t,n)}function cg(t,e,n){var i=Wo(t,e),r=e&&null!=e.highlightKey?function(t){var e=pl[t];return null==e&&hl<=32&&(e=pl[t]=hl++),e}(e.highlightKey):null;null!=i?zt(Do(i),(function(e){ug(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){ug(t,n,r)}))}function hg(t){return sg(t.model)}function pg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&ag(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),dg[l]}$o(lg,["dispose"]),ra(lg);var dg={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)}}},fg=lg,gg="\0__throttleOriginMethod",vg="\0__throttleRate";function yg(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function mg(t,e,n,i){var r=t[e];if(r){var o=r[gg]||r,a=r["\0__throttleType"];if(r[vg]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=yg(o,n,"debounce"===i))[gg]=o,r["\0__throttleType"]=i,r[vg]=n}return r}}function _g(t,e){var n=t[e];n&&n[gg]&&(n.clear&&n.clear(),t[e]=n[gg])}var xg=Ho(),bg={itemStyle:oa(wh,!0),lineStyle:oa(_h,!0)},wg={lineStyle:"stroke",itemStyle:"fill"};function Sg(t,e){var n=t.visualStyleMapper||bg[e];return n||(console.warn("Unkown style type '"+e+"'."),bg.itemStyle)}function Cg(t,e){var n=t.visualDrawType||wg[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Sg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Cg(t,i),l=o[s],u=qt(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||qt(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||qt(o.stroke)?h: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 i=t.getDataParams(n),r=Nt({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},kg=new kh,Tg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Sg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){kg.option=n[i];var a=r(kg);Nt(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}}}},Ag={performRawSeries:!0,overallReset:function(t){var e=fe();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),xg(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=xg(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Cg(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},Ig=Math.PI;var Dg=function(){function t(t,e,n,i){this._stageTaskMap=fe(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):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),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=fe();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;zt(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),ue(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}zt(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(d)})),c.perform(d)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||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,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=fe(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||of({plan:Pg,reset:Rg,count:zg}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||of({reset:Og});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=fe(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,p="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,of({reset:Lg,onDirty:Ng})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}"production"!==process.env.NODE_ENV&&(p='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),ue(!t.createOnAllSeries,p),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,zt(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return qt(t)&&(t={overallReset:t,seriesType:Fg(t)}),t.uid=Ah("stageHandler"),e&&(t.visualType=e),t},t}();function Og(t){t.overallReset(t.ecModel,t.api,t.payload)}function Lg(t){return t.overallProgress&&Eg}function Eg(){this.agent.dirty(),this.getDownstream().dirty()}function Ng(){this.agent&&this.agent.dirty()}function Pg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Rg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Do(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Ft(e,(function(t,e){return Vg(e)})):Bg}var Bg=Vg(0);function Vg(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function zg(t){return t.data.count()}function Fg(t){Gg=null;try{t(Ug,Wg)}catch(t){}return Gg}var Gg,Ug={},Wg={};function Hg(t,e){for(var n in e.prototype)t[n]=me}Hg(Ug,td),Hg(Wg,nd),Ug.eachSeriesByType=Ug.eachRawSeriesByType=function(t){Gg=t},Ug.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Gg=t.subType)};var jg=Dg,Yg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],qg={color:Yg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Yg]},Xg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Zg={darkMode:!0,color:Xg,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},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:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:Xg},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Zg.categoryAxis.splitLine.show=!1;var Jg=Zg,Kg=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Xt(t)){var r=Qo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};zt(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=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,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Qg=["symbol","symbolSize","symbolRotate","symbolOffset"],$g=Qg.concat(["symbolKeepAspect"]),tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Qg.length;a++){var s=Qg[a],l=t.get(s);qt(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Nt({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Wt(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},ev={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),i=0;i<$g.length;i++){var r=$g[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function nv(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 rv(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}zt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=Nt({},e),"production"!==process.env.NODE_ENV&&ko(e.type,t[1]),r.dispatchAction(Nt(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function ov(t,e,n,i,r){var o=t+e;n.isSilent(o)||("production"!==process.env.NODE_ENV&&Mo("event "+o+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Wo(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Yt(u)?l.getName(u[0]):l.getName(u),selected:Xt(i)?i:Nt({},i)})}})))}function av(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var sv=Math.round(9*Math.random()),lv="function"==typeof Object.defineProperty,uv=function(){function t(){this._id="__ec_inner_"+sv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return lv?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}(),cv=uv,hv=Es.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),pv=Es.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),dv=Es.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=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-h*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),fv=Es.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),gv={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},vv={};zt({line:tc,rect:Xs,roundRect:Xs,square:Xs,circle:bu,diamond:pv,pin:dv,arrow:fv,triangle:hv},(function(t,e){vv[e]=new t}));var yv=Es.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Br(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=vv[i];r||(r=vv[i="rect"]),gv[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function mv(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,i,r,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://")?Vc(t.slice(8),new Ar(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Bc(t.slice(7),{},new Ar(e,n,i,r),a?"center":"cover"):new yv({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=mv,o&&s.setColor(o),s}function xv(t,e){if(null!=t)return Yt(t)||(t=[t,t]),[eo(t[0],e[0])||0,eo(oe(t[1],t[0]),e[1])||0]}function bv(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),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*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function wv(t){return parseInt(t,10)}function Sv(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||wv(s[i])||wv(t.style[i]))-(wv(s[o])||0)-(wv(s[a])||0)|0}function Cv(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Jt(e)?[e]:Yt(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Ft(r,(function(t){return t/a})),o/=a)}return[r,o]}var Mv=new ps(!0);function kv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Tv(t){return"string"==typeof t&&"none"!==t}function Av(t){var e=t.fill;return null!=e&&"none"!==e}function Iv(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 Dv(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 Ov(t,e,n){var i=ca(e.image,e.__image,n);if(pa(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*_e),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Lv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ev=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Nv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Bv(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ka.opacity:a}(i||e.blend!==n.blend)&&(o||(Bv(t,r),o=!0),t.globalCompositeOperation=e.blend||ka.blend);for(var s=0;s<Lv.length;s++){var l=Lv[s];(i||e[l]!==n[l])&&(o||(Bv(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Bv(t,r),o=!0),t.shadowColor=e.shadowColor||ka.shadowColor),o}function Pv(t,e,n,i,r){var o=Vv(e,r.inHover),a=i?null:n&&Vv(n,r.inHover)||{};if(o===a)return!1;var s=Nv(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Bv(t,r),s=!0),Tv(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Bv(t,r),s=!0),Tv(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Bv(t,r),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||(Bv(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<Ev.length;u++){var c=Ev[u],h=c[0];(i||o[h]!==a[h])&&(s||(Bv(t,r),s=!0),t[h]=o[h]||c[1])}return s}function Rv(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Bv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Vv(t,e){return e&&t.__hoverStyle||t.style}function zv(t,e){Fv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Fv(t,e,n,i){var r=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&&(Bv(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Bv(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Rv(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(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,h,p=e instanceof Es&&e.autoBatch&&function(t){var e=Av(t),n=kv(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=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Bv(t,n),Rv(t,e)):p||Bv(t,n);var d=Vv(e,n.inHover);e instanceof Es?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Pv(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=kv(n),a=Av(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Mv,h=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,v=a&&!!p.image,y=o&&!!d.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=h?bv(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?bv(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?Ov(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(b=h||!e.__canvasStrokePattern?Ov(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Cv(e))[0],C=r[1]);var k=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&Dv(t,n),a&&Iv(t,n)):(a&&Iv(t,n),o&&Dv(t,n))),S&&t.setLineDash([])}(t,e,d,p),p&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof Rs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Pv(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||dt,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=Cv(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(kv(n)&&t.strokeText(r,n.x,n.y),Av(n)&&t.fillText(r,n.x,n.y)):(Av(n)&&t.fillText(r,n.x,n.y),kv(n)&&t.strokeText(r,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,i,r){Nv(t,Vv(e,r.inHover),n&&Vv(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=ca(n.image,e.__image,e,e.onload);if(i&&pa(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=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=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fv(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fv(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)),p&&i&&Bv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Gv=new cv,Uv=new Kn(100),Wv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hv(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Gv.delete(t);var o=Gv.get(t);if(o)return o;var a=Pt(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<Wv.length;++l){var u=a[Wv[l]];if(null!=u&&!Yt(u)&&!Xt(u)&&!Jt(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=Uv.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,p=Yv(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Jt(t)){var e=Math.ceil(t);return[e,e]}var n=Ft(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=jv(a.symbol),g=(x=p,Ft(x,(function(t){return qv(t)}))),v=qv(d),y=!r&&yt.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=_o(t,g[e]);var i=1;for(e=0,n=f.length;e<n;++e)i=_o(i,f[e].length);t*=i;var r=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"),r>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var x;y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d"));(function(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-v,s=0,l=0,u=0;for(;o<_.height;){if(s%2==0){for(var c=l/2%f.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+p[u][x]*S,M=o+d[s]*S,k=p[u][x]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;I(C,M,k,T,f[c][A])}g+=p[u][x],++b,++x===p[u].length&&(x=0)}++u===p.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function I(t,e,o,s,l){var u=r?1:n,c=_v(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(c);p&&m.children.push(p)}else zv(h,c)}})(),s&&Uv.put(e,y||m);t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Gv.set(t,s),t.dirty=!1,s}function jv(t){if(!t||0===t.length)return[["rect"]];if(Xt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Xt(t[n])){e=!1;break}if(e)return jv([t]);var i=[];for(n=0;n<t.length;++n)Xt(t[n])?i.push([t[n]]):i.push(t[n]);return i}function Yv(t){if(!t||0===t.length)return[[0,0]];if(Jt(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!Jt(t[n])){e=!1;break}if(e)return Yv([t]);var i=[];for(n=0;n<t.length;++n)if(Jt(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=Ft(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function qv(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Xv=new Be,Zv={};var Jv="undefined"!=typeof window,Kv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Qv=/^[a-zA-Z0-9_]+$/;function $v(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return ey(this,t,e);My(this.id)}}function ty(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ey(this,t,e)}}function ey(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Be.prototype[e].apply(t,n)}var ny,iy,ry,oy,ay,sy,ly,uy,cy,hy,py,dy,fy,gy,vy,yy,my,_y,xy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e}(Be),by=xy.prototype;by.on=ty("on"),by.off=ty("off");var wy=function(t){function e(e,n,i){var r=t.call(this,new Kg)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Xt(n)&&(n=Oy[n]),r._dom=e;var o="canvas",a=!1;if("production"!==process.env.NODE_ENV){var s=Jv?window:global;o=s.__ECHARTS__DEFAULT__RENDERER__||o;var l=s.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;a=null==l?a:l}var u=r._zr=$r(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._ssr=i.ssr,r._throttledZrFlush=yg(Ht(u.flush,u),17),(n=Ot(n))&&Ad(n,!0),r._theme=n,r._locale=function(t){if(Xt(t)){var e=Dh[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Ot(e):Lt(Ot(e),Ot(Dh.EN),!1)}return Lt(Ot(t),Ot(Dh.EN),!1)}(i.locale||Lh),r._coordSysMgr=new rd;var c=r._api=vy(r);function h(t,e){return t.__prio-e.__prio}return vn(Dy,h),vn(Ay,h),r._scheduler=new jg(r,c,Ay,Dy),r._messageCenter=new xy,r._initEvents(),r.resize=Ht(r.resize,r),u.animation.on("frame",r._onframe,r),hy(u,r),py(u,r),he(r),r}return lt(e,t),e.prototype._onframe=function(){if(!this._disposed){_y(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{ny(this),oy.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,uy.call(this,e),cy.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),sy(this,i),t.performVisualTasks(i),gy(this,this._model,r,"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&&Co("`setOption` should not be called during main process.");else if(this._disposed)My(this.id);else{var i,r,o;if(Kt(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ld(this._api),s=this._theme,l=this._model=new td;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Iy);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{ny(this),oy.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,uy.call(this,i),cy.call(this,i)}}},e.prototype.setTheme=function(){Mo("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||Jv&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return"production"!==process.env.NODE_ENV&&ko("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(pt.svgSupported){var t=this._zr;return zt(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,i=[],r=this;zt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.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 zt(i,(function(t){t.group.ignore=!1})),o}My(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Ny[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();zt(Ey,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Ot(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),c.push({dom:p,left:d.left,top:d.top})}}));var p=(l*=h)-(a*=h),d=(u*=h)-(s*=h),f=yt.createCanvas(),g=$r(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),e){var v="";return zt(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 Xs({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),zt(c,(function(t){var e=new Fs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}My(this.id)},e.prototype.convertToPixel=function(t,e){return ay(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return ay(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return zt(Yo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&zt(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n=n||o.containPoint(e,t):"production"!==process.env.NODE_ENV&&console.warn(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&console.warn(i+": containPoint is not supported")}),this)}),this),!!n;My(this.id)},e.prototype.getVisual=function(t,e){var n=Yo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel;"production"!==process.env.NODE_ENV&&(i||console.warn("There is no specified seires model"));var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?nv(r,o,e):iv(r,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,i=this;zt(Cy,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&av(o,(function(t){var e=cl(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Nt({},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&&r.getComponent(s,l),c=u&&i["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,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),zt(Ty,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),zt(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(ov("map","selectchanged",e,i,t),ov("pie","selectchanged",e,i,t)):"select"===t.fromAction?(ov("map","selected",e,i,t),ov("pie","selected",e,i,t)):"unselect"===t.fromAction&&(ov("map","unselected",e,i,t),ov("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?My(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)My(this.id);else{this._disposed=!0,this.getDom()&&Jo(this.getDom(),Ry,"");var t=this,e=t._api,n=t._model;zt(t._componentsViews,(function(t){t.dispose(n,e)})),zt(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 Ey[t.id]}},e.prototype.resize=function(t){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Co("`resize` should not be called during main process.");else if(this._disposed)My(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&ny(this),oy.update.call(this,{type:"resize",animation:Nt({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,uy.call(this,i),cy.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)My(this.id);else if(Kt(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ly[t]){var n=Ly[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}else"production"!==process.env.NODE_ENV&&console.warn("Loading effects "+t+" not exists.")},e.prototype.hideLoading=function(){this._disposed?My(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Nt({},t);return e.type=Ty[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)My(this.id);else if(Kt(e)||(e={silent:!!e}),ky[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;ly.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&pt.browser.weChat&&this._throttledZrFlush(),uy.call(this,n),cy.call(this,n)}},e.prototype.updateLabelLayout=function(){Xv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)My(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);"production"!==process.env.NODE_ENV&&ue(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,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}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,r=t.get("zlevel")||0;e.eachRendered((function(t){return i(t,n,r,-1/0),!0}))}}function i(t,e,n,r){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(i(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(o&&(o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function r(t,e){e.eachRendered((function(t){if(!Tc(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 i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Tc(t))return;if(t instanceof Es&&function(t){var e=dl(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(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}ny=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),iy(t,!0),iy(t,!1),e.plan()},iy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Qo(t.type),p=e?rg.getClass(h.main,h.sub):fg.getClass(h.sub);"production"!==process.env.NODE_ENV&&ue(p,h.sub+" does not exist."),(c=new p).init(n,s),o[u]=c,r.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&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},ry=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=fe(),zt(Do(u),(function(t){var e=Vo(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!==l.get(e.id)))if(tu(n))if(e instanceof ng)"highlight"!==n.type||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Wo(r,e);o=(Yt(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=cl(a);Gl(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Gl(i,c,h,n)}}else"production"!==process.env.NODE_ENV&&Co("Unknown dataType "+e.dataType)}(e,n,t._api);else{var i=Wl(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;"highlight"===n.type&&r&&!n.notBlur&&Ul(e.mainType,e.componentIndex,t._api),o&&zt(o,(function(t){"highlight"===n.type?Nl(t):Pl(t)}))}else $l(n)&&e instanceof ng&&(!function(t,e,n){if($l(e)){var i=e.dataType,r=Wo(t.getData(i),e);Yt(r)||(r=[r]),t["toggleSelect"===e.type?"toggleSelect":"select"===e.type?"select":"unselect"](r,i)}}(e,n,t._api),Hl(e),my(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!==l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else zt([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},oy={prepareAndUpdate:function(t){ny(this),oy.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),sy(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),dy(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Xv.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=fe();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),gy(this,i,r,e,{},a),Xv.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),fg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),dy(this,n,this._api,e,{}),Xv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),fg.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),Xv.trigger("afterupdate",i,this._api))},updateLayout:function(t){oy.update.call(this,t)}},ay=function(t,e,n,i){if(t._disposed)My(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Yo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}"production"!==process.env.NODE_ENV&&console.warn("No coordinate system that supports "+e+" found by the given finder.")}},sy=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},ly=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ky[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Qo(l[0]);this.__flagInMainProcess=!0;var h=[t],p=!1;t.batch&&(p=!0,h=Ft(t.batch,(function(e){return(e=Pt(Nt({},e),t)).batch=null,e})));var d,f=[],g=$l(t),v=tu(t);if(v&&Fl(this._api),zt(h,(function(e){if((d=(d=a.action(e,n._model,n._api))||Nt({},e)).type=s.event||d.type,f.push(d),v){var i=qo(t),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";ry(n,u,e,o),my(n)}else g?(ry(n,u,e,"series"),my(n)):c&&ry(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this.__pendingUpdate?(ny(this),oy.update.call(this,t),this.__pendingUpdate=null):oy[u].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(d=p?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!e){var y=this._messageCenter;if(y.trigger(d.type,d),g){var m={type:"selectchanged",escapeConnect:o,selected:jl(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},uy=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ly.call(this,n,t)}},cy=function(t){!t&&this.trigger("updated")},hy=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")}))},py=function(t,e){t.on("mouseover",(function(t){var n=av(t.target,Ql);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ql(t)||Co("param should be highDownDispatcher");var i=cl(t),r=Wl(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Ul(i.componentMainType,i.componentIndex,n),zt(o,(function(t){return Ll(t,e)}))):(Gl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Ul(i.componentMainType,i.componentIndex,n),Ll(t,e))}(n,t,e._api),my(e))})).on("mouseout",(function(t){var n=av(t.target,Ql);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||Ql(t)||Co("param should be highDownDispatcher"),Fl(n);var i=cl(t),r=Wl(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?zt(r,(function(t){return El(t,e)})):El(t,e)}(n,t,e._api),my(e))})).on("click",(function(t){var n=av(t.target,(function(t){return null!=cl(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=cl(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},dy=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);vn(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),zt(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}(e),fy(t,e,n,i,r),zt(t._chartsViews,(function(t){t.__alive=!1})),gy(t,e,n,i,r),zt(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},fy=function(t,e,i,a,s,l){zt(l||t._componentsViews,(function(t){var s=t.__model;r(s,t),t.render(s,e,i,a),n(s,t),o(s,t)}))},gy=function(t,e,i,a,s,l){var u=t._scheduler;s=Nt(s||{},{updatedSeries:e.getSeries()}),Xv.trigger("series:beforeupdate",e,i,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(e,n),l&&l.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(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),Hl(e)})),u.unfinished=c||u.unfinished,Xv.trigger("series:layoutlabels",e,i,s),Xv.trigger("series:transition",e,i,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),o(e,i)})),function(t,e){var n=t._zr.storage,i=0;n.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!pt.node&&!pt.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),Xv.trigger("series:afterupdate",e,i,s)},my=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},_y=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){Tc(t)||e(t)})),t.__needsUpdateStatus=!1)},vy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return lt(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){Nl(e,n),my(t)},n.prototype.leaveEmphasis=function(e,n){Pl(e,n),my(t)},n.prototype.enterBlur=function(e){!function(t){Al(t,Sl)}(e),my(t)},n.prototype.leaveBlur=function(e){Rl(e),my(t)},n.prototype.enterSelect=function(e){Bl(e),my(t)},n.prototype.leaveSelect=function(e){Vl(e),my(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}(nd))(t)},yy=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n].__connectUpdateStatus=e}}zt(Ty,(function(n,i){t._messageCenter.on(i,(function(n){if(Ny[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];zt(Ey,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),zt(r,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(Be),Sy=wy.prototype;Sy.on=$v("on"),Sy.off=$v("off"),Sy.one=function(t,e,n){var i=this;Mo("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var Cy=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function My(t){"production"!==process.env.NODE_ENV&&console.warn("Instance "+t+" has been disposed")}var ky={},Ty={},Ay=[],Iy=[],Dy=[],Oy={},Ly={},Ey={},Ny={},Py=+new Date-0,Ry="_echarts_instance_";function By(t,e,n){var i=!(n&&n.ssr);if(i){if("production"!==process.env.NODE_ENV&&!t)throw new Error("Initialize failed: invalid dom.");var r=function(t){return Ey[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Ry)]}(t);if(r)return"production"!==process.env.NODE_ENV&&console.warn("There is a chart instance already initialized on the dom."),r;"production"!==process.env.NODE_ENV&&(!te(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 wy(t,e,n);return o.id="ec_"+Py++,Ey[o.id]=o,i&&Jo(t,Ry,o.id),yy(o),Xv.trigger("afterinit",o),o}function Vy(t,e){Oy[t]=e}function zy(t){Rt(Iy,t)<0&&Iy.push(t)}function Fy(t,e){jy(Ay,t,e,2e3)}function Gy(t,e){Xv.on(t,e)}function Uy(t,e,n){qt(e)&&(n=e,e="");var i=Kt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Ty[e]||(ue(Qv.test(i)&&Qv.test(e)),ky[i]||(ky[i]={action:n,actionInfo:t}),Ty[e]=i)}function Wy(t,e){jy(Dy,t,e,3e3,"visual")}var Hy=[];function jy(t,e,n,i,r){if((qt(e)||Kt(e))&&(n=e,e=i),"production"!==process.env.NODE_ENV){if(isNaN(e)||null==e)throw new Error("Illegal priority");zt(t,(function(t){ue(t.__raw!==n)}))}if(!(Rt(Hy,n)>=0)){Hy.push(n);var o=jg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Yy(t,e){Ly[t]=e}function qy(t,e,n){var i,r=(i="registerMap","production"!==process.env.NODE_ENV&&(Zv[i]||Co("Implementation of "+i+" doesn't exists.")),Zv[i]);r&&r(t,e,n)}var Xy=function(t){var e=(t=Ot(t)).type,n="";e||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),Ao(n));var i=e.split(":");2!==i.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),Ao(n));var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,gf.set(e,t)};function Zy(t){return null==t?0:t.length||1}function Jy(t){return t}Wy(2e3,Mg),Wy(4500,Tg),Wy(4500,Ag),Wy(2e3,tv),Wy(4500,ev),Wy(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Hv(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=Hv(r,e)}}))})),zy(Ad),Fy(900,(function(t){var e=fe();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Id)})),Yy("default",(function(t,e){Pt(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 Zr,i=new Xs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ul({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 Xs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new lc({shape:{startAngle:-Ig/2,endAngle:-Ig/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*Ig/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ig/2}).delay(300).start("circularInOut"),n.add(r)),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&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Uy({type:"highlight",event:"highlight",update:"highlight"},me),Uy({type:"downplay",event:"downplay",update:"downplay"},me),Uy({type:"select",event:"select",update:"select"},me),Uy({type:"unselect",event:"unselect",update:"unselect"},me),Uy({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},me),Vy("light",qg),Vy("dark",Jg);var Ky=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jy,this._newKeyGetter=i||Jy,this.context=r,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={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Zy(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(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Zy(l),h=Zy(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Zy(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Zy(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Qy=Ky,$y=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 tm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var em=function(t){this.otherDims={},null!=t&&Nt(this,t)},nm=Ho(),im={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rm=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=sm(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return oe(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=Ud(this.source),n=!lm(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=im[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function om(t){return t instanceof rm}function am(t){for(var e=fe(),n=0;n<(t||[]).length;n++){var i=t[n],r=Kt(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function sm(t){var e=nm(t);return e.dimNameMap||(e.dimNameMap=am(t.dimensionsDefine))}function lm(t){return t>30}var um,cm,hm,pm,dm,fm,gm,vm=Kt,ym=Ft,mm="undefined"==typeof Int32Array?Array:Int32Array,_m=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xm=["_approximateExtent"],bm=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 i=!1;om(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Xt(c)?new em({name:c}):c instanceof em?c:new em(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&ue(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=fe();zt(o,(function(t){f.set(r[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 i=this._schema.getSourceDimension(e);return i?i.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(Jt(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 i=n.encode[t];return i?i[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 i,r=this;if(t instanceof kf&&(i=t),!i){var o=this.dimensions,a=Rd(t)||Vt(t)?new Wd(t,o.length):t;i=new kf;var s=ym(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=fe(),o=[],a=[],s={};zt(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&ue(null==Op.get(u));var c=l.coordDimIndex;tm(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),tm(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Op.each((function(t,e){var n=tm(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Ft(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new $y(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),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&gm(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&"typedArray"!==t.getSource().sourceFormat&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&No(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=Vo(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=Vo(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)gm(this,a);um(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){vm(t)?Nt(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=hm(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return cm(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.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,i=this._store;return Yt(t)?i.getValues(ym(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;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 i=n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){qt(t)&&(n=e,e=t,t=[]);var i=n||this,r=ym(pm(t),this._getStoreDimIndex,this);this._store.each(r,i?Ht(e,i):e)},t.prototype.filterSelf=function(t,e,n){qt(t)&&(n=e,e=t,t=[]);var i=n||this,r=ym(pm(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Ht(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={};return zt(Wt(t),(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){qt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=ym(pm(t),this._getStoreDimIndex,this),a=fm(this);return a._store=this._store.map(o,r?Ht(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=this,o=n||i||this;"production"!==process.env.NODE_ENV&&zt(pm(t),(function(t){r.getDimensionInfo(t).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=ym(pm(t),this._getStoreDimIndex,this);this._store.modify(a,o?Ht(e,o):e)},t.prototype.downSample=function(t,e,n,i){var r=fm(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=fm(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 kh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Qy(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return cm(t,e)}),(function(t){return cm(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||{},vm(t)?Nt(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(Yt(r=this.getVisual(e))?r=r.slice():vm(r)&&(r=Nt({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vm(e)?Nt(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){vm(t)?Nt(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?Nt(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=cl(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse((function(i){var r=cl(i);r.seriesIndex=t,r.dataIndex=n,r.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){zt(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ym(this.dimensions,this._getDimInfo,this),this.hostModel)),dm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];qt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(se(arguments)))})},t.internalField=(um=function(t){var e=t._invertedIndicesMap;zt(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new mm(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},hm=function(t,e,n){return Vo(t._getCategory(e,n),null)},cm=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=hm(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},pm=function(t){return Yt(t)||(t=null!=t?[t]:[]),t},fm=function(e){var n=new t(e._schema?e._schema:ym(e.dimensions,e._getDimInfo,e),e.hostModel);return dm(n,e),n},dm=function(t,e){zt(_m.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,zt(xm,(function(n){t[n]=Ot(e[n])})),t._calculationInfo=Nt({},e._calculationInfo)},void(gm=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=hm(t,r,e)),null==s&&null!=o&&(i[e]=s=hm(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),i[e]=s}})),t}(),wm=bm;function Sm(t,e){Rd(t)||(t=Vd(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=fe(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return zt(e,(function(t){var e;Kt(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&lm(a),l=i===t.dimensionsDefine,u=l?sm(t):am(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=fe(c),p=new bf(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=i[t],r=Kt(n)?n:{name:n},a=new em,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each((function(t,e){var n=Do(t).slice();if(1===n.length&&!Xt(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);zt(n,(function(t,n){var r=Xt(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))}))}}));var g=0;function v(t,e,n){null!=Op.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}zt(n,(function(t){var e,n,i,r;if(Xt(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=Nt({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=Do(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++)}zt(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v(Pt(a,r),e,o),null==a.name&&n){var s=n[o];!Kt(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Pt(a.otherDims,i)}))}}));var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var x=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)zt(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=Cm(x,r,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||zp(t,w)!==Lp&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=fe(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new rm({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Cm(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}var Mm=function(t){this.coordSysDims=[],this.axisMap=fe(),this.categoryAxisMap=fe(),this.coordSysName=t};var km={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Xo).models[0],o=t.getReferringComponents("yAxis",Xo).models[0];if("production"!==process.env.NODE_ENV){if(!r)throw new Error('xAxis "'+re(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+re(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Tm(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Tm(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Xo).models[0];if("production"!==process.env.NODE_ENV&&!r)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",r),Tm(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Xo).models[0],o=r.findAxisModel("radiusAxis"),a=r.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),Tm(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Tm(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();zt(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Tm(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Tm(t){return"category"===t.get("type")}function Am(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!om(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,p=!(!t||!t.get("stack"));if(zt(i,(function(t,e){Xt(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;zt(i,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Im(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Dm(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Vd(t)):o="original"===(i=r.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),n=new Mm(e),i=km[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=rd.get(i);return e&&e.coordSysDims&&(n=Ft(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=qt(l)?l:l?jt(Rp,s,e):null,c=Sm(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&zt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=Am(e,{schema:c,store:p}),f=new wm(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if("original"===t.sourceFormat){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!Yt(Eo(e))}}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var Om=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}();ra(Om);var Lm=Om,Em=0,Nm=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Em}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Ft(i,Pm);return new t({categories:r,needCollect:!r,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(!Xt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=fe(this.categories))},t}();function Pm(t){return Kt(t)&&null!=t.value?t.value:t+""}var Rm=Nm;function Bm(t){return"interval"===t.type||"log"===t.type}function Vm(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=po(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Fm(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Gm(t,0,e),Gm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[no(Math.ceil(t[0]/a)*a,s),no(Math.floor(t[1]/a)*a,s)],t),r}function zm(t){var e=Math.pow(10,ho(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,no(n*e)}function Fm(t){return ro(t)+2}function Gm(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Um(t,e){return t>=e[0]&&t<=e[1]}function Wm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Hm(t,e){return t*(e[1]-e[0])+e[0]}var jm=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Rm({})),Yt(i)&&(i=new Rm({categories:Ft(i,(function(t){return Kt(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return lt(e,t),e.prototype.parse=function(t){return null==t?NaN:Xt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Um(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Wm(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Hm(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=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}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}(Lm);Lm.registerClass(jm);var Ym=jm,qm=no,Xm=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 lt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Um(t,this._extent)},e.prototype.normalize=function(t){return Wm(t,this._extent)},e.prototype.scale=function(t){return Hm(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=Fm(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:qm(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=qm(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:qm(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=qm(a.value+(s+1)*u);c>i[0]&&c<i[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=ro(t.value)||0:"auto"===n&&(n=this._intervalPrecision),rp(qm(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=Vm(i,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 i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=qm(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=qm(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Lm);Lm.registerClass(Xm);var Zm=Xm,Jm="undefined"!=typeof Float32Array,Km=Jm?Float32Array:Array;function Qm(t){return Yt(t)?Jm?new Float32Array(t):t:new Km(t)}function $m(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function t_(t){return t.dim+t.index}function e_(t,e){var n=[];return e.eachSeriesByType(t,(function(t){r_(t)&&n.push(t)})),n}function n_(t){var e=function(t){var e={};zt(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return zt(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var p=eo(t.get("barWidth"),i),d=eo(t.get("barMaxWidth"),i),f=eo(t.get("barMinWidth")||(o_(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:t_(r),stackId:$m(t)})})),function(t){var e={};zt(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return zt(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Wt(i).length;o=Math.max(35-4*a,15)+"%"}var s=eo(o,r),l=eo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),zt(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;zt(i,(function(t,e){t.width||(t.width=h),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;zt(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}(n)}function i_(t,e){var n=e_(t,e),i=n_(n);zt(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=$m(t),o=i[t_(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function r_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function o_(t){return t.pipelineContext&&t.pipelineContext.large}var a_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return lt(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Gh(t.value,Ph[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(zh(this._minLevelUnit))]||Ph.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(Xt(n))o=n;else if(qt(n))o=n(t.value,e,{level:t.level});else{var a=Nt({},Nh);if(t.level>0)for(var s=0;s<Rh.length;++s)a[Rh[s]]="{primary|"+a[Rh[s]]+"}";var l=n?!1===n.inherit?n:Pt(n,a):a,u=Uh(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=Bh.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Yt(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 Gh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=Bh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!function(t,e,n,i){var r=co(e),o=co(n),a=function(t){return Wh(r,t,i)===Wh(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}(zh(t),i[0],i[1],n)){l&&(r=[{value:d_(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var p=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/864e5/365)),d=Hh(n),f=Kh(n);break;case"half-year":case"quarter":case"month":p=u_(e),d=jh(n),f=Qh(n);break;case"week":case"half-week":case"day":p=l_(e),d=Yh(n),f=$h(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=c_(e),d=qh(n),f=tp(n);break;case"minute":p=h_(e,!0),d=Xh(n),f=ep(n);break;case"second":p=h_(e,!1),d=Zh(n),f=np(n);break;case"millisecond":p=p_(e),d=Jh(n),f=ip(n)}s(p,c,h,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,p=0,d=0;d<o.length&&a++<r;++d){var f=zh(o[d]);if(Fh(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?zh(o[d+1]):null)){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<c.length;++v){var y=c[v].value;0!==v&&c[v-1].value===y||(g.push(c[v]),y>=i[0]&&y<=i[1]&&h++)}var m=(i[1]-i[0])/e;if(h>1.5*m&&p>m/1.5)break;if(u.push(g),h>m||t===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=r&&So("Exceed safe limit.");var _=Ut(Ft(u,(function(t){return Ut(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],b=_.length-1;for(d=0;d<_.length;++d)for(var w=_[d],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-d});x.sort((function(t,e){return t.value-e.value}));var C=[];for(d=0;d<x.length;++d)0!==d&&x[d].value===x[d-1].value||C.push(x[d]);return C}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),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]-864e5}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=s_.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(s_,this._approxInterval,0,o),o-1);this._interval=s_[a][1],this._minLevelUnit=s_[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Jt(t)?t:+co(t)},e.prototype.contain=function(t){return Um(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Wm(this.parse(t),this._extent)},e.prototype.scale=function(t){return Hm(t,this._extent)},e.type="time",e}(Zm),s_=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function l_(t,e){return(t/=864e5)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function u_(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function c_(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function h_(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function p_(t){return po(t,!0)}function d_(t,e,n){var i=new Date(t);switch(zh(e)){case"year":case"month":i[Qh(n)](0);case"day":i[$h(n)](1);case"hour":i[tp(n)](0);case"minute":i[ep(n)](0);case"second":i[np(n)](0),i[ip(n)](0)}return i.getTime()}Lm.registerClass(a_);var f_=a_,g_=Lm.prototype,v_=Zm.prototype,y_=no,m_=Math.floor,__=Math.ceil,x_=Math.pow,b_=Math.log,w_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Zm,e._interval=0,e}return lt(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return Ft(v_.getTicks.call(this,t),(function(t){var e=t.value,r=no(x_(this.base,e));return r=e===n[0]&&this._fixMin?C_(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?C_(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=b_(t)/b_(n),e=b_(e)/b_(n),v_.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=g_.getExtent.call(this);e[0]=x_(t,e[0]),e[1]=x_(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=C_(e[0],n[0])),this._fixMax&&(e[1]=C_(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=b_(t[0])/b_(e),t[1]=b_(t[1])/b_(e),g_.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 i,r=(i=n,Math.pow(10,ho(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[no(__(e[0]/r)*r),no(m_(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){v_.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 Um(t=b_(t)/b_(this.base),this._extent)},e.prototype.normalize=function(t){return Wm(t=b_(t)/b_(this.base),this._extent)},e.prototype.scale=function(t){return t=Hm(t,this._extent),x_(this.base,t)},e.type="log",e}(Lm),S_=w_.prototype;function C_(t,e){return y_(t,ro(e))}S_.getMinorTicks=v_.getMinorTicks,S_.getLabel=v_.getLabel,Lm.registerClass(w_);var M_=w_,k_=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 i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);qt(r)?this._modelMinNum=I_(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=I_(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(qt(o)?this._modelMaxNum=I_(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=I_(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Yt(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=[Rr(s[0],1),Rr(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=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?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ie(a)||ie(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){"production"!==process.env.NODE_ENV&&ue(!this.frozen),this[A_[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=T_[t];"production"!==process.env.NODE_ENV&&ue(!this.frozen&&null==this[n]),this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),T_={min:"_determinedMin",max:"_determinedMax"},A_={min:"_dataMin",max:"_dataMax"};function I_(t,e){return null==e?null:ie(e)?NaN:t.parse(e)}function D_(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new k_(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=e_("bar",a),l=!1;if(zt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=n_(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[t_(e)];return null!=i&&null!=n?i[$m(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;zt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;zt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function O_(t,e){var n=e,i=D_(t,n),r=i.extent,o=n.get("splitNumber");t instanceof M_&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function L_(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):Xt(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):qt(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(E_(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function E_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function N_(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Ar(t.x,t.y,o,a)}function P_(t){var e=t.get("interval");return null==e?"auto":e}function R_(t){return"category"===t.type&&0===P_(t.getLabelModel())}function B_(t,e){var n={};return zt(t.mapDimensionsAll(e),(function(e){n[function(t,e){return Im(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0})),Wt(n)}var V_=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),z_=[],F_={registerPreprocessor:zy,registerProcessor:Fy,registerPostInit:function(t){Gy("afterinit",t)},registerPostUpdate:function(t){Gy("afterupdate",t)},registerUpdateLifecycle:Gy,registerAction:Uy,registerCoordinateSystem:function(t,e){rd.register(t,e)},registerLayout:function(t,e){jy(Dy,t,e,1e3,"layout")},registerVisual:Wy,registerTransform:Xy,registerLoading:Yy,registerMap:qy,registerImpl:function(t,e){"production"!==process.env.NODE_ENV&&Zv[t]&&Co("Already has an implementation of "+t+"."),Zv[t]=e},PRIORITY:Kv,ComponentModel:Tp,ComponentView:rg,SeriesModel:ng,ChartView:fg,registerComponentModel:function(t){Tp.registerClass(t)},registerComponentView:function(t){rg.registerClass(t)},registerSeriesModel:function(t){ng.registerClass(t)},registerChartView:function(t){fg.registerClass(t)},registerSubTypeDefaulter:function(t,e){Tp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Jr[t]=n}};function G_(t){Yt(t)?zt(t,(function(t){G_(t)})):Rt(z_,t)>=0||(z_.push(t),qt(t)&&(t={install:t}),t.install(F_))}function U_(t,e){return Math.abs(t-e)<1e-8}function W_(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=xs(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return U_(r[0],s[0])&&U_(r[1],s[1])||(i+=xs(r[0],r[1],s[0],s[1],e,n)),0!==i}var H_=[];function j_(t,e){for(var n=0;n<t.length;n++)De(t[n],t[n],e)}function Y_(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Oe(e,e,o),Le(n,n,o))}}var q_=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},Z_=function(t){this.type="linestring",this.points=t},J_=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return lt(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return e?[n/e/3,i/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],i=[-1/0,-1/0];return zt(this.geometries,(function(e){"polygon"===e.type?Y_(e.exterior,n,i,t):zt(e.points,(function(e){Y_(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new Ar(n[0],n[1],i[0]-n[0],i[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 i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(W_(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(W_(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Ar(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(j_(c.exterior,s),zt(c.interiors,(function(t){j_(t,s)}))):zt(c.points,(function(t){j_(t,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.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}(q_),K_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return lt(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],i=nr(H_),r=t;r&&!r.isGeoSVGGraphicRoot;)rr(i,r.getLocalTransform(),i),r=r.parent;return lr(i,i),De(n,n,i),n},e}(q_);function Q_(t,e,n){for(var i=0;i<t.length;i++)t[i]=$_(t[i],e[i],n)}function $_(t,e,n){for(var i=[],r=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),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function tx(t,e){return Ft(Ut((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),zt(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=$_(r,i,n);break;case"Polygon":case"MultiLineString":Q_(r,i,n);break;case"MultiPolygon":zt(r,(function(t,e){return Q_(t,i[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,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new X_(o[0],o.slice(1)));break;case"MultiPolygon":zt(i.coordinates,(function(t){t[0]&&r.push(new X_(t[0],t.slice(1)))}));break;case"LineString":r.push(new Z_([i.coordinates]));break;case"MultiLineString":r.push(new Z_(i.coordinates))}var a=new J_(n[e||"name"],r,n.cp);return a.properties=n,a}))}var ex=Ho();function nx(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=rx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=L_(t);return{labels:Ft(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function ix(t,e){return"category"===t.type?function(t,e){var n,i,r=ox(t,"ticks"),o=P_(e),a=ax(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(qt(o))n=ux(t,o,!0);else if("auto"===o){var s=rx(t,t.getLabelModel());i=s.labelCategoryInterval,n=Ft(s.labels,(function(t){return t.tickValue}))}else n=lx(t,i=o,!0);return sx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:Ft(t.scale.getTicks(),(function(t){return t.value}))}}function rx(t,e){var n,i,r=ox(t,"labels"),o=P_(e),a=ax(r,o);return a||(qt(o)?n=ux(t,o):(i="auto"===o?function(t){var e=ex(t).autoInterval;return null!=e?e:ex(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=lx(t,i)),sx(r,o,{labels:n,labelCategoryInterval:i}))}function ox(t,e){return ex(t)[e]||(ex(t)[e]=[])}function ax(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function sx(t,e,n){return t.push({key:e,value:n}),n}function lx(t,e,n){var i=L_(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=R_(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&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:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function ux(t,e,n){var i=t.scale,r=L_(t),o=[];return zt(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var cx=[0,1],hx=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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},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,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+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,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&px(n=n.slice(),i.count()),to(t,cx,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&px(n=n.slice(),i.count());var r=to(t,n,cx,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Ft(ix(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,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;zt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=no(t),e=no(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),Ft(this.scale.getMinorTicks(t),(function(t){return Ft(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return nx(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/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=L_(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.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(i)),h=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,v=Lr(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var y=p/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=ex(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}(this)},t}();function px(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var dx=hx;function fx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}ps.CMD;var gx=new mr,vx=new mr,yx=new mr,mx=new mr,_x=new mr,xx=[],bx=new mr;function Sx(t,e){if(e<=180&&e>0){e=e/180*Math.PI,gx.fromArray(t[0]),vx.fromArray(t[1]),yx.fromArray(t[2]),mr.sub(mx,gx,vx),mr.sub(_x,yx,vx);var n=mx.len(),i=_x.len();if(!(n<.001||i<.001)){mx.scale(1/n),_x.scale(1/i);var r=mx.dot(_x);if(Math.cos(e)<r){var o=fx(vx.x,vx.y,yx.x,yx.y,gx.x,gx.y,xx,!1);bx.fromArray(xx),bx.scaleAndAdd(_x,o/Math.tan(Math.PI-e));var a=yx.x!==vx.x?(bx.x-vx.x)/(yx.x-vx.x):(bx.y-vx.y)/(yx.y-vx.y);if(isNaN(a))return;a<0?mr.copy(bx,vx):a>1&&mr.copy(bx,yx),bx.toArray(t[1])}}}}function Cx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,gx.fromArray(t[0]),vx.fromArray(t[1]),yx.fromArray(t[2]),mr.sub(mx,vx,gx),mr.sub(_x,yx,vx);var i=mx.len(),r=_x.len();if(!(i<.001||r<.001))if(mx.scale(1/i),_x.scale(1/r),mx.dot(e)<Math.cos(n)){var o=fx(vx.x,vx.y,yx.x,yx.y,gx.x,gx.y,xx,!1);bx.fromArray(xx);var a=Math.PI/2,s=a+Math.acos(_x.dot(e))-n;if(s>=a)mr.copy(bx,yx);else{bx.scaleAndAdd(_x,o/Math.tan(Math.PI/2-s));var l=yx.x!==vx.x?(bx.x-vx.x)/(yx.x-vx.x):(bx.y-vx.y)/(yx.y-vx.y);if(isNaN(l))return;l<0?mr.copy(bx,vx):l>1&&mr.copy(bx,yx)}bx.toArray(t[1])}}}function Mx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function kx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Te(i[0],i[1]),o=Te(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Ie([],i[1],i[0],a/r),l=Ie([],i[1],i[2],a/o),u=Ie([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Tx(t,e,n,i){return function(t,e,n,i,r,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,h=0;h<a;h++){var p=t[h],d=p.rect;(s=d[e]-l)<0&&(d[e]-=s,p.label[e]-=s,u=!0),c+=Math.max(-s,0),l=d[e]+d[n]}c>0&&o&&x(-c/a,0,a);var f,g,v=t[0],y=t[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),_(f,g,1),_(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=v.rect[e]-i,g=r-y.rect[e]-y.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function x(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++)x(o[l]*h,0,l+1);else for(l=a-1;l>0;l--)x(-o[l-1]*h,l,a)}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,i)}var Ax=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ix(t,e){return n=Object.create(null),Ax.forEach((function(i){n[i]=function(n){return function(){if(t.value||e(),!t.value)throw new Error("ECharts is not initialized yet.");for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return t.value[n].apply(t.value,r)}}(i)})),n;var n}function Dx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ox,Lx={exports:{}},Ex={exports:{}};(Ox=Ex).exports=function(t){if(Array.isArray(t))return t},Ox.exports.__esModule=!0,Ox.exports.default=Ox.exports;var Nx={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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports}(Nx);var Px={exports:{}},Rx={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i},t.exports.__esModule=!0,t.exports.default=t.exports}(Rx),function(t){var e=Rx.exports;t.exports=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(Px);var Bx={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}(Bx),function(t){var e=Ex.exports,n=Nx.exports,i=Px.exports,r=Bx.exports;t.exports=function(t,o){return e(t)||n(t,o)||i(t,o)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(Lx);var Vx=Dx(Lx.exports);var zx={autoresize:Boolean};var Fx={loading:Boolean,loadingOptions:Object};function Gx(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}Gx("x-vue-echarts{display:block;height:100%;width:100%}");var Ux=/^on[^a-z]/,Wx=function(t){return Ux.test(t)};var Hx=o({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},zx),Fx),inheritAttrs:!1,setup:function(o,c){var p=c.attrs,d=c.listeners,f=a(),g=a(),v=a(),y=e("ecTheme",null),m=e("ecInitOptions",null),_=e("ecUpdateOptions",null),x=s(o),b=x.autoresize,w=x.manualUpdate,S=x.loading,C=x.loadingOptions,M=n((function(){return v.value||o.option||Object.create(null)})),k=n((function(){return o.theme||i(y)||{}})),T=n((function(){return o.initOptions||i(m)||{}})),A=n((function(){return o.updateOptions||i(_)||{}})),I=n((function(){return function(t){var e={};for(var n in t)Wx(n)||(e[n]=t[n]);return e}(p)}));function D(t){if(!g.value&&f.value){var e=g.value=By(f.value,k.value,T.value);o.group&&(e.group=o.group);var n=d;n||(n={},Object.keys(p).filter((function(t){return 0===t.indexOf("on")&&t.length>2})).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);n[e]=p[t]}))),Object.keys(n).forEach((function(t){var i=n[t];i&&(0===t.indexOf("zr:")?e.getZr().on(t.slice(3).toLowerCase(),i):e.on(t.toLowerCase(),i))})),b.value?h((function(){!function(){if(e&&!e.isDisposed())try{e.resize()}catch(t){if("Cannot read property 'get' of undefined"===t.message)return;throw t}}(),i()})):i()}function i(){e.setOption(t||M.value,A.value)}}function O(){g.value&&(g.value.dispose(),g.value=void 0)}var L=null;t(w,(function(e){"function"==typeof L&&(L(),L=null),e||(L=t((function(){return o.option}),(function(t){t&&(g.value?g.value.setOption(t,A.value):D())}),{deep:!0}))}),{immediate:!0}),t([k,T],(function(){O(),D()}),{deep:!0}),r((function(){o.group&&g.value&&(g.value.group=o.group)}));var E=Ix(g,D);return function(t,o,a){var s=e("ecLoadingOptions",{}),l=n((function(){return Object.assign(Object.assign({},i(s)),null==a?void 0:a.value)}));r((function(){var e=t.value;e&&(o.value?e.showLoading(l.value):e.hideLoading())}))}(g,S,C),function(e,n,i){var r=null;t([i,e,n],(function(t,e,n){var i=Vx(t,3),o=i[0],a=i[1],s=i[2];o&&a&&s&&(r=yg((function(){a.resize()}),100),R(o,r)),n((function(){r&&o&&B(o,r)}))}))}(g,b,f),l((function(){o.option&&D()})),u(O),Object.assign({chart:g,root:f,setOption:function(t,e){o.manualUpdate&&(v.value=t),g.value?g.value.setOption(t,e||{}):D(t)},nonEventAttrs:I},E)},render:function(){var t=Object.assign({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",c("x-vue-echarts",t)}});function jx(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 Yx(t){return t<=1?"".concat(100*Number(t),"%"):t}function qx(t){return 1===t.length?"0"+t:String(t)}function Xx(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 Zx(t){return Jx(t)/255}function Jx(t){return parseInt(t,16)}var Kx={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 Qx(t){var e,n,i,r={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(Kx[t])t=Kx[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=nb.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=nb.rgba.exec(t))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=nb.hsl.exec(t))return{h:n[1],s:n[2],l:n[3]};if(n=nb.hsla.exec(t))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=nb.hsv.exec(t))return{h:n[1],s:n[2],v:n[3]};if(n=nb.hsva.exec(t))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=nb.hex8.exec(t))return{r:Jx(n[1]),g:Jx(n[2]),b:Jx(n[3]),a:Zx(n[4]),format:e?"name":"hex8"};if(n=nb.hex6.exec(t))return{r:Jx(n[1]),g:Jx(n[2]),b:Jx(n[3]),format:e?"name":"hex"};if(n=nb.hex4.exec(t))return{r:Jx(n[1]+n[1]),g:Jx(n[2]+n[2]),b:Jx(n[3]+n[3]),a:Zx(n[4]+n[4]),format:e?"name":"hex8"};if(n=nb.hex3.exec(t))return{r:Jx(n[1]+n[1]),g:Jx(n[2]+n[2]),b:Jx(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(ib(t.r)&&ib(t.g)&&ib(t.b)?(e=t.r,n=t.g,i=t.b,r={r:255*jx(e,255),g:255*jx(n,255),b:255*jx(i,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):ib(t.h)&&ib(t.s)&&ib(t.v)?(a=Yx(t.s),s=Yx(t.v),r=function(t,e,n){t=6*jx(t,360),e=jx(e,100),n=jx(n,100);var i=Math.floor(t),r=t-i,o=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),l=i%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"):ib(t.h)&&ib(t.s)&&ib(t.l)&&(a=Yx(t.s),l=Yx(t.l),r=function(t,e,n){var i,r,o;if(t=jx(t,360),e=jx(e,100),n=jx(n,100),0===e)r=n,o=n,i=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;i=Xx(s,a,t+1/3),r=Xx(s,a,t),o=Xx(s,a,t-1/3)}return{r:255*i,g:255*r,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(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:o}}var $x="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),tb="[\\s|\\(]+(".concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")\\s*\\)?"),eb="[\\s|\\(]+(".concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")[,|\\s]+(").concat($x,")\\s*\\)?"),nb={CSS_UNIT:new RegExp($x),rgb:new RegExp("rgb"+tb),rgba:new RegExp("rgba"+eb),hsl:new RegExp("hsl"+tb),hsla:new RegExp("hsla"+eb),hsv:new RegExp("hsv"+tb),hsva:new RegExp("hsva"+eb),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 ib(t){return Boolean(nb.CSS_UNIT.exec(String(t)))}var rb=[{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 ob(t){var e=function(t,e,n){t=jx(t,255),e=jx(e,255),n=jx(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,a=i,s=i-r,l=0===i?0:s/i;if(i===r)o=0;else{switch(i){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 ab(t){var e=t.r,n=t.g,i=t.b;return"#".concat(function(t,e,n,i){var r=[qx(Math.round(t).toString(16)),qx(Math.round(e).toString(16)),qx(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}(e,n,i,!1))}function sb(t,e,n){var i=n/100;return{r:(e.r-t.r)*i+t.r,g:(e.g-t.g)*i+t.g,b:(e.b-t.b)*i+t.b}}function lb(t,e,n){var i;return(i=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?i+=360:i>=360&&(i-=360),i}function ub(t,e,n){return 0===t.h&&0===t.s?t.s:((i=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(i=1),n&&5===e&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function cb(t,e,n){var i;return(i=n?t.v+.05*e:t.v-.15*e)>1&&(i=1),Number(i.toFixed(2))}function hb(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=Qx(t),r=5;r>0;r-=1){var o=ob(i),a=ab(Qx({h:lb(o,r,!0),s:ub(o,r,!0),v:cb(o,r,!0)}));n.push(a)}n.push(ab(i));for(var s=1;s<=4;s+=1){var l=ob(i),u=ab(Qx({h:lb(l,s),s:ub(l,s),v:cb(l,s)}));n.push(u)}return"dark"===e.theme?rb.map((function(t){var i=t.index,r=t.opacity;return ab(sb(Qx(e.backgroundColor||"#141414"),Qx(n[i]),100*r))})):n}var pb={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"},db={},fb={};Object.keys(pb).forEach((function(t){db[t]=hb(pb[t]),db[t].primary=db[t][5],fb[t]=hb(pb[t],{theme:"dark",backgroundColor:"#141414"}),fb[t].primary=fb[t][5]})),db.red,db.volcano,db.gold,db.orange,db.yellow,db.lime,db.green,db.cyan,db.blue,db.geekblue,db.purple,db.magenta,db.grey;var gb=[],vb=[];function yb(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,i=!0===e.prepend?"prepend":"append",r=void 0!==e.container?e.container:document.querySelector("head"),o=gb.indexOf(r);return-1===o&&(o=gb.push(r)-1,vb[o]={}),void 0!==vb[o]&&void 0!==vb[o][i]?n=vb[o][i]:(n=vb[o][i]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===i?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}function mb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){_b(t,e,n[e])}))}return t}function _b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xb(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 bb(t){return"object"==typeof t&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"==typeof t.icon||"function"==typeof t.icon)}function wb(t,e,n){return c(t.tag,n?mb({key:e},n,t.attrs):mb({key:e},t.attrs),(t.children||[]).map((function(n,i){return wb(n,"".concat(e,"-").concat(t.tag,"-").concat(i))})))}function Sb(t){return hb(t)[0]}function Cb(t){return t?Array.isArray(t)?t:[t]:[]}var Mb="\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",kb=!1,Tb=["icon","primaryColor","secondaryColor"];function Ab(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ib(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Db(t,e,n[e])}))}return t}function Db(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ob={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Lb=function(t,e){var n=Ib({},t,e.attrs),i=n.icon,r=n.primaryColor,o=n.secondaryColor,a=Ab(n,Tb),s=Ob;if(r&&(s={primaryColor:r,secondaryColor:o||Sb(r)}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mb;h((function(){kb||("undefined"!=typeof window&&window.document&&window.document.documentElement&&yb(t,{prepend:!0}),kb=!0)}))}(),xb(bb(i),"icon should be icon definiton, but got ".concat(i)),!bb(i))return null;var l=i;return l&&"function"==typeof l.icon&&(l=Ib({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),wb(l.icon,"svg-".concat(l.name),Ib({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Lb.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Lb.inheritAttrs=!1,Lb.displayName="IconBase",Lb.getTwoToneColors=function(){return Ib({},Ob)},Lb.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;Ob.primaryColor=e,Ob.secondaryColor=n||Sb(e),Ob.calculated=!!n};var Eb=Lb;function Nb(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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pb(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 Pb(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 Pb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Rb(t){var e=Nb(Cb(t),2),n=e[0],i=e[1];return Eb.setTwoToneColors({primaryColor:n,secondaryColor:i})}var Bb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Vb(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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zb(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 zb(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 zb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Gb(t,e,n[e])}))}return t}function Gb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ub(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}Rb("#1890ff");var Wb=function(t,e){var n,i=Fb({},t,e.attrs),r=i.class,o=i.icon,a=i.spin,s=i.rotate,l=i.tabindex,u=i.twoToneColor,c=i.onClick,h=Ub(i,Bb),d=(Gb(n={anticon:!0},"anticon-".concat(o.name),Boolean(o.name)),Gb(n,r,r),n),f=""===a||a||"loading"===o.name?"anticon-spin":"",g=l;void 0===g&&c&&(g=-1,h.tabindex=g);var v=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,y=Vb(Cb(u),2),m=y[0],_=y[1];return p("span",Fb({role:"img","aria-label":o.name},h,{onClick:c,class:d}),[p(Eb,{class:f,icon:o,primaryColor:m,secondaryColor:_,style:v},null)])};Wb.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Wb.displayName="AntdIcon",Wb.inheritAttrs=!1,Wb.getTwoToneColor=function(){var t=Eb.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},Wb.setTwoToneColor=Rb;var Hb=Wb,jb={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 Yb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){qb(t,e,n[e])}))}return t}function qb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xb=function(t,e){var n=Yb({},t,e.attrs);return p(Hb,Yb({},n,{icon:jb}),null)};Xb.displayName="LoadingOutlined",Xb.inheritAttrs=!1;var Zb=Xb,Jb=o({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:V},setup:function(){return{indicator:c(Zb,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Kb={class:"spin-wrapper"};Gx(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),Jb.render=function(t,e,n,i,r,o){var a=d("a-spin");return f(),g("div",Kb,[t.spinning?(f(),v(a,{key:0,class:"spin",spinning:t.spinning,indicator:t.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):y(t.$slots,"default",{key:1})])},Jb.__file="src/common/spin/Spin.vue";var Qb=o({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:z}});Qb.render=function(t,e,n,i,r,o){var a=d("a-skeleton");return f(),v(a,{active:"",loading:t.loading},{default:m((function(){return[y(t.$slots,"default")]})),_:3},8,["loading"])},Qb.__file="src/common/skeleton/Skeleton.vue";var $b={exports:{}},tw={exports:{}};!function(t){var e=Rx.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(tw);var ew={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}(ew);var nw={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}(nw),function(t){var e=tw.exports,n=ew.exports,i=Px.exports,r=nw.exports;t.exports=function(t){return e(t)||n(t)||i(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}($b);var iw=Dx($b.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var rw=function(t,e){if(t.install=function(n){for(var i=0,r=[t].concat(iw(Object.values(null!=e?e:{})));i<r.length;i++){var o=r[i];n.component(o.name,o)}},e)for(var n=0,i=Object.entries(e);n<i.length;n++){var r=Vx(i[n],2),o=r[0],a=r[1];t[o]=a}return t},ow={exports:{}};!function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.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,i){var r=e&&e.prototype instanceof v?e:v,o=Object.create(r.prototype),a=new A(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=M(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(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?f:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=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 h="suspendedStart",p="suspendedYield",d="executing",f="completed",g={};function v(){}function y(){}function m(){}var _={};l(_,o,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(I([])));b&&b!==n&&i.call(b,o)&&(_=b);var w=m.prototype=v.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function M(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,M(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 r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 k(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(k,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 r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],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 y.prototype=m,l(w,"constructor",m),l(m,"constructor",y),y.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(C.prototype),l(C.prototype,a,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new C(u(e,n,i,r),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 i=e.pop();if(i in t)return n.value=i,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)&&i.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 r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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 i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"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)}}(ow);var aw,sw,lw=ow.exports,uw={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"},cw=function(t){return Q(t,(function(t){return null==t?{}:{type:t.constructor,default:t}}))},hw={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},pw=cw(hw),dw=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],fw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tt.apply(void 0,[dw].concat(iw(e)));return n((function(){return $(t,i)}))},gw=(null===(aw=null===window||void 0===window?void 0:window.config)||void 0===aw?void 0:aw.uploadPath)||"/api",vw=(null===(sw=null===window||void 0===window?void 0:window.config)||void 0===sw?void 0:sw.baseUrl)||"./",yw=function(n,i){t((function(){return n.id}),(function(t,n){var r=e("EVENT_BUS",{onEvent:function(t,e){},offEvent:function(t){}});null!=n&&""!==n&&r.offEvent(n),null!=t&&""!==t&&r.onEvent(t,i)}),{immediate:!0})},mw=function(t){var n=e("EVENT_BUS",{emitEvent:function(t,e){}});return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(i.call.apply(i,[this].concat(Array.prototype.slice.call(arguments))),n){var r=n.emitEvent;t.forEach((function(t){if(e===t.on)try{r(t.target,t.emit)}catch(t){console.error(t)}}))}}}};function _w(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 xw(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 xw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 xw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var bw=function(t,e){var n=e||{},i=n.name,r=void 0===i?"name":i,o=n.value,a=void 0===o?"value":o,s=n.type,l=void 0===s?"type":s;r=null==r?void 0:r.trim(),a=null==a?void 0:a.trim(),l=null==l?void 0:l.trim();for(var u=new Set,c=new Map,h=t.length,p=0;p<h;p++){var d=t[p],f=d[r]||"",g=d[a]||"",v=d[l]||"";if(u.add(f),c.has(v)){var y=c.get(v);y.push(Object.assign({name:f,value:g},d)),c.set(v,y)}else c.set(v,[Object.assign({name:f,value:g},d)])}var m,_=Array.from(u),x=[],b=_w(c);try{for(b.s();!(m=b.n()).done;){var w=Vx(m.value,2),S=w[0],C=w[1];x.push({name:S,data:C})}}catch(t){b.e(t)}finally{b.f()}return{dimensions:_,dataset:x}},ww={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}(ww);var Sw=Dx(ww.exports),Cw=function(t){return t.replace(/\\n/g,"\n")},Mw=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,")},kw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t+"";if(n.includes("%"))return t;var i=parseFloat(n);return isNaN(i)?t:"".concat((100*i).toFixed(e),"%")},Tw=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLocaleLowerCase().includes(e.toLocaleLowerCase())},Aw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=t.requestUrl,o=t.requestMethod,a=t.requestHeaders,s=t.requestParams,l=t.requestInterval,c=t.isOpenRequestTimer,h=e("GLOBAL_CONFIG",{contextRequestUrl:"",pageMode:"normal"}),p=h.contextRequestUrl,d=h.pageMode,f=e("GLOBAL_MODEL",{getGlobalModel:function(t){}}),g=f.getGlobalModel,v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ut(void 0,void 0,void 0,lw.mark((function e(){var l,u,c,h,f,v;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&o&&a&&"design"!==i(d)){e.next=2;break}return e.abrupt("return");case 2:return l={},s.forEach((function(t){var e=t.key,n=t.value;if("object"===Sw(n)&&n.id){var r=g(n.id)||{},o=n.prop,a=n.propKey,s=null!=r[o]?r[o]:{},u=["date","range"].some((function(t){return Tw(null==r?void 0:r.type,t)}));null==a||""===a||u||(s=r[o][a]);var c=i(s);u&&null!=a&&""!==a&&(c=(null==c?void 0:c.format((null==a?void 0:a.trim())||r.format))||""),l[e]=c}else"string"==typeof n&&(l[e]=n)})),l=Object.assign(Object.assign({},l),t),u="",c=Object.keys(l),h=c.length-1,c.forEach((function(t,e){switch(e){case 0:u+="?".concat(t,"=").concat(l[t],"&");break;case h:u+="".concat(t,"=").concat(l[t]);break;default:u+="".concat(t,"=").concat(l[t],"&")}})),e.prev=9,f=["get","head"].includes(o),e.next=13,nt({baseURL:i(p),url:f?r+u:r,method:o,headers:a,data:f?{}:l});case 13:return v=e.sent,n(v),e.abrupt("return",v);case 18:e.prev=18,e.t0=e.catch(9),console.error(e.t0);case 21:case"end":return e.stop()}}),e,null,[[9,18]])})))},y=c&&setInterval(v,1e3*l);return u((function(){clearInterval(y)})),v};function Iw(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 Dw(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 Dw(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 Dw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ow=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},i=n.name,r=void 0===i?"name":i,o=n.types,a=void 0===o?[]:o;r=(null==r?void 0:r.trim())||r;var s=new Set,l=new Map,u=t.length,c=a.length;if(1===u){for(var h=[],p=0;p<c;p++){var d=a[p],f=d.label,g=d.value,v=t[0][g];s.add(f),h.push(v)}var y=t[0][r]||"";l.set(y,h)}else for(var m=0;m<u;m++){var _=t[m],x=_[r];s.add(x);for(var b=0;b<c;b++){var w=a[b],S=w.label,C=w.value,M=_[C];if(l.has(S)){var k=l.get(S);k.push(M),l.set(S,k)}else l.set(S,[M])}}var T,A=Array.from(s),I=[],D=Iw(l);try{for(D.s();!(T=D.n()).done;){var O=Vx(T.value,2),L=O[0],E=O[1];I.push({name:L,data:E})}}catch(t){D.e(t)}finally{D.f()}return{dimensions:A,dataset:I}},Lw=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:gw+t,e&&(n="url(".concat(n,")")),n},Ew=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null!==(e=window.config)&&void 0!==e?e:{};n=Object.assign(Object.assign({},i),n);var r=t.match(/\{.*?\}/g);if(null==r||0===r.length)return t;for(var o=0;o<r.length;o++){var a=r[o],s=a.slice(1,a.length-1),l=n[s];t=null!=l?t.replace(a,l):t.replace(a,"")}return t},Nw=nt.create({});Nw.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),Nw.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)&&F.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"))F.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{var e=t.response.status;e>=400&&e<500&&F.error({content:"请求异常",key:"REQUEST_ERROR"}),e>=500&&F.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(t)}));var Pw=function(t){var n=t.type,i=t.graphicConfig,r=e("GLOBAL_MODEL",{getGlobalModel:function(t){}}).getGlobalModel;function o(t){var e=[];return t.leftAxisList.forEach((function(n){var i=!1;t.leftAxis.includes(n.name)&&(i=!0);var r={label:n.name,columnName:n.label,aggregate:n.calcValue?n.calcValue:"SUM",order:null,location:"LEFT",show:i};"INDICATOR_LIB"===t.source&&(r.hrpIndexCode=n.indexCode),r=a(n,r),e.push(r)})),t.rightAxisList.forEach((function(n){var i=!1;t.rightAxis.includes(n.name)&&(i=!0);var r={label:n.name,columnName:n.label,aggregate:"SUM",order:null,location:"LEFT",show:i};r=a(n,r),"INDICATOR_LIB"===t.source&&(r.hrpIndexCode=n.indexCode),e.push(r)})),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,i=0;i<n.length;i++){var o={alias:n[i].keyName,fieldName:n[i].searchName,rule:n[i].searchType||"NONE",fieldValue:"",valueType:"",variateName:n[i].variateName},a=r(n[i].id)||{};"the_date"===n[i].searchName?o.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(n[i].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 i="";i="and"===t.type?"&&":"||",e.push({conditions:[],join:i}),u(t.children[n],e[e.length-1].conditions)}else if(t.children[n].fieldName){var r="",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(r=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&&(r="#######",o.calcWays=t.children[n].calcWays):"component"===t.children[n].selectType&&(r="${"+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(r)){for(var a=[],s=0;s<r.length;s++)"全选"!==r[s]&&a.push(r[s]);r=a.join(",")}o.fieldValue=r,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 i=n[e].find((function(e){return e.name===t.label}));if(i){var r=[],o=i.filterList;if(o)for(var a=0;a<o.length;a++)o[a].children.length>0&&u(o[a],r);return r}}}return function(){return ut(this,void 0,void 0,lw.mark((function t(){var e,r,a,u,h,p,d,f,g,v,y,m,_,x;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i||(i={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]}),e=i.classify,0!==[].concat(iw(i.leftAxis),iw(i.rightAxis)).length){t.next=5;break}return t.abrupt("return");case 5:for(r=o(i),i.series.length>0&&(u=i.seriesList.find((function(t){return t.name===i.series[0]||t.nameBak===i.series[0]})),a={label:u.name,columnName:u.label}),e.length>0&&(h={label:e[0],columnName:e[0]},p=i.classifyList.find((function(t){return t.name===e[0]||t.nameBak===e[0]}))||{},h.columnName=p.label,l(h,i.classifyList),h.conditions=c(h,"classifyList",i)||[]),a&&(l(a,i.seriesList),a.conditions=c(a,"seriesList",i)||[]),d=0;d<r.length;d++)"RIGHT"===r[d].location?r[d].conditions=c(r[d],"rightAxisList",i):r[d].conditions=c(r[d],"leftAxisList",i);return f=s(i),g="SQL_VIEW",v="",y="",m="","INDICATOR_LIB"===i.source&&(g="INDICATOR_LIB",v=i.fixedDimSql,y=i.dataSourceId,m=i.idxLibMode),_={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"},t.prev=17,t.next=20,Nw.get("".concat("http://59.56.182.79:9192/api/","/user/anonymous?username=admin"),{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});case 20:return x=t.sent,t.abrupt("return",Nw.post("".concat("http://59.56.182.79:9192/api/","/diagram"),{dataViewId:i.dataViewId,plugin:"1",layer:"2",chartType:_[n],classification:h,classifications:undefined,indicatorList:r,series:a,sqlConditions:f,source:g,fixedDimSql:v,dataSourceId:y,idxLibMode:m},{headers:{Authentication:x.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]])})))}},Rw=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 i=0;i<n.length;i++){var r=n[i];if(null==r||""===r)break;var o=r.slice(1,-1);o=null==o?void 0:o.replace(/value/g,e);var a=eval,s=a(o);t=t.replace(r,s)}return t},Bw=o({name:"EcanPageConfig",props:Object.assign({},pw),setup:function(t){var e,i=this,r=n((function(){return{width:t.width,height:t.height,backgroundColor:t.backgroundColor,backgroundImage:Lw(t.backgroundImage,!0),backgroundSize:t.backgroundSize}})),o=_(0),a=_(0),s=_(0),c=_(0),p=_(!1),d=_(),f=function(){return new Promise((function(e){h((function(){t.width&&t.height?(o.value=parseFloat(t.width),a.value=parseFloat(t.height)):(o.value=d.value.clientWidth,a.value=d.value.clientHeight),s.value&&c.value||(s.value=window.screen.width,c.value=window.screen.height),e()}))}))},g=function(){var t=document.body.clientWidth,e=document.body.clientHeight,n=t/(o.value||s.value),i=e/(a.value||c.value);d.value&&(d.value.style.transform="scale(".concat(n,", ").concat(i,")"))},v=function(){return ut(i,void 0,void 0,lw.mark((function t(){return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f();case 2:g();case 3:case"end":return t.stop()}}),t)})))};return l((function(){return ut(i,void 0,void 0,lw.mark((function t(){return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.value=!1,t.next=3,f();case 3:o.value&&a.value?(d.value.style.width="".concat(o.value,"px"),d.value.style.height="".concat(a.value,"px")):(d.value.style.width="".concat(s.value,"px"),d.value.style.height="".concat(c.value,"px")),g(),window.addEventListener("resize",et(v,100)),n=void 0,n=window.MutationObserver,(e=new n(v)).observe(d.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),p.value=!0;case 8:case"end":return t.stop()}var n}),t)})))})),u((function(){window.removeEventListener("resize",v),e&&(e.disconnect(),e.takeRecords(),e=null)})),{style:r,container:d,ready:p}}}),Vw={id:"container",ref:"container"};Gx("#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}"),Bw.render=function(t,e,n,i,r,o){return f(),g("div",Vw,[t.ready?(f(),g("div",{key:0,class:"page-config",style:x(t.style)},[y(t.$slots,"default")],4)):b("v-if",!0)],512)},Bw.__scopeId="data-v-f2b96d90",Bw.__file="src/setting/page-config/PageConfig.vue";var zw=rw(Bw),Fw={contextRequestUrl:"",pageMode:"normal",theme:"light"},Gw=cw(Fw),Uw=o({name:"EcanProviderConfig",props:Object.assign({},Gw),setup:function(e,i){var r=this,o=i.expose,a=_(),s=function(){a.value.setAttribute("datav-theme",e.theme)};t((function(){return e.theme}),(function(){s()})),l((function(){s()}));var c=n((function(){return Ew(e.contextRequestUrl)})),h=n((function(){return e.pageMode})),p=n((function(){return e.theme}));w("GLOBAL_CONFIG",{contextRequestUrl:c,pageMode:h,theme:p});var d=new Map;w("GLOBAL_MODEL",{getGlobalModel:function(t){return d.get(t)},setGlobalModel:function(t,e){d.set(t,e)}});var f=it();w("EVENT_BUS",{onEvent:function(t,e){f.on(t,(function(t){return"[object Function]"===Object.prototype.toString.call(e[t])&&e[t]()})),u((function(){f.off(t)}))},offEvent:function(t){f.off(t)},emitEvent:function(t,e){f.emit(t,e)}});var g=new Map,v=function(t){return new Promise((function(e,n){var i=t.map((function(t){return t()}));Promise.all(i).then((function(t){e(t)})).catch((function(t){n(t)}))}))},y=function(){return ut(r,void 0,void 0,lw.mark((function t(){var e,n,i,r;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=Array.from(g)).sort((function(t,e){return e[0]-t[0]})),n=e.length,t.prev=3,i=0;case 5:if(!(i<n)){t.next=12;break}return r=e[i][1],t.next=9,v(r);case 9:i++,t.next=5;break;case 12:g.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 w("REQUEST_MODEL",{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(g.has(e)){var n=g.get(e);null==n||n.push(t)}else g.set(e,[t])},touchRequest:y}),o({touchRequest:y}),{providerConfig:a}}}),Ww={id:"ProviderConfig",ref:"providerConfig"};Uw.render=function(t,e,n,i,r,o){return f(),g(S,null,[b(" 请勿去除属性id "),C("div",Ww,[y(t.$slots,"default")],512)],2112)},Uw.__file="src/setting/provider-config/ProviderConfig.vue";var Hw=rw(Uw),jw=Object.assign(Object.assign({},uw),{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:{}}),Yw=cw(jw),qw=["refreshData","click"],Xw=o({name:"EcanText",components:{Skeleton:Qb},props:Object.assign({},Yw),setup:function(t){var r=this,o=fw(t),a=_(t.data),s=n((function(){var e=t.text,n=i(a),r=e.match(/\{.*?\}/g);if(null==r||0===r.length)return e;for(var o=0;o<r.length;o++){var s=r[o],l=s.slice(1,s.length-1),u=null!=n[l]?n[l]:"0";e=null!=u?e.replace(s,'<span style="color:'.concat(t.variableColor,";font-size:").concat(t.variableFontSize,'">').concat(u,"</span>")):e.replace(s,"")}return"<span>".concat(e,"</span>")})),l=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,u=Aw(t),c=_(!1),h=function(){return ut(r,void 0,void 0,lw.mark((function t(){var e,n;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("design"!==i(l)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,u();case 6:n=t.sent,a.value=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.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,c.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},p=function(){h()};yw(t,{refreshData:p}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),yw(t,{refreshData:p});var d=mw(t.events)("click",(function(){}));return{style:o,myText:s,loading:c,click:d}}}),Zw=["innerHTML"];Gx(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),Xw.render=function(t,e,n,i,r,o){var a=d("skeleton");return t.loading?(f(),g("div",{key:0,class:"skeleton-wrapper",style:x(t.style)},[p(a,{loading:t.loading},null,8,["loading"])],4)):(f(),g("div",{key:1,class:"ecan-text",style:x(t.style),innerHTML:t.myText,onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},null,12,Zw))},Xw.__scopeId="data-v-41a337b4",Xw.__file="src/text/text/Text.vue";var Jw=rw(Xw),Kw=o({name:"EcanScrollText",setup:function(){return{text:_("基础文本")}}}),Qw={class:"red"};Gx(".red[data-v-0cbdffb5]{color:red}"),Kw.render=function(t,e,n,i,r,o){return f(),g("div",Qw,M(t.text),1)},Kw.__scopeId="data-v-0cbdffb5",Kw.__file="src/text/scroll-text/ScrollText.vue";var $w=rw(Kw),tS=Object.assign(Object.assign({},uw),{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"}),eS=cw(tS),nS=o({name:"EcanTimeDisplay",props:Object.assign({},eS),setup:function(t){var e=fw(t),n=_(rt().format(t.format)),i=null,r=function(){clearInterval(i),i=null};return l((function(){i&&r(),i=setInterval((function(){n.value=rt().add(1,"s").format(t.format)}),1e3)})),u((function(){r()})),{style:e,time:n}}});Gx(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),nS.render=function(t,e,n,i,r,o){return f(),g("div",{class:"time-display",style:x(t.style)},M(t.time),5)},nS.__scopeId="data-v-6cb314e1",nS.__file="src/text/time-display/TimeDisplay.vue";var iS=rw(nS),rS=Object.assign(Object.assign({},uw),{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"}]}),oS=cw(rS),aS=["refreshData","click"],sS=o({name:"EcanList",components:{Skeleton:Qb},props:Object.assign({},oS),setup:function(t){var r=this,o=_(t.data),a=fw(t,["backgroundColor"]),s=n((function(){return t.useRanking?{textAlign:"center"}:{textAlign:"left"}})),l=Aw(t),u=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,c=_(!1),h=function(){return ut(r,void 0,void 0,lw.mark((function e(){var n,r;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(u)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,c.value=!0,e.next=6,l();case 6:r=e.sent,o.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data.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,c.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},p=mw(t.events)("click",(function(){}));return yw(t,{refreshData:function(){h()}}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(h,t.requestSort),{style:a,formatFn:function(t,e){return null==e||""===e?t:{money:Mw,percentage:kw,contrast:kw}[e](t)||""},columnStyle:s,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:o,loading:c,click:p}}});function lS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uS(Object(n),!0).forEach((function(e){lS(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var hS={key:0,class:"title"},pS={key:0,class:"ranking"},dS={key:1,class:"ecan-list-content"},fS={key:0,class:"ranking"},gS=function(t){return A("data-v-2d6c92c6"),t=t(),I(),t}((function(){return C("div",{class:"icon"},null,-1)})),vS={class:"sort"},yS={key:2,class:"empty"};Gx('.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}');Gx(".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}"),sS.render=function(t,e,n,i,r,o){var a=d("skeleton");return f(),g("div",{class:"ecan-list",style:x(t.style)},[p(a,{loading:t.loading},{default:m((function(){return[t.useTitle?(f(),g("div",hS,[(f(!0),g(S,null,k(t.columnCount,(function(e){return f(),g("div",{class:"title-inner",style:x({backgroundColor:t.backgroundColor,height:t.itemHeight,width:"calc(100% / ".concat(t.columnCount," - ").concat(t.itemColSpan," * ").concat(t.columnCount-1,"/ ").concat(t.columnCount,")"),marginRight:e%t.columnCount!=0?t.itemColSpan:""}),key:e},[t.useRanking?(f(),g("div",pS)):b("v-if",!0),(f(!0),g(S,null,k(t.columns,(function(e,n){return f(),g("div",{class:"column",key:e.key||n,style:x(cS({color:e.titleColor},t.columnStyle))},M(e.title),5)})),128))],4)})),128))])):b("v-if",!0),t.dataSource.length>0?(f(),g("div",dS,[t.useTitle?(f(),g("div",{key:0,class:"title-placeholder",style:x({marginBottom:t.itemRowSpan})},null,4)):b("v-if",!0),(f(!0),g(S,null,k(t.dataSource.slice(0,t.sliceCount),(function(n,i){return f(),g("div",{class:"item",style:x({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:n.id||i,onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},[t.useRanking?(f(),g("div",fS,[gS,C("div",vS," Top "+M(i+1),1)])):b("v-if",!0),(f(!0),g(S,null,k(t.columns,(function(e){return f(),g("div",{class:T(["column",t.contrastClass(n[e.key],e.format)]),key:e.key,style:x(cS({fontSize:e.fontSize,color:""===t.contrastClass(n[e.key],e.format)?e.color:"",fontWeight:e.fontWeight},t.columnStyle))},M((null!=e.format||""!==e.format)&&t.formatFn(n[e.key],e.format)),7)})),128))],4)})),128))])):(f(),g("div",yS," 暂无数据 "))]})),_:1},8,["loading"])],4)},sS.__scopeId="data-v-2d6c92c6",sS.__file="src/text/list/List.vue";var mS=rw(sS),_S=Object.assign(Object.assign({},uw),{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"}),xS=cw(_S),bS=["refreshData","click"],wS=o({name:"EcanProportion",components:{AProgress:G,Skeleton:Qb},props:Object.assign({},xS),setup:function(t){var r=this,o=fw(t),a=n((function(){var e=t.width;return parseFloat(e)})),s=_(t.data),l=n((function(){var t,e=i(s);return null==e?0:100*(null!==(t=Object.values(e)[0])&&void 0!==t?t:0)})),u=n((function(){var t=i(s)||{};return Object.keys(t)[0]})),c=n((function(){var e,n=t.text,r=i(s),o=n.match(/\{.*?\}/g)||[];if(""===n)return i(l)+"%";for(var a=0;a<o.length;a++){var c=o[a],h=c.slice(1,c.length-1),p="";n=null!=(p=i(u)===h?i(l).toFixed(2):null!==(e=r[h])&&void 0!==e?e:0)?n.replace(c,p):n.replace(c,"")}return n})),h=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,p=Aw(t),d=_(!1),f=function(){return ut(r,void 0,void 0,lw.mark((function e(){var n,r;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(h)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,d.value=!0,e.next=6,p();case 6:r=e.sent,s.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data)||{},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]])})))};yw(t,{refreshData:function(){f()}});var g=mw(t.events)("click",(function(){}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(f,t.requestSort),{style:o,myWidth:a,text:c,value:l,loading:d,click:g}}});Gx(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),wS.render=function(t,e,n,i,r,o){var a=d("skeleton"),s=d("a-progress");return f(),g("div",{class:"ecan-proportion",style:x(t.style)},[p(s,{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:m((function(){return[t.loading?(f(),v(a,{key:0,loading:t.loading},null,8,["loading"])):(f(),g("div",{key:1,class:"format",style:x({width:t.strokeTextWidth,fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight,lineHeight:t.lineHeight})},M(t.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)},wS.__scopeId="data-v-4a9dae06",wS.__file="src/text/proportion/Proportion.vue";var SS=rw(wS),CS=Object.assign(Object.assign({},uw),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),MS=cw(CS),kS=o({name:"EcanInput",components:{AInput:U},props:Object.assign({},MS),setup:function(t){return{style:fw(t)}}});Gx(".input[data-v-b714c8ac]{height:100%;width:100%}"),kS.render=function(t,e,n,i,r,o){var a=d("a-input");return f(),g("div",{class:"ecan-input",style:x(t.style)},[p(a,{class:"input",value:t.value,placeholder:t.placeholder},null,8,["value","placeholder"])],4)},kS.__scopeId="data-v-b714c8ac",kS.__file="src/control/input/Input.vue";var TS=rw(kS),AS=Object.assign(Object.assign({},uw),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:rt().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),IS=cw(AS),DS=["dateChange"],OS=o({name:"EcanDatePicker",props:Object.assign({},IS),components:{ADatePicker:W},setup:function(t){var n=fw(t),i=_(rt(t.value));(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,format:t.format,value:i});var r=t.events,o=mw(r)("dateChange",(function(){}));return yw(t,{dateChange:o}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:i,locale:ot,dateChange:o}}});Gx(".date-picker[data-v-18740e6e]{height:100%;width:100%}");Gx("[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}"),OS.render=function(t,e,n,i,r,o){var a=d("a-date-picker");return f(),g("div",{class:"ecan-date-picker",style:x(t.style)},[b(" 宽度style有效,class无效 "),p(a,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:t.myValue,"onUpdate:value":e[0]||(e[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)},OS.__scopeId="data-v-18740e6e",OS.__file="src/control/date-picker/DatePicker.vue";var LS=rw(OS),ES=Object.assign(Object.assign({},uw),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),NS=cw(ES),PS=["selectChange"],RS=o({name:"EcanSelect",components:{ASelect:H},props:Object.assign({},NS),setup:function(t){var n=this,r=fw(t),o=Aw(t),a=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,s=_(t.data),l=_(t.value||t.data[0]);(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{type:t.type,value:l});var u=t.events,c=mw(u)("selectChange");return yw(t,{selectChange:c}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)((function(){return ut(n,void 0,void 0,lw.mark((function e(){var n,r,u,c;return lw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("request"===t.dataType&&"design"!==i(a)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,o();case 4:u=e.sent,s.value=(null===(r=null===(n=null==u?void 0:u.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.rows)||[],c=i(s)[0],""===t.value&&null!=c&&(l.value=c[t.dataFieldNames.value]);case 8:case"end":return e.stop()}}),e)})))}),t.requestSort),{style:r,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:l,selectChange:c,options:s}}});Gx(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");Gx("[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}"),RS.render=function(t,e,n,i,r,o){var a=d("a-select");return f(),g("div",{class:"ecan-select",style:x(t.style)},[p(a,{class:"select",value:t.myValue,"onUpdate:value":e[0]||(e[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)},RS.__scopeId="data-v-b6743858",RS.__file="src/control/select/Select.vue";var BS=rw(RS),VS=Object.assign(Object.assign({},uw),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),zS=cw(VS),FS=["dateChange"],GS=o({name:"EcanRangePicker",components:{ARangePicker:j},props:Object.assign({},zS),setup:function(r){var o=fw(r),a=r.startTime,s=r.endTime,l=_([null,null]);t((function(){return[a,s]}),(function(){l.value=a&&s?[rt(a),rt(s)]:[null,null]}),{immediate:!0});var u=e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel,c=n((function(){return i(l)[0]})),h=n((function(){return i(l)[1]}));u(r.id,{type:r.type,format:r.format,startTime:c,endTime:h});var p=r.events,d=mw(p)("dateChange",(function(){}));return yw(r,{dateChange:d}),{style:o,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:ot,dateChange:d,myValue:l}}});Gx(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");Gx("[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}"),GS.render=function(t,e,n,i,r,o){var a=d("a-range-picker");return f(),g("div",{class:"ecan-range-picker",style:x(t.style)},[p(a,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:t.myValue,"onUpdate:value":e[0]||(e[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)},GS.__scopeId="data-v-9eb3e236",GS.__file="src/control/range-picker/RangePicker.vue";var US=rw(GS),WS=Object.assign(Object.assign({},uw),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),HS=cw(WS),jS=["click"],YS=o({name:"EcanButton",components:{AButton:Y},props:Object.assign({},HS),setup:function(t){var e=fw(t),n=t.events;return{style:e,click:mw(n)("click")}}}),qS=D(" 测试 ");Gx(".button[data-v-34f909d8]{height:100%;width:100%}"),YS.render=function(t,e,n,i,r,o){var a=d("a-button");return f(),g("div",{class:"ecan-input",style:x(t.style)},[p(a,{class:"button",block:"",onClick:t.click},{default:m((function(){return[qS]})),_:1},8,["onClick"])],4)},YS.__scopeId="data-v-34f909d8",YS.__file="src/control/button/Button.vue";var XS=rw(YS),ZS=Object.assign(Object.assign({},uw),{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"}]}),JS=cw(ZS),KS=["tabChange"],QS=o({name:"EcanTabs",props:Object.assign({},JS),setup:function(t){var n,r=fw(t),o=_(0),a=_(t.data),s=_(t.value||i(a)[0]&&(null===(n=i(a)[0])||void 0===n?void 0:n.value)||""),l=t.events,u=mw(l)("tabChange",(function(t,e){s.value=(null==t?void 0:t.value)||"",o.value=e}));return(0,e("GLOBAL_MODEL",{setGlobalModel:function(t,e){}}).setGlobalModel)(t.id,{value:s}),yw(t,{tabChange:u}),{style:r,activeKey:o,isActive:function(t){return o.value===t},tabChange:u,myData:a,useImagePath:Lw}}}),$S=["onClick"];Gx(".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}"),QS.render=function(t,e,n,i,r,o){return f(),g("div",{class:"ecan-tabs",style:x(t.style)},[(f(!0),g(S,null,k(t.myData,(function(e,n){return f(),g("div",{class:T(["tab"]),style:x({color:t.isActive(n)?t.activeTabColor:t.tabColor,backgroundImage:t.isActive(n)?t.useImagePath(t.activeTabBackgroundImage,!0):t.useImagePath(t.tabBackgroundImage,!0),marginRight:t.tabBarGutter,fontSize:t.tabFontSize}),key:n,onClick:function(i){return t.tabChange(e,n)}},M(e.title),13,$S)})),128))],4)},QS.__scopeId="data-v-28df6758",QS.__file="src/control/tabs/Tabs.vue";var tC=rw(QS),eC=Object.assign(Object.assign({},uw),{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%",graphicConfig:null}),nC=cw(eC),iC=["click","refreshData"];function rC(t,e,n){var i=yt.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var oC=function(t){function e(e,n,i){var r,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,i=i||er,"string"==typeof e?r=rC(e,n,i):Kt(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(ve(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return lt(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=rC("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,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ar(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Ar(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Ar(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,d=c.width*c.height,f=l.width*l.height-p-d;f<i&&(i=f,r=u)}}if(s&&(o[r].union(t),n=!0),!n)(e=new Ar(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 h=d.shouldBePainted(n,i,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null)&&u(f);var p=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;h=(d=e[c]).shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{r=!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])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.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(i,0,0,o/u,a/u));var h=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ee(e)?(a=e.__canvasGradient||bv(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a):null!=e.image&&(a=Ov(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&zt(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Be),aC=oC;var sC=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Nt({},n||{}),this.dpr=n.devicePixelRatio||er,this._singleCanvas=r,this.root=t,t.style&&(ve(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){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 aC(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=Sv(t,0,n),this._height=Sv(t,1,n);var h=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(h)}}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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Fv(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){zv(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;wn((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],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)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,d=o&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var x=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,d=0;d<r.length;d++)h(d);return pt.wxa&&zt(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Fv(a,t,r,o),t.setPrevPaintRect(s))}else Fv(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new aC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Lt(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&Lt(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(n[t])"production"!==process.env.NODE_ENV&&Dt("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.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&&Dt("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},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 i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?.01:0),this._needsManuallyCompositing),u.__builtin__||Dt("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),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,zt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Lt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01)Lt(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Rt(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Sv(r,0,i),e=Sv(r,1,i),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(314159).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 aC("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 i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):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];Fv(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),lC=sC;function uC(t){t.registerPainter("canvas",lC)}var cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return lt(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 Dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Zr,n=_v("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,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?r: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}(ng);function hC(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=tf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(tf(t,e,n[a]));return o.join(" ")}}function pC(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Yt(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var dC=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return lt(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=_v(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=fC,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(){Nl(this.childAt(0))},e.prototype.downplay=function(){Pl(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,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):Mc(p,h,a,n),Oc(p)}if(this._updateCommon(t,n,s,i,r),l){var p=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,kc(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=rh(v),p=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var _=xv(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof Fs){var w=f.style;f.useStyle(Nt({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(Nt({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var M=r&&r.useNameLabel;ih(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):hC(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=f.ensureState("emphasis");if(k.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,p){var T=Math.max(Jt(p)?p:1.1,3/this._sizeY);k.scaleX=this._sizeX*T,k.scaleY=this._sizeY*T}this.setSymbolScale(1),ql(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=cl(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ac(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ac(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Yt(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e}(Zr);function fC(t,e){this.parent.drift(t,e)}var gC=dC;function vC(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yC(t){return null==t||Kt(t)||(t={isIgnore:t}),t||{}}function mC(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:rh(e),cursorStyle:e.get("cursor")}}var _C=function(){function t(t){this.group=new Zr,this._SymbolCtor=t||gC}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yC(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=mC(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(vC(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(vC(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):Mc(p,v,i)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mC(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yC(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(vC(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){$c(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}(),xC=_C;function bC(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:Jt(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Ft(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return Im(e,h[0])&&(p=!0,h[0]=d),Im(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function wC(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var SC=Math.min,CC=Math.max;function MC(t,e){return isNaN(t)||isNaN(e)}function kC(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,v=0;v<i;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(MC(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-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===y&&S===m&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var C=v+1;if(l)for(;MC(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,k=0,T=0,A=void 0,I=void 0;if(C>=i||MC(w,S))d=y,f=m;else{k=w-u,T=S-c;var D=y-u,O=w-y,L=m-c,E=S-m,N=void 0,P=void 0;if("x"===s){var R=k>0?1:-1;d=y-R*(N=Math.abs(D))*a,f=m,A=y+R*(P=Math.abs(O))*a,I=m}else if("y"===s){var B=T>0?1:-1;d=y,f=m-B*(N=Math.abs(L))*a,A=y,I=m+B*(P=Math.abs(E))*a}else N=Math.sqrt(D*D+L*L),d=y-k*a*(1-(M=(P=Math.sqrt(O*O+E*E))/(P+N))),f=m-T*a*(1-M),I=m+T*a*M,A=SC(A=y+k*a*M,CC(w,y)),I=SC(I,CC(S,m)),A=CC(A,SC(w,y)),f=m-(T=(I=CC(I,SC(S,m)))-m)*N/P,d=SC(d=y-(k=A-y)*N/P,CC(u,y)),f=SC(f,CC(c,m)),A=y+(k=y-(d=CC(d,SC(u,y))))*P/N,I=m+(T=m-(f=CC(f,SC(c,m))))*P/N}t.bezierCurveTo(h,p,d,f,y,m),h=A,p=I}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var TC=function(){this.smooth=0,this.smoothConstraint=!0},AC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return lt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TC},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&MC(n[2*r-2],n[2*r-1]);r--);for(;i<r&&MC(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=kC(t,n,i,r,r,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,i,r=this.path.data,o=ps.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var y=a?Rn(n,u,h,d,t,s):Rn(i,c,p,f,t,s);if(y>0)for(var m=0;m<y;m++){var _=s[m];if(_<=1&&_>=0){v=a?Nn(i,c,p,f,_):Nn(n,u,h,d,_);return a?[t,v]:[v,t]}}n=d,i=f}}},e}(Es),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e}(TC),DC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new IC},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&MC(n[2*o-2],n[2*o-1]);o--);for(;r<o&&MC(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=kC(t,n,r,o,o,1,e.smooth,a,e.connectNulls);kC(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Es);function OC(t,e,n,i,r){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 h=new Xs({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=qt(r)?function(t){r(t,h)}:null;kc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function LC(t,e,n){var i=t.getArea(),r=no(i.r0,1),o=no(i.r,1),a=new Fu({shape:{cx:no(t.cx,1),cy:no(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,kc(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function EC(t,e){return t.type===e}function NC(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function PC(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function RC(t,e){var n=PC(t),i=n[0],r=n[1],o=PC(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function BC(t){return Jt(t)?t:t?.5:0}function VC(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}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 p=(u[o]+c[o])/2,d=[];l[o]=d[o]=p,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 zC(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=ci(e[r]),s=ci(e[o]),l=i-r,u=gi([$n(ri(a[0],s[0],l)),$n(ri(a[1],s[1],l)),$n(ri(a[2],s[2],l)),ti(ri(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}((n-i)/(e.coord-i),[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){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function FC(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*gC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return zt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function GC(t,e){return[t[2*e],t[2*e+1]]}function UC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<gl.length;e++)if(t.get([gl[e],"endLabel","show"]))return!0;return!1}function WC(t,e,n,i){if(EC(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=UC(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=OC(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),LC(e,n,i)}var HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(){var t=new Zr,e=new xC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),_=bC(r,a,m),x=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Qm(2*i),o=0;o<i;o++){var a=wC(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,_),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&FC(t,a,r),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),b||p.remove(),o.add(g);var M,k=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count())if("cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=Ft(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=zC(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";zt(p,(function(t){t.offset=(t.coord-f)/v})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var y=new pc(0,0,0,0,p,!0);return y[r]=f,y[r+"2"]=g,y}"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,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===r.type&&k===this._step){y&&!f?f=this._newPolygon(u,x):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,fp(T));var A=g.getClipPath();if(A)kc(A,{shape:WC(this,r,!1,t).shape},t);else g.setClipPath(WC(this,r,!0,t));b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),NC(this._stackedOnPoints,x)&&NC(this._points,u)||(v?this._doUpdateAnimation(a,x,r,n,k,m,w):(k&&(u=VC(u,r,k,w),x&&(x=VC(x,r,k,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),k&&(u=VC(u,r,k,w),x&&(x=VC(x,r,k,w))),d=this._newPolyline(u),y&&(f=this._newPolygon(u,x)),c||this._initOrUpdateEndLabel(t,r,fp(T)),g.setClipPath(WC(this,r,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),O=I.get("blurScope"),L=I.get("disabled");(d.useStyle(Pt(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Jl(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);cl(d).seriesIndex=t.seriesIndex,ql(d,D,O,L);var E=BC(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Pt(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=BC(P.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:R,smoothMonotone:N,connectNulls:w}),Jl(f,t,"areaStyle"),cl(f).seriesIndex=t.seriesIndex,ql(f,D,O,L)}var B=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=k,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){cl(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Wo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");(s=new gC(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fg.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Wo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fg.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Il(this._polyline,t),e&&Il(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new AC({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 DC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");qt(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=qt(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var y=n;i?(p=y.x,d=y.x+y.width,f=t.x):(p=y.y+y.height,d=y.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=qt(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(UC(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ul({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(ih(o,rh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?pC(r,n):hC(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?d:0)*(v?-1:1),x=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var k=GC(u,S[0]);s.attr({x:k[0]+_,y:k[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(k=l.getPointOn(m,b))&&s.attr({x:k[0]+_,y:k[1]+x});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(Jt(i))return no(f=Io(n||0,i,r),o?Math.max(ro(n||0),ro(i)):e);if(Xt(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,d=l[c],f=Io(p,d,r);a[c]=no(f,o?Math.max(ro(p),ro(d)):e)}}return a}(n,p,T,A,w.t))}i.lastFrameIndex=S[0]}else{var I=1===t||i.lastFrameIndex>0?S[0]:0;k=GC(u,I);r&&(M=c.getRawValue(I)),s.attr({x:k[0]+_,y:k[1]+x})}r&&hh(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,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=[],h=[],p=[],d=[],f=[],g=[],v=bC(r,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var C=y[w],M=y[w+1],k=m[S],T=m[S+1];(isNaN(C)||isNaN(M))&&(C=k,M=T),u.push(C,M),c.push(k,T),h.push(n[w],n[w+1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var A=x.idx,I=v.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],A),e.get(I[1],A)]);S=2*A,u.push(D[0],D[1]),c.push(m[S],m[S+1]);var O=wC(v,r,e,A);h.push(O[0],O[1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(d.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var L=u.length,E=Qm(L),N=Qm(L),P=Qm(L),R=Qm(L),B=[];for(_=0;_<f.length;_++){var V=f[_],z=2*_,F=2*V;E[z]=u[F],E[z+1]=u[F+1],N[z]=c[F],N[z+1]=c[F+1],P[z]=h[F],P[z+1]=h[F+1],R[z]=p[F],R[z+1]=p[F+1],B[_]=d[V]}return{current:E,next:N,stackedOnCurrent:P,stackedOnNext:R,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(h=VC(c.current,n,r,a),p=VC(c.stackedOnCurrent,n,r,a),d=VC(c.next,n,r,a),f=VC(c.stackedOnNext,n,r,a)),RC(h,d)>3e3||l&&RC(p,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=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Mc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),Mc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}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,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+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,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(fg),jC=HC;function YC(t,e){return{seriesType:t,plan:og(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=Ft(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Im(n,a[0])&&(a[0]=l),Im(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Qm(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",r)}}}}}}var qC={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},XC=function(t){return Math.round(t.length/2)};function ZC(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;Xt(r)?d=qC[r]:qt(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,XC))}}}}}function JC(t){t.registerChartView(jC),t.registerSeriesModel(cC),t.registerLayout(YC("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,ZC("line"))}var KC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.getInitialData=function(t,e){return Dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+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}(ng);ng.registerClass(KC);var QC=KC,$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.getInitialData=function(){return Dm(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=Ih(QC.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}(QC),tM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},eM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new tM},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(Es),nM=eM;function iM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function rM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var oM=Math.max,aM=Math.min;var sM=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return lt(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");"cartesian2d"===r||"polar"===r?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i)):"production"!==process.env.NODE_ENV&&So("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){$c(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,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==i.type&&So("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==e.type&&So("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(EC(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=gM[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?Fu:Xs)({shape:wM(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=gM[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&fM[l.type](i)){var s=!1;p&&(s=lM[l.type](d,i));var v=uM[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),yM(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):h?cM(h,c,v,i,e,r,!1,!1):kc(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=gM[l.type](a,e,i);if(g){var C=void 0;0===_.length?C=w(n):((C=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",y),m[e]=C);var M=gM[l.type](a,e);Mc(C,{shape:wM(r,M,l)},c,e)}var k=s.getItemGraphicEl(n);if(a.hasValue(e)&&fM[l.type](S)){var T=!1;if(p&&(T=lM[l.type](d,S))&&o.remove(k),k?Oc(k):k=uM[l.type](t,a,e,S,r,c,u.model,!!k,f),h&&(k.forceLabelAnimation=!0),b){var A=k.getTextContent();if(A){var I=hh(A);null!=I.prevValue&&(I.prevValue=I.value)}}else yM(k,a,e,i,S,t,r,"polar"===l.type);x?k.attr({shape:S}):h?cM(h,c,k,S,e,r,!0,b):Mc(k,{shape:S},t,e,null),a.setItemGraphicEl(e,k),k.ignore=T,o.add(k)}else o.remove(k)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Dc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Zr);S.removeAll();for(var C=0;C<m.length;++C)S.add(m[C]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),xM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xM(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,i,r){return t?"polar"===t.type?LC(t,e,n):"cartesian2d"===t.type?OC(t,e,n,i,r):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Ft(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.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,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},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){Dc(e,t,cl(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}(fg),lM={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=oM(e.x,t.x),s=aM(e.x+e.width,r),l=oM(e.y,t.y),u=aM(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=aM(e.r,t.r),o=oM(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},uM={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Xs({shape:Nt({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?nM:Fu,c=new u({shape:i,z2:1});c.name="item";var h,p,d=vM(r);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===nM}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Br(t,e,n);var r=h(i),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,y=p?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(f),b=l+u*_(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*m(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*m(f)+iM(f,o+y,!1),b=l+d*_(f)+rM(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*m(f)+iM(f,-o+y,!1),b=l+d*_(f)+rM(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+d*m(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*m(g)+iM(g,o+y,!0),b=l+d*_(g)+rM(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*m(g)+iM(g,-o+y,!0),b=l+d*_(g)+rM(g,-o+y,!0),w="right",S="middle";break;default:return Br(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?0:i.startAngle,g[f]=i[f],(s?Mc:kc)(c,{shape:g},o)}return c}};function cM(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Mc:kc)(n,{shape:l},e,r,null),(a?Mc:kc)(n,{shape:u},e?t.baseAxis.model:null,r)}function hM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var pM=["x","y","width","height"],dM=["cx","cy","r","startAngle","endAngle"],fM={cartesian2d:function(t){return!hM(t,pM)},polar:function(t){return!hM(t,dM)}},gM={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function vM(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 yM(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",h=rh(i);ih(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:hC(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=t.getTextContent();if(s&&p){var d=i.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,i){if(Jt(i))t.setTextConfig({rotation:i});else if(Yt(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===d?c:d,vM(a),i.get(["label","rotate"]))}!function(t,e,n,i){if(t){var r=hh(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}(p,h,o.getRawValue(n),(function(t){return pC(e,t)}));var f=i.getModel(["emphasis"]);ql(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Jl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",zt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var mM=function(){},_M=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return lt(e,t),e.prototype.getDefaultShape=function(){return new mM},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Es);function xM(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new _M({shape:{points:u},incremental:!!i,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 h=new _M({shape:{points:r.getLayout("largePoints")},incremental:!!i,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),cl(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",bM),h.on("mousemove",bM)),n&&n.push(h)}var bM=yg((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),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);cl(this).dataIndex=e>=0?e:null}),30,!1);function wM(t,e,n){if(EC(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var SM=sM;function CM(t){t.registerChartView(SM),t.registerSeriesModel($C),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,jt(i_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:og(),reset:function(t){if(r_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=Im(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=o_(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&Qm(3*r),u=d&&s&&Qm(3*r),m=d&&Qm(r),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(c?g:o,i),C=b.get(a,i),M=p,k=void 0;c&&(k=+S-b.get(o,i));var T=void 0,A=void 0,I=void 0,D=void 0;if(h){var O=n.dataToPoint([S,C]);c&&(M=n.dataToPoint([k,C])[0]),T=M,A=O[1]+y,I=O[0]-M,D=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([C,S]),c&&(M=n.dataToPoint([C,k])[1]),T=O[0]+y,A=M,I=v,D=O[1]-M,Math.abs(D)<f&&(D=(D<=0?-1:1)*f);d?(l[w]=T,l[w+1]=A,l[w+2]=h?I:D,u&&(u[w]=h?_.x:T,u[w+1]=h?A:_.y,u[w+2]=x),m[i]=i):e.setItemLayout(i,{x:T,y:A,width:I,height:D}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZC("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 MM=2*Math.PI,kM=Math.PI/180;function TM(t,e){return bp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AM(t,e){var n=TM(t,e),i=t.get("center"),r=t.get("radius");Yt(r)||(r=[0,r]),Yt(i)||(i=[i,i]);var o=eo(n.width,e.getWidth()),a=eo(n.height,e.getHeight()),s=Math.min(o,a);return{cx:eo(i[0],o)+n.x,cy:eo(i[1],a)+n.y,r0:eo(r[0],s/2),r:eo(r[1],s/2)}}function IM(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=TM(t,n),o=AM(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*kM,h=t.get("minAngle")*kM,p=0;e.each(i,(function(t){!isNaN(t)&&p++}));var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var _=MM,x=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;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{(i="area"!==v?0===d&&y?f:t*f:MM/p)<h?(i=h,_-=h):x+=t;var r=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:v?to(t,m,[u,l]):l}),b=r}})),_<MM&&p)if(_<=.001){var S=MM/p;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=c+w*n*S,i.endAngle=c+w*(n+1)*S}}))}else f=_/x,b=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===h?h:t*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}}))}))}var DM=Math.PI/180;function OM(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}Tx(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 h=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;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=i+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(p+l.len2)*r,f=d-l.label.x;LM(l,l.targetTextWidth-f*r,!0),l.label.x=d}}}function LM(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function EM(t){return"center"===t.position}function NM(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*DM,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),m=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=eo(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=eo(S,u);var C=w.get("length2");if(C=eo(C,u),Math.abs(h.endAngle-h.startAngle)<a)return zt(p.states,d),void(p.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}(p)){var M,k,T,A,I=(h.startAngle+h.endAngle)/2,D=Math.cos(I),O=Math.sin(I);e=h.cx,n=h.cy;var L="inside"===y||"inner"===y;if("center"===y)M=h.cx,k=h.cy,A="center";else{var E=(L?(h.r+h.r0)/2*D:h.r*D)+e,N=(L?(h.r+h.r0)/2*O:h.r*O)+n;if(M=E+3*D,k=N+3*O,!L){var P=E+D*(S+l-h.r),R=N+O*(S+l-h.r),B=P+(D<0?-1:1)*C;M="edge"===_?D<0?c+x:c+u-x:B+(D<0?-m:m),k=R,T=[[E,N],[P,R],[B,R]]}A=L?"center":"edge"===_?D>0?"right":"left":D>0?"left":"right"}var V=Math.PI,z=0,F=v.get("rotate");if(Jt(F))z=F*(V/180);else if("center"===y)z=0;else if("radial"===F||!0===F){z=D<0?-I+V:-I}else if("tangential"===F&&"outside"!==y&&"outer"!==y){var G=Math.atan2(D,O);G<0&&(G=2*V+G),O>0&&(G=V+G),z=G-V}if(o=!!z,p.x=M,p.y=k,p.rotation=z,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:A});var U=p.states.select;U&&(U.x+=p.x,U.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var H=(p.style.margin||0)+2.1;W.y-=H/2,W.height+=H,r.push({label:p,labelLine:f,position:y,len:S,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new mr(D,O),linePoints:T,textAlign:A,labelDistance:m,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;EM(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!EM(v=t[p])&&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+r-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+r-h-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+r-d.x-v.bleedMargin,v.targetTextWidth=g,LM(v,g)}for(OM(u,e,n,i,1,0,o,0,s,h),OM(l,e,n,i,-1,0,o,0,s,c),p=0;p<t.length;p++){var v;if(!EM(v=t[p])&&v.linePoints){d=v.label,f=v.linePoints;var y="edge"===v.labelAlignTo,m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,b=v.rect.width+x,w=f[1][0]-f[2][0];y?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+r-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}}}(r,e,n,l,u,p,c,h);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&(zt(v.states,d),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=g.linePoints;m||!x?(zt(y.states,d),y.ignore=!0):(Sx(x,g.minTurnAngle),Cx(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new mr(x[0][0],x[0][1])})}}}function PM(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Yt(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Ft(i,(function(t){return Rr(t,r)}))}}var RM=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new ul;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return lt(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Nt(PM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(kc(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,kc(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),kc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Mc(r,{shape:{endAngle:l.endAngle}},o,e))}else Oc(r),Mc(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Jl(r,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Nt({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},PM(s.getModel("itemStyle"),l)),Nt(r.ensureState("select"),{x:d,y:f,shape:PM(a.getModel(["select","itemStyle"]),l)}),Nt(r.ensureState("blur"),{shape:PM(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&Nt(v.ensureState("select"),{x:d,y:f}),Nt(y.ensureState("select"),{x:d,y:f}),ql(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;ih(i,rh(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ju,this.setTextGuideLine(h)),function(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<vl.length;l++){var u=vl[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:oe(r.states[u]&&r.states[u].ignore,s))||!oe(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0);continue}i||(i=new Ju,t.setTextGuideLine(i),h||!s&&a||Mx(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Mx(i,!1,u,c)}}if(i){Pt(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=kx}}else i&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<gl.length;i++){var r=gl[i];n[r]=t.getModel([r,e])}return n}(r),{stroke:s,opacity:ae(o.get(["lineStyle","opacity"]),l,1)})}},e}(Fu),BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return lt(e,t),e.prototype.render=function(t,e,n,i){var r,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&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new Fu({shape:AM(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new RM(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){Dc(a.getItemGraphicEl(e),t,e)})).execute(),NM(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 i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(fg);function VM(t,e,n){e=Yt(e)&&{coordDimensions:e}||Nt({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Sm(i,e).dimensions,o=new wm(r,t);return o.initData(i,n),o}var zM=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}(),FM=zM,GM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FM(Ht(this.getData,this),Ht(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return VM(this,{coordDimensions:["value"],encodeDefaulter:jt(Bp,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=function(t,e,n){if(!t[e])return 0;var i=Gt(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var r=Math.pow(10,n),o=Ft(t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,s=Ft(o,(function(t){return Math.floor(t)})),l=Gt(s,(function(t,e){return t+e}),0),u=Ft(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,d=u.length;p<d;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return s[e]/r}(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Oo(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}(ng),UM=GM;var WM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return lt(e,t),e.prototype.getInitialData=function(t,e){return Dm(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}(ng),HM=function(){},jM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return lt(e,t),e.prototype.getDefaultShape=function(){return new HM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[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,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[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),i=this.getBoundingRect();return t=n[0],e=n[1],i.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,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new Ar(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(Es),YM=function(){function t(){this.group=new Zr}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),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new jM({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),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(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=cl(t);l.seriesIndex=i.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}(),qM=YM,XM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),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 i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=YC("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new qM:new xC,this._isLargeDraw=i,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}(fg),ZM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(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}(Tp),JM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xo).models[0]},e.type="cartesian2dAxis",e}(Tp);Bt(JM,V_);var KM={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)"]}}},QM=Lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KM),$M=Lt({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}}},KM),tk={category:QM,value:$M,time:Lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$M),log:Pt({logBase:10},$M)},ek={value:1,category:1,time:1,log:1};function nk(t,e,n,i){zt(ek,(function(r,o){var a=Lt(Lt({},tk[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return lt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Cp(t):{};Lt(t,e.getTheme().get(o+"Axis")),Lt(t,this.getDefaultOption()),t.type=ik(t),n&&Sp(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Rm.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",ik)}function ik(t){return t.type||(t.data?"category":"value")}var rk=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 Ft(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ut(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}(),ok=["x","y"];function ak(t){return"interval"===t.type||"time"===t.type}var sk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ok,e}return lt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(ak(t)&&ak(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=lr([],p)}}},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 i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return De(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[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 De(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.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]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Ar(n,i,r,o)},e}(rk),lk=sk,uk=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return lt(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}(dx),ck=uk;function hk(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[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[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),re(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 pk(t){return"cartesian2d"===t.get("coordinateSystem")}function dk(t){var e={xAxisModel:null,yAxisModel:null};return zt(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Xo).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(r+' "'+ae(t.get(r+"Index"),t.get(r+"Id"),0)+'" not found');e[i]=o})),e}var fk=Math.log;function gk(t,e,n){var i=Zm.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=D_(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=fk(t.base);u=[fk(u[0])/p,fk(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=zm(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=zm(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=zm(f));var y=f*a;(g=no((v=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,v=no(y)):v>0&&u[1]<=0&&(v=0,g=-no(y))}var m,_,x,b=(r[0].value-o[0].value)/s,w=(r[a].value-o[a].value)/s;if(i.setExtent.call(t,g+f*b,v+f*w),i.setInterval.call(t,f),(b||w)&&i.setNiceExtent.call(t,g+f,v-f),"production"!==process.env.NODE_ENV){var S=i.getTicks.call(t);S[1]&&(m=f,_=Math.pow(10,ho(Math.abs(m))),0!==(x=Math.abs(m/_))&&1!==x&&2!==x&&3!==x&&5!==x||oo(S[1].value)>oo(f))&&So("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var vk=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ok,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 i(t){var e,n=Wt(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Bm(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(O_(l,s),Bm(l)&&(e=a))}r.length&&(e||O_((e=r.pop()).scale,e.model),zt(r,(function(t){gk(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};zt(n.x,(function(t){mk(n,"y",t,r)})),zt(n.y,(function(t){mk(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=bp(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){zt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(zt(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 i,r,o=n.getExtent();r=n instanceof Ym?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=L_(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=l(i?i[c]:{value:o[0]+c},c),p=N_(s.getTextRect(h),s.get("rotate")||0);a?a.union(p):a=p}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),zt(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]}Kt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Xo).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Xo).models[0],a=t.gridModel,s=this._coordsList;if(i)Rt(s,e=i.coordinateSystem)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.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 i=this,r=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,i){if(yk(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 ck(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ym({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new f_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Lm.getClass(e)||Zm)}}(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=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,zt(a.x,(function(e,n){zt(a.y,(function(r,o){var a="x"+n+"y"+o,s=new lk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){zt(B_(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}zt(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(pk(t)){var i=dk(t),r=i.xAxisModel,o=i.yAxisModel;if(!yk(r,e)||!yk(o,e))return;var a=this.getCartesian(r.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 zt(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);Rt(e,r)<0&&e.push(r),Rt(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(pk(t)){var e=dk(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!r)throw new Error('Grid "'+ae(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==i.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=ok,t}();function yk(t,e){return t.getCoordSysModel()===e}function mk(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_k(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&_k(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function _k(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var xk=vk,bk=Math.PI,wk=function(){function t(t,e){this.group=new Zr,this.opt=e,this.axisModel=t,Pt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Zr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Sk[t]},t.prototype.add=function(t){Sk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=so(e-t);return lo(o)?(r=n>0?"top":"bottom",i="center"):lo(o-bk)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<bk?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Sk={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(De(s,s,a),De(l,l,a));var u=Nt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new tc({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 h=e.get(["axisLine","symbol"]);if(null!=h){var p=e.get(["axisLine","symbolSize"]);Xt(h)&&(h=[h,h]),(Xt(p)||Jt(p))&&(p=[p,p]);var d=xv(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],g=p[1];zt([{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,i){if("none"!==h[i]&&null!=h[i]){var r=_v(h[i],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=Tk(r.getTicksCoords(),e.transform,l,Pt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,i,e,t),o=function(t,e,n,i){var r=n.axis;if(!re(i.axisLabelShow,n.get(["axisLabel","show"]))||r.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(re(i.labelRotate,o.get("rotate"))||0)*bk/180,u=wk.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=wk.isLabelSilent(n),d=n.get("triggerEvent");return zt(s,(function(s,l){var f="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,y=o;if(c&&c[f]){var m=c[f];Kt(m)&&m.textStyle&&(y=new kh(m.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(f),b=new ul({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(s.level||0),style:oh(y,{text:g,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:qt(_)?_("category"===r.type?v:"value"===r.type?f+"":f,l):_})});if(b.anid="label_"+f,d){var w=wk.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===r.type&&(w.dataIndex=f),cl(b).eventData=w}e.add(b),b.updateTransform(),h.push(b),t.add(b),b.decomposeTransform()})),h}(n,i,e,t);if(function(t,e,n){if(R_(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=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],h=n[n.length-1],p=n[n.length-2];!1===i?(Ck(o),Ck(u)):Mk(o,a)&&(i?(Ck(a),Ck(c)):(Ck(o),Ck(u)));!1===r?(Ck(s),Ck(h)):Mk(l,s)&&(r?(Ck(l),Ck(p)):(Ck(s),Ck(h)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=Pt(s.getLineStyle(),Pt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=Tk(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.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 _c(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}(Ft(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 Ar(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new _c(f.localRect,f.transform)),h||(h=new _c(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}(a)}},axisName:function(t,e,n,i){var r=re(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,d=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,kk(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*bk/180),kk(s)?o=wk.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=so(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;lo(a-bk/2)?(o=l?"bottom":"top",r="center"):lo(a-1.5*bk)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*bk&&a>bk/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,h),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)||{},y=v.ellipsis,m=re(t.nameTruncateMaxWidth,v.maxWidth,a),_=new ul({x:d[0],y:d[1],rotation:o.rotation,silent:wk.isLabelSilent(e),style:oh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Kc({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=wk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,cl(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Ck(t){t&&(t.ignore=!0)}function Mk(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=nr([]);return ar(r,r,-t.rotation),n.applyTransform(rr([],r,t.getLocalTransform())),i.applyTransform(rr([],r,e.getLocalTransform())),n.intersect(i)}}function kk(t){return"middle"===t||"center"===t}function Tk(t,e,n,i,r){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&&(De(a,a,e),De(s,s,e));var c=new tc({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}var Ak=wk;function Ik(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];zt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Nk(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(zt(n.getAxes(),jt(d,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&zt(p.baseAxes,jt(d,!h||"cross",c)),h&&zt(p.otherAxes,jt(d,"cross",!1))}}function d(i,s,c){var h=c.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||i||Ek(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};zt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Ot(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"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Pt(l,c.textStyle)}}return t.model.getModel("axisPointer",new kh(s,n,i))}(c,u,r,e,i,s):h;var d=h.get("snap"),f=Nk(c.model),g=s||d||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:d,useHandle:Ek(h),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Dk(o[i+"AxisId"],n.id)||Dk(o[i+"AxisIndex"],n.componentIndex)||Dk(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[f]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&zt(t.coordSysAxesInfo[Nk(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function Dk(t,e){return"all"===t||Yt(t)&&Rt(t,e)>=0||t===e}function Ok(t){var e=Lk(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Ek(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Lk(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Nk(t)]}function Ek(t){return!!t.get(["handle","show"])}function Nk(t){return t.type+"||"+t.id}var Pk={},Rk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&Ok(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){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,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Lk(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):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&&Pk[t])throw new Error("axisPointer "+t+" exists");Pk[t]=e},e.getAxisPointerClass=function(t){return t&&Pk[t]},e.type="axis",e}(rg),Bk=Ho();var Vk=["axisLine","axisTickLabel","axisName"],zk=["splitArea","splitLine","minorSplitLine"],Fk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return lt(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Zr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=hk(a,e),l=new Ak(e,Nt({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Bm(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));zt(Vk,l.add,l),this._axisGroup.add(l.getGroup()),zt(zk,(function(t){e.get([t,"show"])&&Gk[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||qc(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){Bk(this).splitAreaColors=null},e.type="cartesianAxis",e}(Rk),Gk={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Yt(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=r.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=c++%s.length,m=h[g].tickValue;e.add(new tc({anid:null!=m?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:Pt({stroke:s[y]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][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 tc({anid:"minor_line_"+l[p][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=Bk(t).splitAreaColors,p=fe(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=Yt(s)?s:[s],f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=m-x));var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new Xs({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:Pt({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Bk(t).splitAreaColors=p}}}(t,e,n,i)}},Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.type="xAxis",e}(Fk),Wk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Uk.type,e}return lt(e,t),e.type="yAxis",e}(Fk),Hk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return lt(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Xs({shape:t.coordinateSystem.getRect(),style:Pt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(rg),jk={offset:0};function Yk(t){t.registerComponentView(Hk),t.registerComponentModel(ZM),t.registerCoordinateSystem("cartesian2d",xk),nk(t,"x",JM,jk),nk(t,"y",JM,jk),t.registerComponentView(Uk),t.registerComponentView(Wk),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function qk(t){G_(Yk),t.registerSeriesModel(WM),t.registerChartView(XM),t.registerLayout(YC("scatter"))}var Xk="\0_ec_interaction_mutex";function Zk(t,e){return!!function(t){return t[Xk]||(t[Xk]={})}(t)[e]}Uy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},me);var Jk=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Ht(n._mousedownHandler,n),r=Ht(n._mousemoveHandler,n),o=Ht(n._mouseupHandler,n),a=Ht(n._mousewheelHandler,n),s=Ht(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Pt(Ot(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return lt(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(!(Qe(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&&$k("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Zk(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Ke(t.event),Qk(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Qe(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=$k("zoomOnMouseWheel",t,this._opt),n=$k("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;Kk(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);Kk(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Zk(this._zr,"globalPan")||Kk(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Be);function Kk(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Ke(i.event),Qk(t,e,n,i,r))}function Qk(t,e,n,i,r){r.isAvailableBehavior=Ht($k,null,n,i),t.trigger(e,r)}function $k(t,e,n){var i=n[t];return!t||i&&(!Xt(i)||e.event[i+"Key"])}var tT=Jk;var eT,nT={axisPointer:1,tooltip:1,brush:1};function iT(t){Xt(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 rT={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"},oT=Wt(rT),aT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},sT=Wt(aT),lT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=iT(t);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Zr;this._root=i;var r=[],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),fT(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=mT(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=ST(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new Zr).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Xs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=eT[s];if(u&&ye(eT,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=uT[s];if(p&&ye(uT,s)){var d=p.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,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Rs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pT(e,n),fT(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(eT={g:function(t,e){var n=new Zr;return pT(e,n),fT(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Xs;return pT(e,n),fT(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 bu;return pT(e,n),fT(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 tc;return pT(e,n),fT(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 Cu;return pT(e,n),fT(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,i=t.getAttribute("points");i&&(n=dT(i));var r=new qu({shape:{points:n||[]},silent:!0});return pT(e,r),fT(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=dT(i));var r=new Ju({shape:{points:n||[]},silent:!0});return pT(e,r),fT(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Fs;return pT(e,n),fT(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",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Zr;return pT(e,a),fT(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Zr;return pT(e,a),fT(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=mu(t.getAttribute("d")||"");return pT(e,n),fT(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),uT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new pc(e,n,i,r);return cT(t,o),hT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new dc(e,n,i);return cT(t,r),hT(t,r),r}};function cT(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function hT(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};wT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function pT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Pt(e.__inheritedStyle,t.__inheritedStyle))}function dT(t){for(var e=mT(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function fT(t,e,n,i,r){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 i=[],r=null;n.replace(_T,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=mT(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":or(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":sr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ar(r,r,-parseFloat(l[0])*xT);break;case"skewX":rr(r,[1,0,Math.tan(parseFloat(l[0])*xT),1,0,0],r);break;case"skewY":rr(r,[1,Math.tan(parseFloat(l[0])*xT),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),wT(t,a,s),i||function(t,e,n){for(var i=0;i<oT.length;i++){var r=oT[i];null!=(o=t.getAttribute(r))&&(e[rT[r]]=o)}for(i=0;i<sT.length;i++){var o;r=sT[i];null!=(o=t.getAttribute(r))&&(n[aT[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=vT(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=vT(o,"stroke",a.stroke,n)),zt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),zt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Ft(mT(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var gT=/^url\(\s*#(.*?)\)/;function vT(t,e,n,i){var r=n&&n.match(gT);if(!r)return"none"===n&&(n=null),n;var o=ce(r[1]);i.push([t,e,o])}var yT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mT(t){return t.match(yT)||[]}var _T=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xT=Math.PI/180;var bT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wT(t,e,n){var i,r=t.getAttribute("style");if(r)for(bT.lastIndex=0;null!=(i=bT.exec(r));){var o=i[1],a=ye(rT,o)?rT[o]:null;a&&(e[a]=i[2]);var s=ye(aT,o)?aT[o]:null;s&&(n[s]=i[2])}}function ST(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var CT=fe(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),MT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=fe(),this._freedGraphics=[],this._mapName=t,this._parsedXML=iT(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=fe();return zt(t,(function(t){if(null==t.namedFrom){var i=new K_(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{ue(null!=(n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new lT).parse(i,r))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Zr;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,h=void 0,p=void 0,d=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(h=0,d=s):l&&(h=l.y,d=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==h&&(h=f.y,d=f.height)}u=this._boundingRect=new Ar(c,h,p,d)}if(l){var g=ST(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Xs({shape:u.plain()}));var v=[];return zt(e.named,(function(t){var e;null!=CT.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 kT=[126,25],TT=[[[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]]],AT=0;AT<TT.length;AT++)for(var IT=0;IT<TT[AT].length;IT++)TT[AT][IT][0]/=10.5,TT[AT][IT][1]/=-14,TT[AT][IT][0]+=kT[0],TT[AT][IT][1]+=kT[1];var DT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var OT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var LT=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=fe(),this._mapName=t,this._specialAreas=n,this._geoJSON=Xt(i=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:ET(i)})}var r=fe(),o=[];return zt(n.regions,(function(e){var n=e.name;t&&ye(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Ar(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?tx(i,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)return;e.push(new J_("南海诸岛",Ft(TT,(function(t){return{type:"polygon",exterior:t}})),kT))}}(n,e),zt(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=DT[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:OT[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function ET(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var NT=fe(),PT=function(t,e,n){if(e.svg){var i=new MT(t,e.svg);NT.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new LT(t,r,n);NT.set(t,i)}},RT=function(t){return NT.get(t)},BT=function(t){var e=NT.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},VT=function(t,e,n){var i=NT.get(t);if(i)return i.load(e,n);"production"!==process.env.NODE_ENV&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.")},zT=["rect","circle","line","ellipse","polygon","polyline","path"],FT=fe(zT),GT=fe(zT.concat(["g"])),UT=fe(zT.concat(["g"])),WT=Ho();function HT(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function jT(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var YT=function(){function t(t){var e=new Zr;this.uid=Ah("ec_map_draw"),this._controller=new tT(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Zr),e.add(this._svgGroup=new Zr)}return t.prototype.draw=function(t,e,n,i,r){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(),h=c.raw,p=c.roam;!l.childAt(0)||r?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):Mc(u,p,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:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=fe(),n=fe(),i=this._regionsGroup,r=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]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function h(t){return{shape:{points:c(t)}}}i.removeAll(),zt(t.geo.regions,(function(r){var c=r.name,p=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;p||(p=e.set(c,new Zr),i.add(p),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=[],y=[];zt(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=QT(e,l)),zt(e,(function(t){v.push(new qu(h(t)))}))}else{var n=t.points;l&&(n=QT(n,l,!0)),zt(n,(function(t){y.push(new Ju(h(t)))}))}}));var m=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new cc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),qT(t,i,f,g),XT(t,i,c,g,o,f,m),n&&(jT(i),zt(i.states,jT))}}_(v),_(y,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;ZT(t,e,i,s,o,a),JT(t,e,i,s,o),KT(t,e,i,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 i=this._svgDispatcherMap=fe(),r=!1;zt(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!=FT.get(s)&&l instanceof Ea&&qT(t,l,u,c),l instanceof Ea&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=UT.get(s)&&XT(t,l,n,c,o,u,null),ZT(t,l,n,c,o,u),JT(t,l,n,c,o),null!=GT.get(s)&&("self"===KT(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,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){Ol(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 i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}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=RT(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=RT(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 i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,function(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}(o,t.dx,t.dy),n.dispatchAction(Nt(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,function(t,e,n,i){var r=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,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}(o,t.scale,t.originX,t.originY),n.dispatchAction(Nt(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!function(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!nT.hasOwnProperty(i.mainType)&&r&&r.model!==n}(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=WT(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function qT(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=HT(r),u=HT(o),c=HT(s),h=HT(a),p=t.data;if(p){var d=p.getItemVisual(n,"style"),f=p.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=h,Ol(e)}function XT(t,e,n,i,r,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 h=l?n:o,p=void 0;(!s||o>=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ih(e,rh(i),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(WT(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 ZT(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):cl(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function JT(t,e,n,i,r){t.data||Kc({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function KT(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return ql(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=cl(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function QT(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),zt(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(),r}var $T=YT,tA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new $T(n);r.add(o.group),o.draw(t,e,n,this,i),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 i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new bu({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=i.getName(n),h=u.indexOfName(c),p=i.getItemModel(n),d=p.getModel("label"),f=u.getItemGraphicEl(h);ih(l,rh(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Il(l,t)}}r.add(l)}}}))},e.type="map",e}(fg),eA=tA,nA=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,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return lt(e,t),e.prototype.getInitialData=function(t){for(var e=VM(this,{coordDimensions:["value"],encodeDefaulter:jt(Bp,this)}),n=fe(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}return zt(VT(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),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 i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Nf("section",{header:s.join(", "),noHeader:!s.length,blocks:[Nf("nameValue",{name:o,value:r})]})},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}(ng),iA=nA;function rA(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),zt(e,(function(t,e){for(var n,i,r,o=(n=Ft(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},zt(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].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=r[o].length,c=0;c<u;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?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 oA(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};zt(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.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=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var aA=De,sA=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new gr,n._rawTransformable=new gr,n.name=e,n}return lt(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Ar(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Ar(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Ar(t,e,n,i));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(),i=this.getCenter(),r=this.getZoom();i=De([],i,t),n=De([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ir(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],lr(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new gr;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 i=e?this._rawTransform:this.transform;return n=n||[],i?aA(n,t,i):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?aA([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=lA(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=lA(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(gr);function lA(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var uA=sA,cA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},hA=["lng","lat"],pA=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=hA,r.type="geo",r._nameCoordMap=fe(),r.map=n;var o,a=i.projection,s=VT(n,i.nameMap,i.nameProperty),l=RT(n),u=r.resourceType=l?l.type:null,c=r.regions=s.regions,h=cA[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&So("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&&So("project and unproject must be both provided in the projeciton."),a=null)),r.projection=a,a)for(var p=0;p<c.length;p++){var d=c[p].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:oe(i.aspectScale,h.aspectScale),r._invertLongitute=!a&&h.invertLongitute,r}return lt(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Ar(t,e,n,i));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 i=e[n];if("geoJSON"===i.type&&i.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(Xt(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.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,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=dA(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=dA(e);return i===this?i.pointToData(n):null},e}(uA);function dA(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Xo).models[0]||{}).coordinateSystem:null}Bt(pA,uA);var fA=pA;function gA(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-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,h=o.project([t+s*c,e+l*c]);Oe(i,i,h),Le(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var h,p,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),_=f.width/f.height*this.aspectScale,x=!1;if(g&&v&&(h=[eo(g[0],y),eo(g[1],m)],p=eo(v,Math.min(y,m)),isNaN(h[0])||isNaN(h[1])||isNaN(p)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):x=!0),x)d={},_>1?(d.width=p,d.height=p/_):(d.height=p,d.width=p*_),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,d=bp(b,{width:y,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var vA=function(){function t(){this.dimensions=hA}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new fA(o+r,o,Nt({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=gA,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),zt(r,(function(t,r){var o=Ft(t,(function(t){return t.get("nameMap")})),a=new fA(r,r,Nt({nameMap:Et(o)},i(t[0])));a.zoomLimit=re.apply(null,Ft(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=gA,a.resize(t[0],e),zt(t,(function(t){t.coordinateSystem=a,function(t,e){zt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=fe(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return zt(VT(e,n,i).regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}(),yA=new vA,mA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.init=function(t,e,n){var i=RT(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Oo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=yA.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Gt(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new kh(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),fe()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new kh(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return qt(i)?(r.status=e,i(r)):Xt(i)?i.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}(Tp),_A=mA;function xA(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}var bA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return lt(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new $T(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;av(t.target,(function(t){return null!=(e=cl(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=cl(t).eventData;if(e)return i._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}(rg),wA=bA;function SA(t,e,n){PT(t,e,n)}function CA(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),zt(n.coordinateSystem.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];zt(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",yA),t.registerComponentModel(_A),t.registerComponentView(wA),t.registerImpl("registerMap",SA),t.registerImpl("getMap",(function(t){return BT(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 i=e.coordinateSystem;if("geo"===i.type){var r=function(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.projectedToPoint?t.projectedToPoint(r):t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(xA(t,a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}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(xA(t,a)),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===n&&zt(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))}var MA=zt,kA=Kt,TA=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=Ot(e);this.type=i,this.mappingMethod=n,this._normalizeData=BA[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(AA(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,zt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(MA(e,(function(t,e){n[t]=e})),!Yt(i)){var r=[];Kt(i)?MA(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=RA(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):AA(r,!0):(ue("linear"!==n||r.dataExtent),AA(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Ht(this._normalizeData,this)},t.listVisualTypes=function(){return Wt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Kt(t)?zt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=Yt(e)?[]:Kt(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&MA(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(Yt(t))t=t.slice();else{if(!kA(t))return[];var e=[];MA(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 i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||Xt(s)&&s===t+"")return o;n&&h(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(VA(c[1],t,u[1]))return o}else if(u[1]===1/0){if(VA(c[0],u[0],t))return o}else if(VA(c[0],u[0],t)&&VA(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:OA("color"),getColorMapper:function(){var t=this.option;return Ht("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),LA.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=di(e,t.parsedVisual,i),r?i:gi(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return gi(di(t,this.option.parsedVisual),"rgba")},category:LA,piecewise:function(t,e){var n=PA.call(this,e);return null==n&&(n=gi(di(t,this.option.parsedVisual),"rgba")),n},fixed:EA}},colorHue:IA((function(t,e){return fi(t,e)})),colorSaturation:IA((function(t,e){return fi(t,null,e)})),colorLightness:IA((function(t,e){return fi(t,null,null,e)})),colorAlpha:IA((function(t,e){return function(t,e){var n=ci(t);if(n&&null!=e)return n[3]=ti(e),gi(n,"rgba")}(t,e)})),decal:{applyVisual:OA("decal"),_normalizedToVisual:{linear:null,category:LA,piecewise:null,fixed:null}},opacity:{applyVisual:OA("opacity"),_normalizedToVisual:NA([0,1])},liftZ:{applyVisual:OA("liftZ"),_normalizedToVisual:{linear:EA,category:EA,piecewise:EA,fixed:EA}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:DA,category:LA,piecewise:function(t,e){var n=PA.call(this,e);return null==n&&(n=DA.call(this,t)),n},fixed:EA}},symbolSize:{applyVisual:OA("symbolSize"),_normalizedToVisual:NA([0,1])}},t}();function AA(t,e){var n=t.visual,i=[];Kt(n)?MA(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),RA(t,i)}function IA(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:NA([0,1])}}function DA(t){var e=this.option.visual;return e[Math.round(to(t,[0,1],[0,e.length-1],!0))]||{}}function OA(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function LA(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function EA(){return this.option.visual[0]}function NA(t){return{linear:function(e){return to(e,t,this.option.visual,!0)},category:LA,piecewise:function(e,n){var i=PA.call(this,n);return null==i&&(i=to(e,t,this.option.visual,!0)),i},fixed:EA}}function PA(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[TA.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function RA(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Ft(e,(function(t){var e=ci(t);return e||"production"===process.env.NODE_ENV||So("'"+t+"' is an illegal color, fallback to '#000000'",!0),e||[0,0,0,1]}))),e}var BA={linear:function(t){return to(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=TA.findPieceIndex(t,e,!0);if(null!=n)return to(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:me};function VA(t,e,n){return t?e<=n:e<n}var zA=TA;function FA(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 GA(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var UA=Ho(),WA=Ot,HA=Ht,jA=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,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,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=jt(YA,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Zr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);JA(a,e,!0),this._renderHandle(r)}},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"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Lk(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=UA(t).pointerEl=new th[r.type](WA(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=UA(t).labelEl=new ul(WA(e.label));t.add(r),XA(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=UA(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=UA(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),XA(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Xc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ke(t.event)},onmousedown:HA(this._onHandleDragMove,this,0,0),drift:HA(this._onHandleDragMove,this),ondragend:HA(this._onHandleDragEnd,this)}),i.add(r)),JA(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Yt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,mg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){YA(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ZA(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ZA(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ZA(i)),UA(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,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_g(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 YA(t,e,n,i){qA(UA(n).lastProp,i)||(UA(n).lastProp=i,e?Mc(n,i,t):(n.stopAnimation(),n.attr(i)))}function qA(t,e){if(Kt(t)&&Kt(e)){var n=!0;return zt(e,(function(e,i){n=n&&qA(t[i],e)})),!!n}return t===e}function XA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ZA(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function JA(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}function KA(t,e,n,i,r){var o=QA(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=ap(a.get("padding")||0),l=a.getFont(),u=Lr(o,l),c=r.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-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,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:oh(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function QA(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:E_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};zt(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),Xt(a)?o=a.replace("{value}",o):qt(a)&&(o=a(s))}return o}function $A(t,e,n){var i=[1,0,0,1,0,0];return ar(i,i,n.rotation),or(i,i,n.position),Hc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var tI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=eI(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"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=nI[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Ak.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),KA(e,i,r,o,{position:$A(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,hk(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=hk(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=$A(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=eI(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(jA);function eI(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var nI={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=iI(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=iI(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function iI(t){return"x"===t.dim?0:1}var rI=tI,oI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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}(Tp),aI=Ho(),sI=zt;function lI(t,e,n){if(!pt.node){var i=e.getZr();aI(i).records||(aI(i).records={}),function(t,e){if(aI(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);sI(aI(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}aI(t).initialized=!0,n("click",jt(cI,"click")),n("mousemove",jt(cI,"mousemove")),n("globalout",uI)}(i,e),(aI(i).records[t]||(aI(i).records[t]={})).handler=n}}function uI(t,e,n){t.handler("leave",null,n)}function cI(t,e,n,i){e.handler(t,n,i)}function hI(t,e){if(!pt.node){var n=e.getZr();(aI(n).records||{})[t]&&(aI(n).records[t]=null)}}var pI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lI("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){hI("axisPointer",e)},e.prototype.dispose=function(t,e){hI("axisPointer",e)},e.type="axisPointer",e}(rg),dI=pI;function fI(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Wo(o,t);if(null==a||a<0||Yt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(Ft(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var gI=Ho();function vI(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Ht(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bI(r)&&(r=fI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bI(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||bI(r),p={},d={},f={list:[],map:{}},g={showPointer:jt(mI,d),showTooltip:jt(_I,f)};zt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);zt(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&yI(t,a,g,!1,p)}}))}));var v={};return zt(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&zt(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,xI(e),xI(t)))),v[t.key]=o}}))})),zt(v,(function(t,e){yI(c[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];zt(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,c,p),function(t,e,n,i){if(bI(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=gI(i)[r]||{},a=gI(i)[r]={};zt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&zt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];zt(o,(function(t,e){!a[e]&&l.push(t)})),zt(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),p}}function yI(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return zt(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[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,r=u,o.length=0),zt(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Nt(r,s[0]),!i&&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 mI(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function _I(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Nk(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:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function xI(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function wI(t){Rk.registerAxisPointerClass("CartesianAxisPointer",rI),t.registerComponentModel(oI),t.registerComponentView(dI),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Yt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ik(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vI)}var SI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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}(Tp);function CI(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function MI(t){if(pt.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var kI=MI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function TI(t,e){if(!t)return e;e=op(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var AI=TI(MI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),II=TI(kI,"transform"),DI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(pt.transform3dSupported?"will-change:transform;":"");function OI(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!pt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=pt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+II+":"+a+";":[["top",0],["left",0],[kI,a]]}function LI(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Wf(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=pt.transformSupported?","+II+i:",left"+i+",top"+i),AI+":"+r}(r,n)),o&&i.push("background-color:"+o),zt(["width","color","radius"],(function(e){var n="border-"+e,r=op(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),zt(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=h&&i.push("padding:"+ap(h).join("px ")+"px"),i.join(";")+";"}function EI(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Ue(Ge,e,i,r,!0)&&Ue(t,n,Ge[0],Ge[1])}(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;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 NI=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,pt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;EI(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;Je(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e,n,i,r=this._container,o=(n="position",(i=(e=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?i[n]:i:null),a=r.style;"absolute"!==a.position&&"absolute"!==o&&(a.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,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=DI+LI(t,!this._firstShow,this._longHide)+OI(r[0],r[1],!0)+"border-color:"+fp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Xt(r)&&"item"===n.get("trigger")&&!CI(n)&&(a=function(t,e,n){if(!Xt(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=fp(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=II+":";Rt(["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 h=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),Xt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Yt(t)||(t=[t]);for(var s=0;s<t.length;s++)te(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(EI(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;zt(OI(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",pt.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(Ht(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),PI=NI;function RI(t){return Math.max(0,t)}function BI(t){var e=RI(t.shadowBlur||0),n=RI(t.shadowOffsetX||0),i=RI(t.shadowOffsetY||0);return{left:RI(e-n),right:RI(e+n),top:RI(e-i),bottom:RI(e+i)}}function VI(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var zI=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),VI(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,i,r){var o=this;Kt(t)&&Ao("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 ul({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Wf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),zt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),zt(["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=BI(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 i=this._styleCoord;VI(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=RI(r.borderWidth||0),a=BI(r);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(Ht(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),FI=new Xs({shape:{x:-1,y:-1,width:2,height:2}}),GI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.init=function(t,e){if(!pt.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?pt.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new zI(e):new PI(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!pt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?mg(this,"_updatePosition",50,"fixRate"):_g(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");lI("itemTooltip",this._api,Ht((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),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 i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!pt.node&&n.getDom()){var r=WI(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=qo(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o,a=Zo(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=cl(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(i,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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=FI;l.x=i.x,l.y=i.y,l.update(),cl(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=fI(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(WI(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===UI([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,av(n,(function(t){return null!=cl(t).dataIndex?(r=t,!0):null!=cl(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,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=Ht(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=UI([e.tooltipOption],i),a=this._renderMode,s=[],l=Nf("section",{blocks:[],noHeader:!0}),u=[],c=new Hf;zt(t,(function(t){zt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=QA(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Nf("section",{header:o,noHeader:!ce(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),zt(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=E_(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",fp(f.color),a);var g=rf(p.formatTooltip(d,!0,null)),v=g.frag;if(v){var y=UI([p],i).get("valueFormatter");h.blocks.push(y?Nt({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=Ff(l,c,a,p,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,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=cl(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=UI([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Hf;g.marker=v.makeTooltipMarker("item",fp(g.color),h);var y=rf(s.formatTooltip(l,!1,u)),m=d.get("order"),_=d.get("valueFormatter"),x=y.frag,b=x?Ff(_?Nt({valueFormatter:_},x):x,v,h,m,i.get("useUTC"),d.get("textStyle")):y.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 i=cl(e),r=i.tooltipConfig.option||{};if(Xt(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UI(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Hf;this._showOrMove(l,(function(){var n=Ot(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(Xt(c)){var d=t.ecModel.get("useUTC"),f=Yt(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=Gh(f.axisValue,h,d)),h=dp(h,n,!0)}else if(qt(c)){var g=Ht((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Yt(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Yt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),qt(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),Yt(e))n=eo(e[0],s),i=eo(e[1],l);else if(Kt(e)){var d=e;d.width=u[0],d.height=u[1];var f=bp(d,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(Xt(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-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,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=HI(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=HI(h)?u[1]/2:"bottom"===h?u[1]:0),CI(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&zt(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&zt(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&zt(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&zt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!pt.node&&e.getDom()&&(_g(this,"_updatePosition"),this._tooltipContent.dispose(),hI("itemTooltip",e))},e.type="tooltip",e}(rg);function UI(t,e,n){var i,r=e.ecModel;n?(i=new kh(n,r,r),i=new kh(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof kh&&(a=a.get("tooltip",!0)),Xt(a)&&(a={formatter:a}),a&&(i=new kh(a,i,r)))}return i}function WI(t,e){return t.dispatchAction||Ht(e.dispatchAction,e)}function HI(t){return"center"===t||"middle"===t}var jI=GI;function YI(t){G_(wI),t.registerComponentModel(SI),t.registerComponentView(jI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},me),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},me)}var qI=zt;function XI(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function ZI(t,e,n){var i={};return qI(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);qI(t[e],(function(t,i){if(zA.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new zA(r),"opacity"===i&&((r=Ot(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new zA(r))}}))})),i}function JI(t,e,n,i){var r={};return zt(t,(function(t){var n=zA.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,o){var a,s;function l(t){return nv(o,s,t)}function u(t,e){!function(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}(o,s,t,e)}null!=i&&(a=o.getDimensionIndex(i));for(var c=o.getStore();null!=(s=t.next());){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var p=null!=i?c.get(a,s):s,d=n(p),f=e[d],g=r[d],v=0,y=g.length;v<y;v++){var m=g[v];f[m]&&f[m].applyVisual(p,l,u)}}}}}var KI=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 lt(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}(Tp),QI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=oe(t.get("textBaseline"),t.get("textVerticalAlign")),l=new ul({style:oh(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new ul({style:oh(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){gp(p,"_"+t.get("target"))})),d&&h.on("click",(function(){gp(d,"_"+t.get("subtarget"))})),cl(l).eventData=cl(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=bp(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new Xs({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(rg);function $I(t){t.registerComponentModel(KI),t.registerComponentView(QI)}var tD=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 lt(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"]),Yt(e)&&zt(e,(function(t,i){Xt(t)&&(t={type:t}),e[i]=Lt(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 i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Go(i)&&e.push(i.name)})),this._availableNames=n;var i=Ft(this.get("data")||e,(function(t){return(Xt(t)||Jt(t))&&(t={name:t}),new kh(t,this,this.ecModel)}),this);this._data=i},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&zt(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;zt(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;zt(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])&&Rt(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}(Tp),eD=tD,nD=jt,iD=zt,rD=Zr,oD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return lt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rD),this.group.add(this._selectorGroup=new rD),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 i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="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(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=bp(l,u,c),p=this.layoutInner(t,r,h,i,a,s),d=bp(Pt({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=ap(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Xs({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}(p,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,i,r,o,a){var s=this.getContentGroup(),l=fe(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),iD(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rD;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(p,a,o,r,e,t,f,v,g,u).on("click",nD(aD,a,null,i,c)).on("mouseover",nD(lD,p.name,null,i,c)).on("mouseout",nD(uD,p.name,null,i,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 h=s.indexOfName(a),p=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),f=ci(p.fill);f&&0===f[3]&&(f[3]=.2,p=Nt(Nt({},p),{fill:gi(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},p,d,u).on("click",nD(aD,null,a,i,c)).on("mouseover",nD(lD,null,a,i,c)).on("mouseout",nD(uD,null,a,i,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),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();iD(t,(function(t){var i=t.type,r=new ul({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),ih(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Yl(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var c=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),d=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),iD(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]);"inherit"===s.stroke&&(s.stroke=i[l]);"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity);a(s,i);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),!o){var h=e.get("inactiveBorderWidth"),p=s[l];s.lineWidth="auto"===h?i.lineWidth>0&&p?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",i,a,s,c,d),m=new rD,_=i.getModel("textStyle");if(!qt(t.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;m.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:h,itemHeight:p,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:f,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var b="left"===o?h+5:-5,w=o,S=r.get("formatter"),C=e;Xt(S)&&S?C=S.replace("{name}",null!=e?e:""):qt(S)&&(C=S(e));var M=i.get("inactiveColor");m.add(new ul({style:oh(_,{text:C,x:b,y:p/2,fill:d?_.getTextColor():M,align:w,verticalAlign:"middle"})}));var k=new Xs({shape:m.getBoundingRect(),invisible:!0}),T=i.getModel("tooltip");return T.get("show")&&Kc({el:k,componentModel:r,itemName:e,itemTooltipOption:T.option}),m.add(k),m.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(m),Yl(m),m.__legendDataIndex=n,m},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xp(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(),r){xp("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=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?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+p+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(rg);function aD(t,e,n,i){uD(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),lD(t,e,n,i)}function sD(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function lD(t,e,n,i){sD(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function uD(t,e,n,i){sD(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var cD=oD;function hD(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 i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),zt(n.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function dD(t){t.registerComponentModel(eD),t.registerComponentView(cD),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,hD),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",jt(pD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",jt(pD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",jt(pD,"inverseSelect")),t.registerAction("legendSelect","legendselected",jt(pD,"select")),t.registerAction("legendUnSelect","legendunselected",jt(pD,"unSelect"))}(t)}function fD(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Sp(e,n,{type:"box",ignoreSize:!!i})}var gD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Cp(e);t.prototype.init.call(this,e,n,i),fD(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),fD(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ih(eD.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}(eD),vD=Zr,yD=["width","height"],mD=["x","y"],_D=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 lt(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new vD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vD)},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,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=Yt(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=t+"DataIndex",o=Xc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Ht(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new ul({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=yD[s],u=mD[s],c=yD[1-s],h=mD[1-s];r&&xp("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=Ot(n);r&&(g[l]=n[l]-d[l]-p);var v=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=v[l]+p;else{var y=d[l]+p;f[s]-=y,v[u]-=y}v[l]+=d[l]+p,f[1-s]+=v[h]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[h]=Math.min(v[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;xp(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),xp("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=oe(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+y);v[1-i]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var m={x:0,y:0};if(m[r]=d?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-y,0),_[o]=m[o],u.setClipPath(new Xs({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&Mc(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;zt(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",Xt(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=yD[r],a=mD[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(f=s-1,g=d,v=d,y=null;f>=-1;--f)(y=m(l[f]))&&_(v,y.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(cD),xD=_D;function bD(t){G_(dD),t.registerComponentModel(gD),t.registerComponentView(xD),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 wD(t){G_(dD),G_(bD)}var SD={get:function(t,e,n){var i=Ot((CD[t]||{})[e]);return n&&Yt(i)?i[i.length-1]:i}},CD={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]}},MD=SD,kD=zA.mapVisual,TD=zA.eachVisual,AD=Yt,ID=zt,DD=io,OD=to,LD=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 lt(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 i;zt(n,(function(t){e.hasOwnProperty(t)&&XI(e[t])&&(i=!0)})),i&&zt(n,(function(n){e.hasOwnProperty(n)&&XI(e[n])?t[n]=Ot(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=Ht(t,this),this.controllerVisuals=ZI(this.option.controller,e,t),this.targetVisuals=ZI(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=Do(t),e},e.prototype.eachTargetSeries=function(t,e){zt(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),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 i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],Yt(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return Xt(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):qt(s)?i?s(t[0],t[1]):s(t):i?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=DD([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,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);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},i=e.target||(e.target={}),r=e.controller||(e.controller={});Lt(i,n),Lt(r,n);var o=this.isCategory();function a(n){AD(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},ID(i,(function(t,e){if(zA.isValidType(e)){var n=MD.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";ID(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&Ot(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&Ot(n)||(o?s[0]:[s[0],s[0]])),l.symbol=kD(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;TD(u,(function(t){t>c&&(c=t)})),l.symbolSize=kD(u,(function(t){return OD(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},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}(Tp),ED=LD,ND=[20,140],PD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(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]=ND[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=ND[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Yt(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),zt(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=io((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 i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=RD(this,"outOfRange",this.getExtent()),n=RD(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.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]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ih(ED.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}(ED);function RD(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var BD=PD,VD=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 lt(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=ap(e.get("padding")||0),i=t.getBoundingRect();t.add(new Xs({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.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 i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)];return zt(zA.prepareVisualTypes(u),(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),zA.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;!function(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.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 Ar(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 h=bp(Pt({width:a.width,height:a.height},e),n,i),p=s?h.x-a.x:0,d=l?h.y-a.y:0;"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw()}(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(rg),zD=VD,FD=[["left","right","width"],["top","bottom","height"]];function GD(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=FD[a],l=[0,null,10],u={},c=0;c<3;c++)u[FD[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=bp(u,o,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function UD(t,e){return zt(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var WD=to,HD=zt,jD=Math.min,YD=Math.max,qD=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 lt(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.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 i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.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,h=this.visualMapModel.textStyleModel;this.group.add(new ul({style:oh(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=GD(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Zr;s.add(l),l.add(n.outOfRange=XD()),l.add(n.inRange=XD(null,o?JD(this._orient):null,Ht(this._dragHandle,this,"all",!1),Ht(this._dragHandle,this,"all",!0))),l.setClipPath(new Xs({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=YD(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=Ht(this._dragHandle,this,n,!1),s=Ht(this._dragHandle,this,n,!0),l=Rr(t.get("handleSize"),i[0]),u=_v(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=JD(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Ke(t.event)}}),u.x=i[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(),Kl(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new ul({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Ke(t.event)},ondragend:s,style:oh(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=Rr(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(Nt({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 ul({silent:!0,invisible:!0,style:oh(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[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():ZD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[WD(e[0],n,i,!0),WD(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];!function(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=GA(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=GA(s,[0,a]),r=o=GA(s,[r,o]),i=0}e[0]=GA(e[0],n),e[1]=GA(e[1],n);var l=FA(e,i);e[i]+=t;var u,c=r||0,h=n.slice();l.sign<0?h[0]+=c:h[1]-=c,e[i]=GA(e[i],h),u=FA(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=FA(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o)}(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[WD(i[0],r,o,!0),WD(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new pc(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/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 Zr("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,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();HD([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=WD(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=Hc(n.handleLabelPoints[l],Wc(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.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}),h=this.getControllerVisual(t,"symbolSize"),p=WD(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=Hc(l.indicatorLabelPoint,Wc(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?y:"middle",align:m?"center":y});var _={x:d,y:p,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,b),v.animateTo(x,b)}else u.attr(_),v.attr(x);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,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=jD(YD(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=jD(YD(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=WD(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=WD(t,r,o,!0),u=[WD(s[0],r,o,!0),WD(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[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,h=[];(e||ZD(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=Vo(t[i].seriesId,null);if(null==o)return;for(var a=Do(t[i].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 i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(c,h);this._dispatchHighDown("downplay",UD(p[0],n)),this._dispatchHighDown("highlight",UD(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=cl(e).dataIndex){var i=cl(e),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.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",UD(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,i){var r=Wc(e,i?null:this.group);return Yt(t)?Hc(t,r,n):jc(t,r,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}(zD);function XD(t,e,n,i){return new qu({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ke(t.event)},ondragend:i})}function ZD(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function JD(t){return"vertical"===t?"ns-resize":"ew-resize"}var KD=qD,QD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},$D=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},tO=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(JI(e.stateList,e.targetVisuals,Ht(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(Ht(eO,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function eO(t,e,n,i){for(var r=e.targetVisuals[i],o=zA.prepareVisualTypes(r),a={color:iv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}var nO=zt;function iO(t){var e=t&&t.visualMap;Yt(e)||(e=e?[e]:[]),nO(e,(function(t){if(t){rO(t,"splitList")&&!rO(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Yt(e)&&nO(e,(function(t){Kt(t)&&(rO(t,"start")&&!rO(t,"min")&&(t.min=t.start),rO(t,"end")&&!rO(t,"max")&&(t.max=t.end))}))}}))}function rO(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var oO=!1;function aO(t){oO||(oO=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(QD,$D),zt(tO,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(iO))}function sO(t){t.registerComponentModel(BD),t.registerComponentView(KD),aO(t)}var lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return lt(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],uO[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=Ot(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Ft(this._pieceList,(function(t){return t=Ot(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=zA.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}zt(e.pieces,(function(t){zt(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),zt(n,(function(t,n){var i=!1;zt(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&zt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=MD.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,zt(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;zt(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[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=Ot(t)},e.prototype.getValueState=function(t){var e=zA.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(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){zA.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),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=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return zt(r,(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(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Ih(ED.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}(ED),uO={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),fo(t),zt(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;zt(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),cO(e,t)},pieces:function(t){var e=this.option;zt(e.pieces,(function(e,n){Kt(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;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]&&(i.value=o[0])}i.visual=zA.retrieveVisuals(e),t.push(i)}),this),cO(e,t),fo(t),zt(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 cO(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var hO=lO,pO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lt(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=re(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),zt(l.viewPieceList,(function(i){var l=i.piece,u=new Zr;u.onclick=Ht(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new ul({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),xp(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 i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:UD(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return GD(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Zr,a=this.visualMapModel.textStyleModel;o.add(new ul({style:oh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=Ft(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?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,i=Ot(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,zt(i,(function(t,e){i[e]=e===r}))):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(zD),dO=pO;function fO(t){t.registerComponentModel(hO),t.registerComponentView(dO),aO(t)}var gO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return lt(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Tf(this),Af(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Af(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:"column"},e}(Tp),vO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return lt(e,t),e.type="dataset",e}(rg);function yO(t){t.registerComponentModel(gO),t.registerComponentView(vO)}G_([uC,function(t){t.registerChartView(BM),t.registerSeriesModel(UM),rv("pie",t.registerAction),t.registerLayout(jt(IM,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].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"),i=n.get(e,t);return!(Jt(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},$I,YI,wD]);var mO=o({name:"EcanPie",props:Object.assign({},nC),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){var t=(i(s)[0]||{}).data,e=void 0===t?[]:t;if(Array.isArray(r.colors)){var n=r.isUseLabelColors,o=r.colors;e=e.map((function(t,e){return Object.assign({label:n?{color:o[e]}:{}},t)}))}return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},tooltip:{show:r.tooltipShow,trigger:r.tooltipTrigger,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},color:r.colors,series:[{data:e,type:"pie",radius:[r.innerRadius,r.outerRadius],center:[r.centerLeft,r.centerTop],roseType:r.roseType,avoidLabelOverlap:!1,label:{show:"center"!==r.labelPosition&&r.labelShow,color:r.labelColor,fontSize:r.labelFontSize,position:r.labelPosition,formatter:Cw(r.labelFormatter)},labelLine:{show:r.labelLineShow,length:r.labelLineLength,length2:r.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),u=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),c=u.getGlobalModel,h=u.setGlobalModel,p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=bw(t,e),i=n.dataset;console.log(i),s.value=i},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=bw(t,e);console.log(n.dataset),s.value=n.dataset};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var g=_(!1),v=Aw(r),y=mw(r.events)("click",(function(t){var e=r.id,n=c(e);h(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))})),m=Pw(r),x=function(){"design"!==i(p)&&(ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u,c,h,d;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,g.value=!0,t.next=6,m();case 6:u=t.sent,c=[],(null===(o=null===(n=null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.columns)||void 0===o?void 0:o.length)>0&&(h=u.data.data.columns[0],d=u.data.data.columns[1],c=null===(l=null===(s=null===(a=null==u?void 0:u.data)||void 0===a?void 0:a.data)||void 0===s?void 0:s.rows)||void 0===l?void 0:l.map((function(t){return{name:t[h],value:t[d]}}))),f(c),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),console.error(t.t0);case 15:return t.prev=15,g.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])}))),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,g.value=!0,t.next=6,v();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,r.valueTypeDataFieldNames),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,g.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])}))))};return yw(r,{refreshData:function(){x()},click:y}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(x,r.requestSort),{option:l,style:a,click:y,loading:g}}});mO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},mO.__file="src/graph/pie/Pie.vue";var _O=rw(mO),xO=Object.assign(Object.assign({},uw),{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",graphicConfig:null}),bO=cw(xO),wO=["click","refreshData"];G_([uC,JC,$I,wD]);var SO=o({name:"EcanLine",props:Object.assign({},bO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=_([]),u=n((function(){return{title:{text:r.titleText,subText:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,xAxis:{type:"category",data:i(l),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft},series:i(s)}})),c=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),h=c.getGlobalModel,p=c.setGlobalModel,d=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,f=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}l.value=t.dimensions;for(var a=t.dataset,u=[],c=a.length,h=0;h<c;h++)u.push(Object.assign(Object.assign({type:"line"},a[h]),{symbolSize:r.symbolSize,smooth:r.smooth,lineStyle:{width:r.lineStyleWidth}}));s.value=u},g=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],i=n?e:null,o=Ow(t,i);l.value=o.dimensions;for(var a=o.dataset,u=[],c=a.length,h=0;h<c;h++)u.push(Object.assign(Object.assign({type:"line"},a[h]),{symbolSize:r.symbolSize,smooth:r.smooth,lineStyle:{width:r.lineStyleWidth}}));s.value=u};t((function(){return[r.data,r.symbolSize,r.smooth,r.lineStyleWidth]}),(function(t){var e=Vx(t,1)[0];"static"!==r.dataType&&"design"!==i(d)||f(e)}),{immediate:!0,deep:!0});var v=_(!1),y=Aw(r),m=mw(r.events)("click",(function(t){var e=r.id,n=h(e);p(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))})),x=Pw(r),b=function(){"design"!==i(d)&&(ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType&&"design"!==i(d)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,x();case 6:l=t.sent,(null===(o=null===(n=null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.columns)||void 0===o?void 0:o.length)>0&&(u={name:l.data.data.columns[0],types:l.data.data.columns.slice(1).map((function(t){return{label:t,value:t}}))}),g(null===(s=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.data)||void 0===s?void 0:s.rows,u,!0),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error(t.t0);case 14:return t.prev=14,v.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,11,14,17]])}))),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(d)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,y();case 6:o=t.sent,f(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,v.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])}))))};return yw(r,{refreshData:function(){b()},click:m}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(b,r.requestSort),{option:u,style:a,click:m,loading:v}}});SO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},SO.__file="src/graph/line/Line.vue";var CO=rw(SO),MO=Object.assign(Object.assign({},uw),{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:null}),kO=cw(MO),TO=["refreshData","click"];G_([uC,CM,$I,wD,yO]);var AO=o({name:"EcanBar",props:Object.assign({},kO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){for(var t=i(s),e=t.length,n=[],o=0;o<e;o++)n.push(Object.assign(Object.assign({},t[o]),{type:"bar",barWidth:r.barWidth}));return n})),u=_([]),c=_(!1),h=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,tooltip:{trigger:"axis",show:r.tooltipShow,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},xAxis:{type:"category",data:i(u),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},series:i(l)}})),p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}s.value=t.dataset,u.value=t.dimensions},f=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],i=n?e:null,r=Ow(t,i);s.value=r.dataset,u.value=r.dimensions};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var g=Aw(r),v=Pw(r),y=function(){"design"!==i(p)&&(ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,v();case 6:l=t.sent,(null===(o=null===(n=null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.columns)||void 0===o?void 0:o.length)>0&&(u={name:l.data.data.columns[0],types:l.data.data.columns.slice(1).map((function(t){return{label:t,value:t}}))}),f(null===(s=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.data)||void 0===s?void 0:s.rows,u,!0),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error(t.t0);case 14:return t.prev=14,c.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,11,14,17]])}))),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,c.value=!0,t.next=6,g();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,c.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])}))))},m=function(){y()},x=mw(r.events),b=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),w=b.getGlobalModel,S=b.setGlobalModel,C=x("click",(function(t){var e=r.id,n=w(e);S(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(y,r.requestSort),yw(r,{refreshData:m,click:C}),{option:h,style:a,refreshData:m,click:C,loading:c}}});AO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},AO.__file="src/graph/bar/Bar.vue";var IO=rw(AO),DO=Object.assign(Object.assign({},uw),{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%",graphicConfig:void 0}),OO=cw(DO),LO=["click","refreshData"];G_([uC,qk,$I,YI,wD]);var EO=o({name:"EcanScatter",props:Object.assign({},OO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,xAxis:{splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:{splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(t){return Rw(r.yAxisLabelFormatter,t)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}},tooltip:{show:r.tooltipShow,trigger:r.tooltipTrigger,formatter:function(t){var e,n,i=null!==(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.record)&&void 0!==n?n:{};return Ew(r.tooltipFormatter,i)},axisPointer:{type:"cross"}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft},series:[{data:i(s),type:"scatter",symbolSize:r.symbolSize}]}})),u=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),c=u.getGlobalModel,h=u.setGlobalModel,p=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=e||{},i=n.name,r=void 0===i?"name":i,o=n.value,a=void 0===o?"value":o;s.value=t.map((function(t){return{value:[t[r],t[a]],record:t}})),console.log(t.map((function(t){return{value:[t[r],t[a]],record:t}})))};t((function(){return r.data}),(function(t){"static"!==r.dataType&&"design"!==i(p)||d(t)}),{immediate:!0,deep:!0});var f=_(!1),g=Aw(r),v=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(p)){t.next=2;break}return t.abrupt("return");case 2:return f.value=!0,t.prev=3,t.next=6,g();case 6:o=t.sent,d(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,r.dataFieldNames),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error(t.t0);case 13:return t.prev=13,f.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[3,10,13,16]])})))},y=mw(r.events)("click",(function(t){var e=r.id,n=c(e);h(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return yw(r,{refreshData:function(){v()},click:y}),(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(v,r.requestSort),{option:l,style:a,click:y,loading:f}}});EO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},EO.__file="src/graph/scatter/Scatter.vue";var NO=rw(EO),PO=Object.assign(Object.assign({},uw),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),RO=cw(PO),BO=o({name:"EcanCustomGraph",props:Object.assign({},RO),components:{Echarts:Hx},setup:function(e){var n=fw(e),i=_();return t((function(){return e.optionCode}),(function(t){try{var e=eval;i.value=e(t)}catch(t){console.error(t)}}),{immediate:!0}),{style:n,myOption:i,echarts:at}}});BO.render=function(t,e,n,i,r,o){var a=d("echarts");return f(),g("div",{style:x(t.style)},[p(a,{option:t.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},BO.__file="src/graph/custom-graph/CustomGraph.vue";var VO=rw(BO),zO=Object.assign(Object.assign({},uw),{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%",graphicConfig:void 0}),FO=cw(zO),GO=["refreshData","click"];G_([uC,CM,JC,$I,wD,yO]);var UO=o({name:"EcanComboGraph",props:Object.assign({},FO),components:{Spin:Jb,Echarts:Hx},setup:function(r){var o=this,a=fw(r),s=_([]),l=_([]),u=n((function(){return{title:{text:r.titleText,subtext:r.titleSubtext,left:"center"},grid:{top:r.gridTop,bottom:r.gridBottom,left:r.gridLeft,right:r.gridRight,containLabel:r.gridContainLabel},color:r.colors,tooltip:{trigger:"axis",show:r.tooltipShow,formatter:Cw(r.tooltipFormatter),textStyle:{color:r.tooltipTextStyleColor}},legend:{show:r.legendShow,orient:r.legendOrient,top:r.legendTop,left:r.legendLeft,textStyle:{color:r.legendTextStyleColor}},xAxis:{type:"category",data:i(l),splitLine:{show:r.xAxisSplitLineShow,lineStyle:{color:r.xAxisSplitLineStyleColor}},axisLabel:{color:r.xAxisLabelColor},axisLine:{lineStyle:{color:r.xAxisLineStyleColor}},axisTick:{show:r.xAxisTickShow}},yAxis:i(p),series:i(s)}})),c=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,h=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===r.dataFieldConfigType){var i=n?r.keyTypeDataFieldNames:null;t=Ow(e,i)}else if("value"===r.dataFieldConfigType){var o=n?r.valueTypeDataFieldNames:null;t=bw(e,o)}l.value=t.dimensions;for(var a=t.dataset,u=[],c=a.length,h=r.seriesTypes,p=0;p<c;p++){var d=h[p];u.push(Object.assign({type:null==d?void 0:d.type,yAxisIndex:null==d?void 0:d.axisIndex},a[p]))}s.value=u};t((function(){return[r.data,r.seriesTypes]}),(function(t){var e=Vx(t,1)[0];"static"!==r.dataType&&"design"!==i(c)||h(e)}),{immediate:!0,deep:!0});var p=n((function(){var t=r.yAxis;return null==t?void 0:t.map((function(t){return{type:"value",splitLine:{show:r.yAxisSplitLineShow,lineStyle:{color:r.yAxisSplitLineStyleColor}},axisLabel:{color:r.yAxisLabelColor,formatter:function(e){return Rw(t.axisLabelFormatter,e)}},axisLine:{lineStyle:{color:r.yAxisLineStyleColor}}}}))})),d=_(!1),f=Aw(r),g=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,o;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType&&"design"!==i(c)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,d.value=!0,t.next=6,f();case 6:o=t.sent,h(null===(n=null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.rows,!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,d.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},v=mw(r.events),y=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),m=y.getGlobalModel,x=y.setGlobalModel,b=v("click",(function(t){var e=r.id,n=m(e);x(e,Object.assign(Object.assign({},n),{RECORD:null==t?void 0:t.data}))}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(g,r.requestSort),yw(r,{refreshData:function(){g()},click:b}),{style:a,option:u,click:b,loading:d}}});UO.render=function(t,e,n,i,r,o){var a=d("echarts"),s=d("spin");return f(),g("div",{style:x(t.style)},[p(s,{spinning:t.loading},{default:m((function(){return[p(a,{option:t.option,"update-options":{notMerge:!0},autoresize:"",onClick:t.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},UO.__file="src/graph/combo-graph/ComboGraph.vue";var WO=rw(UO),HO=Object.assign(Object.assign({},uw),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),jO=cw(HO),YO=["click"],qO=o({name:"EcanBorder",props:Object.assign({},jO),setup:function(t){var e=fw(t),n=mw(t.events)("click",(function(){}));return yw(t,{click:n}),{style:e,click:n}}}),XO=function(t){return A("data-v-af8a0f90"),t=t(),I(),t},ZO={key:0,class:"top-title"},JO={class:"title-item-wrapper"},KO={class:"title-item"},QO=XO((function(){return C("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)})),$O={class:"title"},tL=XO((function(){return C("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),eL=XO((function(){return C("div",{class:"top-left border-item"},null,-1)})),nL=XO((function(){return C("div",{class:"top-right border-item"},null,-1)})),iL=XO((function(){return C("div",{class:"bottom-left border-item"},null,-1)})),rL=XO((function(){return C("div",{class:"bottom-right border-item"},null,-1)})),oL={key:1,class:"no-title"},aL=[XO((function(){return C("div",{class:"top-left border-item"},null,-1)})),XO((function(){return C("div",{class:"top-right border-item"},null,-1)})),XO((function(){return C("div",{class:"bottom-left border-item"},null,-1)})),XO((function(){return C("div",{class:"bottom-right border-item"},null,-1)}))],sL={key:2,class:"only-border"},lL={key:3,class:"left-title"},uL={class:"title"};Gx('.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}'),qO.render=function(t,e,n,i,r,o){return f(),g("div",{class:"ecan-border",style:x(t.style),onClick:e[0]||(e[0]=function(){return t.click&&t.click.apply(t,arguments)})},["top-title"===t.mode?(f(),g("div",ZO,[C("div",JO,[C("div",KO,[QO,C("div",$O,M(t.title),1),tL])]),eL,nL,iL,rL])):b("v-if",!0),"no-title"===t.mode?(f(),g("div",oL,aL)):b("v-if",!0),"only-border"===t.mode?(f(),g("div",sL)):b("v-if",!0),"left-title"===t.mode?(f(),g("div",lL,[C("div",uL,[C("span",null,M(t.title),1)])])):b("v-if",!0)],4)},qO.__scopeId="data-v-af8a0f90",qO.__file="src/container/border/Border.vue";var cL=rw(qO),hL={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"},pL=cw(hL),dL=["showModal"],fL=o({name:"EcanModal",components:{AModal:q},props:Object.assign({},pL),setup:function(t){var r=n((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[t.position]}})),o=t.width,a=t.height,s=t.originalWidth,l=t.originalHeight,u=n((function(){return parseFloat(o)/parseFloat(s)})),c=n((function(){return parseFloat(a)/parseFloat(l)})),p=n((function(){return"".concat(100*i(u),"%")})),d=n((function(){return document.body.offsetWidth})),f=n((function(){return document.body.offsetHeight})),g=n((function(){return i(d)*i(u)})),v=n((function(){return i(f)*i(c)})),y=n((function(){return{width:"".concat(i(g),"px"),height:"".concat(i(v),"px")}})),m=fw(t),x=n((function(){return Object.assign(Object.assign({},i(m)),{backgroundImage:Lw(t.backgroundImage,!0),transform:"scale(".concat(i(g)/parseFloat(o),",").concat(i(v)/parseFloat(a),")")})})),b=n((function(){return i(u)>=1})),w=n((function(){return t.fullModal})),S=n((function(){var t="ecan-modal";return i(b)&&(t+=" ecan-full-width-modal"),i(w)&&(t+=" ecan-full-modal"),t})),C=_(!1),M=_(),k=e("REQUEST_MODEL",{touchRequest:function(){}}).touchRequest,T=function(){C.value=!0,h((function(){k()}))},A=function(){C.value=!1};return yw(t,{showModal:T}),{contain:M,containStyle:y,contentStyle:x,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:r,modalWith:p,isFullModal:w,style:m,visible:C,showModal:T,onOk:function(){A()},onCancel:function(){A()},isFullWidth:b,wrapClassName:S}}});Gx(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");Gx(".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}"),fL.render=function(t,e,n,i,r,o){var a=d("a-modal");return f(),g(S,null,[b(" centered + style 中的 verticalAlign 调整弹窗位置 "),p(a,{getContainer:t.getContainer,wrapClassName:t.wrapClassName,centered:"",visible:t.visible,footer:null,width:t.isFullModal||t.isFullWidth?"100%":t.modalWith,destroyOnClose:t.destroyOnClose,style:x(t.modalStyle),bodyStyle:{background:"red"},onOk:t.onOk,onCancel:t.onCancel},O({default:m((function(){return[C("div",{class:"contain",ref:"contain",style:x(t.containStyle)},[C("div",{class:"content",style:x(t.contentStyle)},[(f(!0),g(S,null,k(t.componentList,(function(t,e){return f(),v(L(t.type),E({key:t.id+e},t),null,16)})),128))],4)],4)]})),_:2},[t.title?{name:"title",fn:m((function(){return[C("div",{style:x({fontSize:t.titleFontSize,color:t.titleColor,backgroundColor:t.backgroundColor,padding:"16px 24px"})},M(t.title),5)]}))}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},fL.__scopeId="data-v-4efa8b94",fL.__file="src/container/modal/Modal.vue";var gL=rw(fL),vL=Object.assign(Object.assign({},uw),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),yL=cw(vL),mL=o({name:"EcanImage",props:Object.assign({},yL),setup:function(t){var r=fw(t),o=n((function(){return Lw(t.imgUrl)})),a=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode;return{style:r,myImgUrl:o,onClick:function(){var e=t.linkPage,n=""!==e?function(t,e){var n="/preview?pageId=".concat(e),i="".concat(vw).concat(e);return"preview"!==t?i:n}(i(a),e):"",r=t.linkUrl,o=""!==r?r:n;""!==o&&window.open(o,t.linkMethod)}}}}),_L=["src"];Gx(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),mL.render=function(t,e,n,i,r,o){return""!==t.myImgUrl?(f(),g("img",{key:0,style:x(t.style),src:t.myImgUrl,onClick:e[0]||(e[0]=function(){return t.onClick&&t.onClick.apply(t,arguments)})},null,12,_L)):(f(),g("div",{key:1,class:"image-placeholder",style:x(t.style)}," 请上传图片 ",4))},mL.__scopeId="data-v-5a006553",mL.__file="src/media/image/Image.vue";var xL=rw(mL),bL=Object.assign(Object.assign({},uw),{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}),wL=cw(bL),SL=["click","refreshData"],CL=o({name:"EcanTable",components:{Skeleton:Qb,ATable:X,ATableSummary:Z,ATableSummaryRow:J,ATableSummaryCell:K},props:Object.assign({},wL),setup:function(r){var o=this,a=fw(r),s=n((function(){if(r.paginationShow)switch(r.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(r.size){case"small":return 40;case"middle":return 47;default:return 55}})),l=n((function(){return r.scrollX})),u=n((function(){return parseFloat(r.height)-i(s)})),c=n((function(){var t=[];r.isUseSeq&&t.push({title:"序号",dataIndex:"SEQ"});for(var e=(t=t.concat(r.columns)).length,n=r.columnsFixedNum,i=function(e){var i=t[e];i.fixed=e<n&&"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:r.headerCellBackgroundColor,borderBottomColor:r.borderColor}}},i.customCell=function(){return{style:{textAlign:u,color:c,backgroundColor:r.cellBackgroundColor,borderBottomColor:r.borderColor}}}},o=0;o<e;o++)i(o);return t})),h=_(0),p=_(1),d=n((function(){return r.paginationPageSize})),f=_(r.data);t((function(){return[r.data,r.dataType]}),(function(t){var e=Vx(t,2),n=e[0];"static"===e[1]&&(f.value=n)}));var g=Aw(r),v=_(!1),y=n((function(){var t=r.simple,e=[r.paginationPosition];return r.paginationShow&&{simple:t,position:e,total:i(h),current:i(p),pageSize:i(d)}})),m=function(t){return 1==+t?"是":0==+t?"否":t},x=mw(r.events),b=e("GLOBAL_CONFIG",{pageMode:"normal"}).pageMode,w=e("GLOBAL_MODEL",{getGlobalModel:function(t){},setGlobalModel:function(t,e){}}),S=w.getGlobalModel,C=w.setGlobalModel,M=_([]),k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];M.value=t.map((function(t){return{title:t,dataIndex:t,key:t}})),f.value=e},T=Pw(r),A=function(){return ut(o,void 0,void 0,lw.mark((function t(){var e,n,i,o,a;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===r.dataType){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,T();case 6:a=t.sent,k(null===(n=null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.data)||void 0===n?void 0:n.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),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,v.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},I=function(){"design"!==i(b)&&(A(),ut(o,void 0,void 0,lw.mark((function t(){var e,n,o,a,s,l,u;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("request"===r.dataType){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,v.value=!0,t.next=6,g({pageNum:i(p),pageSize:i(d)});case 6:n=t.sent,o=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.data)||{},a=o.rows,s=void 0===a?[]:a,l=o.total,u=void 0===l?0:l,h.value=u,f.value=s,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),console.error(t.t0);case 15:return t.prev=15,v.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])}))))};yw(r,{refreshData:function(){I()}});var D=n((function(){for(var t=r.columns,e=r.isUseSeq?[{total:"小计"}]:[],n=0,o=0;o<t.length;o++){var a=t[o];a.isCalcTotal?(e.push(Object.assign(Object.assign({},a),{index:o,total:0})),n++):e.push(Object.assign({},a))}if(0===n)return[];for(var s=(i(p)-1)*i(d),l=s+i(d),u=i(f).slice(s,l),c=0;c<u.length;c++)for(var h=u[c],g=0;g<e.length;g++){var v=e[g],y=v.dataIndex,m=v.total,_=+h[y];Number.isNaN(_)||null==m||(v.total=_+m)}return e}));return(0,e("REQUEST_MODEL",{setRequest:function(t,e){}}).setRequest)(I,r.requestSort),{x:l,y:u,myColumns:c,style:a,customRow:function(t){return{onClick:x("click",(function(){var e=r.id,n=S(e);C(e,Object.assign(Object.assign({},n),{RECORD:t}))}))}},pagination:y,formatFn:function(t,e){return null==e||""===e?t:{money:Mw,percentage:kw,contrast:kw,boolean:m}[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 i=t.current;p.value=i,A()},dataColumns:M,dataSource:f,summaryList:D,loading:v}}});Gx('.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}');Gx(".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}"),CL.render=function(t,e,n,i,r,o){var a=d("a-table-summary-cell"),s=d("a-table-summary-row"),l=d("a-table-summary"),u=d("a-table"),c=d("skeleton");return f(),g("div",{class:"ecan-table",style:x(t.style)},[p(c,{loading:t.loading},{default:m((function(){return[p(u,{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:m((function(e){var n=e.column,i=e.index,r=e.text;return[b(" 序列配置 "),"SEQ"===n.dataIndex?(f(),g(S,{key:0},[D(M(i+1),1)],2112)):(f(),g("div",{key:1,class:T([t.contrastClass(r,n.format)])},M((null!=n.format||""!==n.format)&&t.formatFn(r,n.format)),3))]})),summary:m((function(){return[t.summaryList.length>0?(f(),v(l,{key:0},{default:m((function(){return[p(s,null,{default:m((function(){return[(f(!0),g(S,null,k(t.summaryList,(function(e,n){return f(),v(a,{key:e.dataIndex+n,index:e.index,style:x({backgroundColor:t.cellBackgroundColor,textAlign:e.cellAlign||"center",color:e.cellColor,borderBottomColor:t.borderColor})},{default:m((function(){return[C("div",{class:T([t.contrastClass(e.total,e.format)])},M((null!=e.format||""!==e.format)&&t.formatFn(e.total,e.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):b("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},CL.__scopeId="data-v-21849ce3",CL.__file="src/table/table/Table.vue";var ML=rw(CL),kL=Object.assign(Object.assign({},uw),{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}"}),TL=cw(kL);G_([uC,function(t){G_(CA),t.registerChartView(eA),t.registerSeriesModel(iA),t.registerLayout(oA),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,rA),rv("map",t.registerAction)},qk,function(t){G_(sO),G_(fO)},YI]);var AL=o({name:"EcanMap",components:{Echarts:Hx},props:Object.assign({},TL),setup:function(e){var r=this,o=fw(e,["backgroundImage"]),a=_(),s=n((function(){return Lw(e.geoBackgroundImage)})),l=_(),u=n((function(){return Lw(e.backgroundImage)})),c=n((function(){return e.backgroundImage?{image:i(l),repeat:"no-repeat",width:"auto"}:""})),h=n((function(){return e.geoBackgroundImage?{image:i(a),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor})),p=n((function(){var t=e.symbolImage;return e.symbolImage?"image://"+Lw(t):"circle"})),d=n((function(){var t;return null===(t=e.geoCenter)||void 0===t?void 0:t.split(",")})),f=n((function(){return{backgroundColor:i(c),tooltip:{show:!0},geo:{zoom:e.geoZoom,roam:e.geoRoam,center:i(d),map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:i(h),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:i(p),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}})),g=_(!1);return t((function(){return e.mapJson}),(function(){ut(r,void 0,void 0,lw.mark((function t(){var n,i;return lw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(n=e.mapJson)&&null!=n.path){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Nw(gw+n.path);case 5:qy("map",(null==(i=t.sent)?void 0:i.data)||{}),g.value=!0;case 8:case"end":return t.stop()}}),t)})))}),{immediate:!0}),{option:f,style:o,isLoadedData:g,myBackgroundImage:u,backgroundImageRef:l,geoBackgroundImageRef:a,myGeoBackgroundImage:s}}}),IL=["src"],DL=["src"];Gx(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),AL.render=function(t,e,n,i,r,o){var a=d("echarts");return f(),g("div",{class:"ecan-map",style:x(t.style)},[t.isLoadedData?(f(),v(a,{key:0,option:t.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):b("v-if",!0),N(C("img",{ref:"geoBackgroundImageRef",src:t.myGeoBackgroundImage},null,8,IL),[[P,!1]]),N(C("img",{ref:"backgroundImageRef",src:t.myBackgroundImage},null,8,DL),[[P,!1]])],4)},AL.__scopeId="data-v-7865460d",AL.__file="src/map/map/Map.vue";var OL=rw(AL),LL=Object.freeze({__proto__:null,pageConfig:hw,pageConfigComponentProps:pw,EcanPageConfig:zw,providerConfig:Fw,providerConfigComponentProps:Gw,EcanProviderConfig:Hw,textProps:jw,textComponentProps:Yw,textEvents:qw,EcanText:Jw,EcanScrollText:$w,timeDisplayProps:tS,timeDisplayComponentProps:eS,EcanTimeDisplay:iS,listProps:rS,listComponentProps:oS,listEvents:aS,EcanList:mS,proportionProps:_S,proportionComponentProps:xS,proportionEvents:bS,EcanProportion:SS,inputProps:CS,inputComponentProps:MS,EcanInput:TS,datePickerProps:AS,datePickerComponentProps:IS,datePickerEvents:DS,EcanDatePicker:LS,selectProps:ES,selectComponentProps:NS,selectEvents:PS,EcanSelect:BS,rangePickerProps:VS,rangePickerComponentProps:zS,rangePickerEvents:FS,EcanRangePicker:US,buttonProps:WS,buttonComponentProps:HS,buttonEvents:jS,EcanButton:XS,tabsProps:ZS,tabsComponentProps:JS,tabsEvents:KS,EcanTabs:tC,pieProps:eC,pieComponentProps:nC,pieEvents:iC,EcanPie:_O,lineProps:xO,lineComponentProps:bO,lineEvents:wO,EcanLine:CO,barProps:MO,barComponentProps:kO,barEvents:TO,EcanBar:IO,scatterProps:DO,scatterComponentProps:OO,scatterEvents:LO,EcanScatter:NO,customGraphProps:PO,customGraphComponentProps:RO,EcanCustomGraph:VO,comboGraphProps:zO,comboGraphComponentProps:FO,comboGraphEvents:GO,EcanComboGraph:WO,borderProps:HO,borderComponentProps:jO,borderEvents:YO,EcanBorder:cL,modalProps:hL,modalComponentProps:pL,modalEvents:dL,EcanModal:gL,imageProps:vL,imageComponentProps:yL,EcanImage:xL,tableProps:bL,tableComponentProps:wL,tableEvents:SL,EcanTable:ML,mapProps:kL,mapComponentProps:TL,EcanMap:OL}),EL={install:function(t){Object.keys(LL).forEach((function(e){var n=LL[e];n.install&&t.use(n)}))}};export{IO as EcanBar,cL as EcanBorder,XS as EcanButton,WO as EcanComboGraph,VO as EcanCustomGraph,LS as EcanDatePicker,xL as EcanImage,TS as EcanInput,CO as EcanLine,mS as EcanList,OL as EcanMap,gL as EcanModal,zw as EcanPageConfig,_O as EcanPie,SS as EcanProportion,Hw as EcanProviderConfig,US as EcanRangePicker,NO as EcanScatter,$w as EcanScrollText,BS as EcanSelect,ML as EcanTable,tC as EcanTabs,Jw as EcanText,iS as EcanTimeDisplay,kO as barComponentProps,TO as barEvents,MO as barProps,jO as borderComponentProps,YO as borderEvents,HO as borderProps,HS as buttonComponentProps,jS as buttonEvents,WS as buttonProps,FO as comboGraphComponentProps,GO as comboGraphEvents,zO as comboGraphProps,RO as customGraphComponentProps,PO as customGraphProps,IS as datePickerComponentProps,DS as datePickerEvents,AS as datePickerProps,EL as default,yL as imageComponentProps,vL as imageProps,MS as inputComponentProps,CS as inputProps,bO as lineComponentProps,wO as lineEvents,xO as lineProps,oS as listComponentProps,aS as listEvents,rS as listProps,TL as mapComponentProps,kL as mapProps,pL as modalComponentProps,dL as modalEvents,hL as modalProps,hw as pageConfig,pw as pageConfigComponentProps,nC as pieComponentProps,iC as pieEvents,eC as pieProps,xS as proportionComponentProps,bS as proportionEvents,_S as proportionProps,Fw as providerConfig,Gw as providerConfigComponentProps,zS as rangePickerComponentProps,FS as rangePickerEvents,VS as rangePickerProps,OO as scatterComponentProps,LO as scatterEvents,DO as scatterProps,NS as selectComponentProps,PS as selectEvents,ES as selectProps,wL as tableComponentProps,SL as tableEvents,bL as tableProps,JS as tabsComponentProps,KS as tabsEvents,ZS as tabsProps,Yw as textComponentProps,qw as textEvents,jw as textProps,eS as timeDisplayComponentProps,tS as timeDisplayProps};