infobae-charts 0.0.18 → 0.0.19
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.
Potentially problematic release.
This version of infobae-charts might be problematic. Click here for more details.
- package/dist/components/Line/children/LineItem.d.ts +7 -1
- package/dist/components/Line/children/LineItem.d.ts.map +1 -1
- package/dist/components/Line/index.d.ts +4 -19
- package/dist/components/Line/index.d.ts.map +1 -1
- package/dist/components/Line/types.d.ts +43 -0
- package/dist/components/Line/types.d.ts.map +1 -0
- package/dist/components/TestComponent/index.d.ts.map +1 -1
- package/dist/components/VerticalBar/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/LineItem.d.ts +17 -0
- package/dist/utils/LineItem.d.ts.map +1 -0
- package/dist/utils/utilts.d.ts +5 -0
- package/dist/utils/utilts.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/HorizontalBarChart/mocks/index.d.ts +0 -8
- package/dist/components/HorizontalBarChart/mocks/index.d.ts.map +0 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { Data, Visualization } from '../types';
|
|
3
|
+
export interface LineItemProps {
|
|
4
|
+
visualization: Visualization;
|
|
5
|
+
data?: Data;
|
|
6
|
+
showLegend?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const LineItem: React.FC<LineItemProps>;
|
|
3
9
|
export default LineItem;
|
|
4
10
|
//# sourceMappingURL=LineItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Line/children/LineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Line/children/LineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI/C,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsIrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
+
import { ApiData } from './types';
|
|
1
2
|
export interface LineProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
showChart?: boolean;
|
|
5
|
-
showFont?: boolean;
|
|
6
|
-
showLogo?: boolean;
|
|
7
|
-
showSubtitle?: boolean;
|
|
8
|
-
showTitle?: boolean;
|
|
9
|
-
subtitle?: string | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
3
|
+
data?: ApiData;
|
|
4
|
+
type?: string | undefined;
|
|
11
5
|
}
|
|
12
|
-
export declare const Line: ({
|
|
13
|
-
logoSrc?: undefined;
|
|
14
|
-
showChart?: boolean | undefined;
|
|
15
|
-
showFont?: boolean | undefined;
|
|
16
|
-
showLogo?: boolean | undefined;
|
|
17
|
-
showSubtitle?: boolean | undefined;
|
|
18
|
-
showTitle?: boolean | undefined;
|
|
19
|
-
subtitle?: string | undefined;
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
}) => import("react").JSX.Element;
|
|
6
|
+
export declare const Line: ({ data: apiData, type }: LineProps) => import("react").JSX.Element;
|
|
22
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Line/index.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Line/index.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI,GAAI,yBAA8B,SAAS,gCAqC3D,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface bindings {
|
|
2
|
+
x?: string;
|
|
3
|
+
y?: Array<string | number | undefined>;
|
|
4
|
+
}
|
|
5
|
+
type DataRows = Array<(string | number | undefined)[]>;
|
|
6
|
+
export interface Data {
|
|
7
|
+
columns?: Array<number | string | undefined>;
|
|
8
|
+
rows?: DataRows;
|
|
9
|
+
}
|
|
10
|
+
export interface Metadata {
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
source?: string | undefined;
|
|
14
|
+
image?: string | undefined;
|
|
15
|
+
articleUrl?: string | number | boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface Settings {
|
|
18
|
+
showTitle?: boolean;
|
|
19
|
+
showDescription?: boolean;
|
|
20
|
+
showImage?: boolean;
|
|
21
|
+
showLegend?: boolean;
|
|
22
|
+
showChart?: boolean;
|
|
23
|
+
showSource?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface SerieItem {
|
|
26
|
+
key?: string | number | undefined;
|
|
27
|
+
color?: string | undefined;
|
|
28
|
+
image?: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface Visualization {
|
|
31
|
+
type?: string | undefined;
|
|
32
|
+
bindings?: bindings;
|
|
33
|
+
settings?: Settings;
|
|
34
|
+
series?: Array<SerieItem>;
|
|
35
|
+
}
|
|
36
|
+
export interface ApiData {
|
|
37
|
+
metadata?: Metadata;
|
|
38
|
+
data?: Data;
|
|
39
|
+
visualization?: Visualization;
|
|
40
|
+
schemaVersion?: number;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Line/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;CACxC;AAED,KAAK,QAAQ,GAAG,KAAK,CAAC,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;AAEvD,MAAM,WAAW,IAAI;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TestComponent/index.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TestComponent/index.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,aAAa,gCAkLpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VerticalBar/index.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,GAAI,yBAAmC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VerticalBar/index.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,GAAI,yBAAmC,gBAAgB,gCAwC9E,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){proc
|
|
|
41
41
|
`)){var p=new sP;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,aP(dP,f,null,r,d)).on(`mouseover`,aP(fP,m.name,null,r,d)).on(`mouseout`,aP(pP,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Pu(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Nr(h.fill);_&&_[3]===0&&(_[3]=.2,h=P(P({},h),{fill:Rr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,aP(dP,null,f,r,d)).on(`mouseover`,aP(fP,null,f,r,d)).on(`mouseout`,aP(pP,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Pu(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Pu(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();oP(e,function(e){var r=e.type,i=new bu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Om(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Bd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=lP(c,r,o,s,d,m,u),y=new sP,b=r.getModel(`textStyle`);if(H(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(uP({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;U(w)&&w?T=w.replace(`{name}`,t??``):H(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new bu({style:Am(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new hu({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&um({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Bd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();wg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){wg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Ky);function lP(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),oP(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:rS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function uP(e){var t=e.icon||`roundRect`,n=mx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function dP(e,t,n,r){pP(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),fP(e,t,n,r)}function fP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function pP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function mP(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),hP(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),hP(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function hP(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
42
42
|
`&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function gP(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,me(mP,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,me(mP,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,me(mP,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,me(mP,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,me(mP,`unSelect`))}var _P=Qs(vP);function vP(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function yP(e){e.registerComponentModel(iP),e.registerComponentView(cP),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_P),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),gP(e)}var bP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Mg(t);e.prototype.init.call(this,t,n,r),xP(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),xP(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=rh(iP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(iP);function xP(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,jg(t,n,{type:`box`,ignoreSize:!!i})}var SP=Ja,CP=[`width`,`height`],wP=[`x`,`y`],TP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new SP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new SP)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=V(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new bu({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=nm(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:pe(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=CP[s],l=wP[s],u=CP[1-s],d=wP[1-s];i&&wg(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=M(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;wg(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),wg(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new hu({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&wp(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,U(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=CP[i],o=wP[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(cP);function EP(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function DP(e){qE(yP),e.registerComponentModel(bP),e.registerComponentView(TP),EP(e)}function OP(e){qE(yP),qE(DP)}function kP(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new hu({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=H(i)?function(e){i(e,d)}:null;Tp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function AP(e,t,n){var r=e.getArea(),i=X(r.r0,1),a=X(r.r,1),o=new Hf({shape:{cx:X(e.cx,1),cy:X(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Tp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function jP(e,t,n,r,i){return e?e.type===`polar`?AP(e,t,n):e.type===`cartesian2d`?kP(e,t,n,r,i):null:null}var MP={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},NP=function(e){return Math.round(e.length/2)};function PP(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;U(i)?p=MP[i]:H(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,NP))}}}}}var FP=Gs(),IP=`__ec_stack_`;function LP(e){return e.get(`stack`)||IP+e.seriesIndex}function RP(e,t){var n=zP(e,t);return n.columnMap=BP(n),n}function zP(e,t){var n=NA(t,VD),r=[],i=_D(e,{fromStat:{key:n},min:1});return cE(e,n,function(e){r.push({barWidth:bo(e.get(`barWidth`),i.w),barMaxWidth:bo(e.get(`barMaxWidth`),i.w),barMinWidth:bo(e.get(`barMinWidth`)||(UP(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:LP(e)})}),{bandWidthResult:i,seriesInfo:r}}function BP(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=co(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Y(35-o.length*4,15)+`%`;var c=bo(i,t),l=bo(a,1),u=(n-c)/(r+(r-1)*l);u=Y(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=co(o,i)),a&&(o=Y(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=co(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Y(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function VP(e){return{seriesType:e,overallReset:function(t){var n=NA(e,VD);uE(t,n,function(t){process.env.NODE_ENV!==`production`&&K(t instanceof nO);var r=RP(t,e);cE(t,n,function(e){var t=r.columnMap[LP(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function HP(e){return{seriesType:e,plan:qy(),reset:function(e){if(RO(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=Ow(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(IA(i))),p=UP(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&DA(r*3),c=p&&s&&DA(r*3),l=p&&DA(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,lo(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,lo(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function UP(e){return e.pipelineContext&&e.pipelineContext.large}function WP(e){return MA(NA(e,VD))}function GP(e){FP(e,function(){function t(t){var n=NA(t,VD);FA(e,n,t,VD),NE(n,WP(t))}t(`bar`),t(`pictorialBar`)})}var KP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return Mw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)R(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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`,defaultBarGap:`10%`},t}(Ly);Ly.registerClass(KP);var qP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Mw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Zs(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=rh(KP.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(KP),JP=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),YP=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new JP},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(tu);function XP(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Aa(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+QP(m,s+_,!1),x=u+p*y(m)+$P(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+QP(m,-s+_,!1),x=u+p*y(m)+$P(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+QP(h,s+_,!0),x=u+p*y(h)+$P(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+QP(h,-s+_,!0),x=u+p*y(h)+$P(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Aa(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function ZP(e,t,n,r){if(ge(r)){e.setTextConfig({rotation:r});return}if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function QP(e,t,n){return t*Math.sin(e)*(n?-1:1)}function $P(e,t,n){return t*Math.cos(e)*(n?1:-1)}function eF(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;V(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(r,function(e){return ka(e,i)})}}var tF=Math.max,nF=Math.min,rF=function(e){f(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&Jo(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){fm(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=oF(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=fF[s.type](a,e);if(!t)return null;var n=CF(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=fF[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!dF[s.type](r)))){var o=!1;f&&(o=iF[s.type](p,r));var g=aF[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),hF(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?sF(d,u,g,r,t,l,!1,!1):Tp(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=fF[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=fF[s.type](a,t),E=SF(l,T,s);wp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!dF[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=iF[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&kp(D,e,n),D=null),D?Ap(D):D=aF[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=zm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else hF(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?sF(d,u,D,C,t,l,!0,x):wp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&kp(n,e,t)}).execute();var C=this._backgroundGroup||=new Ja;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),yF(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),yF(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&jP(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:z(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){kp(t,e,Pu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Xy),iF={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=tF(t.x,e.x),s=nF(t.x+t.width,i),c=tF(t.y,e.y),l=nF(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=nF(t.r,e.r),a=tF(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},aF={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new hu({shape:P({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?YP:Hf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=XP(mF(i),{isRoundCap:l===YP}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?wp:Tp)(u,{shape:p},a)}return u}};function oF(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Jo("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Jo("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function sF(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?wp:Tp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?wp:Tp)(n,{shape:l},u,i)}function cF(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var lF=[`x`,`y`,`width`,`height`],uF=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],dF={cartesian2d:function(e){return!cF(e,lF)},polar:function(e){return!cF(e,uF)}},fF={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?gF(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.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 pF(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function mF(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function hF(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;P(u,eF(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?wF(i,a.coordinateSystem):TF(i,a.coordinateSystem),p=km(r);Om(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:eP(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,ZP(e,h===`outside`?f:h,mF(o),r.get([`label`,`rotate`]))}Bm(m,p,a.getRawValue(n),function(e){return tP(t,e)});var g=r.getModel([`emphasis`]);Hd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Kd(e,r),pF(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function gF(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var _F=function(){function e(){}return e}(),vF=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new _F},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(tu);function yF(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Xs(e):0;if(l){var d=new vF({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new vF({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Pu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,bF),f.on(`mousemove`,bF)),n&&n.push(f)}var bF=ab(function(e){var t=this,n=xF(t,e.offsetX,e.offsetY);Pu(t).dataIndex=n>=0?n:null},30,!1);function xF(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function SF(e,t,n){if(nP(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function CF(e,t,n){return new(e.type===`polar`?Hf:hu)({shape:SF(t,n,e),silent:!0,z2:0})}function wF(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function TF(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function EF(e){e.registerChartView(rF),e.registerSeriesModel(qP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,VP(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HP(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,PP(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),GP(e)}var DF=Math.sin,OF=Math.cos,kF=Math.PI,AF=Math.PI*2,jF=180/kF,MF=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Gr(u-AF)||(l?c>=AF:-c>=AF),f=c>0?c%AF:c%AF+AF,p=!1;p=d?!0:!Gr(u)&&f>=kF==!!l;var m=e+n*OF(a),h=t+r*DF(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*jF);if(d){var _=1/this._p,v=(l?1:-1)*(AF-_);this._add(`A`,n,r,g,1,+l,e+n*OF(a+v),t+r*DF(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*OF(o),b=t+r*DF(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),NF=`none`,PF=Math.round;function FF(e){var t=e.fill;return t!=null&&t!==NF}function IF(e){var t=e.stroke;return t!=null&&t!==NF}var LF=[`lineCap`,`miterLimit`,`lineJoin`],RF=z(LF,function(e){return`stroke-`+e.toLowerCase()});function zF(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof su){e(`opacity`,i);return}if(FF(t)){var a=Ur(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,NF);if(IF(t)){var s=Ur(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=Tx(n),p=f[0],m=f[1];p&&(m=PF(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,NF);for(var h=0;h<LF.length;h++){var g=LF[h];if(r||t[g]!==Ql[g]){var _=t[g]||Ql[g];_&&e(RF[h],_)}}}else r&&e(`stroke`,NF)}var BF=`http://www.w3.org/2000/svg`,VF=`http://www.w3.org/1999/xlink`,HF=`http://www.w3.org/2000/xmlns/`,UF=`http://www.w3.org/XML/1998/namespace`,WF=`ecmeta_`;function GF(e){return document.createElementNS(BF,e)}function KF(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function qF(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function JF(e){return`</`+e+`>`}function YF(e,t){t||={};var n=t.newline?`
|
|
43
43
|
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return qF(i,a)+(i===`style`?o||``:xt(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+JF(i)}return r(e)}function XF(e,t,n){n||={};var r=n.newline?`
|
|
44
|
-
`:``,i=` {`+r,a=r+`}`,o=z(B(e),function(t){return t+i+z(B(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(B(t),function(e){return`@keyframes `+e+i+z(B(t[e]),function(n){return n+i+z(B(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function ZF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function QF(e,t,n,r){return KF(`svg`,`root`,{width:e,height:t,xmlns:BF,"xmlns:xlink":VF,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var $F=0;function eI(){return $F++}var tI={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},nI=`transform-origin`;function rI(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new MF;return i.reset(oi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function iI(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[nI]=n+`px `+r+`px`)}var aI={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function oI(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sI(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=ZF(n.zrId);t.animation=!0,lI(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=B(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=oI(i,n);return a.replace(o,s)}}function cI(e){return U(e)?tI[e]?`cubic-bezier(`+tI[e]+`)`:gr(e)?e:``:``}function lI(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof op){var s=sI(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=cI(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=cI(d.easing),m=d.rawValue;(U(m)||ge(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};ga(g,e),P(g,s[h]);var _=si(g),v=s[h][u];l[h]=_?{transform:_}:{},iI(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Al);var S=y.len();y.reset(),l[h].d=rI(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return aI[e]})}for(var w=B(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][nI]!==l[O][nI]){T=!1;break}E=l[D][nI]}if(T&&E){for(var h in l)l[h][nI]&&delete l[h][nI];t[nI]=E}if(ue(w,function(e){return B(l[e]).length>0}).length)return oI(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+eI();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function uI(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};dI(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Vr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),dI(r,t,n,!0)}}}function dI(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+eI(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var fI=Math.round;function pI(e){return e&&U(e.src)}function mI(e){return e&&H(e.toDataURL)}function hI(e,t,n,r){zF(function(i,a){var o=i===`fill`||i===`stroke`;o&&ii(a)?AI(t,e,i,r):o&&ti(a)?jI(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),kI(n,e,r)}function gI(e,t){var n=ro(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[WF+`silent`]=`true`))}function _I(e){return Gr(e[0]-1)&&Gr(e[1])&&Gr(e[2])&&Gr(e[3]-1)}function vI(e){return Gr(e[4])&&Gr(e[5])}function yI(e,t,n){if(t&&!(vI(t)&&_I(t))){var r=n?10:1e4;e.transform=_I(t)?`translate(`+fI(t[4]*r)/r+` `+fI(t[5]*r)/r+`)`:Jr(t)}}function bI(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(fI(r[a][0]*n)/n),i.push(fI(r[a][1]*n)/n);t.points=i.join(` `)}function xI(e){return!e.smooth}function SI(e){var t=z(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=fI(o*r)/r)}}}var CI={circle:[SI([`cx`,`cy`,`r`])],polyline:[bI,xI],polygon:[bI,xI]};function wI(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function TI(e,t){var n=e.style,r=e.shape,i=CI[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&oi(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&wI(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new MF,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return yI(a,e.transform),hI(a,n,e,t),gI(a,e),t.animation&&lI(e,a,t),t.emphasis&&uI(e,a,t),KF(s,e.id+``,a)}function EI(e,t){var n=e.style,r=n.image;if(r&&!U(r)&&(pI(r)?r=r.src:mI(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),yI(c,e.transform),hI(c,n,e,t),gI(c,e),t.animation&&lI(e,c,t),KF(`image`,e.id+``,c)}}function DI(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Xr(n.y||0,Oa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Yr[n.textAlign]||n.textAlign};if(Eu(n)){var c=``,l=n.fontStyle,u=wu(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),yI(s,e.transform),hI(s,n,e,t),gI(s,e),t.animation&&lI(e,s,t),KF(`text`,e.id+``,s,void 0,r)}}function OI(e,t){if(e instanceof tu)return TI(e,t);if(e instanceof su)return EI(e,t);if(e instanceof ru)return DI(e,t)}function kI(e,t,n){var r=e.style;if(Zr(r)){var i=Qr(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Ur(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=KF(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[KF(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=ai(o)}}function AI(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(ni(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(ri(i))a=`radialGradient`,o.cx=G(i.x,.5),o.cy=G(i.y,.5),o.r=G(i.r,.5);else{process.env.NODE_ENV!==`production`&&ae(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=qr(s[l].offset)*100+`%`,f=s[l].color,p=Ur(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(KF(`stop`,l+``,g))}var _=YF(KF(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=KF(a,y,o,c)),t[n]=ai(y)}function jI(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if($r(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(U(h)?m=h:pI(h)?m=h.src:mI(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;K(f,g),K(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=vc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=KF(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=si(i);x&&(o.patternTransform=x);var S=KF(`pattern`,``,o,[d]),C=YF(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=KF(`pattern`,T,o,[d])),t[n]=ai(T)}}function MI(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=KF(`clipPath`,a,o,[TI(e,n)])}t[`clip-path`]=ai(a)}function NI(e){return document.createTextNode(e)}function PI(e,t,n){e.insertBefore(t,n)}function FI(e,t){e.removeChild(t)}function II(e,t){e.appendChild(t)}function LI(e){return e.parentNode}function RI(e){return e.nextSibling}function zI(e,t){e.textContent=t}var BI=58,VI=120,HI=KF(``,``);function UI(e){return e===void 0}function WI(e){return e!==void 0}function GI(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function KI(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function qI(e){var t,n=e.children,r=e.tag;if(WI(r)){var i=e.elm=GF(r);if(XI(HI,e),V(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&II(i,qI(a))}else WI(e.text)&&!W(e.text)&&II(i,NI(e.text))}else e.elm=NI(e.text);return e.elm}function JI(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&PI(e,qI(a),t)}}function YI(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(WI(i.tag)?FI(LI(i.elm),i.elm):FI(e,i.elm))}}function XI(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===VI?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(HF,n,o):n.charCodeAt(3)===BI?r.setAttributeNS(UF,n,o):n.charCodeAt(5)===BI?r.setAttributeNS(VF,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function ZI(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:KI(o,l)?(QI(o,l),o=t[++r],l=n[++i]):KI(s,u)?(QI(s,u),s=t[--a],u=n[--c]):KI(o,u)?(QI(o,u),PI(e,o.elm,RI(s.elm)),o=t[++r],u=n[--c]):KI(s,l)?(QI(s,l),PI(e,s.elm,o.elm),s=t[--a],l=n[++i]):(UI(d)&&(d=GI(t,r,a)),f=d[l.key],UI(f)?PI(e,qI(l),o.elm):(p=t[f],p.tag===l.tag?(QI(p,l),t[f]=void 0,PI(e,p.elm,o.elm)):PI(e,qI(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,JI(e,m,n,i,c)):YI(e,t,r,a))}function QI(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(XI(e,t),UI(t.text)?WI(r)&&WI(i)?r!==i&&ZI(n,r,i):WI(i)?(WI(e.text)&&zI(n,``),JI(n,null,i,0,i.length-1)):WI(r)?YI(n,r,0,r.length-1):WI(e.text)&&zI(n,``):e.text!==t.text&&(WI(r)&&YI(n,r,0,r.length-1),zI(n,t.text)))}function $I(e,t){if(KI(e,t))QI(e,t);else{var n=e.elm,r=LI(n);qI(t),r!==null&&(PI(r,t.elm,RI(n)),YI(r,[e],0,0))}return t}var eL=0,tL=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=nL(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+eL++,this._oldVNode=QF(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=GF(`svg`);XI(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,$I(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return OI(e,ZF(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=ZF(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=rL(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=KF(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(B(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(KF(`defs`,`defs`,{},c)),e.animation){var l=XF(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=KF(`style`,`stl`,{},[],l);a.push(u)}}return QF(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},YF(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};MI(d[g],_,t);var v=KF(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=OI(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=Sx(r,0,n),t=Sx(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(ti(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=ci(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function nL(e){return function(){process.env.NODE_ENV!==`production`&&ae(`In SVG mode painter not support method "`+e+`"`)}}function rL(e,t,n,r){var i;if(n&&n!==`none`){if(i=KF(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),ii(n))AI({fill:n},i.attrs,`fill`,r);else if(ti(n))jI({style:{fill:n},dirty:Be,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Ur(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function iL(e){e.registerPainter(`svg`,tL)}function aL(e,t,n){var r=S.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function oL(e){return!e.__cursors.get(0)}function sL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var cL=function(e){f(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ea,typeof t==`string`?a=aL(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Re(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=sL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=aL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=sL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;be(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||yx(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):xe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Mx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&R(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(st),lL=1e5,uL=314159,dL=void 0,fL=1,pL=2;function mL(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function hL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function gL(e,t,n,r){var i=new cL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,_L(i),i}function _L(e){e.__cursorStack=[],e.__cursors=q()}function vL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function yL(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,vL({key:r})))}function bL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function xL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function SL(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&CL)||s.__builtin__)&&(!(n&wL)||!s.__builtin__)&&(!(n&TL)||s!==e.hoverlayer))&&t(s,a,o,i)}}var CL=1,wL=2,TL=4,EL=CL|TL,DL=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||ea,this._singleCanvas=i,this.root=e,e.style&&(Re(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=gL(a,this,uL,0);c.initContext(),this._insertLayer(c,uL,0,!0),this._domRoot=e}else{this._width=Sx(e,0,n),this._height=Sx(e,1,n);var l=this._domRoot=hL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=pL),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return SL(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},wL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=dL,n!==dL&&(!t&&n===pL&&(t=this._i.hoverlayer=this._ensureLayer(lL)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Zx(i,s,r),c&&(s.style=l)}}i&&(Qx(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(lL)},e.prototype.paintOne=function(e,t){Xx(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)SL(this._i,function(e){e.afterBrush&&e.afterBrush()},EL),this._paintHoverList(e);else{var i=this;Hn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(uL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),SL(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},CL)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return SL(this._i,function(i){var a=!1;if(bL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!oL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}bL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},EL),m.wxa&&SL(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=oL(e),c=s&&S.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=pL),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Zx(o,f,a),f.setPrevPaintRect(p))}else Zx(o,f,a);if(s&&S.getTime()-c>15){d++;break}}}Qx(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=uL,t=0);var i=xL(this._i,e)[t];return i||(i=gL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&N(i,this._layerConfig[e],!0),(n||r&&e!==uL)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(a[t]&&a[t][n]){process.env.NODE_ENV!==`production`&&ae(`ZLevel `+t+`.`+n+` has been used already`);return}if(!mL(e)){process.env.NODE_ENV!==`production`&&ae(`Layer of zlevel `+t+` is not valid`);return}for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=xL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),xL(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this},e.prototype.eachLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},CL)},e.prototype.eachOtherLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},wL)},e.prototype.getLayers=function(){var e={};return SL(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}SL(n._i,function(e){e.__dirty=!1,bL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},EL);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){ae(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=yL(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}SL(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(oL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(bL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===dL&&(n._hoverLayerDirty=fL))},EL)},e.prototype.clear=function(){return SL(this._i,function(e){e.clear(),_L(e)},CL),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,SL(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t,SL(this._i,function(e,t){N(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Sx(i,0,r),t=Sx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,SL(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(uL).resize(e,t)}return this},e.prototype.clearLayer=function(e){R(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[uL][0].dom;var t=new cL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;SL(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Zx(n,l,a)}Qx(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function OL(e){e.registerPainter(`canvas`,DL)}var kL=({visualization:e,data:t})=>{let{bindings:{y:n=[]}={}}=e||{},{columns:r=[]}=t||{};return r.map((e,t)=>n.includes(e)?t:null).filter(e=>e).map(e=>e?r[e]:null).filter(e=>e!==null)},AL=({visualization:e,data:t})=>{let{bindings:{x:n=``}={}}=e||{},{columns:r=[],rows:i=[]}=t||{},a=r.map((e,t)=>n===e?t:null).filter(e=>e!==null)[0]??null;return i.map(e=>a===null?null:e[a]).filter(e=>e!==null)},jL=({visualization:e={},data:t={}})=>{let{bindings:{y:n=[]}={},series:r=[]}=e||{},{columns:i=[],rows:a=[]}=t||{},o=i.map((e,t)=>n.includes(e)?t:null).filter(e=>e),s=r.some(({key:e})=>a.some(t=>t.includes(e)))||!1,c=r.some(({key:e})=>i.includes(e))||!1,l=n.map((e,t)=>{let n=o[t]||null;return{name:e,data:a.map(e=>n&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`bar`,stack:t+1,itemStyle:{borderRadius:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}},showBackground:!0,backgroundStyle:{color:`rgba(175, 175, 175, 0.1)`,borderRadius:[16,16,0,0]}}}),u=AL({visualization:e,data:t}),d=kL({visualization:e,data:t});return l.map(e=>{let{stack:t=0,data:n=[]}=e||{},i=n.map((e,t)=>{let n=u[t];return{value:e,itemStyle:{color:r.find(({key:e})=>e===n)?.color||`var(--orange-90)`}}}),a=s?i:n,o=d[t-1],l=r.find(({key:e})=>e===o)?.color||`var(--orange-90)`,f=c?l:null;return{...e,color:f,data:a,emphasis:{...e.emphasis,itemStyle:{...e.emphasis.itemStyle,color:f}}}})},ML=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};qE([wA,$N,xN,EF,iL]);var NL=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=jL({visualization:e,data:t}),c=AL({visualization:e,data:t}),{series:l=[]}=e||{},u=ML({xData:c,series:l});return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=wC(a.current,void 0,{renderer:`svg`});let e=[...s],t={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};u.forEach(({image:e},n)=>{e&&(t[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let n={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},tooltip:{trigger:`axis`},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,n)=>{let r=`img_${n}`;return t[r]?`{valueStyle|${e}}\n{${r}|}`:`{valueStyle|${e}}`},rich:t}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:e};o.current.setOption(n);let r=new ResizeObserver(()=>{o.current?.resize()});return r.observe(a.current),()=>{r.disconnect(),o.current?.dispose(),o.current=null}},[s,c,u]),(0,n.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:a,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},PL=({data:e={},type:t=``})=>{let{data:r={},metadata:{title:i=``,description:a=``,source:o=``,image:s=void 0,articleUrl:l=``}={},visualization:d={},visualization:{settings:{showChart:f=!0,showDescription:p=!0,showImage:m=!0,showLegend:h=!0,showSource:g=!0,showTitle:_=!0}={}}={}}=e||{},v=t===`only-graph`,y=!v,b=!v&&m;return(0,n.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,n.jsx)(u,{title:i,showTitle:_,subtitle:a,showSubtitle:p,url:l,showShare:y}),f?(0,n.jsx)(NL,{data:r,visualization:d,showLegend:h}):null,!g||!o?null:(0,n.jsx)(c,{showLogo:b,logoSrc:s,source:o,showSource:g})]})},FL={borderColor:`#FFFFFF`,borderRadius:100,borderWidth:4},IL=(e=[])=>e.reduce((e,t,n)=>t?{...e,[`image_${n}`]:{backgroundColor:{image:t},borderRadius:12,height:24,width:24}}:e,{}),LL=(e=[])=>(t,n)=>e[n]?`{image_${n}|} ${t}`:t,RL={AXIS_HEIGHT:60,CATEGORY_GAP:8,MIN_HEIGHT:200},zL=(e=0,t=1,n=!1)=>{try{let r=Number(e)||0,i=(Number(t)||1)*22,a=r*(Math.max(i,n?24:0)+RL.CATEGORY_GAP)+RL.AXIS_HEIGHT;return{height:`${Math.max(a,RL.MIN_HEIGHT)}px`,width:`100%`}}catch(e){return console.log(`[HorizontalBarChart] Error al calcular el alto del gráfico:`,e),{minHeight:`${RL.MIN_HEIGHT}px`,width:`100%`}}},BL=e=>{try{let t=`<div style="font-weight: bold; font-size: 16px; margin-bottom: 12px; color: #555;">${String(e[0]?.name??``).toUpperCase()}</div>`;return e.forEach(e=>{let n=Number(e.value)||0;t+=`
|
|
44
|
+
`:``,i=` {`+r,a=r+`}`,o=z(B(e),function(t){return t+i+z(B(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(B(t),function(e){return`@keyframes `+e+i+z(B(t[e]),function(n){return n+i+z(B(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function ZF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function QF(e,t,n,r){return KF(`svg`,`root`,{width:e,height:t,xmlns:BF,"xmlns:xlink":VF,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var $F=0;function eI(){return $F++}var tI={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},nI=`transform-origin`;function rI(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new MF;return i.reset(oi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function iI(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[nI]=n+`px `+r+`px`)}var aI={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function oI(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sI(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=ZF(n.zrId);t.animation=!0,lI(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=B(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=oI(i,n);return a.replace(o,s)}}function cI(e){return U(e)?tI[e]?`cubic-bezier(`+tI[e]+`)`:gr(e)?e:``:``}function lI(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof op){var s=sI(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=cI(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=cI(d.easing),m=d.rawValue;(U(m)||ge(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};ga(g,e),P(g,s[h]);var _=si(g),v=s[h][u];l[h]=_?{transform:_}:{},iI(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Al);var S=y.len();y.reset(),l[h].d=rI(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return aI[e]})}for(var w=B(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][nI]!==l[O][nI]){T=!1;break}E=l[D][nI]}if(T&&E){for(var h in l)l[h][nI]&&delete l[h][nI];t[nI]=E}if(ue(w,function(e){return B(l[e]).length>0}).length)return oI(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+eI();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function uI(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};dI(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Vr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),dI(r,t,n,!0)}}}function dI(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+eI(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var fI=Math.round;function pI(e){return e&&U(e.src)}function mI(e){return e&&H(e.toDataURL)}function hI(e,t,n,r){zF(function(i,a){var o=i===`fill`||i===`stroke`;o&&ii(a)?AI(t,e,i,r):o&&ti(a)?jI(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),kI(n,e,r)}function gI(e,t){var n=ro(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[WF+`silent`]=`true`))}function _I(e){return Gr(e[0]-1)&&Gr(e[1])&&Gr(e[2])&&Gr(e[3]-1)}function vI(e){return Gr(e[4])&&Gr(e[5])}function yI(e,t,n){if(t&&!(vI(t)&&_I(t))){var r=n?10:1e4;e.transform=_I(t)?`translate(`+fI(t[4]*r)/r+` `+fI(t[5]*r)/r+`)`:Jr(t)}}function bI(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(fI(r[a][0]*n)/n),i.push(fI(r[a][1]*n)/n);t.points=i.join(` `)}function xI(e){return!e.smooth}function SI(e){var t=z(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=fI(o*r)/r)}}}var CI={circle:[SI([`cx`,`cy`,`r`])],polyline:[bI,xI],polygon:[bI,xI]};function wI(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function TI(e,t){var n=e.style,r=e.shape,i=CI[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&oi(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&wI(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new MF,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return yI(a,e.transform),hI(a,n,e,t),gI(a,e),t.animation&&lI(e,a,t),t.emphasis&&uI(e,a,t),KF(s,e.id+``,a)}function EI(e,t){var n=e.style,r=n.image;if(r&&!U(r)&&(pI(r)?r=r.src:mI(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),yI(c,e.transform),hI(c,n,e,t),gI(c,e),t.animation&&lI(e,c,t),KF(`image`,e.id+``,c)}}function DI(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Xr(n.y||0,Oa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Yr[n.textAlign]||n.textAlign};if(Eu(n)){var c=``,l=n.fontStyle,u=wu(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),yI(s,e.transform),hI(s,n,e,t),gI(s,e),t.animation&&lI(e,s,t),KF(`text`,e.id+``,s,void 0,r)}}function OI(e,t){if(e instanceof tu)return TI(e,t);if(e instanceof su)return EI(e,t);if(e instanceof ru)return DI(e,t)}function kI(e,t,n){var r=e.style;if(Zr(r)){var i=Qr(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Ur(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=KF(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[KF(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=ai(o)}}function AI(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(ni(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(ri(i))a=`radialGradient`,o.cx=G(i.x,.5),o.cy=G(i.y,.5),o.r=G(i.r,.5);else{process.env.NODE_ENV!==`production`&&ae(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=qr(s[l].offset)*100+`%`,f=s[l].color,p=Ur(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(KF(`stop`,l+``,g))}var _=YF(KF(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=KF(a,y,o,c)),t[n]=ai(y)}function jI(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if($r(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(U(h)?m=h:pI(h)?m=h.src:mI(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;K(f,g),K(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=vc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=KF(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=si(i);x&&(o.patternTransform=x);var S=KF(`pattern`,``,o,[d]),C=YF(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=KF(`pattern`,T,o,[d])),t[n]=ai(T)}}function MI(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=KF(`clipPath`,a,o,[TI(e,n)])}t[`clip-path`]=ai(a)}function NI(e){return document.createTextNode(e)}function PI(e,t,n){e.insertBefore(t,n)}function FI(e,t){e.removeChild(t)}function II(e,t){e.appendChild(t)}function LI(e){return e.parentNode}function RI(e){return e.nextSibling}function zI(e,t){e.textContent=t}var BI=58,VI=120,HI=KF(``,``);function UI(e){return e===void 0}function WI(e){return e!==void 0}function GI(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function KI(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function qI(e){var t,n=e.children,r=e.tag;if(WI(r)){var i=e.elm=GF(r);if(XI(HI,e),V(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&II(i,qI(a))}else WI(e.text)&&!W(e.text)&&II(i,NI(e.text))}else e.elm=NI(e.text);return e.elm}function JI(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&PI(e,qI(a),t)}}function YI(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(WI(i.tag)?FI(LI(i.elm),i.elm):FI(e,i.elm))}}function XI(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===VI?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(HF,n,o):n.charCodeAt(3)===BI?r.setAttributeNS(UF,n,o):n.charCodeAt(5)===BI?r.setAttributeNS(VF,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function ZI(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:KI(o,l)?(QI(o,l),o=t[++r],l=n[++i]):KI(s,u)?(QI(s,u),s=t[--a],u=n[--c]):KI(o,u)?(QI(o,u),PI(e,o.elm,RI(s.elm)),o=t[++r],u=n[--c]):KI(s,l)?(QI(s,l),PI(e,s.elm,o.elm),s=t[--a],l=n[++i]):(UI(d)&&(d=GI(t,r,a)),f=d[l.key],UI(f)?PI(e,qI(l),o.elm):(p=t[f],p.tag===l.tag?(QI(p,l),t[f]=void 0,PI(e,p.elm,o.elm)):PI(e,qI(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,JI(e,m,n,i,c)):YI(e,t,r,a))}function QI(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(XI(e,t),UI(t.text)?WI(r)&&WI(i)?r!==i&&ZI(n,r,i):WI(i)?(WI(e.text)&&zI(n,``),JI(n,null,i,0,i.length-1)):WI(r)?YI(n,r,0,r.length-1):WI(e.text)&&zI(n,``):e.text!==t.text&&(WI(r)&&YI(n,r,0,r.length-1),zI(n,t.text)))}function $I(e,t){if(KI(e,t))QI(e,t);else{var n=e.elm,r=LI(n);qI(t),r!==null&&(PI(r,t.elm,RI(n)),YI(r,[e],0,0))}return t}var eL=0,tL=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=nL(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+eL++,this._oldVNode=QF(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=GF(`svg`);XI(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,$I(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return OI(e,ZF(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=ZF(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=rL(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=KF(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(B(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(KF(`defs`,`defs`,{},c)),e.animation){var l=XF(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=KF(`style`,`stl`,{},[],l);a.push(u)}}return QF(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},YF(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};MI(d[g],_,t);var v=KF(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=OI(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=Sx(r,0,n),t=Sx(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(ti(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=ci(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function nL(e){return function(){process.env.NODE_ENV!==`production`&&ae(`In SVG mode painter not support method "`+e+`"`)}}function rL(e,t,n,r){var i;if(n&&n!==`none`){if(i=KF(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),ii(n))AI({fill:n},i.attrs,`fill`,r);else if(ti(n))jI({style:{fill:n},dirty:Be,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Ur(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function iL(e){e.registerPainter(`svg`,tL)}function aL(e,t,n){var r=S.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function oL(e){return!e.__cursors.get(0)}function sL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var cL=function(e){f(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ea,typeof t==`string`?a=aL(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Re(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=sL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=aL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=sL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;be(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||yx(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):xe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Mx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&R(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(st),lL=1e5,uL=314159,dL=void 0,fL=1,pL=2;function mL(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function hL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function gL(e,t,n,r){var i=new cL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,_L(i),i}function _L(e){e.__cursorStack=[],e.__cursors=q()}function vL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function yL(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,vL({key:r})))}function bL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function xL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function SL(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&CL)||s.__builtin__)&&(!(n&wL)||!s.__builtin__)&&(!(n&TL)||s!==e.hoverlayer))&&t(s,a,o,i)}}var CL=1,wL=2,TL=4,EL=CL|TL,DL=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||ea,this._singleCanvas=i,this.root=e,e.style&&(Re(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=gL(a,this,uL,0);c.initContext(),this._insertLayer(c,uL,0,!0),this._domRoot=e}else{this._width=Sx(e,0,n),this._height=Sx(e,1,n);var l=this._domRoot=hL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=pL),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return SL(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},wL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=dL,n!==dL&&(!t&&n===pL&&(t=this._i.hoverlayer=this._ensureLayer(lL)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Zx(i,s,r),c&&(s.style=l)}}i&&(Qx(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(lL)},e.prototype.paintOne=function(e,t){Xx(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)SL(this._i,function(e){e.afterBrush&&e.afterBrush()},EL),this._paintHoverList(e);else{var i=this;Hn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(uL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),SL(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},CL)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return SL(this._i,function(i){var a=!1;if(bL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!oL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}bL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},EL),m.wxa&&SL(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=oL(e),c=s&&S.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=pL),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Zx(o,f,a),f.setPrevPaintRect(p))}else Zx(o,f,a);if(s&&S.getTime()-c>15){d++;break}}}Qx(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=uL,t=0);var i=xL(this._i,e)[t];return i||(i=gL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&N(i,this._layerConfig[e],!0),(n||r&&e!==uL)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(a[t]&&a[t][n]){process.env.NODE_ENV!==`production`&&ae(`ZLevel `+t+`.`+n+` has been used already`);return}if(!mL(e)){process.env.NODE_ENV!==`production`&&ae(`Layer of zlevel `+t+` is not valid`);return}for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=xL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),xL(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this},e.prototype.eachLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},CL)},e.prototype.eachOtherLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},wL)},e.prototype.getLayers=function(){var e={};return SL(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}SL(n._i,function(e){e.__dirty=!1,bL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},EL);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){ae(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=yL(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}SL(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(oL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(bL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===dL&&(n._hoverLayerDirty=fL))},EL)},e.prototype.clear=function(){return SL(this._i,function(e){e.clear(),_L(e)},CL),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,SL(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t,SL(this._i,function(e,t){N(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Sx(i,0,r),t=Sx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,SL(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(uL).resize(e,t)}return this},e.prototype.clearLayer=function(e){R(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[uL][0].dom;var t=new cL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;SL(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Zx(n,l,a)}Qx(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function OL(e){e.registerPainter(`canvas`,DL)}var kL=({visualization:e,data:t})=>{let{bindings:{y:n=[]}={}}=e||{},{columns:r=[]}=t||{};return r.map((e,t)=>n.includes(e)?t:null).filter(e=>e).map(e=>e?r[e]:null).filter(e=>e!==null)},AL=({visualization:e,data:t})=>{let{bindings:{x:n=``}={}}=e||{},{columns:r=[],rows:i=[]}=t||{},a=r.map((e,t)=>n===e?t:null).filter(e=>e!==null)[0]??null;return i.map(e=>a===null?null:e[a]).filter(e=>e!==null)},jL=({visualization:e={},data:t={}})=>{let{bindings:{y:n=[]}={},series:r=[]}=e||{},{columns:i=[],rows:a=[]}=t||{},o=i.map((e,t)=>n.includes(e)?t:null).filter(e=>e),s=r.some(({key:e})=>a.some(t=>t.includes(e)))||!1,c=r.some(({key:e})=>i.includes(e))||!1,l=n.map((e,t)=>{let n=o[t]||null;return{name:e,data:a.map(e=>n&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`bar`,stack:t+1,itemStyle:{borderRadius:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}},showBackground:!0,backgroundStyle:{color:`rgba(175, 175, 175, 0.1)`,borderRadius:[16,16,0,0]}}}),u=AL({visualization:e,data:t}),d=kL({visualization:e,data:t});return l.map(e=>{let{stack:t=0,data:n=[]}=e||{},i=n.map((e,t)=>{let n=u[t];return{value:e,itemStyle:{color:r.find(({key:e})=>e===n)?.color||`var(--orange-90)`}}}),a=s?i:n,o=d[t-1],l=r.find(({key:e})=>e===o)?.color||`var(--orange-90)`,f=c?l:null;return{...e,color:f,data:a,emphasis:{...e.emphasis,itemStyle:{...e.emphasis.itemStyle,color:f}}}})},ML=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};qE([wA,$N,xN,EF,iL]);var NL=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=jL({visualization:e,data:t}),c=AL({visualization:e,data:t}),{series:l=[]}=e||{},u=ML({xData:c,series:l});return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=wC(a.current,void 0,{renderer:`svg`});let e=[...s],t={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};u.forEach(({image:e},n)=>{e&&(t[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let n={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},tooltip:{trigger:`axis`},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,n)=>{let r=`img_${n}`;return t[r]?`{valueStyle|${e}}\n{${r}|}`:`{valueStyle|${e}}`},rich:t}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:e};o.current.setOption(n);let r=new ResizeObserver(()=>{o.current?.resize()});return r.observe(a.current),()=>{r.disconnect(),o.current?.dispose(),o.current=null}},[s,c,u]),(0,n.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:a,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},PL=({data:e={},type:t=``})=>{let{data:r={},metadata:{title:i=``,description:a=``,source:o=``,image:s=void 0,articleUrl:l=``}={},visualization:d={},visualization:{settings:{showChart:f=!0,showDescription:p=!0,showImage:m=!0,showLegend:h=!0,showSource:g=!0,showTitle:_=!0}={}}={}}=e||{},v=t===`only-graph`,y=!v,b=!v&&m;return(0,n.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,n.jsx)(u,{title:i,showTitle:_,subtitle:a,showSubtitle:p,url:l,showShare:y}),f?(0,n.jsx)(NL,{data:r,visualization:d,showLegend:h}):null,(0,n.jsx)(c,{showLogo:b,logoSrc:s,source:o,showSource:g})]})},FL={borderColor:`#FFFFFF`,borderRadius:100,borderWidth:4},IL=(e=[])=>e.reduce((e,t,n)=>t?{...e,[`image_${n}`]:{backgroundColor:{image:t},borderRadius:12,height:24,width:24}}:e,{}),LL=(e=[])=>(t,n)=>e[n]?`{image_${n}|} ${t}`:t,RL={AXIS_HEIGHT:60,CATEGORY_GAP:8,MIN_HEIGHT:200},zL=(e=0,t=1,n=!1)=>{try{let r=Number(e)||0,i=(Number(t)||1)*22,a=r*(Math.max(i,n?24:0)+RL.CATEGORY_GAP)+RL.AXIS_HEIGHT;return{height:`${Math.max(a,RL.MIN_HEIGHT)}px`,width:`100%`}}catch(e){return console.log(`[HorizontalBarChart] Error al calcular el alto del gráfico:`,e),{minHeight:`${RL.MIN_HEIGHT}px`,width:`100%`}}},BL=e=>{try{let t=`<div style="font-weight: bold; font-size: 16px; margin-bottom: 12px; color: #555;">${String(e[0]?.name??``).toUpperCase()}</div>`;return e.forEach(e=>{let n=Number(e.value)||0;t+=`
|
|
45
45
|
<div style="display: flex; align-items: center; margin-bottom: 6px; font-size: 16px; color: #3B3B3B;">
|
|
46
46
|
${e.marker}
|
|
47
47
|
<span style="margin-left: 6px;">${e.seriesName}: </span>
|
package/dist/index.js
CHANGED
|
@@ -24277,7 +24277,7 @@ var LL = ({ visualization: r = {}, data: a = {}, showLegend: o = !0 }) => {
|
|
|
24277
24277
|
visualization: u,
|
|
24278
24278
|
showLegend: g
|
|
24279
24279
|
}) : null,
|
|
24280
|
-
|
|
24280
|
+
/* @__PURE__ */ e(f, {
|
|
24281
24281
|
showLogo: !y && h,
|
|
24282
24282
|
logoSrc: c,
|
|
24283
24283
|
source: s,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VerticalBarItemProps } from '../components/VerticalBar/children/VerticalBarItem';
|
|
2
|
+
import { SerieItem } from '../components/VerticalBar/types';
|
|
3
|
+
import { LineSeriesOption } from 'echarts/charts';
|
|
4
|
+
export declare const getYData: ({ visualization, data }: VerticalBarItemProps) => (string | number | undefined)[];
|
|
5
|
+
export declare const getXData: ({ visualization, data }: VerticalBarItemProps) => (string | number | undefined)[];
|
|
6
|
+
export declare const getDataSet: ({ visualization, data }: VerticalBarItemProps) => LineSeriesOption[];
|
|
7
|
+
export declare const getXImages: ({ xData, series }: {
|
|
8
|
+
xData?: (string | number | undefined)[];
|
|
9
|
+
series?: Array<SerieItem>;
|
|
10
|
+
}) => ({
|
|
11
|
+
key: string | number | undefined;
|
|
12
|
+
image: string;
|
|
13
|
+
} | {
|
|
14
|
+
key?: undefined;
|
|
15
|
+
image?: undefined;
|
|
16
|
+
})[];
|
|
17
|
+
//# sourceMappingURL=LineItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineItem.d.ts","sourceRoot":"","sources":["../../src/utils/LineItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,QAAQ,GAAI,yBAAyB,oBAAoB,oCAYrE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,yBAAyB,oBAAoB,oCAarE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,yBAAmC,oBAAoB,KAAG,gBAAgB,EA+FpG,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,mBAA6B;IAAE,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;CAAE;;;;;;IAW7H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilts.d.ts","sourceRoot":"","sources":["../../src/utils/utilts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,gBAAyB;IAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,WAwBxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiData } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Mocks de testing manual.
|
|
4
|
-
* Para probar otro caso: cambiar ACTIVE_HORIZONTAL_BAR_CHART_MOCK en TestComponent.
|
|
5
|
-
*/
|
|
6
|
-
export declare const HORIZONTAL_BAR_CHART_MOCKS: Record<string, ApiData>;
|
|
7
|
-
export type HorizontalBarChartMockKey = keyof typeof HORIZONTAL_BAR_CHART_MOCKS;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/HorizontalBarChart/mocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAWnC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAUvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExC,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,0BAA0B,CAAC"}
|