@nocobase/portal-template-default 1.0.17 → 1.0.18
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/.env.example +0 -4
- package/AGENTS.md +2 -0
- package/dist/assets/{LineDraw-BBB5hwuJ.js → LineDraw-B3HsIvjF.js} +1 -1
- package/dist/assets/{SymbolDraw-CKS3uUb_.js → SymbolDraw-C5oA6gYo.js} +1 -1
- package/dist/assets/{VisualMapping-BCwaW3TD.js → VisualMapping-CjyVXYl-.js} +1 -1
- package/dist/assets/{auth-method-demo-BdCCvEEz.js → auth-method-demo-B4sxmO2B.js} +1 -1
- package/dist/assets/auto-login-provider-DPtJmWC-.js +1 -0
- package/dist/assets/{auto-login-provider-DO5Il6Dp.js → auto-login-provider-pxf3kSYY.js} +2 -2
- package/dist/assets/auto-redirect-provider-B51i6R_U.js +1 -0
- package/dist/assets/auto-redirect-provider-CDA_97es.js +1 -0
- package/dist/assets/{auto-redirect-provider-ja-vFPaF.js → auto-redirect-provider-CeJOAYfx.js} +1 -1
- package/dist/assets/{calendar-C7xnRgOT.js → calendar-B41MfAkB.js} +1 -1
- package/dist/assets/{cas-sign-in-button-BZCa4lR6.js → cas-sign-in-button-DmkMYnGb.js} +1 -1
- package/dist/assets/{components-_g-GjQeV.js → components-DLLYm5Qd.js} +1 -1
- package/dist/assets/{configuration-gate-B4XVz7tS.js → configuration-gate-CdktspSj.js} +1 -1
- package/dist/assets/{createClipPathFromCoordSys-z9Kmh-tu.js → createClipPathFromCoordSys-BKzf1iWj.js} +1 -1
- package/dist/assets/createSeriesDataSimply-Dcpkokbc.js +1 -0
- package/dist/assets/{customGraphicKeyframeAnimation-DMU5crAu.js → customGraphicKeyframeAnimation-BYcy-PGj.js} +1 -1
- package/dist/assets/{demo-Bj_Y0RrW.js → demo-BpC2e3zt.js} +1 -1
- package/dist/assets/{demo-DUmWU7ik.js → demo-CEA7jJM2.js} +1 -1
- package/dist/assets/{demo-CXRTPvIx.js → demo-CX_Zf30k.js} +1 -1
- package/dist/assets/{demo-DJuVDu1n.js → demo-CyvGiwq2.js} +1 -1
- package/dist/assets/{demo-NhIzFRE1.js → demo-DJgGXOii.js} +1 -1
- package/dist/assets/{demo-CKPAQOib.js → demo-GTMcYVzl.js} +1 -1
- package/dist/assets/{demo-BPlae2bp.js → demo-O2QwJ70o.js} +1 -1
- package/dist/assets/{dingtalk-sign-in-button-DMPgE5kT.js → dingtalk-sign-in-button-K_2ZYQNC.js} +1 -1
- package/dist/assets/{echarts-preview-R96Pbqmz.js → echarts-preview-CTj0x24f.js} +1 -1
- package/dist/assets/{echarts-runtime-Ce_z2eX_.js → echarts-runtime-BTfAtt-4.js} +3 -3
- package/dist/assets/{echarts-runtime-advanced-Dr80KHJR.js → echarts-runtime-advanced-Xg4WXsLl.js} +1 -1
- package/dist/assets/{echarts-runtime-common-DB95Yfc1.js → echarts-runtime-common-Dfe5ONoi.js} +1 -1
- package/dist/assets/{echarts-runtime-components-DCJEaTJk.js → echarts-runtime-components-BNoMvPY0.js} +1 -1
- package/dist/assets/{echarts-runtime-hierarchy-CezgZs9O.js → echarts-runtime-hierarchy-bEvX8V8l.js} +1 -1
- package/dist/assets/{floating-O9WmiDXk.js → floating-CVEm6jgD.js} +1 -1
- package/dist/assets/{index-WKvygTBp.js → index-0O4dSmNz.js} +1 -1
- package/dist/assets/{index-DgB7uTMs.js → index-Bliz6Sy2.js} +1 -1
- package/dist/assets/{index-Cc6awvdg.js → index-CMoFG_fD.js} +210 -210
- package/dist/assets/{index-CPzehPGe.js → index-N5q0Lo-n.js} +1 -1
- package/dist/assets/{index-DroUAK80.js → index-dDkRfkPI.js} +1 -1
- package/dist/assets/{index-ChA0z9ke.js → index-s-Gc7krA.js} +1 -1
- package/dist/assets/{labelHelper-Dk5jkiD-.js → labelHelper-CSRwI3Ku.js} +1 -1
- package/dist/assets/{ldap-sign-in-form-CKN4l7qM.js → ldap-sign-in-form-BoVMVmwm.js} +1 -1
- package/dist/assets/{oidc-sign-in-button-BIRonrpC.js → oidc-sign-in-button-5pd4bZSW.js} +1 -1
- package/dist/assets/{page-context-DAiW_dId.js → page-context-o6ISleo3.js} +1 -1
- package/dist/assets/prompt-card-xoH-b2hL.js +1 -0
- package/dist/assets/{prompt-output-B4h3uLWf.js → prompt-output-7ZS2-d1_.js} +1 -1
- package/dist/assets/{saml-sign-in-button-B4ugaLIb.js → saml-sign-in-button-CN2l8pSN.js} +1 -1
- package/dist/assets/{sectorHelper-BuxrrJrA.js → sectorHelper-D1jHcZDN.js} +1 -1
- package/dist/assets/{shortcut-BhKXxJLs.js → shortcut-DUGrhOUX.js} +1 -1
- package/dist/assets/{sms-sign-in-form-DKpxRDdZ.js → sms-sign-in-form-ajsTToFF.js} +1 -1
- package/dist/assets/{static.browser-kzzpH0Xt.js → static.browser-exfE5oYi.js} +1 -1
- package/dist/assets/{switch-BdVxPIVU.js → switch-BVTKHDeA.js} +1 -1
- package/dist/assets/{tool-cards-CpczIke-.js → tool-cards-CQklNnUU.js} +1 -1
- package/dist/assets/{use-authenticator-sign-in-CIj210ry.js → use-authenticator-sign-in-B8OPLh-w.js} +1 -1
- package/dist/assets/{use-dingtalk-sign-in-BW4kkXD3.js → use-dingtalk-sign-in-DsX00uPU.js} +1 -1
- package/dist/assets/{use-wecom-sign-in-dIqMtcN9.js → use-wecom-sign-in-Di3WFrU1.js} +1 -1
- package/dist/assets/{wecom-sign-in-button-Dn_2zDab.js → wecom-sign-in-button-BO8h0tS8.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/index.raw.html +1 -1
- package/package.json +1 -1
- package/src/app/route-runtime.ts +29 -2
- package/src/components/data-table/data-table-filter.tsx +7 -4
- package/src/extensions/nocobase-users-example/app-routes.tsx +6 -2
- package/src/extensions/nocobase-users-example/index.ts +0 -1
- package/dist/assets/auto-login-provider-TQ08B6-i.js +0 -1
- package/dist/assets/auto-redirect-provider-ButXp0A3.js +0 -1
- package/dist/assets/auto-redirect-provider-DnGGP2Vn.js +0 -1
- package/dist/assets/createSeriesDataSimply-CPqysF0K.js +0 -1
- package/dist/assets/prompt-card-rGZqpqkF.js +0 -1
- package/src/extensions/nocobase-users-example/layout.tsx +0 -16
package/dist/assets/{echarts-runtime-common-DB95Yfc1.js → echarts-runtime-common-Dfe5ONoi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as k,c as ue,G as Q,a as oe,S as ee,m as te,i as ge,b as Ie,d as q,f as er,h as He,j as ae,k as Ye,s as se,l as $,t as J,q as Xe,C as Y,n as $e,o as ie,Z as tr,r as Te,u as Re,v as rr,w as wt,x as U,y as H,L as ar,z as je,A as ir,B as Ne,D as Ct,E as Lt,F as Qe,H as K,I as It,J as Oe,K as Ze,M as Tt,R as de,N as Z,O as nr,P as he,Q as or,T as Ee,U as Rt,V as Nt,W as sr,X as Ot,Y as lr,$ as qe,a0 as ur,a1 as Et,a2 as Be,a3 as hr,a4 as j,a5 as vr,a6 as ye,a7 as cr,a8 as pr,a9 as fr,aa as Se,ab as Je,ac as gr,ad as dr,ae as mr,af as Bt,ag as yr,ah as Sr,ai as br,aj as _r,ak as xr,al as Dr}from"./echarts-runtime-Ce_z2eX_.js";import{E as Ar,a as Pr,c as wr,b as Cr,d as ke}from"./createClipPathFromCoordSys-z9Kmh-tu.js";import{S as Ke,g as Lr}from"./sectorHelper-BuxrrJrA.js";import{i as ze}from"./CoordinateSystem-C8P-Cleg.js";import{g as kt,a as Ve}from"./labelHelper-Dk5jkiD-.js";import{c as Ir}from"./createSeriesDataSimply-CPqysF0K.js";import{S as We,a as Ge}from"./SymbolDraw-CKS3uUb_.js";import"./index-Cc6awvdg.js";var Tr=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var r=new Q,i=oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);r.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,u=e.itemHeight*.8,l=oe(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);r.add(l),l.setStyle(e.itemStyle);var h=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=h*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.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},t})(ee);function zt(a,t,e){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=Rr(i,e),o=r.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),h=s==="x"||s==="radius"?1:0,v=te(a.dimensions,function(g){return t.mapDimension(g)}),c=!1,p=t.getCalculationInfo("stackResultDimension");return ge(t,v[0])&&(c=!0,v[0]=p),ge(t,v[1])&&(c=!0,v[1]=p),{dataDimsForPoint:v,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Rr(a,t){var e=0,r=a.scale.getExtent();return t==="start"?e=r[0]:t==="end"?e=r[1]:Ie(t)&&!isNaN(t)?e=t:r[0]>0?e=r[0]:r[1]<0&&(e=r[1]),e}function Vt(a,t,e,r){var i=NaN;a.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=e.get(a.baseDim,r),o[1-n]=i,t.dataToPoint(o)}function Nr(a,t){var e=[];return t.diff(a).add(function(r){e.push({cmd:"+",idx:r})}).update(function(r,i){e.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){e.push({cmd:"-",idx:r})}).execute(),e}function Or(a,t,e,r,i,n,o,s){for(var u=Nr(a,t),l=[],h=[],v=[],c=[],p=[],g=[],f=[],y=zt(i,t,o),S=a.getLayout("points")||[],d=t.getLayout("points")||[],m=0;m<u.length;m++){var b=u[m],x=!0,_=void 0,D=void 0;switch(b.cmd){case"=":_=b.idx*2,D=b.idx1*2;var P=S[_],w=S[_+1],C=d[D],A=d[D+1];(isNaN(P)||isNaN(w))&&(P=C,w=A),l.push(P,w),h.push(C,A),v.push(e[_],e[_+1]),c.push(r[D],r[D+1]),f.push(t.getRawIndex(b.idx1));break;case"+":var L=b.idx,I=y.dataDimsForPoint,R=i.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);D=L*2,l.push(R[0],R[1]),h.push(d[D],d[D+1]);var T=Vt(y,i,t,L);v.push(T[0],T[1]),c.push(r[D],r[D+1]),f.push(t.getRawIndex(L));break;case"-":x=!1}x&&(p.push(b),g.push(g.length))}g.sort(function(B,me){return f[B]-f[me]});for(var W=l.length,V=q(W),N=q(W),M=q(W),G=q(W),O=[],m=0;m<g.length;m++){var F=g[m],z=m*2,E=F*2;V[z]=l[E],V[z+1]=l[E+1],N[z]=h[E],N[z+1]=h[E+1],M[z]=v[E],M[z+1]=v[E+1],G[z]=c[E],G[z+1]=c[E+1],O[m]=p[F]}return{current:V,next:N,stackedOnCurrent:M,stackedOnNext:G,status:O}}function et(a,t){if(a.length===t.length){for(var e=0;e<a.length;e++)if(a[e]!==t[e])return;return!0}}function tt(a){for(var t=1/0,e=1/0,r=-1/0,i=-1/0,n=0;n<a.length;){var o=a[n++],s=a[n++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[r,i]]}function rt(a,t){var e=tt(a),r=e[0],i=e[1],n=tt(t),o=n[0],s=n[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function at(a){return Ie(a)?a:a?.5:0}function Er(a,t,e){if(!e.valueDim)return[];for(var r=t.count(),i=q(r*2),n=0;n<r;n++){var o=Vt(e,a,t,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function X(a,t,e,r,i){var n=e.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],u=0,l=[],h=[],v=[],c=[];if(i){for(u=0;u<a.length;u+=2){var p=t||a;!isNaN(p[u])&&!isNaN(p[u+1])&&c.push(a[u],a[u+1])}a=c}for(u=0;u<a.length-2;u+=2)switch(v[0]=a[u+2],v[1]=a[u+3],h[0]=a[u],h[1]=a[u+1],s.push(h[0],h[1]),r){case"end":l[o]=v[o],l[1-o]=h[1-o],s.push(l[0],l[1]);break;case"middle":var g=(h[o]+v[o])/2,f=[];l[o]=f[o]=g,l[1-o]=h[1-o],f[1-o]=v[1-o],s.push(l[0],l[1]),s.push(f[0],f[1]);break;default:l[o]=h[o],l[1-o]=v[1-o],s.push(l[0],l[1])}return s.push(a[u++],a[u++]),s}function Br(a,t){var e=[],r=a.length,i,n;function o(h,v,c){var p=h.coord,g=(c-p)/(v.coord-p),f=ir(g,[h.color,v.color]);return{coord:c,color:f}}for(var s=0;s<r;s++){var u=a[s],l=u.coord;if(l<0)i=u;else if(l>t){n?e.push(o(n,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),n=u}return e}function kr(a,t,e){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&t.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(n){var u=t.getAxis(i),l=te(n.stops,function(m){return{coord:u.toGlobalCoord(u.dataToCoord(m.value)),color:m.color}}),h=l.length,v=n.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),v.reverse());var c=Br(l,i==="x"?e.getWidth():e.getHeight()),p=c.length;if(!p&&h)return l[0].coord<0?v[1]?v[1]:l[h-1].color:v[0]?v[0]:l[0].color;var g=10,f=c[0].coord-g,y=c[p-1].coord+g,S=y-f;if(S<.001)return"transparent";H(c,function(m){m.offset=(m.coord-f)/S}),c.push({offset:p?c[p-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:p?c[0].offset:.5,color:v[0]||"transparent"});var d=new ar(0,0,0,0,c,!0);return d[i]=f,d[i+"2"]=y,d}}}function zr(a,t,e){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&Vr(n,t))){var o=t.mapDimension(n.dim),s={};return H(n.getViewLabels(),function(u){var l=n.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function Vr(a,t){var e=a.getExtent(),r=Math.abs(e[1]-e[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Ge.getSymbolSize(t,o)[a.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Wr(a,t){return isNaN(a)||isNaN(t)}function Gr(a){for(var t=a.length/2;t>0&&Wr(a[t*2-2],a[t*2-1]);t--);return t-1}function it(a,t){return[a[t*2],a[t*2+1]]}function Fr(a,t,e){for(var r=a.length/2,i=e==="x"?0:1,n,o,s=0,u=-1,l=0;l<r;l++)if(o=a[l*2+i],!(isNaN(o)||isNaN(a[l*2+1-i]))){if(l===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){u=l;break}s=l,n=o}return{range:[s,u],t:(t-n)/(o-n)}}function Wt(a){if(a.get(["endLabel","show"]))return!0;for(var t=0;t<je.length;t++)if(a.get([je[t],"endLabel","show"]))return!0;return!1}function be(a,t,e,r){if(ze(t,"cartesian2d")){var i=r.getModel("endLabel"),n=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},u=Wt(r)?function(p,g){a._endLabelOnDuring(p,g,o,s,n,i,t)}:null,l=t.getBaseAxis().isHorizontal(),h=wr(t,e,r,function(){var p=a._endLabel;p&&e&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},u);if(!r.get("clip",!0)){var v=h.shape,c=Math.max(v.width,v.height);l?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return u&&u(1,h),h}else return Cr(t,e,r)}function Mr(a,t){var e=t.getBaseAxis(),r=e.isHorizontal(),i=e.inverse,n=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:a.get("align")||n,verticalAlign:a.get("verticalAlign")||o}}}var Ur=(function(a){k(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Q,r=new We;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=e,this._changePolyState=er(this._changePolyState,this)},t.prototype.render=function(e,r,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),u=e.getModel("lineStyle"),l=e.getModel("areaStyle"),h=s.getLayout("points")||[],v=n.type==="polar",c=this._coordSys,p=this._symbolDraw,g=this._polyline,f=this._polygon,y=this._lineGroup,S=!r.ssr&&e.get("animation"),d=!l.isEmpty(),m=l.get("origin"),b=zt(n,s,m),x=d&&Er(n,s,b),_=e.get("showSymbol"),D=e.get("connectNulls"),P=_&&!v&&zr(e,s,n),w=this._data;w&&w.eachItemGraphicEl(function(B,me){B.__temp&&(o.remove(B),w.setItemGraphicEl(me,null))}),_||p.remove(),o.add(y);var C=v?!1:e.get("step"),A;n&&n.getArea&&e.get("clip",!0)&&(A=n.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=kr(s,n,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&c.type===n.type&&C===this._step))_&&p.updateData(s,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(B){return[h[B*2],h[B*2+1]]}}),S&&this._initSymbolLabelAnimation(s,n,A),C&&(x&&(x=X(x,h,n,C,D)),h=X(h,null,n,C,D)),g=this._newPolyline(h),d?f=this._newPolygon(h,x):f&&(y.remove(f),f=this._polygon=null),v||this._initOrUpdateEndLabel(e,n,He(L)),y.setClipPath(be(this,n,!0,e));else{d&&!f?f=this._newPolygon(h,x):f&&!d&&(y.remove(f),f=this._polygon=null),v||this._initOrUpdateEndLabel(e,n,He(L));var I=y.getClipPath();if(I){var R=be(this,n,!1,e);ae(I,{shape:R.shape},e)}else y.setClipPath(be(this,n,!0,e));_&&p.updateData(s,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(B){return[h[B*2],h[B*2+1]]}}),(!et(this._stackedOnPoints,x)||!et(this._points,h))&&(S?this._doUpdateAnimation(s,x,n,i,C,m,D):(C&&(x&&(x=X(x,h,n,C,D)),h=X(h,null,n,C,D)),g.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:x})))}var T=e.getModel("emphasis"),W=T.get("focus"),V=T.get("blurScope"),N=T.get("disabled");if(g.useStyle(Ye(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),se(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var M=g.getState("emphasis").style;M.lineWidth=+g.style.lineWidth+1}$(g).seriesIndex=e.seriesIndex,J(g,W,V,N);var G=at(e.get("smooth")),O=e.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:O,connectNulls:D}),f){var F=s.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(Ye(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(z=at(F.get("smooth"))),f.setShape({smooth:G,stackedOnSmooth:z,smoothMonotone:O,connectNulls:D}),se(f,e,"areaStyle"),$(f).seriesIndex=e.seriesIndex,J(f,W,V,N)}var E=this._changePolyState;s.eachItemGraphicEl(function(B){B&&(B.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=s,this._coordSys=n,this._stackedOnPoints=x,this._points=h,this._step=C,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,g),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,r){$(r).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,r,i,n){var o=e.getData(),s=Xe(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var h=u[s*2],v=u[s*2+1];if(isNaN(h)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,v))return;var c=e.get("zlevel")||0,p=e.get("z")||0;l=new Ge(o,s),l.x=h,l.y=v,l.setZ(c,p);var g=l.getSymbolPath().getTextContent();g&&(g.zlevel=c,g.z=p,g.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Y.prototype.highlight.call(this,e,r,i,n)},t.prototype.downplay=function(e,r,i,n){var o=e.getData(),s=Xe(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Y.prototype.downplay.call(this,e,r,i,n)},t.prototype._changePolyState=function(e){var r=this._polygon;$e(this._polyline,e),r&&$e(r,e)},t.prototype._newPolyline=function(e){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Ar({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(e,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Pr({shape:{points:e,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,r,i){var n,o,s=r.getBaseAxis(),u=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var l=e.hostModel,h=l.get("animationDuration");ie(h)&&(h=h(null));var v=l.get("animationDelay")||0,c=ie(v)?v(null):v;e.eachItemGraphicEl(function(p,g){var f=p;if(f){var y=[p.x,p.y],S=void 0,d=void 0,m=void 0;if(i)if(o){var b=i,x=r.pointToCoord(y);n?(S=b.startAngle,d=b.endAngle,m=-x[1]/180*Math.PI):(S=b.r0,d=b.r,m=x[0])}else{var _=i;n?(S=_.x,d=_.x+_.width,m=p.x):(S=_.y+_.height,d=_.y,m=p.y)}var D=d===S?0:(m-S)/(d-S);u&&(D=1-D);var P=ie(v)?v(g):h*D+c,w=f.getSymbolPath(),C=w.getTextContent();f.attr({scaleX:0,scaleY:0}),f.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:P}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,r,i){var n=e.getModel("endLabel");if(Wt(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new tr({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=Gr(u);h>=0&&(Te(s,Re(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:h,defaultText:function(v,c,p){return p!=null?kt(o,p):Ve(o,v)},enableTextSetter:!0},Mr(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,r,i,n,o,s,u){var l=this._endLabel,h=this._polyline;if(l){e<1&&n.originalX==null&&(n.originalX=l.x,n.originalY=l.y);var v=i.getLayout("points"),c=i.hostModel,p=c.get("connectNulls"),g=s.get("precision"),f=s.get("distance")||0,y=u.getBaseAxis(),S=y.isHorizontal(),d=y.inverse,m=r.shape,b=d?S?m.x:m.y+m.height:S?m.x+m.width:m.y,x=(S?f:0)*(d?-1:1),_=(S?0:-f)*(d?-1:1),D=S?"x":"y",P=Fr(v,b,D),w=P.range,C=w[1]-w[0],A=void 0;if(C>=1){if(C>1&&!p){var L=it(v,w[0]);l.attr({x:L[0]+x,y:L[1]+_}),o&&(A=c.getRawValue(w[0]))}else{var L=h.getPointOn(b,D);L&&l.attr({x:L[0]+x,y:L[1]+_});var I=c.getRawValue(w[0]),R=c.getRawValue(w[1]);o&&(A=rr(i,g,I,R,P.t))}n.lastFrameIndex=w[0]}else{var T=e===1||n.lastFrameIndex>0?w[0]:0,L=it(v,T);o&&(A=c.getRawValue(T)),l.attr({x:L[0]+x,y:L[1]+_})}if(o){var W=wt(l);typeof W.setLabelText=="function"&&W.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,r,i,n,o,s,u){var l=this._polyline,h=this._polygon,v=e.hostModel,c=Or(this._data,e,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=c.current,g=c.stackedOnCurrent,f=c.next,y=c.stackedOnNext;if(o&&(g=X(c.stackedOnCurrent,c.current,i,o,u),p=X(c.current,null,i,o,u),y=X(c.stackedOnNext,c.next,i,o,u),f=X(c.next,null,i,o,u)),rt(p,f)>3e3||h&&rt(g,y)>3e3){l.stopAnimation(),l.setShape({points:f}),h&&(h.stopAnimation(),h.setShape({points:f,stackedOnPoints:y}));return}l.shape.__points=c.current,l.shape.points=p;var S={shape:{points:f}};c.current!==p&&(S.shape.__points=c.next),l.stopAnimation(),U(l,S,v),h&&(h.setShape({points:p,stackedOnPoints:g}),h.stopAnimation(),U(h,{shape:{stackedOnPoints:y}},v),l.shape.points!==h.shape.points&&(h.shape.points=l.shape.points));for(var d=[],m=c.status,b=0;b<m.length;b++){var x=m[b].cmd;if(x==="="){var _=e.getItemGraphicEl(m[b].idx1);_&&d.push({el:_,ptIdx:b})}}l.animators&&l.animators.length&&l.animators[0].during(function(){h&&h.dirtyShape();for(var D=l.shape.__points,P=0;P<d.length;P++){var w=d[P].el,C=d[P].ptIdx*2;w.x=D[C],w.y=D[C+1],w.markRedraw()}})},t.prototype.remove=function(e){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(r.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Y);function ve(a,t){return{seriesType:a,plan:Ne(),reset:function(e){var r=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,o=t||n.large;if(i){var s=te(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),u=s.length,l=r.getCalculationInfo("stackResultDimension");ge(r,s[0])&&(s[0]=l),ge(r,s[1])&&(s[1]=l);var h=r.getStore(),v=r.getDimensionIndex(s[0]),c=r.getDimensionIndex(s[1]);return u&&{progress:function(p,g){for(var f=p.end-p.start,y=o&&q(f*u),S=[],d=[],m=p.start,b=0;m<p.end;m++){var x=void 0;if(u===1){var _=h.get(v,m);x=i.dataToPoint(_,null,d)}else S[0]=h.get(v,m),S[1]=h.get(c,m),x=i.dataToPoint(S,null,d);o?(y[b++]=x[0],y[b++]=x[1]):g.setItemLayout(m,x.slice())}o&&g.setLayout("points",y)}}}}}}var Hr={average:function(a){for(var t=0,e=0,r=0;r<a.length;r++)isNaN(a[r])||(t+=a[r],e++);return e===0?NaN:t/e},sum:function(a){for(var t=0,e=0;e<a.length;e++)t+=a[e]||0;return t},max:function(a){for(var t=-1/0,e=0;e<a.length;e++)a[e]>t&&(t=a[e]);return isFinite(t)?t:NaN},min:function(a){for(var t=1/0,e=0;e<a.length;e++)a[e]<t&&(t=a[e]);return isFinite(t)?t:NaN},nearest:function(a){return a[0]}},Yr=function(a){return Math.round(a.length/2)};function Gt(a){return{seriesType:a,reset:function(t,e,r){var i=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var u=o.getBaseAxis(),l=o.getOtherAxis(u),h=u.getExtent(),v=r.getDevicePixelRatio(),c=Math.abs(h[1]-h[0])*(v||1),p=Math.round(s/c);if(isFinite(p)&&p>1){n==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):n==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var g=void 0;Ct(n)?g=Hr[n]:ie(n)&&(g=n),g&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,g,Yr))}}}}}function Xr(a){a.registerChartView(Ur),a.registerSeriesModel(Tr),a.registerLayout(ve("line",!0)),a.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Gt("line"))}var le=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,r,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(i)H(n.getAxes(),function(c,p){if(c.type==="category"&&r!=null){var g=c.getTicksCoords(),f=c.getTickModel().get("alignWithLabel"),y=o[p],S=r[p]==="x1"||r[p]==="y1";if(S&&!f&&(y+=1),g.length<2)return;if(g.length===2){s[p]=c.toGlobalCoord(c.getExtent()[S?1:0]);return}for(var d=void 0,m=void 0,b=1,x=0;x<g.length;x++){var _=g[x].coord,D=x===g.length-1?g[x-1].tickValue+b:g[x].tickValue;if(D===y){m=_;break}else if(D<y)d=_;else if(d!=null&&D>y){m=(_+d)/2;break}x===1&&(b=D-g[0].tickValue)}m==null&&(d?d&&(m=g[g.length-1].coord):m=g[0].coord),s[p]=c.toGlobalCoord(m)}});else{var u=this.getData(),l=u.getLayout("offset"),h=u.getLayout("size"),v=n.getBaseAxis().isHorizontal()?0:1;s[v]+=l+h/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(ee);ee.registerClass(le);var $r=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ue(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>e&&(e=r),e},t.prototype.brushSelector=function(e,r,i){return i.rect(r.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Lt(le.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}),t})(le);function jr(a,t){t=t||{};var e=t.isRoundCap;return function(r,i,n){var o=i.position;if(!o||o instanceof Array)return Qe(r,i,n);var s=a(o),u=i.distance!=null?i.distance:5,l=this.shape,h=l.cx,v=l.cy,c=l.r,p=l.r0,g=(c+p)/2,f=l.startAngle,y=l.endAngle,S=(f+y)/2,d=e?Math.abs(c-p)/2:0,m=Math.cos,b=Math.sin,x=h+c*m(f),_=v+c*b(f),D="left",P="top";switch(s){case"startArc":x=h+(p-u)*m(S),_=v+(p-u)*b(S),D="center",P="top";break;case"insideStartArc":x=h+(p+u)*m(S),_=v+(p+u)*b(S),D="center",P="bottom";break;case"startAngle":x=h+g*m(f)+ce(f,u+d,!1),_=v+g*b(f)+pe(f,u+d,!1),D="right",P="middle";break;case"insideStartAngle":x=h+g*m(f)+ce(f,-u+d,!1),_=v+g*b(f)+pe(f,-u+d,!1),D="left",P="middle";break;case"middle":x=h+g*m(S),_=v+g*b(S),D="center",P="middle";break;case"endArc":x=h+(c+u)*m(S),_=v+(c+u)*b(S),D="center",P="bottom";break;case"insideEndArc":x=h+(c-u)*m(S),_=v+(c-u)*b(S),D="center",P="top";break;case"endAngle":x=h+g*m(y)+ce(y,u+d,!0),_=v+g*b(y)+pe(y,u+d,!0),D="left",P="middle";break;case"insideEndAngle":x=h+g*m(y)+ce(y,-u+d,!0),_=v+g*b(y)+pe(y,-u+d,!0),D="right",P="middle";break;default:return Qe(r,i,n)}return r=r||{},r.x=x,r.y=_,r.align=D,r.verticalAlign=P,r}}function Qr(a,t,e,r){if(Ie(r)){a.setTextConfig({rotation:r});return}else if(K(t)){a.setTextConfig({rotation:0});return}var i=a.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,u,l=e(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=n;break;case"endAngle":case"insideEndAngle":u=o;break;default:a.setTextConfig({rotation:0});return}var h=Math.PI*1.5-u;l==="middle"&&h>Math.PI/2&&h<Math.PI*1.5&&(h-=Math.PI),a.setTextConfig({rotation:h})}function ce(a,t,e){return t*Math.sin(a)*(e?-1:1)}function pe(a,t,e){return t*Math.cos(a)*(e?1:-1)}var _e=Math.max,xe=Math.min;function Zr(a,t){var e=a.getArea&&a.getArea();if(ze(a,"cartesian2d")){var r=a.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var qr=(function(a){k(t,a);function t(){var e=a.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,r,i,n){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,r,i):this._renderNormal(e,r,i,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,r){this._progressiveEls=[],this._incrementalRenderLarge(e,r)},t.prototype.eachRendered=function(e){It(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e,r,i,n){var o=this.group,s=e.getData(),u=this._data,l=e.coordinateSystem,h=l.getBaseAxis(),v;l.type==="cartesian2d"?v=h.isHorizontal():l.type==="polar"&&(v=h.dim==="angle");var c=e.isAnimationEnabled()?e:null,p=Jr(e,l);p&&this._enableRealtimeSort(p,s,i);var g=e.get("clip",!0)||p,f=Zr(l,s);o.removeClipPath();var y=e.get("roundCap",!0),S=e.get("showBackground",!0),d=e.getModel("backgroundStyle"),m=d.get("borderRadius")||0,b=[],x=this._backgroundEls,_=n&&n.isInitSort,D=n&&n.type==="changeAxisOrder";function P(A){var L=fe[l.type](s,A),I=na(l,v,L);return I.useStyle(d.getItemStyle()),l.type==="cartesian2d"?I.setShape("r",m):I.setShape("cornerRadius",m),b[A]=I,I}s.diff(u).add(function(A){var L=s.getItemModel(A),I=fe[l.type](s,A,L);if(S&&P(A),!(!s.hasValue(A)||!ut[l.type](I))){var R=!1;g&&(R=nt[l.type](f,I));var T=ot[l.type](e,s,A,I,v,c,h.model,!1,y);p&&(T.forceLabelAnimation=!0),ht(T,s,A,L,I,e,v,l.type==="polar"),_?T.attr({shape:I}):p?st(p,c,T,I,A,v,!1,!1):ae(T,{shape:I},e,A),s.setItemGraphicEl(A,T),o.add(T),T.ignore=R}}).update(function(A,L){var I=s.getItemModel(A),R=fe[l.type](s,A,I);if(S){var T=void 0;x.length===0?T=P(L):(T=x[L],T.useStyle(d.getItemStyle()),l.type==="cartesian2d"?T.setShape("r",m):T.setShape("cornerRadius",m),b[A]=T);var W=fe[l.type](s,A),V=Mt(v,W,l);U(T,{shape:V},c,A)}var N=u.getItemGraphicEl(L);if(!s.hasValue(A)||!ut[l.type](R)){o.remove(N);return}var M=!1;if(g&&(M=nt[l.type](f,R),M&&o.remove(N)),N?Oe(N):N=ot[l.type](e,s,A,R,v,c,h.model,!!N,y),p&&(N.forceLabelAnimation=!0),D){var G=N.getTextContent();if(G){var O=wt(G);O.prevValue!=null&&(O.prevValue=O.value)}}else ht(N,s,A,I,R,e,v,l.type==="polar");_?N.attr({shape:R}):p?st(p,c,N,R,A,v,!0,D):U(N,{shape:R},e,A,null),s.setItemGraphicEl(A,N),N.ignore=M,o.add(N)}).remove(function(A){var L=u.getItemGraphicEl(A);L&&Ze(L,e,A)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Q);w.removeAll();for(var C=0;C<b.length;++C)w.add(b[C]);o.add(w),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(e,r,i){this._clear(),ct(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,r){this._removeBackground(),ct(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var r=e.get("clip",!0)&&ke(e.coordinateSystem,!1,e),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,r,i){var n=this;if(r.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,e,i),this._isFirstFrame=!1;else{var s=function(u){var l=r.getItemGraphicEl(u),h=l&&l.shape;return h&&Math.abs(o.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){n._updateSortWithinSameData(r,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,r,i){var n=[];return e.each(e.mapDimension(r.dim),function(o,s){var u=i(s);u=u??NaN,n.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:te(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,r,i){for(var n=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=n.getOrdinalMeta().categories.length;u<l;++u){var h=e.rawIndexOf(o,n.getRawOrdinalNumber(u)),v=h<0?Number.MIN_VALUE:r(e.indexOfRawIndex(h));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,r){for(var i=r.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,r,i,n){if(this._isOrderChangedWithinSameData(e,r,i)){var o=this._dataSort(e,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,r,i){var n=r.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(e,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var r=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){Ze(n,e,$(n).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Y),nt={cartesian2d:function(a,t){var e=t.width<0?-1:1,r=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=a.x+a.width,n=a.y+a.height,o=_e(t.x,a.x),s=xe(t.x+t.width,i),u=_e(t.y,a.y),l=xe(t.y+t.height,n),h=s<o,v=l<u;return t.x=h&&o>i?s:o,t.y=v&&u>n?l:u,t.width=h?0:s-o,t.height=v?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||v},polar:function(a,t){var e=t.r0<=t.r?1:-1;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}var i=xe(t.r,a.r),n=_e(t.r0,a.r0);t.r=i,t.r0=n;var o=i-n<0;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},ot={cartesian2d:function(a,t,e,r,i,n,o,s,u){var l=new de({shape:Z({},r),z2:1});if(l.__dataIndex=e,l.name="item",n){var h=l.shape,v=i?"height":"width";h[v]=0}return l},polar:function(a,t,e,r,i,n,o,s,u){var l=!i&&u?Ke:Tt,h=new l({shape:r,z2:1});h.name="item";var v=Ft(i);if(h.calculateTextPosition=jr(v,{isRoundCap:l===Ke}),n){var c=h.shape,p=i?"r":"endAngle",g={};c[p]=i?r.r0:r.startAngle,g[p]=r[p],(s?U:ae)(h,{shape:g},n)}return h}};function Jr(a,t){var e=a.get("realtimeSort",!0),r=t.getBaseAxis();if(e&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function st(a,t,e,r,i,n,o,s){var u,l;n?(l={x:r.x,width:r.width},u={y:r.y,height:r.height}):(l={y:r.y,height:r.height},u={x:r.x,width:r.width}),s||(o?U:ae)(e,{shape:u},t,i,null);var h=t?a.baseAxis.model:null;(o?U:ae)(e,{shape:l},h,i)}function lt(a,t){for(var e=0;e<t.length;e++)if(!isFinite(a[t[e]]))return!0;return!1}var Kr=["x","y","width","height"],ea=["cx","cy","r","startAngle","endAngle"],ut={cartesian2d:function(a){return!lt(a,Kr)},polar:function(a){return!lt(a,ea)}},fe={cartesian2d:function(a,t,e){var r=a.getItemLayout(t),i=e?ra(e,r):0,n=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+n*i/2,y:r.y+o*i/2,width:r.width-n*i,height:r.height-o*i}},polar:function(a,t,e){var r=a.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ta(a){return a.startAngle!=null&&a.endAngle!=null&&a.startAngle===a.endAngle}function Ft(a){return(function(t){var e=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+e;default:return r}}})(a)}function ht(a,t,e,r,i,n,o,s){var u=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var h=a.shape,v=Lr(r.getModel("itemStyle"),h,!0);Z(h,v),a.setShape(h)}}else{var l=r.get(["itemStyle","borderRadius"])||0;a.setShape("r",l)}a.useStyle(u);var c=r.getShallow("cursor");c&&a.attr("cursor",c);var p=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Re(r);Te(a,g,{labelFetcher:n,labelDataIndex:e,defaultText:Ve(n.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:p});var f=a.getTextContent();if(s&&f){var y=r.get(["label","position"]);a.textConfig.inside=y==="middle"?!0:null,Qr(a,y==="outside"?p:y,Ft(o),r.get(["label","rotate"]))}nr(f,g,n.getRawValue(e),function(d){return kt(t,d)});var S=r.getModel(["emphasis"]);J(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),se(a,r),ta(i)&&(a.style.fill="none",a.style.stroke="none",H(a.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}function ra(a,t){var e=a.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var r=a.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,n)}var aa=(function(){function a(){}return a})(),vt=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new aa},t.prototype.buildPath=function(e,r){for(var i=r.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,h=0;h<i.length;h+=3)u[n]=l,u[o]=i[h+2],s[n]=i[h+n],s[o]=i[h+o],e.rect(s[0],s[1],u[0],u[1])},t})(he);function ct(a,t,e,r){var i=a.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=a.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var h=new vt({shape:{points:l},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,h.useStyle(u.getItemStyle()),t.add(h),e&&e.push(h)}var v=new vt({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=n,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,$(v).seriesIndex=a.seriesIndex,a.get("silent")||(v.on("mousedown",pt),v.on("mousemove",pt)),e&&e.push(v)}var pt=or(function(a){var t=this,e=ia(t,a.offsetX,a.offsetY);$(t).dataIndex=e>=0?e:null},30,!1);function ia(a,t,e){for(var r=a.baseDimIdx,i=1-r,n=a.shape.points,o=a.largeDataIndices,s=[],u=[],l=a.barWidth,h=0,v=n.length/3;h<v;h++){var c=h*3;if(u[r]=l,u[i]=n[c+2],s[r]=n[c+r],s[i]=n[c+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[h]}return-1}function Mt(a,t,e){if(ze(e,"cartesian2d")){var r=t,i=e.getArea();return{x:a?r.x:i.x,y:a?i.y:r.y,width:a?r.width:i.width,height:a?i.height:r.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:a?i.r0:n.r0,r:a?i.r:n.r,startAngle:a?n.startAngle:0,endAngle:a?n.endAngle:Math.PI*2}}}function na(a,t,e){var r=a.type==="polar"?Tt:de;return new r({shape:Mt(t,e,a),silent:!0,z2:0})}function oa(a){a.registerChartView(qr),a.registerSeriesModel($r),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Ee(Rt,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nt("bar")),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Gt("bar")),a.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var sa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t})(ee),Ut=4,la=(function(){function a(){}return a})(),ua=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new la},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,u=e.getContext?e.getContext():e,l=u&&n[0]<Ut,h=this.softClipShape,v;if(l){this._ctx=u;return}for(this._ctx=null,v=this._off;v<i.length;){var c=i[v++],p=i[v++];isNaN(c)||isNaN(p)||h&&!h.contain(c,p)||(s.x=c-n[0]/2,s.y=p-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,r=e.points,i=e.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<r.length;){var u=r[s++],l=r[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||n.fillRect(u-i[0]/2,l-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,r){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=n.length/2-1;l>=0;l--){var h=l*2,v=n[h]-s/2,c=n[h+1]-u/2;if(e>=v&&r>=c&&e<=v+s&&r<=c+u)return l}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),n=this.getBoundingRect();if(e=i[0],r=i[1],n.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],u=1/0,l=1/0,h=-1/0,v=-1/0,c=0;c<i.length;){var p=i[c++],g=i[c++];u=Math.min(p,u),h=Math.max(p,h),l=Math.min(g,l),v=Math.max(g,v)}e=this._rect=new sr(u-o/2,l-s/2,h-u+o,v-l+s)}return e},t})(he),ha=(function(){function a(){this.group=new Q}return a.prototype.updateData=function(t,e){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,e)},a.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,n=r.startIndex*4*2;e=new Float32Array(e.buffer,n,i)}r.setShape("points",e),r.reset()})},a.prototype.incrementalPrepareUpdate=function(t){this._clear()},a.prototype.incrementalUpdate=function(t,e,r){var i=this._newAdded[0],n=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,u=new Float32Array(s+n.length);u.set(o),u.set(n,s),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:n}),this._setCommon(l,e,r)}},a.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},a.prototype._create=function(){var t=new ua({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},a.prototype._setCommon=function(t,e,r){var i=e.hostModel;r=r||{};var n=e.getVisual("symbolSize");t.setShape("size",n instanceof Array?n:[n,n]),t.softClipShape=r.clipShape||null,t.symbolProxy=oe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Ut;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),u=s&&s.fill;u&&t.setColor(u);var l=$(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(h){l.dataIndex=null;var v=t.hoverDataIdx;v>=0&&(l.dataIndex=v+(t.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),va=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._symbolDraw.incrementalUpdate(e,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=e.end===r.getData().count()},t.prototype.updateTransform=function(e,r,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ve("").reset(e,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var r=e.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new ha:new We,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Y);function ca(a){Ot(lr),a.registerSeriesModel(sa),a.registerChartView(va),a.registerLayout(ve("scatter"))}var Ht=(function(){function a(){}return a.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},a.prototype.getInitialData=function(t,e){var r,i=e.getComponent("xAxis",this.get("xAxisIndex")),n=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),u;o==="category"?(t.layout="horizontal",r=i.getOrdinalMeta(),u=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",r=n.getOrdinalMeta(),u=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],h=t.layout==="horizontal"?0:1,v=this._baseAxisDim=l[h],c=l[1-h],p=[i,n],g=p[h].get("type"),f=p[1-h].get("type"),y=t.data;if(y&&u){var S=[];H(y,function(b,x){var _;K(b)?(_=b.slice(),b.unshift(x)):K(b.value)?(_=Z({},b),_.value=_.value.slice(),b.value.unshift(x)):_=b,S.push(_)}),t.data=S}var d=this.defaultValueDimensions,m=[{name:v,type:qe(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:qe(f),dimsDef:d.slice()}];return Ir(this,{coordDimensions:m,dimensionsCount:d.length+1,encodeDefaulter:Ee(ur,m,this)})},a.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},a})(),Yt=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(ee);Et(Yt,Ht,!0);var pa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var u=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(l){if(n.hasValue(l)){var h=n.getItemLayout(l),v=ft(h,n,l,u,!0);n.setItemGraphicEl(l,v),o.add(v)}}).update(function(l,h){var v=s.getItemGraphicEl(h);if(!n.hasValue(l)){o.remove(v);return}var c=n.getItemLayout(l);v?(Oe(v),Xt(c,v,n,l)):v=ft(c,n,l,u),o.add(v),n.setItemGraphicEl(l,v)}).remove(function(l){var h=s.getItemGraphicEl(l);h&&o.remove(h)}).execute(),this._data=n},t.prototype.remove=function(e){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},t.type="boxplot",t})(Y),fa=(function(){function a(){}return a})(),ga=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new fa},t.prototype.buildPath=function(e,r){var i=r.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])},t})(he);function ft(a,t,e,r,i){var n=a.ends,o=new ga({shape:{points:i?da(n,r,a):n}});return Xt(a,o,t,e,i),o}function Xt(a,t,e,r,i){var n=e.hostModel,o=Be[i?"initProps":"updateProps"];o(t,{shape:{points:a.ends}},n,r),t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(r),u=s.getModel("emphasis");se(t,s),J(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function da(a,t,e){return te(a,function(r){return r=r.slice(),r[t]=e.initBaseline,r})}var ne=H;function ma(a){var t=ya(a);ne(t,function(e){var r=e.seriesModels;r.length&&(Sa(e),ne(r,function(i,n){ba(i,e.boxOffsetList[n],e.boxWidthList[n])}))})}function ya(a){var t=[],e=[];return a.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),n=hr(e,i);n<0&&(n=e.length,e[n]=i,t[n]={axis:i,seriesModels:[]}),t[n].seriesModels.push(r)}),t}function Sa(a){var t=a.axis,e=a.seriesModels,r=e.length,i=a.boxWidthList=[],n=a.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var u=0;ne(e,function(g){u=Math.max(u,g.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/u}ne(e,function(g){var f=g.get("boxWidth");K(f)||(f=[f,f]),o.push([j(f[0],s)||0,j(f[1],s)||0])});var h=s*.8-2,v=h/r*.3,c=(h-v*(r-1))/r,p=c/2-h/2;ne(e,function(g,f){n.push(p),p+=v+c,i.push(Math.min(Math.max(c,o[f][0]),o[f][1]))})}function ba(a,t,e){var r=a.coordinateSystem,i=a.getData(),n=e/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,u=["x","y"],l=i.mapDimension(u[o]),h=i.mapDimensionsAll(u[s]);if(l==null||h.length<5)return;for(var v=0;v<i.count();v++){var c=i.get(l,v),p=m(c,h[2],v),g=m(c,h[0],v),f=m(c,h[1],v),y=m(c,h[3],v),S=m(c,h[4],v),d=[];b(d,f,!1),b(d,y,!0),d.push(g,f,S,y),x(d,g),x(d,S),x(d,p),i.setItemLayout(v,{initBaseline:p[s],ends:d})}function m(_,D,P){var w=i.get(D,P),C=[];C[o]=_,C[s]=w;var A;return isNaN(_)||isNaN(w)?A=[NaN,NaN]:(A=r.dataToPoint(C),A[o]+=t),A}function b(_,D,P){var w=D.slice(),C=D.slice();w[o]+=n,C[o]-=n,P?_.push(w,C):_.push(C,w)}function x(_,D){var P=D.slice(),w=D.slice();P[o]-=n,w[o]+=n,_.push(P,w)}}function _a(a,t){t=t||{};for(var e=[],r=[],i=t.boundIQR,n=i==="none"||i===0,o=0;o<a.length;o++){var s=vr(a[o].slice()),u=ye(s,.25),l=ye(s,.5),h=ye(s,.75),v=s[0],c=s[s.length-1],p=(i??1.5)*(h-u),g=n?v:Math.max(v,u-p),f=n?c:Math.min(c,h+p),y=t.itemNameFormatter,S=ie(y)?y({value:o}):Ct(y)?y.replace("{value}",o+""):o+"";e.push([S,g,u,l,h,f]);for(var d=0;d<s.length;d++){var m=s[d];if(m<g||m>f){var b=[S,m];r.push(b)}}}return{boxData:e,outliers:r}}var xa={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==cr){var r="";pr(r)}var i=_a(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Da(a){a.registerSeriesModel(Yt),a.registerChartView(pa),a.registerLayout(ma),a.registerTransform(xa)}var Aa=["itemStyle","borderColor"],Pa=["itemStyle","borderColor0"],wa=["itemStyle","borderColorDoji"],Ca=["itemStyle","color"],La=["itemStyle","color0"];function Fe(a,t){return t.get(a>0?Ca:La)}function Me(a,t){return t.get(a===0?wa:a>0?Aa:Pa)}var Ia={seriesType:"candlestick",plan:Ne(),performRawSeries:!0,reset:function(a,t){if(!t.isSeriesFiltered(a)){var e=a.pipelineContext.large;return!e&&{progress:function(r,i){for(var n;(n=r.next())!=null;){var o=i.getItemModel(n),s=i.getItemLayout(n).sign,u=o.getItemStyle();u.fill=Fe(s,o),u.stroke=Me(s,o)||u.fill;var l=i.ensureUniqueItemVisual(n,"style");Z(l,u)}}}}}},Ta=["color","borderColor"],Ra=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,r,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,r):this._incrementalRenderNormal(e,r)},t.prototype.eachRendered=function(e){It(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e){var r=e.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=e.get("clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||n.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var v=r.getItemLayout(h);if(s&>(l,v))return;var c=De(v,h,!0);ae(c,{shape:{points:v.ends}},e,h),Ae(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}}).update(function(h,v){var c=i.getItemGraphicEl(v);if(!r.hasValue(h)){n.remove(c);return}var p=r.getItemLayout(h);if(s&>(l,p)){n.remove(c);return}c?(U(c,{shape:{points:p.ends}},e,h),Oe(c)):c=De(p),Ae(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&n.remove(v)}).execute(),this._data=r},t.prototype._renderLarge=function(e){this._clear(),dt(e,this.group);var r=e.get("clip",!0)?ke(e.coordinateSystem,!1,e):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),u=De(s);Ae(u,i,o,n),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,r){dt(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(Y),Na=(function(){function a(){}return a})(),Oa=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Na},t.prototype.buildPath=function(e,r){var i=r.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t})(he);function De(a,t,e){var r=a.ends;return new Oa({shape:{points:e?Ea(r,a):r},z2:100})}function gt(a,t){for(var e=!0,r=0;r<t.ends.length;r++)if(a.contain(t.ends[r][0],t.ends[r][1])){e=!1;break}return e}function Ae(a,t,e,r){var i=t.getItemModel(e);a.useStyle(t.getItemVisual(e,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,se(a,i);var n=t.getItemLayout(e).sign;H(a.states,function(s,u){var l=i.getModel(u),h=Fe(n,l),v=Me(n,l)||h,c=s.style||(s.style={});h&&(c.fill=h),v&&(c.stroke=v)});var o=i.getModel("emphasis");J(a,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Ea(a,t){return te(a,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var Ba=(function(){function a(){}return a})(),Pe=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Ba},t.prototype.buildPath=function(e,r){for(var i=r.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];e.moveTo(o,i[n++]),e.lineTo(o,i[n++])}else n+=3},t})(he);function dt(a,t,e,r){var i=a.getData(),n=i.getLayout("largePoints"),o=new Pe({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Pe({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var u=new Pe({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});t.add(u),we(1,o,a),we(-1,s,a),we(0,u,a),r&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function we(a,t,e,r){var i=Me(a,e)||Fe(a,e),n=e.getModel("itemStyle").getItemStyle(Ta);t.useStyle(n),t.style.fill=null,t.style.stroke=i}var $t=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,r,i){var n=r.getItemLayout(e);return n&&i.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(ee);Et($t,Ht,!0);function ka(a){!a||!K(a.series)||H(a.series,function(t){fr(t)&&t.type==="k"&&(t.type="candlestick")})}var za={seriesType:"candlestick",plan:Ne(),reset:function(a){var t=a.coordinateSystem,e=a.getData(),r=Va(a,e),i=0,n=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),u=te(e.mapDimensionsAll(o[n]),e.getDimensionIndex,e),l=u[0],h=u[1],v=u[2],c=u[3];if(e.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||u.length<4)return;return{progress:a.pipelineContext.large?g:p};function p(f,y){for(var S,d=y.getStore();(S=f.next())!=null;){var m=d.get(s,S),b=d.get(l,S),x=d.get(h,S),_=d.get(v,S),D=d.get(c,S),P=Math.min(b,x),w=Math.max(b,x),C=V(P,m),A=V(w,m),L=V(_,m),I=V(D,m),R=[];N(R,A,0),N(R,C,1),R.push(G(I),G(A),G(L),G(C));var T=y.getItemModel(S),W=!!T.get(["itemStyle","borderColorDoji"]);y.setItemLayout(S,{sign:mt(d,S,b,x,h,W),initBaseline:b>x?A[n]:C[n],ends:R,brushRect:M(_,D,m)})}function V(O,F){var z=[];return z[i]=F,z[n]=O,isNaN(F)||isNaN(O)?[NaN,NaN]:t.dataToPoint(z)}function N(O,F,z){var E=F.slice(),B=F.slice();E[i]=Se(E[i]+r/2,1,!1),B[i]=Se(B[i]-r/2,1,!0),z?O.push(E,B):O.push(B,E)}function M(O,F,z){var E=V(O,z),B=V(F,z);return E[i]-=r/2,B[i]-=r/2,{x:E[0],y:E[1],width:r,height:B[1]-E[1]}}function G(O){return O[i]=Se(O[i],1),O}}function g(f,y){for(var S=q(f.count*4),d=0,m,b=[],x=[],_,D=y.getStore(),P=!!a.get(["itemStyle","borderColorDoji"]);(_=f.next())!=null;){var w=D.get(s,_),C=D.get(l,_),A=D.get(h,_),L=D.get(v,_),I=D.get(c,_);if(isNaN(w)||isNaN(L)||isNaN(I)){S[d++]=NaN,d+=3;continue}S[d++]=mt(D,_,C,A,h,P),b[i]=w,b[n]=L,m=t.dataToPoint(b,null,x),S[d++]=m?m[0]:NaN,S[d++]=m?m[1]:NaN,b[n]=I,m=t.dataToPoint(b,null,x),S[d++]=m?m[1]:NaN}y.setLayout("largePoints",S)}}};function mt(a,t,e,r,i,n){var o;return e>r?o=-1:e<r?o=1:o=n?0:t>0?a.get(i,t-1)<=r?1:-1:1,o}function Va(a,t){var e=a.getBaseAxis(),r,i=e.type==="category"?e.getBandWidth():(r=e.getExtent(),Math.abs(r[1]-r[0])/t.count()),n=j(Je(a.get("barMaxWidth"),i),i),o=j(Je(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?j(s,i):Math.max(Math.min(i/2,n),o)}function Wa(a){a.registerChartView(Ra),a.registerSeriesModel($t),a.registerPreprocessor(ka),a.registerVisual(Ia),a.registerLayout(za)}function yt(a,t){var e=t.rippleEffectColor||t.color;a.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Ga=(function(a){k(t,a);function t(e,r){var i=a.call(this)||this,n=new Ge(e,r),o=new Q;return i.add(n),i.add(o),i.updateData(e,r),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var r=e.symbolType,i=e.color,n=e.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var u=oe(r,-1,-1,2,2,i);u.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-s/n*e.period+e.effectOffset;u.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(l).start(),u.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),o.add(u)}yt(o,e)},t.prototype.updateEffectAnimation=function(e){for(var r=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(r[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}yt(i,e)},t.prototype.highlight=function(){gr(this)},t.prototype.downplay=function(){dr(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,r){var i=this,n=e.hostModel;this.childAt(0).updateData(e,r);var o=this.childAt(1),s=e.getItemModel(r),u=e.getItemVisual(r,"symbol"),l=mr(e.getItemVisual(r,"symbolSize")),h=e.getItemVisual(r,"style"),v=h&&h.fill,c=s.getModel("emphasis");o.setScale(l),o.traverse(function(y){y.setStyle("fill",v)});var p=Bt(e.getItemVisual(r,"symbolOffset"),l);p&&(o.x=p[0],o.y=p[1]);var g=e.getItemVisual(r,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var f={};f.showEffectOn=n.get("showEffectOn"),f.rippleScale=s.get(["rippleEffect","scale"]),f.brushType=s.get(["rippleEffect","brushType"]),f.period=s.get(["rippleEffect","period"])*1e3,f.effectOffset=r/e.count(),f.z=n.getShallow("z")||0,f.zlevel=n.getShallow("zlevel")||0,f.symbolType=u,f.color=v,f.rippleEffectColor=s.get(["rippleEffect","color"]),f.rippleNumber=s.get(["rippleEffect","number"]),f.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){y==="emphasis"?f.showEffectOn!=="render"&&i.startEffectAnimation(f):y==="normal"&&f.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=f,J(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(Q),Fa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new We(Ga)},t.prototype.render=function(e,r,i){var n=e.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var r=e.coordinateSystem,i=r&&r.getArea&&r.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,r,i){var n=e.getData();this.group.dirty();var o=ve("").reset(e,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var r=e.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=yr(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(Y),Ma=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t})(ee);function Ua(a){a.registerChartView(Fa),a.registerSeriesModel(Ma),a.registerLayout(ve("effectScatter"))}var Ha=["itemStyle","borderWidth"],St=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ce=new br,Ya=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=this.group,o=e.getData(),s=this._data,u=e.coordinateSystem,l=u.getBaseAxis(),h=l.isHorizontal(),v=u.master.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:u,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:h,valueDim:St[+h],categoryDim:St[1-+h]};o.diff(s).add(function(g){if(o.hasValue(g)){var f=_t(o,g),y=bt(o,g,f,c),S=xt(o,c,y);o.setItemGraphicEl(g,S),n.add(S),At(S,c,y)}}).update(function(g,f){var y=s.getItemGraphicEl(f);if(!o.hasValue(g)){n.remove(y);return}var S=_t(o,g),d=bt(o,g,S,c),m=Kt(o,d);y&&m!==y.__pictorialShapeStr&&(n.remove(y),o.setItemGraphicEl(g,null),y=null),y?Ja(y,c,d):y=xt(o,c,d,!0),o.setItemGraphicEl(g,y),y.__pictorialSymbolMeta=d,n.add(y),At(y,c,d)}).remove(function(g){var f=s.getItemGraphicEl(g);f&&Dt(s,g,f.__pictorialSymbolMeta.animationModel,f)}).execute();var p=e.get("clip",!0)?ke(e.coordinateSystem,!1,e):null;return p?n.setClipPath(p):n.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,r){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){Dt(n,$(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t})(Y);function bt(a,t,e,r){var i=a.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",u=e.get("symbolRotate"),l=(u||0)*Math.PI/180||0,h=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),c={dataIndex:t,layout:i,itemModel:e,symbolType:a.getItemVisual(t,"symbol")||"circle",style:a.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:l,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Xa(e,n,i,r,c),$a(a,t,i,n,o,c.boundingLength,c.pxSign,h,r,c),ja(e,c.symbolScale,l,r,c);var p=c.symbolSize,g=Bt(e.get("symbolOffset"),p);return Qa(e,p,i,n,o,g,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,r,c),c}function Xa(a,t,e,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=s.toGlobalCoord(s.dataToCoord(0)),l=1-+(e[n.wh]<=0),h;if(K(o)){var v=[Le(s,o[0])-u,Le(s,o[1])-u];v[1]<v[0]&&v.reverse(),h=v[l]}else o!=null?h=Le(s,o)-u:t?h=r.coordSysExtent[n.index][l]-u:h=e[n.wh];i.boundingLength=h,t&&(i.repeatCutLength=e[n.wh]);var c=n.xy==="x",p=s.inverse;i.pxSign=c&&!p||!c&&p?h>=0?1:-1:h>0?1:-1}function Le(a,t){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(t)))}function $a(a,t,e,r,i,n,o,s,u,l){var h=u.valueDim,v=u.categoryDim,c=Math.abs(e[v.wh]),p=a.getItemVisual(t,"symbolSize"),g;K(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[v.index]=j(g[v.index],c),g[h.index]=j(g[h.index],r?c:Math.abs(n)),l.symbolSize=g;var f=l.symbolScale=[g[0]/s,g[1]/s];f[h.index]*=(u.isHorizontal?-1:1)*o}function ja(a,t,e,r,i){var n=a.get(Ha)||0;n&&(Ce.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ce.updateTransform(),n/=Ce.getLineScale(),n*=t[r.valueDim.index]),i.valueLineWidth=n||0}function Qa(a,t,e,r,i,n,o,s,u,l,h,v){var c=h.categoryDim,p=h.valueDim,g=v.pxSign,f=Math.max(t[p.index]+s,0),y=f;if(r){var S=Math.abs(u),d=_r(a.get("symbolMargin"),"15%")+"",m=!1;d.lastIndexOf("!")===d.length-1&&(m=!0,d=d.slice(0,d.length-1));var b=j(d,t[p.index]),x=Math.max(f+b*2,0),_=m?0:b*2,D=xr(r),P=D?r:Pt((S+_)/x),w=S-P*f;b=w/2/(m?P:Math.max(P-1,1)),x=f+b*2,_=m?0:b*2,!D&&r!=="fixed"&&(P=l?Pt((Math.abs(l)+_)/x):0),y=P*x-_,v.repeatTimes=P,v.symbolMargin=b}var C=g*(y/2),A=v.pathPosition=[];A[c.index]=e[c.wh]/2,A[p.index]=o==="start"?C:o==="end"?u-C:u/2,n&&(A[0]+=n[0],A[1]+=n[1]);var L=v.bundlePosition=[];L[c.index]=e[c.xy],L[p.index]=e[p.xy];var I=v.barRectShape=Z({},e);I[p.wh]=g*Math.max(Math.abs(e[p.wh]),Math.abs(A[p.index]+C)),I[c.wh]=e[c.wh];var R=v.clipShape={};R[c.xy]=-e[c.xy],R[c.wh]=h.ecSize[c.wh],R[p.xy]=0,R[p.wh]=e[p.wh]}function jt(a){var t=a.symbolPatternSize,e=oe(a.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Qt(a,t,e,r){var i=a.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,u=t.valueDim,l=e.repeatTimes||0,h=0,v=n[t.valueDim.index]+o+e.symbolMargin*2;for(Ue(a,function(f){f.__pictorialAnimationIndex=h,f.__pictorialRepeatTimes=l,h<l?re(f,null,g(h),e,r):re(f,null,{scaleX:0,scaleY:0},e,r,function(){i.remove(f)}),h++});h<l;h++){var c=jt(e);c.__pictorialAnimationIndex=h,c.__pictorialRepeatTimes=l,i.add(c);var p=g(h);re(c,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},e,r)}function g(f){var y=s.slice(),S=e.pxSign,d=f;return(e.symbolRepeatDirection==="start"?S>0:S<0)&&(d=l-1-f),y[u.index]=v*(d-l/2+.5)+s[u.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Zt(a,t,e,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?re(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,r):(n=a.__pictorialMainPath=jt(e),i.add(n),re(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,r))}function qt(a,t,e){var r=Z({},t.barRectShape),i=a.__pictorialBarRect;i?re(i,null,{shape:r},t,e):(i=a.__pictorialBarRect=new de({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function Jt(a,t,e,r){if(e.symbolClip){var i=a.__pictorialClipPath,n=Z({},e.clipShape),o=t.valueDim,s=e.animationModel,u=e.dataIndex;if(i)U(i,{shape:n},s,u);else{n[o.wh]=0,i=new de({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var l={};l[o.wh]=e.clipShape[o.wh],Be[r?"updateProps":"initProps"](i,{shape:l},s,u)}}}function _t(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=Za,e.isAnimationEnabled=qa,e}function Za(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function qa(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function xt(a,t,e,r){var i=new Q,n=new Q;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?Qt(i,t,e):Zt(i,t,e),qt(i,e,r),Jt(i,t,e,r),i.__pictorialShapeStr=Kt(a,e),i.__pictorialSymbolMeta=e,i}function Ja(a,t,e){var r=e.animationModel,i=e.dataIndex,n=a.__pictorialBundle;U(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},r,i),e.symbolRepeat?Qt(a,t,e,!0):Zt(a,t,e,!0),qt(a,e,!0),Jt(a,t,e,!0)}function Dt(a,t,e,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];Ue(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(e=null),H(n,function(o){Sr(o,{scaleX:0,scaleY:0},e,t,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(t,null)}function Kt(a,t){return[a.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Ue(a,t,e){H(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&t.call(e,r)})}function re(a,t,e,r,i,n){t&&a.attr(t),r.symbolClip&&!i?e&&a.attr(e):e&&Be[i?"updateProps":"initProps"](a,e,r.animationModel,r.dataIndex,n)}function At(a,t,e){var r=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),l=i.getShallow("cursor"),h=n.get("focus"),v=n.get("blurScope"),c=n.get("scale");Ue(a,function(f){if(f instanceof Dr){var y=f.style;f.useStyle(Z({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},e.style))}else f.useStyle(e.style);var S=f.ensureState("emphasis");S.style=o,c&&(S.scaleX=f.scaleX*1.1,S.scaleY=f.scaleY*1.1),f.ensureState("blur").style=s,f.ensureState("select").style=u,l&&(f.cursor=l),f.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],g=a.__pictorialBarRect;g.ignoreClip=!0,Te(g,Re(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Ve(t.seriesModel.getData(),r),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),J(a,h,v,n.get("disabled"))}function Pt(a){var t=Math.round(a);return Math.abs(a-t)<1e-4?t:Math.ceil(a)}var Ka=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,a.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Lt(le.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(le);function ei(a){a.registerChartView(Ya),a.registerSeriesModel(Ka),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Ee(Rt,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nt("pictorialBar"))}Ot([oa,Da,Wa,Ua,Xr,ei,ca]);
|
|
1
|
+
import{_ as k,c as ue,G as Q,a as oe,S as ee,m as te,i as ge,b as Ie,d as q,f as er,h as He,j as ae,k as Ye,s as se,l as $,t as J,q as Xe,C as Y,n as $e,o as ie,Z as tr,r as Te,u as Re,v as rr,w as wt,x as U,y as H,L as ar,z as je,A as ir,B as Ne,D as Ct,E as Lt,F as Qe,H as K,I as It,J as Oe,K as Ze,M as Tt,R as de,N as Z,O as nr,P as he,Q as or,T as Ee,U as Rt,V as Nt,W as sr,X as Ot,Y as lr,$ as qe,a0 as ur,a1 as Et,a2 as Be,a3 as hr,a4 as j,a5 as vr,a6 as ye,a7 as cr,a8 as pr,a9 as fr,aa as Se,ab as Je,ac as gr,ad as dr,ae as mr,af as Bt,ag as yr,ah as Sr,ai as br,aj as _r,ak as xr,al as Dr}from"./echarts-runtime-BTfAtt-4.js";import{E as Ar,a as Pr,c as wr,b as Cr,d as ke}from"./createClipPathFromCoordSys-BKzf1iWj.js";import{S as Ke,g as Lr}from"./sectorHelper-D1jHcZDN.js";import{i as ze}from"./CoordinateSystem-C8P-Cleg.js";import{g as kt,a as Ve}from"./labelHelper-CSRwI3Ku.js";import{c as Ir}from"./createSeriesDataSimply-Dcpkokbc.js";import{S as We,a as Ge}from"./SymbolDraw-C5oA6gYo.js";import"./index-CMoFG_fD.js";var Tr=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var r=new Q,i=oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);r.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,u=e.itemHeight*.8,l=oe(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);r.add(l),l.setStyle(e.itemStyle);var h=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=h*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.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},t})(ee);function zt(a,t,e){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=Rr(i,e),o=r.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),h=s==="x"||s==="radius"?1:0,v=te(a.dimensions,function(g){return t.mapDimension(g)}),c=!1,p=t.getCalculationInfo("stackResultDimension");return ge(t,v[0])&&(c=!0,v[0]=p),ge(t,v[1])&&(c=!0,v[1]=p),{dataDimsForPoint:v,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Rr(a,t){var e=0,r=a.scale.getExtent();return t==="start"?e=r[0]:t==="end"?e=r[1]:Ie(t)&&!isNaN(t)?e=t:r[0]>0?e=r[0]:r[1]<0&&(e=r[1]),e}function Vt(a,t,e,r){var i=NaN;a.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=e.get(a.baseDim,r),o[1-n]=i,t.dataToPoint(o)}function Nr(a,t){var e=[];return t.diff(a).add(function(r){e.push({cmd:"+",idx:r})}).update(function(r,i){e.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){e.push({cmd:"-",idx:r})}).execute(),e}function Or(a,t,e,r,i,n,o,s){for(var u=Nr(a,t),l=[],h=[],v=[],c=[],p=[],g=[],f=[],y=zt(i,t,o),S=a.getLayout("points")||[],d=t.getLayout("points")||[],m=0;m<u.length;m++){var b=u[m],x=!0,_=void 0,D=void 0;switch(b.cmd){case"=":_=b.idx*2,D=b.idx1*2;var P=S[_],w=S[_+1],C=d[D],A=d[D+1];(isNaN(P)||isNaN(w))&&(P=C,w=A),l.push(P,w),h.push(C,A),v.push(e[_],e[_+1]),c.push(r[D],r[D+1]),f.push(t.getRawIndex(b.idx1));break;case"+":var L=b.idx,I=y.dataDimsForPoint,R=i.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);D=L*2,l.push(R[0],R[1]),h.push(d[D],d[D+1]);var T=Vt(y,i,t,L);v.push(T[0],T[1]),c.push(r[D],r[D+1]),f.push(t.getRawIndex(L));break;case"-":x=!1}x&&(p.push(b),g.push(g.length))}g.sort(function(B,me){return f[B]-f[me]});for(var W=l.length,V=q(W),N=q(W),M=q(W),G=q(W),O=[],m=0;m<g.length;m++){var F=g[m],z=m*2,E=F*2;V[z]=l[E],V[z+1]=l[E+1],N[z]=h[E],N[z+1]=h[E+1],M[z]=v[E],M[z+1]=v[E+1],G[z]=c[E],G[z+1]=c[E+1],O[m]=p[F]}return{current:V,next:N,stackedOnCurrent:M,stackedOnNext:G,status:O}}function et(a,t){if(a.length===t.length){for(var e=0;e<a.length;e++)if(a[e]!==t[e])return;return!0}}function tt(a){for(var t=1/0,e=1/0,r=-1/0,i=-1/0,n=0;n<a.length;){var o=a[n++],s=a[n++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[r,i]]}function rt(a,t){var e=tt(a),r=e[0],i=e[1],n=tt(t),o=n[0],s=n[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function at(a){return Ie(a)?a:a?.5:0}function Er(a,t,e){if(!e.valueDim)return[];for(var r=t.count(),i=q(r*2),n=0;n<r;n++){var o=Vt(e,a,t,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function X(a,t,e,r,i){var n=e.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],u=0,l=[],h=[],v=[],c=[];if(i){for(u=0;u<a.length;u+=2){var p=t||a;!isNaN(p[u])&&!isNaN(p[u+1])&&c.push(a[u],a[u+1])}a=c}for(u=0;u<a.length-2;u+=2)switch(v[0]=a[u+2],v[1]=a[u+3],h[0]=a[u],h[1]=a[u+1],s.push(h[0],h[1]),r){case"end":l[o]=v[o],l[1-o]=h[1-o],s.push(l[0],l[1]);break;case"middle":var g=(h[o]+v[o])/2,f=[];l[o]=f[o]=g,l[1-o]=h[1-o],f[1-o]=v[1-o],s.push(l[0],l[1]),s.push(f[0],f[1]);break;default:l[o]=h[o],l[1-o]=v[1-o],s.push(l[0],l[1])}return s.push(a[u++],a[u++]),s}function Br(a,t){var e=[],r=a.length,i,n;function o(h,v,c){var p=h.coord,g=(c-p)/(v.coord-p),f=ir(g,[h.color,v.color]);return{coord:c,color:f}}for(var s=0;s<r;s++){var u=a[s],l=u.coord;if(l<0)i=u;else if(l>t){n?e.push(o(n,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),n=u}return e}function kr(a,t,e){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&t.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(n){var u=t.getAxis(i),l=te(n.stops,function(m){return{coord:u.toGlobalCoord(u.dataToCoord(m.value)),color:m.color}}),h=l.length,v=n.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),v.reverse());var c=Br(l,i==="x"?e.getWidth():e.getHeight()),p=c.length;if(!p&&h)return l[0].coord<0?v[1]?v[1]:l[h-1].color:v[0]?v[0]:l[0].color;var g=10,f=c[0].coord-g,y=c[p-1].coord+g,S=y-f;if(S<.001)return"transparent";H(c,function(m){m.offset=(m.coord-f)/S}),c.push({offset:p?c[p-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:p?c[0].offset:.5,color:v[0]||"transparent"});var d=new ar(0,0,0,0,c,!0);return d[i]=f,d[i+"2"]=y,d}}}function zr(a,t,e){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&Vr(n,t))){var o=t.mapDimension(n.dim),s={};return H(n.getViewLabels(),function(u){var l=n.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function Vr(a,t){var e=a.getExtent(),r=Math.abs(e[1]-e[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Ge.getSymbolSize(t,o)[a.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Wr(a,t){return isNaN(a)||isNaN(t)}function Gr(a){for(var t=a.length/2;t>0&&Wr(a[t*2-2],a[t*2-1]);t--);return t-1}function it(a,t){return[a[t*2],a[t*2+1]]}function Fr(a,t,e){for(var r=a.length/2,i=e==="x"?0:1,n,o,s=0,u=-1,l=0;l<r;l++)if(o=a[l*2+i],!(isNaN(o)||isNaN(a[l*2+1-i]))){if(l===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){u=l;break}s=l,n=o}return{range:[s,u],t:(t-n)/(o-n)}}function Wt(a){if(a.get(["endLabel","show"]))return!0;for(var t=0;t<je.length;t++)if(a.get([je[t],"endLabel","show"]))return!0;return!1}function be(a,t,e,r){if(ze(t,"cartesian2d")){var i=r.getModel("endLabel"),n=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},u=Wt(r)?function(p,g){a._endLabelOnDuring(p,g,o,s,n,i,t)}:null,l=t.getBaseAxis().isHorizontal(),h=wr(t,e,r,function(){var p=a._endLabel;p&&e&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},u);if(!r.get("clip",!0)){var v=h.shape,c=Math.max(v.width,v.height);l?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return u&&u(1,h),h}else return Cr(t,e,r)}function Mr(a,t){var e=t.getBaseAxis(),r=e.isHorizontal(),i=e.inverse,n=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:a.get("align")||n,verticalAlign:a.get("verticalAlign")||o}}}var Ur=(function(a){k(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Q,r=new We;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=e,this._changePolyState=er(this._changePolyState,this)},t.prototype.render=function(e,r,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),u=e.getModel("lineStyle"),l=e.getModel("areaStyle"),h=s.getLayout("points")||[],v=n.type==="polar",c=this._coordSys,p=this._symbolDraw,g=this._polyline,f=this._polygon,y=this._lineGroup,S=!r.ssr&&e.get("animation"),d=!l.isEmpty(),m=l.get("origin"),b=zt(n,s,m),x=d&&Er(n,s,b),_=e.get("showSymbol"),D=e.get("connectNulls"),P=_&&!v&&zr(e,s,n),w=this._data;w&&w.eachItemGraphicEl(function(B,me){B.__temp&&(o.remove(B),w.setItemGraphicEl(me,null))}),_||p.remove(),o.add(y);var C=v?!1:e.get("step"),A;n&&n.getArea&&e.get("clip",!0)&&(A=n.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=kr(s,n,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&c.type===n.type&&C===this._step))_&&p.updateData(s,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(B){return[h[B*2],h[B*2+1]]}}),S&&this._initSymbolLabelAnimation(s,n,A),C&&(x&&(x=X(x,h,n,C,D)),h=X(h,null,n,C,D)),g=this._newPolyline(h),d?f=this._newPolygon(h,x):f&&(y.remove(f),f=this._polygon=null),v||this._initOrUpdateEndLabel(e,n,He(L)),y.setClipPath(be(this,n,!0,e));else{d&&!f?f=this._newPolygon(h,x):f&&!d&&(y.remove(f),f=this._polygon=null),v||this._initOrUpdateEndLabel(e,n,He(L));var I=y.getClipPath();if(I){var R=be(this,n,!1,e);ae(I,{shape:R.shape},e)}else y.setClipPath(be(this,n,!0,e));_&&p.updateData(s,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(B){return[h[B*2],h[B*2+1]]}}),(!et(this._stackedOnPoints,x)||!et(this._points,h))&&(S?this._doUpdateAnimation(s,x,n,i,C,m,D):(C&&(x&&(x=X(x,h,n,C,D)),h=X(h,null,n,C,D)),g.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:x})))}var T=e.getModel("emphasis"),W=T.get("focus"),V=T.get("blurScope"),N=T.get("disabled");if(g.useStyle(Ye(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),se(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var M=g.getState("emphasis").style;M.lineWidth=+g.style.lineWidth+1}$(g).seriesIndex=e.seriesIndex,J(g,W,V,N);var G=at(e.get("smooth")),O=e.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:O,connectNulls:D}),f){var F=s.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(Ye(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(z=at(F.get("smooth"))),f.setShape({smooth:G,stackedOnSmooth:z,smoothMonotone:O,connectNulls:D}),se(f,e,"areaStyle"),$(f).seriesIndex=e.seriesIndex,J(f,W,V,N)}var E=this._changePolyState;s.eachItemGraphicEl(function(B){B&&(B.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=s,this._coordSys=n,this._stackedOnPoints=x,this._points=h,this._step=C,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,g),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,r){$(r).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,r,i,n){var o=e.getData(),s=Xe(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var h=u[s*2],v=u[s*2+1];if(isNaN(h)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,v))return;var c=e.get("zlevel")||0,p=e.get("z")||0;l=new Ge(o,s),l.x=h,l.y=v,l.setZ(c,p);var g=l.getSymbolPath().getTextContent();g&&(g.zlevel=c,g.z=p,g.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Y.prototype.highlight.call(this,e,r,i,n)},t.prototype.downplay=function(e,r,i,n){var o=e.getData(),s=Xe(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Y.prototype.downplay.call(this,e,r,i,n)},t.prototype._changePolyState=function(e){var r=this._polygon;$e(this._polyline,e),r&&$e(r,e)},t.prototype._newPolyline=function(e){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Ar({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(e,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Pr({shape:{points:e,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,r,i){var n,o,s=r.getBaseAxis(),u=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var l=e.hostModel,h=l.get("animationDuration");ie(h)&&(h=h(null));var v=l.get("animationDelay")||0,c=ie(v)?v(null):v;e.eachItemGraphicEl(function(p,g){var f=p;if(f){var y=[p.x,p.y],S=void 0,d=void 0,m=void 0;if(i)if(o){var b=i,x=r.pointToCoord(y);n?(S=b.startAngle,d=b.endAngle,m=-x[1]/180*Math.PI):(S=b.r0,d=b.r,m=x[0])}else{var _=i;n?(S=_.x,d=_.x+_.width,m=p.x):(S=_.y+_.height,d=_.y,m=p.y)}var D=d===S?0:(m-S)/(d-S);u&&(D=1-D);var P=ie(v)?v(g):h*D+c,w=f.getSymbolPath(),C=w.getTextContent();f.attr({scaleX:0,scaleY:0}),f.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:P}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,r,i){var n=e.getModel("endLabel");if(Wt(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new tr({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=Gr(u);h>=0&&(Te(s,Re(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:h,defaultText:function(v,c,p){return p!=null?kt(o,p):Ve(o,v)},enableTextSetter:!0},Mr(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,r,i,n,o,s,u){var l=this._endLabel,h=this._polyline;if(l){e<1&&n.originalX==null&&(n.originalX=l.x,n.originalY=l.y);var v=i.getLayout("points"),c=i.hostModel,p=c.get("connectNulls"),g=s.get("precision"),f=s.get("distance")||0,y=u.getBaseAxis(),S=y.isHorizontal(),d=y.inverse,m=r.shape,b=d?S?m.x:m.y+m.height:S?m.x+m.width:m.y,x=(S?f:0)*(d?-1:1),_=(S?0:-f)*(d?-1:1),D=S?"x":"y",P=Fr(v,b,D),w=P.range,C=w[1]-w[0],A=void 0;if(C>=1){if(C>1&&!p){var L=it(v,w[0]);l.attr({x:L[0]+x,y:L[1]+_}),o&&(A=c.getRawValue(w[0]))}else{var L=h.getPointOn(b,D);L&&l.attr({x:L[0]+x,y:L[1]+_});var I=c.getRawValue(w[0]),R=c.getRawValue(w[1]);o&&(A=rr(i,g,I,R,P.t))}n.lastFrameIndex=w[0]}else{var T=e===1||n.lastFrameIndex>0?w[0]:0,L=it(v,T);o&&(A=c.getRawValue(T)),l.attr({x:L[0]+x,y:L[1]+_})}if(o){var W=wt(l);typeof W.setLabelText=="function"&&W.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,r,i,n,o,s,u){var l=this._polyline,h=this._polygon,v=e.hostModel,c=Or(this._data,e,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=c.current,g=c.stackedOnCurrent,f=c.next,y=c.stackedOnNext;if(o&&(g=X(c.stackedOnCurrent,c.current,i,o,u),p=X(c.current,null,i,o,u),y=X(c.stackedOnNext,c.next,i,o,u),f=X(c.next,null,i,o,u)),rt(p,f)>3e3||h&&rt(g,y)>3e3){l.stopAnimation(),l.setShape({points:f}),h&&(h.stopAnimation(),h.setShape({points:f,stackedOnPoints:y}));return}l.shape.__points=c.current,l.shape.points=p;var S={shape:{points:f}};c.current!==p&&(S.shape.__points=c.next),l.stopAnimation(),U(l,S,v),h&&(h.setShape({points:p,stackedOnPoints:g}),h.stopAnimation(),U(h,{shape:{stackedOnPoints:y}},v),l.shape.points!==h.shape.points&&(h.shape.points=l.shape.points));for(var d=[],m=c.status,b=0;b<m.length;b++){var x=m[b].cmd;if(x==="="){var _=e.getItemGraphicEl(m[b].idx1);_&&d.push({el:_,ptIdx:b})}}l.animators&&l.animators.length&&l.animators[0].during(function(){h&&h.dirtyShape();for(var D=l.shape.__points,P=0;P<d.length;P++){var w=d[P].el,C=d[P].ptIdx*2;w.x=D[C],w.y=D[C+1],w.markRedraw()}})},t.prototype.remove=function(e){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(r.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Y);function ve(a,t){return{seriesType:a,plan:Ne(),reset:function(e){var r=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,o=t||n.large;if(i){var s=te(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),u=s.length,l=r.getCalculationInfo("stackResultDimension");ge(r,s[0])&&(s[0]=l),ge(r,s[1])&&(s[1]=l);var h=r.getStore(),v=r.getDimensionIndex(s[0]),c=r.getDimensionIndex(s[1]);return u&&{progress:function(p,g){for(var f=p.end-p.start,y=o&&q(f*u),S=[],d=[],m=p.start,b=0;m<p.end;m++){var x=void 0;if(u===1){var _=h.get(v,m);x=i.dataToPoint(_,null,d)}else S[0]=h.get(v,m),S[1]=h.get(c,m),x=i.dataToPoint(S,null,d);o?(y[b++]=x[0],y[b++]=x[1]):g.setItemLayout(m,x.slice())}o&&g.setLayout("points",y)}}}}}}var Hr={average:function(a){for(var t=0,e=0,r=0;r<a.length;r++)isNaN(a[r])||(t+=a[r],e++);return e===0?NaN:t/e},sum:function(a){for(var t=0,e=0;e<a.length;e++)t+=a[e]||0;return t},max:function(a){for(var t=-1/0,e=0;e<a.length;e++)a[e]>t&&(t=a[e]);return isFinite(t)?t:NaN},min:function(a){for(var t=1/0,e=0;e<a.length;e++)a[e]<t&&(t=a[e]);return isFinite(t)?t:NaN},nearest:function(a){return a[0]}},Yr=function(a){return Math.round(a.length/2)};function Gt(a){return{seriesType:a,reset:function(t,e,r){var i=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var u=o.getBaseAxis(),l=o.getOtherAxis(u),h=u.getExtent(),v=r.getDevicePixelRatio(),c=Math.abs(h[1]-h[0])*(v||1),p=Math.round(s/c);if(isFinite(p)&&p>1){n==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):n==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var g=void 0;Ct(n)?g=Hr[n]:ie(n)&&(g=n),g&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,g,Yr))}}}}}function Xr(a){a.registerChartView(Ur),a.registerSeriesModel(Tr),a.registerLayout(ve("line",!0)),a.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Gt("line"))}var le=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,r,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(i)H(n.getAxes(),function(c,p){if(c.type==="category"&&r!=null){var g=c.getTicksCoords(),f=c.getTickModel().get("alignWithLabel"),y=o[p],S=r[p]==="x1"||r[p]==="y1";if(S&&!f&&(y+=1),g.length<2)return;if(g.length===2){s[p]=c.toGlobalCoord(c.getExtent()[S?1:0]);return}for(var d=void 0,m=void 0,b=1,x=0;x<g.length;x++){var _=g[x].coord,D=x===g.length-1?g[x-1].tickValue+b:g[x].tickValue;if(D===y){m=_;break}else if(D<y)d=_;else if(d!=null&&D>y){m=(_+d)/2;break}x===1&&(b=D-g[0].tickValue)}m==null&&(d?d&&(m=g[g.length-1].coord):m=g[0].coord),s[p]=c.toGlobalCoord(m)}});else{var u=this.getData(),l=u.getLayout("offset"),h=u.getLayout("size"),v=n.getBaseAxis().isHorizontal()?0:1;s[v]+=l+h/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(ee);ee.registerClass(le);var $r=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ue(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>e&&(e=r),e},t.prototype.brushSelector=function(e,r,i){return i.rect(r.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Lt(le.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}),t})(le);function jr(a,t){t=t||{};var e=t.isRoundCap;return function(r,i,n){var o=i.position;if(!o||o instanceof Array)return Qe(r,i,n);var s=a(o),u=i.distance!=null?i.distance:5,l=this.shape,h=l.cx,v=l.cy,c=l.r,p=l.r0,g=(c+p)/2,f=l.startAngle,y=l.endAngle,S=(f+y)/2,d=e?Math.abs(c-p)/2:0,m=Math.cos,b=Math.sin,x=h+c*m(f),_=v+c*b(f),D="left",P="top";switch(s){case"startArc":x=h+(p-u)*m(S),_=v+(p-u)*b(S),D="center",P="top";break;case"insideStartArc":x=h+(p+u)*m(S),_=v+(p+u)*b(S),D="center",P="bottom";break;case"startAngle":x=h+g*m(f)+ce(f,u+d,!1),_=v+g*b(f)+pe(f,u+d,!1),D="right",P="middle";break;case"insideStartAngle":x=h+g*m(f)+ce(f,-u+d,!1),_=v+g*b(f)+pe(f,-u+d,!1),D="left",P="middle";break;case"middle":x=h+g*m(S),_=v+g*b(S),D="center",P="middle";break;case"endArc":x=h+(c+u)*m(S),_=v+(c+u)*b(S),D="center",P="bottom";break;case"insideEndArc":x=h+(c-u)*m(S),_=v+(c-u)*b(S),D="center",P="top";break;case"endAngle":x=h+g*m(y)+ce(y,u+d,!0),_=v+g*b(y)+pe(y,u+d,!0),D="left",P="middle";break;case"insideEndAngle":x=h+g*m(y)+ce(y,-u+d,!0),_=v+g*b(y)+pe(y,-u+d,!0),D="right",P="middle";break;default:return Qe(r,i,n)}return r=r||{},r.x=x,r.y=_,r.align=D,r.verticalAlign=P,r}}function Qr(a,t,e,r){if(Ie(r)){a.setTextConfig({rotation:r});return}else if(K(t)){a.setTextConfig({rotation:0});return}var i=a.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,u,l=e(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=n;break;case"endAngle":case"insideEndAngle":u=o;break;default:a.setTextConfig({rotation:0});return}var h=Math.PI*1.5-u;l==="middle"&&h>Math.PI/2&&h<Math.PI*1.5&&(h-=Math.PI),a.setTextConfig({rotation:h})}function ce(a,t,e){return t*Math.sin(a)*(e?-1:1)}function pe(a,t,e){return t*Math.cos(a)*(e?1:-1)}var _e=Math.max,xe=Math.min;function Zr(a,t){var e=a.getArea&&a.getArea();if(ze(a,"cartesian2d")){var r=a.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var qr=(function(a){k(t,a);function t(){var e=a.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,r,i,n){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,r,i):this._renderNormal(e,r,i,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,r){this._progressiveEls=[],this._incrementalRenderLarge(e,r)},t.prototype.eachRendered=function(e){It(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e,r,i,n){var o=this.group,s=e.getData(),u=this._data,l=e.coordinateSystem,h=l.getBaseAxis(),v;l.type==="cartesian2d"?v=h.isHorizontal():l.type==="polar"&&(v=h.dim==="angle");var c=e.isAnimationEnabled()?e:null,p=Jr(e,l);p&&this._enableRealtimeSort(p,s,i);var g=e.get("clip",!0)||p,f=Zr(l,s);o.removeClipPath();var y=e.get("roundCap",!0),S=e.get("showBackground",!0),d=e.getModel("backgroundStyle"),m=d.get("borderRadius")||0,b=[],x=this._backgroundEls,_=n&&n.isInitSort,D=n&&n.type==="changeAxisOrder";function P(A){var L=fe[l.type](s,A),I=na(l,v,L);return I.useStyle(d.getItemStyle()),l.type==="cartesian2d"?I.setShape("r",m):I.setShape("cornerRadius",m),b[A]=I,I}s.diff(u).add(function(A){var L=s.getItemModel(A),I=fe[l.type](s,A,L);if(S&&P(A),!(!s.hasValue(A)||!ut[l.type](I))){var R=!1;g&&(R=nt[l.type](f,I));var T=ot[l.type](e,s,A,I,v,c,h.model,!1,y);p&&(T.forceLabelAnimation=!0),ht(T,s,A,L,I,e,v,l.type==="polar"),_?T.attr({shape:I}):p?st(p,c,T,I,A,v,!1,!1):ae(T,{shape:I},e,A),s.setItemGraphicEl(A,T),o.add(T),T.ignore=R}}).update(function(A,L){var I=s.getItemModel(A),R=fe[l.type](s,A,I);if(S){var T=void 0;x.length===0?T=P(L):(T=x[L],T.useStyle(d.getItemStyle()),l.type==="cartesian2d"?T.setShape("r",m):T.setShape("cornerRadius",m),b[A]=T);var W=fe[l.type](s,A),V=Mt(v,W,l);U(T,{shape:V},c,A)}var N=u.getItemGraphicEl(L);if(!s.hasValue(A)||!ut[l.type](R)){o.remove(N);return}var M=!1;if(g&&(M=nt[l.type](f,R),M&&o.remove(N)),N?Oe(N):N=ot[l.type](e,s,A,R,v,c,h.model,!!N,y),p&&(N.forceLabelAnimation=!0),D){var G=N.getTextContent();if(G){var O=wt(G);O.prevValue!=null&&(O.prevValue=O.value)}}else ht(N,s,A,I,R,e,v,l.type==="polar");_?N.attr({shape:R}):p?st(p,c,N,R,A,v,!0,D):U(N,{shape:R},e,A,null),s.setItemGraphicEl(A,N),N.ignore=M,o.add(N)}).remove(function(A){var L=u.getItemGraphicEl(A);L&&Ze(L,e,A)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Q);w.removeAll();for(var C=0;C<b.length;++C)w.add(b[C]);o.add(w),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(e,r,i){this._clear(),ct(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,r){this._removeBackground(),ct(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var r=e.get("clip",!0)&&ke(e.coordinateSystem,!1,e),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,r,i){var n=this;if(r.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,e,i),this._isFirstFrame=!1;else{var s=function(u){var l=r.getItemGraphicEl(u),h=l&&l.shape;return h&&Math.abs(o.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){n._updateSortWithinSameData(r,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,r,i){var n=[];return e.each(e.mapDimension(r.dim),function(o,s){var u=i(s);u=u??NaN,n.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:te(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,r,i){for(var n=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=n.getOrdinalMeta().categories.length;u<l;++u){var h=e.rawIndexOf(o,n.getRawOrdinalNumber(u)),v=h<0?Number.MIN_VALUE:r(e.indexOfRawIndex(h));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,r){for(var i=r.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,r,i,n){if(this._isOrderChangedWithinSameData(e,r,i)){var o=this._dataSort(e,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,r,i){var n=r.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(e,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var r=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){Ze(n,e,$(n).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Y),nt={cartesian2d:function(a,t){var e=t.width<0?-1:1,r=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=a.x+a.width,n=a.y+a.height,o=_e(t.x,a.x),s=xe(t.x+t.width,i),u=_e(t.y,a.y),l=xe(t.y+t.height,n),h=s<o,v=l<u;return t.x=h&&o>i?s:o,t.y=v&&u>n?l:u,t.width=h?0:s-o,t.height=v?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||v},polar:function(a,t){var e=t.r0<=t.r?1:-1;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}var i=xe(t.r,a.r),n=_e(t.r0,a.r0);t.r=i,t.r0=n;var o=i-n<0;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},ot={cartesian2d:function(a,t,e,r,i,n,o,s,u){var l=new de({shape:Z({},r),z2:1});if(l.__dataIndex=e,l.name="item",n){var h=l.shape,v=i?"height":"width";h[v]=0}return l},polar:function(a,t,e,r,i,n,o,s,u){var l=!i&&u?Ke:Tt,h=new l({shape:r,z2:1});h.name="item";var v=Ft(i);if(h.calculateTextPosition=jr(v,{isRoundCap:l===Ke}),n){var c=h.shape,p=i?"r":"endAngle",g={};c[p]=i?r.r0:r.startAngle,g[p]=r[p],(s?U:ae)(h,{shape:g},n)}return h}};function Jr(a,t){var e=a.get("realtimeSort",!0),r=t.getBaseAxis();if(e&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function st(a,t,e,r,i,n,o,s){var u,l;n?(l={x:r.x,width:r.width},u={y:r.y,height:r.height}):(l={y:r.y,height:r.height},u={x:r.x,width:r.width}),s||(o?U:ae)(e,{shape:u},t,i,null);var h=t?a.baseAxis.model:null;(o?U:ae)(e,{shape:l},h,i)}function lt(a,t){for(var e=0;e<t.length;e++)if(!isFinite(a[t[e]]))return!0;return!1}var Kr=["x","y","width","height"],ea=["cx","cy","r","startAngle","endAngle"],ut={cartesian2d:function(a){return!lt(a,Kr)},polar:function(a){return!lt(a,ea)}},fe={cartesian2d:function(a,t,e){var r=a.getItemLayout(t),i=e?ra(e,r):0,n=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+n*i/2,y:r.y+o*i/2,width:r.width-n*i,height:r.height-o*i}},polar:function(a,t,e){var r=a.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ta(a){return a.startAngle!=null&&a.endAngle!=null&&a.startAngle===a.endAngle}function Ft(a){return(function(t){var e=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+e;default:return r}}})(a)}function ht(a,t,e,r,i,n,o,s){var u=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var h=a.shape,v=Lr(r.getModel("itemStyle"),h,!0);Z(h,v),a.setShape(h)}}else{var l=r.get(["itemStyle","borderRadius"])||0;a.setShape("r",l)}a.useStyle(u);var c=r.getShallow("cursor");c&&a.attr("cursor",c);var p=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Re(r);Te(a,g,{labelFetcher:n,labelDataIndex:e,defaultText:Ve(n.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:p});var f=a.getTextContent();if(s&&f){var y=r.get(["label","position"]);a.textConfig.inside=y==="middle"?!0:null,Qr(a,y==="outside"?p:y,Ft(o),r.get(["label","rotate"]))}nr(f,g,n.getRawValue(e),function(d){return kt(t,d)});var S=r.getModel(["emphasis"]);J(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),se(a,r),ta(i)&&(a.style.fill="none",a.style.stroke="none",H(a.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}function ra(a,t){var e=a.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var r=a.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,n)}var aa=(function(){function a(){}return a})(),vt=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new aa},t.prototype.buildPath=function(e,r){for(var i=r.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,h=0;h<i.length;h+=3)u[n]=l,u[o]=i[h+2],s[n]=i[h+n],s[o]=i[h+o],e.rect(s[0],s[1],u[0],u[1])},t})(he);function ct(a,t,e,r){var i=a.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=a.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var h=new vt({shape:{points:l},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,h.useStyle(u.getItemStyle()),t.add(h),e&&e.push(h)}var v=new vt({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=n,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,$(v).seriesIndex=a.seriesIndex,a.get("silent")||(v.on("mousedown",pt),v.on("mousemove",pt)),e&&e.push(v)}var pt=or(function(a){var t=this,e=ia(t,a.offsetX,a.offsetY);$(t).dataIndex=e>=0?e:null},30,!1);function ia(a,t,e){for(var r=a.baseDimIdx,i=1-r,n=a.shape.points,o=a.largeDataIndices,s=[],u=[],l=a.barWidth,h=0,v=n.length/3;h<v;h++){var c=h*3;if(u[r]=l,u[i]=n[c+2],s[r]=n[c+r],s[i]=n[c+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[h]}return-1}function Mt(a,t,e){if(ze(e,"cartesian2d")){var r=t,i=e.getArea();return{x:a?r.x:i.x,y:a?i.y:r.y,width:a?r.width:i.width,height:a?i.height:r.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:a?i.r0:n.r0,r:a?i.r:n.r,startAngle:a?n.startAngle:0,endAngle:a?n.endAngle:Math.PI*2}}}function na(a,t,e){var r=a.type==="polar"?Tt:de;return new r({shape:Mt(t,e,a),silent:!0,z2:0})}function oa(a){a.registerChartView(qr),a.registerSeriesModel($r),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Ee(Rt,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nt("bar")),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Gt("bar")),a.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var sa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t})(ee),Ut=4,la=(function(){function a(){}return a})(),ua=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new la},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,u=e.getContext?e.getContext():e,l=u&&n[0]<Ut,h=this.softClipShape,v;if(l){this._ctx=u;return}for(this._ctx=null,v=this._off;v<i.length;){var c=i[v++],p=i[v++];isNaN(c)||isNaN(p)||h&&!h.contain(c,p)||(s.x=c-n[0]/2,s.y=p-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,r=e.points,i=e.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<r.length;){var u=r[s++],l=r[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||n.fillRect(u-i[0]/2,l-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,r){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=n.length/2-1;l>=0;l--){var h=l*2,v=n[h]-s/2,c=n[h+1]-u/2;if(e>=v&&r>=c&&e<=v+s&&r<=c+u)return l}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),n=this.getBoundingRect();if(e=i[0],r=i[1],n.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],u=1/0,l=1/0,h=-1/0,v=-1/0,c=0;c<i.length;){var p=i[c++],g=i[c++];u=Math.min(p,u),h=Math.max(p,h),l=Math.min(g,l),v=Math.max(g,v)}e=this._rect=new sr(u-o/2,l-s/2,h-u+o,v-l+s)}return e},t})(he),ha=(function(){function a(){this.group=new Q}return a.prototype.updateData=function(t,e){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,e)},a.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,n=r.startIndex*4*2;e=new Float32Array(e.buffer,n,i)}r.setShape("points",e),r.reset()})},a.prototype.incrementalPrepareUpdate=function(t){this._clear()},a.prototype.incrementalUpdate=function(t,e,r){var i=this._newAdded[0],n=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,u=new Float32Array(s+n.length);u.set(o),u.set(n,s),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:n}),this._setCommon(l,e,r)}},a.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},a.prototype._create=function(){var t=new ua({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},a.prototype._setCommon=function(t,e,r){var i=e.hostModel;r=r||{};var n=e.getVisual("symbolSize");t.setShape("size",n instanceof Array?n:[n,n]),t.softClipShape=r.clipShape||null,t.symbolProxy=oe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Ut;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),u=s&&s.fill;u&&t.setColor(u);var l=$(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(h){l.dataIndex=null;var v=t.hoverDataIdx;v>=0&&(l.dataIndex=v+(t.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),va=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._symbolDraw.incrementalUpdate(e,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=e.end===r.getData().count()},t.prototype.updateTransform=function(e,r,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ve("").reset(e,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var r=e.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new ha:new We,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Y);function ca(a){Ot(lr),a.registerSeriesModel(sa),a.registerChartView(va),a.registerLayout(ve("scatter"))}var Ht=(function(){function a(){}return a.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},a.prototype.getInitialData=function(t,e){var r,i=e.getComponent("xAxis",this.get("xAxisIndex")),n=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),u;o==="category"?(t.layout="horizontal",r=i.getOrdinalMeta(),u=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",r=n.getOrdinalMeta(),u=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],h=t.layout==="horizontal"?0:1,v=this._baseAxisDim=l[h],c=l[1-h],p=[i,n],g=p[h].get("type"),f=p[1-h].get("type"),y=t.data;if(y&&u){var S=[];H(y,function(b,x){var _;K(b)?(_=b.slice(),b.unshift(x)):K(b.value)?(_=Z({},b),_.value=_.value.slice(),b.value.unshift(x)):_=b,S.push(_)}),t.data=S}var d=this.defaultValueDimensions,m=[{name:v,type:qe(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:qe(f),dimsDef:d.slice()}];return Ir(this,{coordDimensions:m,dimensionsCount:d.length+1,encodeDefaulter:Ee(ur,m,this)})},a.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},a})(),Yt=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(ee);Et(Yt,Ht,!0);var pa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var u=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(l){if(n.hasValue(l)){var h=n.getItemLayout(l),v=ft(h,n,l,u,!0);n.setItemGraphicEl(l,v),o.add(v)}}).update(function(l,h){var v=s.getItemGraphicEl(h);if(!n.hasValue(l)){o.remove(v);return}var c=n.getItemLayout(l);v?(Oe(v),Xt(c,v,n,l)):v=ft(c,n,l,u),o.add(v),n.setItemGraphicEl(l,v)}).remove(function(l){var h=s.getItemGraphicEl(l);h&&o.remove(h)}).execute(),this._data=n},t.prototype.remove=function(e){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},t.type="boxplot",t})(Y),fa=(function(){function a(){}return a})(),ga=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new fa},t.prototype.buildPath=function(e,r){var i=r.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])},t})(he);function ft(a,t,e,r,i){var n=a.ends,o=new ga({shape:{points:i?da(n,r,a):n}});return Xt(a,o,t,e,i),o}function Xt(a,t,e,r,i){var n=e.hostModel,o=Be[i?"initProps":"updateProps"];o(t,{shape:{points:a.ends}},n,r),t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(r),u=s.getModel("emphasis");se(t,s),J(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function da(a,t,e){return te(a,function(r){return r=r.slice(),r[t]=e.initBaseline,r})}var ne=H;function ma(a){var t=ya(a);ne(t,function(e){var r=e.seriesModels;r.length&&(Sa(e),ne(r,function(i,n){ba(i,e.boxOffsetList[n],e.boxWidthList[n])}))})}function ya(a){var t=[],e=[];return a.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),n=hr(e,i);n<0&&(n=e.length,e[n]=i,t[n]={axis:i,seriesModels:[]}),t[n].seriesModels.push(r)}),t}function Sa(a){var t=a.axis,e=a.seriesModels,r=e.length,i=a.boxWidthList=[],n=a.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var u=0;ne(e,function(g){u=Math.max(u,g.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/u}ne(e,function(g){var f=g.get("boxWidth");K(f)||(f=[f,f]),o.push([j(f[0],s)||0,j(f[1],s)||0])});var h=s*.8-2,v=h/r*.3,c=(h-v*(r-1))/r,p=c/2-h/2;ne(e,function(g,f){n.push(p),p+=v+c,i.push(Math.min(Math.max(c,o[f][0]),o[f][1]))})}function ba(a,t,e){var r=a.coordinateSystem,i=a.getData(),n=e/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,u=["x","y"],l=i.mapDimension(u[o]),h=i.mapDimensionsAll(u[s]);if(l==null||h.length<5)return;for(var v=0;v<i.count();v++){var c=i.get(l,v),p=m(c,h[2],v),g=m(c,h[0],v),f=m(c,h[1],v),y=m(c,h[3],v),S=m(c,h[4],v),d=[];b(d,f,!1),b(d,y,!0),d.push(g,f,S,y),x(d,g),x(d,S),x(d,p),i.setItemLayout(v,{initBaseline:p[s],ends:d})}function m(_,D,P){var w=i.get(D,P),C=[];C[o]=_,C[s]=w;var A;return isNaN(_)||isNaN(w)?A=[NaN,NaN]:(A=r.dataToPoint(C),A[o]+=t),A}function b(_,D,P){var w=D.slice(),C=D.slice();w[o]+=n,C[o]-=n,P?_.push(w,C):_.push(C,w)}function x(_,D){var P=D.slice(),w=D.slice();P[o]-=n,w[o]+=n,_.push(P,w)}}function _a(a,t){t=t||{};for(var e=[],r=[],i=t.boundIQR,n=i==="none"||i===0,o=0;o<a.length;o++){var s=vr(a[o].slice()),u=ye(s,.25),l=ye(s,.5),h=ye(s,.75),v=s[0],c=s[s.length-1],p=(i??1.5)*(h-u),g=n?v:Math.max(v,u-p),f=n?c:Math.min(c,h+p),y=t.itemNameFormatter,S=ie(y)?y({value:o}):Ct(y)?y.replace("{value}",o+""):o+"";e.push([S,g,u,l,h,f]);for(var d=0;d<s.length;d++){var m=s[d];if(m<g||m>f){var b=[S,m];r.push(b)}}}return{boxData:e,outliers:r}}var xa={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==cr){var r="";pr(r)}var i=_a(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Da(a){a.registerSeriesModel(Yt),a.registerChartView(pa),a.registerLayout(ma),a.registerTransform(xa)}var Aa=["itemStyle","borderColor"],Pa=["itemStyle","borderColor0"],wa=["itemStyle","borderColorDoji"],Ca=["itemStyle","color"],La=["itemStyle","color0"];function Fe(a,t){return t.get(a>0?Ca:La)}function Me(a,t){return t.get(a===0?wa:a>0?Aa:Pa)}var Ia={seriesType:"candlestick",plan:Ne(),performRawSeries:!0,reset:function(a,t){if(!t.isSeriesFiltered(a)){var e=a.pipelineContext.large;return!e&&{progress:function(r,i){for(var n;(n=r.next())!=null;){var o=i.getItemModel(n),s=i.getItemLayout(n).sign,u=o.getItemStyle();u.fill=Fe(s,o),u.stroke=Me(s,o)||u.fill;var l=i.ensureUniqueItemVisual(n,"style");Z(l,u)}}}}}},Ta=["color","borderColor"],Ra=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,r,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,r):this._incrementalRenderNormal(e,r)},t.prototype.eachRendered=function(e){It(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e){var r=e.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=e.get("clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||n.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var v=r.getItemLayout(h);if(s&>(l,v))return;var c=De(v,h,!0);ae(c,{shape:{points:v.ends}},e,h),Ae(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}}).update(function(h,v){var c=i.getItemGraphicEl(v);if(!r.hasValue(h)){n.remove(c);return}var p=r.getItemLayout(h);if(s&>(l,p)){n.remove(c);return}c?(U(c,{shape:{points:p.ends}},e,h),Oe(c)):c=De(p),Ae(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&n.remove(v)}).execute(),this._data=r},t.prototype._renderLarge=function(e){this._clear(),dt(e,this.group);var r=e.get("clip",!0)?ke(e.coordinateSystem,!1,e):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),u=De(s);Ae(u,i,o,n),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,r){dt(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(Y),Na=(function(){function a(){}return a})(),Oa=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Na},t.prototype.buildPath=function(e,r){var i=r.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t})(he);function De(a,t,e){var r=a.ends;return new Oa({shape:{points:e?Ea(r,a):r},z2:100})}function gt(a,t){for(var e=!0,r=0;r<t.ends.length;r++)if(a.contain(t.ends[r][0],t.ends[r][1])){e=!1;break}return e}function Ae(a,t,e,r){var i=t.getItemModel(e);a.useStyle(t.getItemVisual(e,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,se(a,i);var n=t.getItemLayout(e).sign;H(a.states,function(s,u){var l=i.getModel(u),h=Fe(n,l),v=Me(n,l)||h,c=s.style||(s.style={});h&&(c.fill=h),v&&(c.stroke=v)});var o=i.getModel("emphasis");J(a,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Ea(a,t){return te(a,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var Ba=(function(){function a(){}return a})(),Pe=(function(a){k(t,a);function t(e){var r=a.call(this,e)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Ba},t.prototype.buildPath=function(e,r){for(var i=r.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];e.moveTo(o,i[n++]),e.lineTo(o,i[n++])}else n+=3},t})(he);function dt(a,t,e,r){var i=a.getData(),n=i.getLayout("largePoints"),o=new Pe({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Pe({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var u=new Pe({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});t.add(u),we(1,o,a),we(-1,s,a),we(0,u,a),r&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function we(a,t,e,r){var i=Me(a,e)||Fe(a,e),n=e.getModel("itemStyle").getItemStyle(Ta);t.useStyle(n),t.style.fill=null,t.style.stroke=i}var $t=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,r,i){var n=r.getItemLayout(e);return n&&i.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(ee);Et($t,Ht,!0);function ka(a){!a||!K(a.series)||H(a.series,function(t){fr(t)&&t.type==="k"&&(t.type="candlestick")})}var za={seriesType:"candlestick",plan:Ne(),reset:function(a){var t=a.coordinateSystem,e=a.getData(),r=Va(a,e),i=0,n=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),u=te(e.mapDimensionsAll(o[n]),e.getDimensionIndex,e),l=u[0],h=u[1],v=u[2],c=u[3];if(e.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||u.length<4)return;return{progress:a.pipelineContext.large?g:p};function p(f,y){for(var S,d=y.getStore();(S=f.next())!=null;){var m=d.get(s,S),b=d.get(l,S),x=d.get(h,S),_=d.get(v,S),D=d.get(c,S),P=Math.min(b,x),w=Math.max(b,x),C=V(P,m),A=V(w,m),L=V(_,m),I=V(D,m),R=[];N(R,A,0),N(R,C,1),R.push(G(I),G(A),G(L),G(C));var T=y.getItemModel(S),W=!!T.get(["itemStyle","borderColorDoji"]);y.setItemLayout(S,{sign:mt(d,S,b,x,h,W),initBaseline:b>x?A[n]:C[n],ends:R,brushRect:M(_,D,m)})}function V(O,F){var z=[];return z[i]=F,z[n]=O,isNaN(F)||isNaN(O)?[NaN,NaN]:t.dataToPoint(z)}function N(O,F,z){var E=F.slice(),B=F.slice();E[i]=Se(E[i]+r/2,1,!1),B[i]=Se(B[i]-r/2,1,!0),z?O.push(E,B):O.push(B,E)}function M(O,F,z){var E=V(O,z),B=V(F,z);return E[i]-=r/2,B[i]-=r/2,{x:E[0],y:E[1],width:r,height:B[1]-E[1]}}function G(O){return O[i]=Se(O[i],1),O}}function g(f,y){for(var S=q(f.count*4),d=0,m,b=[],x=[],_,D=y.getStore(),P=!!a.get(["itemStyle","borderColorDoji"]);(_=f.next())!=null;){var w=D.get(s,_),C=D.get(l,_),A=D.get(h,_),L=D.get(v,_),I=D.get(c,_);if(isNaN(w)||isNaN(L)||isNaN(I)){S[d++]=NaN,d+=3;continue}S[d++]=mt(D,_,C,A,h,P),b[i]=w,b[n]=L,m=t.dataToPoint(b,null,x),S[d++]=m?m[0]:NaN,S[d++]=m?m[1]:NaN,b[n]=I,m=t.dataToPoint(b,null,x),S[d++]=m?m[1]:NaN}y.setLayout("largePoints",S)}}};function mt(a,t,e,r,i,n){var o;return e>r?o=-1:e<r?o=1:o=n?0:t>0?a.get(i,t-1)<=r?1:-1:1,o}function Va(a,t){var e=a.getBaseAxis(),r,i=e.type==="category"?e.getBandWidth():(r=e.getExtent(),Math.abs(r[1]-r[0])/t.count()),n=j(Je(a.get("barMaxWidth"),i),i),o=j(Je(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?j(s,i):Math.max(Math.min(i/2,n),o)}function Wa(a){a.registerChartView(Ra),a.registerSeriesModel($t),a.registerPreprocessor(ka),a.registerVisual(Ia),a.registerLayout(za)}function yt(a,t){var e=t.rippleEffectColor||t.color;a.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Ga=(function(a){k(t,a);function t(e,r){var i=a.call(this)||this,n=new Ge(e,r),o=new Q;return i.add(n),i.add(o),i.updateData(e,r),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var r=e.symbolType,i=e.color,n=e.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var u=oe(r,-1,-1,2,2,i);u.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-s/n*e.period+e.effectOffset;u.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(l).start(),u.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),o.add(u)}yt(o,e)},t.prototype.updateEffectAnimation=function(e){for(var r=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(r[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}yt(i,e)},t.prototype.highlight=function(){gr(this)},t.prototype.downplay=function(){dr(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,r){var i=this,n=e.hostModel;this.childAt(0).updateData(e,r);var o=this.childAt(1),s=e.getItemModel(r),u=e.getItemVisual(r,"symbol"),l=mr(e.getItemVisual(r,"symbolSize")),h=e.getItemVisual(r,"style"),v=h&&h.fill,c=s.getModel("emphasis");o.setScale(l),o.traverse(function(y){y.setStyle("fill",v)});var p=Bt(e.getItemVisual(r,"symbolOffset"),l);p&&(o.x=p[0],o.y=p[1]);var g=e.getItemVisual(r,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var f={};f.showEffectOn=n.get("showEffectOn"),f.rippleScale=s.get(["rippleEffect","scale"]),f.brushType=s.get(["rippleEffect","brushType"]),f.period=s.get(["rippleEffect","period"])*1e3,f.effectOffset=r/e.count(),f.z=n.getShallow("z")||0,f.zlevel=n.getShallow("zlevel")||0,f.symbolType=u,f.color=v,f.rippleEffectColor=s.get(["rippleEffect","color"]),f.rippleNumber=s.get(["rippleEffect","number"]),f.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){y==="emphasis"?f.showEffectOn!=="render"&&i.startEffectAnimation(f):y==="normal"&&f.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=f,J(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(Q),Fa=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new We(Ga)},t.prototype.render=function(e,r,i){var n=e.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var r=e.coordinateSystem,i=r&&r.getArea&&r.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,r,i){var n=e.getData();this.group.dirty();var o=ve("").reset(e,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var r=e.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=yr(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(Y),Ma=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return ue(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t})(ee);function Ua(a){a.registerChartView(Fa),a.registerSeriesModel(Ma),a.registerLayout(ve("effectScatter"))}var Ha=["itemStyle","borderWidth"],St=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ce=new br,Ya=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=this.group,o=e.getData(),s=this._data,u=e.coordinateSystem,l=u.getBaseAxis(),h=l.isHorizontal(),v=u.master.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:u,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:h,valueDim:St[+h],categoryDim:St[1-+h]};o.diff(s).add(function(g){if(o.hasValue(g)){var f=_t(o,g),y=bt(o,g,f,c),S=xt(o,c,y);o.setItemGraphicEl(g,S),n.add(S),At(S,c,y)}}).update(function(g,f){var y=s.getItemGraphicEl(f);if(!o.hasValue(g)){n.remove(y);return}var S=_t(o,g),d=bt(o,g,S,c),m=Kt(o,d);y&&m!==y.__pictorialShapeStr&&(n.remove(y),o.setItemGraphicEl(g,null),y=null),y?Ja(y,c,d):y=xt(o,c,d,!0),o.setItemGraphicEl(g,y),y.__pictorialSymbolMeta=d,n.add(y),At(y,c,d)}).remove(function(g){var f=s.getItemGraphicEl(g);f&&Dt(s,g,f.__pictorialSymbolMeta.animationModel,f)}).execute();var p=e.get("clip",!0)?ke(e.coordinateSystem,!1,e):null;return p?n.setClipPath(p):n.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,r){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){Dt(n,$(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t})(Y);function bt(a,t,e,r){var i=a.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",u=e.get("symbolRotate"),l=(u||0)*Math.PI/180||0,h=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),c={dataIndex:t,layout:i,itemModel:e,symbolType:a.getItemVisual(t,"symbol")||"circle",style:a.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:l,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Xa(e,n,i,r,c),$a(a,t,i,n,o,c.boundingLength,c.pxSign,h,r,c),ja(e,c.symbolScale,l,r,c);var p=c.symbolSize,g=Bt(e.get("symbolOffset"),p);return Qa(e,p,i,n,o,g,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,r,c),c}function Xa(a,t,e,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=s.toGlobalCoord(s.dataToCoord(0)),l=1-+(e[n.wh]<=0),h;if(K(o)){var v=[Le(s,o[0])-u,Le(s,o[1])-u];v[1]<v[0]&&v.reverse(),h=v[l]}else o!=null?h=Le(s,o)-u:t?h=r.coordSysExtent[n.index][l]-u:h=e[n.wh];i.boundingLength=h,t&&(i.repeatCutLength=e[n.wh]);var c=n.xy==="x",p=s.inverse;i.pxSign=c&&!p||!c&&p?h>=0?1:-1:h>0?1:-1}function Le(a,t){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(t)))}function $a(a,t,e,r,i,n,o,s,u,l){var h=u.valueDim,v=u.categoryDim,c=Math.abs(e[v.wh]),p=a.getItemVisual(t,"symbolSize"),g;K(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[v.index]=j(g[v.index],c),g[h.index]=j(g[h.index],r?c:Math.abs(n)),l.symbolSize=g;var f=l.symbolScale=[g[0]/s,g[1]/s];f[h.index]*=(u.isHorizontal?-1:1)*o}function ja(a,t,e,r,i){var n=a.get(Ha)||0;n&&(Ce.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ce.updateTransform(),n/=Ce.getLineScale(),n*=t[r.valueDim.index]),i.valueLineWidth=n||0}function Qa(a,t,e,r,i,n,o,s,u,l,h,v){var c=h.categoryDim,p=h.valueDim,g=v.pxSign,f=Math.max(t[p.index]+s,0),y=f;if(r){var S=Math.abs(u),d=_r(a.get("symbolMargin"),"15%")+"",m=!1;d.lastIndexOf("!")===d.length-1&&(m=!0,d=d.slice(0,d.length-1));var b=j(d,t[p.index]),x=Math.max(f+b*2,0),_=m?0:b*2,D=xr(r),P=D?r:Pt((S+_)/x),w=S-P*f;b=w/2/(m?P:Math.max(P-1,1)),x=f+b*2,_=m?0:b*2,!D&&r!=="fixed"&&(P=l?Pt((Math.abs(l)+_)/x):0),y=P*x-_,v.repeatTimes=P,v.symbolMargin=b}var C=g*(y/2),A=v.pathPosition=[];A[c.index]=e[c.wh]/2,A[p.index]=o==="start"?C:o==="end"?u-C:u/2,n&&(A[0]+=n[0],A[1]+=n[1]);var L=v.bundlePosition=[];L[c.index]=e[c.xy],L[p.index]=e[p.xy];var I=v.barRectShape=Z({},e);I[p.wh]=g*Math.max(Math.abs(e[p.wh]),Math.abs(A[p.index]+C)),I[c.wh]=e[c.wh];var R=v.clipShape={};R[c.xy]=-e[c.xy],R[c.wh]=h.ecSize[c.wh],R[p.xy]=0,R[p.wh]=e[p.wh]}function jt(a){var t=a.symbolPatternSize,e=oe(a.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Qt(a,t,e,r){var i=a.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,u=t.valueDim,l=e.repeatTimes||0,h=0,v=n[t.valueDim.index]+o+e.symbolMargin*2;for(Ue(a,function(f){f.__pictorialAnimationIndex=h,f.__pictorialRepeatTimes=l,h<l?re(f,null,g(h),e,r):re(f,null,{scaleX:0,scaleY:0},e,r,function(){i.remove(f)}),h++});h<l;h++){var c=jt(e);c.__pictorialAnimationIndex=h,c.__pictorialRepeatTimes=l,i.add(c);var p=g(h);re(c,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},e,r)}function g(f){var y=s.slice(),S=e.pxSign,d=f;return(e.symbolRepeatDirection==="start"?S>0:S<0)&&(d=l-1-f),y[u.index]=v*(d-l/2+.5)+s[u.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Zt(a,t,e,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?re(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,r):(n=a.__pictorialMainPath=jt(e),i.add(n),re(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,r))}function qt(a,t,e){var r=Z({},t.barRectShape),i=a.__pictorialBarRect;i?re(i,null,{shape:r},t,e):(i=a.__pictorialBarRect=new de({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function Jt(a,t,e,r){if(e.symbolClip){var i=a.__pictorialClipPath,n=Z({},e.clipShape),o=t.valueDim,s=e.animationModel,u=e.dataIndex;if(i)U(i,{shape:n},s,u);else{n[o.wh]=0,i=new de({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var l={};l[o.wh]=e.clipShape[o.wh],Be[r?"updateProps":"initProps"](i,{shape:l},s,u)}}}function _t(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=Za,e.isAnimationEnabled=qa,e}function Za(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function qa(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function xt(a,t,e,r){var i=new Q,n=new Q;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?Qt(i,t,e):Zt(i,t,e),qt(i,e,r),Jt(i,t,e,r),i.__pictorialShapeStr=Kt(a,e),i.__pictorialSymbolMeta=e,i}function Ja(a,t,e){var r=e.animationModel,i=e.dataIndex,n=a.__pictorialBundle;U(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},r,i),e.symbolRepeat?Qt(a,t,e,!0):Zt(a,t,e,!0),qt(a,e,!0),Jt(a,t,e,!0)}function Dt(a,t,e,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];Ue(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(e=null),H(n,function(o){Sr(o,{scaleX:0,scaleY:0},e,t,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(t,null)}function Kt(a,t){return[a.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Ue(a,t,e){H(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&t.call(e,r)})}function re(a,t,e,r,i,n){t&&a.attr(t),r.symbolClip&&!i?e&&a.attr(e):e&&Be[i?"updateProps":"initProps"](a,e,r.animationModel,r.dataIndex,n)}function At(a,t,e){var r=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),l=i.getShallow("cursor"),h=n.get("focus"),v=n.get("blurScope"),c=n.get("scale");Ue(a,function(f){if(f instanceof Dr){var y=f.style;f.useStyle(Z({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},e.style))}else f.useStyle(e.style);var S=f.ensureState("emphasis");S.style=o,c&&(S.scaleX=f.scaleX*1.1,S.scaleY=f.scaleY*1.1),f.ensureState("blur").style=s,f.ensureState("select").style=u,l&&(f.cursor=l),f.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],g=a.__pictorialBarRect;g.ignoreClip=!0,Te(g,Re(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Ve(t.seriesModel.getData(),r),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),J(a,h,v,n.get("disabled"))}function Pt(a){var t=Math.round(a);return Math.abs(a-t)<1e-4?t:Math.ceil(a)}var Ka=(function(a){k(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,a.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Lt(le.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(le);function ei(a){a.registerChartView(Ya),a.registerSeriesModel(Ka),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Ee(Rt,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nt("pictorialBar"))}Ot([oa,Da,Wa,Ua,Xr,ei,ca]);
|