ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
1 lines • 543 kB
JavaScript
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var i in t)__defProp(e,i,{get:t[i],enumerable:!0})},__copyProps=(e,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of __getOwnPropNames(t))!__hasOwnProp.call(e,s)&&s!==i&&__defProp(e,s,{get:()=>t[s],enumerable:!(a=__getOwnPropDesc(t,s))||a.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__decorateClass=(e,t,i,a)=>{for(var s=a>1?void 0:a?__getOwnPropDesc(t,i):t,o=e.length-1,r;o>=0;o--)(r=e[o])&&(s=(a?r(t,i,s):r(s))||s);return a&&s&&__defProp(t,i,s),s},main_modules_exports={};__export(main_modules_exports,{AllCartesianEnterpriseModules:()=>AllCartesianEnterpriseModules,AllEnterpriseModules:()=>AllEnterpriseModules,AllFlowProportionEnterpriseModules:()=>AllFlowProportionEnterpriseModules,AllGaugeEnterpriseModules:()=>AllGaugeEnterpriseModules,AllHierarchyEnterpriseModules:()=>AllHierarchyEnterpriseModules,AllPolarEnterpriseModules:()=>AllPolarEnterpriseModules,AllStandaloneEnterpriseModules:()=>AllStandaloneEnterpriseModules,AllTopologyEnterpriseModules:()=>AllTopologyEnterpriseModules,AngleCategoryAxisModule:()=>AngleCategoryAxisModule,AngleNumberAxisModule:()=>AngleNumberAxisModule,BoxPlotSeriesModule:()=>BoxPlotSeriesModule,CandlestickSeriesModule:()=>CandlestickSeriesModule,ChordSeriesModule:()=>ChordSeriesModule,ConeFunnelSeriesModule:()=>ConeFunnelSeriesModule,FlowProportionChartModule:()=>FlowProportionChartModule,FunnelSeriesModule:()=>FunnelSeriesModule,GaugeChartModule:()=>GaugeChartModule,HeatmapSeriesModule:()=>HeatmapSeriesModule,HierarchyChartModule:()=>HierarchyChartModule,LinearGaugeSeriesModule:()=>LinearGaugeSeriesModule,MapLineBackgroundSeriesModule:()=>MapLineBackgroundSeriesModule,MapLineSeriesModule:()=>MapLineSeriesModule,MapMarkerSeriesModule:()=>MapMarkerSeriesModule,MapShapeBackgroundSeriesModule:()=>MapShapeBackgroundSeriesModule,MapShapeSeriesModule:()=>MapShapeSeriesModule,ModuleRegistry:()=>ModuleRegistry,NightingaleSeriesModule:()=>NightingaleSeriesModule,OhlcSeriesModule:()=>OhlcSeriesModule,OrdinalTimeAxisModule:()=>OrdinalTimeAxisModule,PyramidSeriesModule:()=>PyramidSeriesModule,RadarAreaSeriesModule:()=>RadarAreaSeriesModule,RadarLineSeriesModule:()=>RadarLineSeriesModule,RadialBarSeriesModule:()=>RadialBarSeriesModule,RadialColumnSeriesModule:()=>RadialColumnSeriesModule,RadialGaugeSeriesModule:()=>RadialGaugeSeriesModule,RadiusCategoryAxisModule:()=>RadiusCategoryAxisModule,RadiusNumberAxisModule:()=>RadiusNumberAxisModule,RangeAreaSeriesModule:()=>RangeAreaSeriesModule,RangeBarSeriesModule:()=>RangeBarSeriesModule,SankeySeriesModule:()=>SankeySeriesModule,StandaloneChartModule:()=>StandaloneChartModule,SunburstSeriesModule:()=>SunburstSeriesModule,TopologyChartModule:()=>TopologyChartModule,TreemapSeriesModule:()=>TreemapSeriesModule,WaterfallSeriesModule:()=>WaterfallSeriesModule}),module.exports=__toCommonJS(main_modules_exports);var import_ag_charts_community174=require("ag-charts-community"),import_ag_charts_community13=require("ag-charts-community"),import_ag_charts_core9=require("ag-charts-core"),import_ag_charts_community5=require("ag-charts-community"),import_ag_charts_core4=require("ag-charts-core");function loopSymmetrically(e,t,i){const a=(o,r,n,l)=>{let c=e[0];for(let h=o;n>0?h<=r:h>r;h+=n){const p=e[h];if(l(c,p))return!0;c=p}return!1},s=Math.floor(e.length/2);return a(t,s,t,i)?!0:a(e.length-t,s,-t,i)}var import_ag_charts_community=require("ag-charts-community"),{AxisInterval,Property}=import_ag_charts_community._ModuleSupport,AngleAxisInterval=class extends AxisInterval{};__decorateClass([Property],AngleAxisInterval.prototype,"minSpacing",2);var import_ag_charts_community4=require("ag-charts-community"),import_ag_charts_core3=require("ag-charts-core"),import_ag_charts_community3=require("ag-charts-community"),import_ag_charts_core2=require("ag-charts-core"),import_ag_charts_community2=require("ag-charts-community"),import_ag_charts_core=require("ag-charts-core"),{BaseProperties,ChartAxisDirection,Property:Property2,Group,FONT_SIZE}=import_ag_charts_community2._ModuleSupport,PolarCrossLineLabel=class extends BaseProperties{constructor(){super(...arguments),this.fontSize=FONT_SIZE.LARGE,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}};__decorateClass([Property2],PolarCrossLineLabel.prototype,"enabled",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"text",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"fontStyle",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"fontWeight",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"fontSize",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"fontFamily",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"padding",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"color",2),__decorateClass([Property2],PolarCrossLineLabel.prototype,"parallel",2);var PolarCrossLine=class extends BaseProperties{constructor(){super(...arguments),this.id=(0,import_ag_charts_core.createId)(this),this.defaultColorRange=[],this.shape="polygon",this.label=new PolarCrossLineLabel,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction=ChartAxisDirection.Angle,this.axisInnerRadius=0,this.axisOuterRadius=0,this.lineGroup=new Group({name:this.id}),this.rangeGroup=new Group({name:this.id}),this.labelGroup=new Group({name:this.id}),this._isRange=void 0}assignCrossLineGroup(e,t){e!==this._isRange&&(e?this.rangeGroup.appendChild(t):this.lineGroup.appendChild(t)),this._isRange=e}setSectorNodeProps(e){e.fill=this.fill,e.fillOpacity=this.fillOpacity??1,e.stroke=this.stroke,e.strokeOpacity=this.strokeOpacity??1,e.strokeWidth=this.strokeWidth??1,e.lineDash=this.lineDash}setLabelNodeProps(e,t,i,a,s){const{label:o}=this;e.x=t,e.y=i,e.text=o.text,e.textAlign="center",e.textBaseline=a,e.rotation=s,e.rotationCenterX=t,e.rotationCenterY=i,e.fill=o.color,e.fontFamily=o.fontFamily,e.fontSize=o.fontSize,e.fontStyle=o.fontStyle,e.visible=!0}};__decorateClass([Property2],PolarCrossLine.prototype,"enabled",2),__decorateClass([Property2],PolarCrossLine.prototype,"type",2),__decorateClass([Property2],PolarCrossLine.prototype,"range",2),__decorateClass([Property2],PolarCrossLine.prototype,"value",2),__decorateClass([Property2],PolarCrossLine.prototype,"defaultColorRange",2),__decorateClass([Property2],PolarCrossLine.prototype,"fill",2),__decorateClass([Property2],PolarCrossLine.prototype,"fillOpacity",2),__decorateClass([Property2],PolarCrossLine.prototype,"stroke",2),__decorateClass([Property2],PolarCrossLine.prototype,"strokeWidth",2),__decorateClass([Property2],PolarCrossLine.prototype,"strokeOpacity",2),__decorateClass([Property2],PolarCrossLine.prototype,"lineDash",2),__decorateClass([Property2],PolarCrossLine.prototype,"shape",2),__decorateClass([Property2],PolarCrossLine.prototype,"label",2);var{ChartAxisDirection:ChartAxisDirection2,getCrossLineValue,validateCrossLineValue,normalizeAngle360,Group:Group2,Path,Sector,RotatableText,ContinuousScale}=import_ag_charts_community3._ModuleSupport,AngleCrossLine=class extends PolarCrossLine{constructor(){super(),this.direction=ChartAxisDirection2.Angle,this.polygonNode=new Path,this.sectorNode=new Sector,this.lineNode=new Path,this.crossLineRange=new Group2,this.labelNode=new RotatableText,this.ticks=[],this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.crossLineRange.append(this.lineNode),this.labelGroup.append(this.labelNode)}visibilityCheck(){if(!ContinuousScale.is(this.scale))return!0;const[e,t]=this.scale.domain,i=getCrossLineValue(this);if(this.type==="range"){const[a,s]=i;return a>=e&&a<=t&&s>=a&&s<=t}else return i>=e&&i<=t}update(e){const{scale:t}=this;if(!t||!validateCrossLineValue(this,t)||!this.visibilityCheck()){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updateLineNode(e),this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e)}updateLineNode(e){const{scale:t,type:i,value:a,lineNode:s}=this;if(!e||i!=="line"||!t){s.visible=!1;return}const o=t.convert(a);if(isNaN(o)){s.visible=!1;return}const{axisInnerRadius:r,axisOuterRadius:n}=this;s.visible=!0,s.stroke=this.stroke,s.strokeOpacity=this.strokeOpacity??1,s.strokeWidth=this.strokeWidth??1,s.fill=void 0,s.lineDash=this.lineDash;const l=n*Math.cos(o),c=n*Math.sin(o),h=r*Math.cos(o),p=r*Math.sin(o);s.path.clear(!0),s.path.moveTo(h,p),s.path.lineTo(l,c),this.assignCrossLineGroup(!1,this.crossLineRange)}updatePolygonNode(e){const{polygonNode:t,range:i,scale:a,shape:s,type:o,ticks:r}=this;if(!e||o!=="range"||s!=="polygon"||!a||!i){t.visible=!1;return}const{axisInnerRadius:n,axisOuterRadius:l}=this,c=r.indexOf(i[0]),h=r.indexOf(i[1]),u=(c<=h?r.slice(c,h+1):r.slice(c).concat(r.slice(0,h+1))).map(y=>a.convert(y));t.visible=!0,this.setSectorNodeProps(t);const{path:d}=t;d.clear(!0),u.forEach((y,g)=>{const f=l*Math.cos(y),m=l*Math.sin(y);g===0?d.moveTo(f,m):d.lineTo(f,m)}),n===0?d.lineTo(0,0):u.slice().reverse().forEach(y=>{const g=n*Math.cos(y),f=n*Math.sin(y);d.lineTo(g,f)}),t.path.closePath(),this.assignCrossLineGroup(!0,this.crossLineRange)}updateSectorNode(e){const{sectorNode:t,range:i,scale:a,shape:s,type:o}=this;if(!e||o!=="range"||s!=="circle"||!a||!i){t.visible=!1;return}const{axisInnerRadius:r,axisOuterRadius:n}=this,l=i.map(p=>a.convert(p)),c=a.step??0,h=a instanceof import_ag_charts_community3._ModuleSupport.BandScale?c/2:0;t.visible=!0,this.setSectorNodeProps(t),t.centerX=0,t.centerY=0,t.innerRadius=r,t.outerRadius=n,t.startAngle=l[0]-h,t.endAngle=l[1]+h,this.assignCrossLineGroup(!0,this.crossLineRange)}updateLabelNode(e){const{label:t,labelNode:i,range:a,scale:s,type:o,ticks:r}=this;if(!e||t.enabled===!1||!t.text||!s||o==="range"&&!a){i.visible=!1;return}i.visible=!0;const{axisInnerRadius:n,axisOuterRadius:l}=this;let c,h,p,u;if(o==="line"){const d=normalizeAngle360(s.convert(this.value)),y=1.5*Math.PI,g=(0,import_ag_charts_core2.isNumberEqual)(d,y)||d>y||d<Math.PI/2,f=(n+l)/2*Math.cos(d),m=(n+l)/2*Math.sin(d);c=f+t.padding*Math.cos(d+Math.PI/2),h=m+t.padding*Math.sin(d+Math.PI/2),u=g?"top":"bottom",p=g?d:d-Math.PI}else{const[d,y]=a.map(S=>normalizeAngle360(s.convert(S)));let g=(d+y)/2;d>y&&(g-=Math.PI),g=normalizeAngle360(g);const f=((0,import_ag_charts_core2.isNumberEqual)(g,0)||g>0)&&g<Math.PI;let m;this.shape==="circle"||r.length<3?m=l-t.padding:m=l*Math.cos(Math.PI/r.length)-t.padding,c=m*Math.cos(g),h=m*Math.sin(g),u=f?"bottom":"top",p=f?g-Math.PI/2:g+Math.PI/2}this.setLabelNodeProps(i,c,h,u,p)}};AngleCrossLine.className="AngleCrossLine";var{ChartAxisDirection:ChartAxisDirection3,TextWrapper,TextUtils,Property:Property3,toRadians,normalizeAngle360:normalizeAngle3602,normalizeAngle360Inclusive,Path:Path2,RotatableText:RotatableText2,Transformable,BBox,Selection,Line}=import_ag_charts_community4._ModuleSupport,AngleAxisLabel=class extends import_ag_charts_community4._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.orientation="fixed"}};__decorateClass([Property3],AngleAxisLabel.prototype,"orientation",2);var AngleAxis=class extends import_ag_charts_community4._ModuleSupport.PolarAxis{constructor(e,t){super(e,t),this.startAngle=0,this.endAngle=void 0,this.tickLineGroupSelection=Selection.select(this.tickLineGroup,Line,!1),this.gridLineGroupSelection=Selection.select(this.gridLineGroup,Line,!1),this.labelData=[],this.tickData=[],this.radiusLineGroup=this.axisGroup.appendChild(new import_ag_charts_community4._ModuleSupport.TransformableGroup),this.radiusLine=this.radiusLineGroup.appendChild(new Path2),this.includeInvisibleDomains=!0}get direction(){return ChartAxisDirection3.Angle}createLabel(){return new AngleAxisLabel}calculateRotations(){const e=toRadians(this.startAngle),t=normalizeAngle3602(e),i=normalizeAngle3602(e-Math.PI/2);return{rotation:e,parallelFlipRotation:t,regularFlipRotation:i}}calculateTickLayout(e){const{nice:t,scale:i}=this,a={nice:t,interval:void 0,tickCount:void 0,minTickCount:0,maxTickCount:1/0},s=t?i.niceDomain(a,e):e,o=this.generateAngleTicks(s);this.tickData=o;const r=o.map(l=>l.value),n=r.reduce((l,c)=>Math.max(typeof c=="number"?(0,import_ag_charts_core3.countFractionDigits)(c):0,l),0);return{niceDomain:s,tickDomain:s,ticks:r,rawTickCount:void 0,fractionDigits:n,timeInterval:void 0,bbox:this.getBBox()}}update(){super.update(),this.updateRadiusLine(),this.updateGridLines(),this.updateTickLines()}normalizedAngles(){const e=normalizeAngle3602(-Math.PI/2+toRadians(this.startAngle)),t=this.endAngle!=null?normalizeAngle360Inclusive(toRadians(this.endAngle)-toRadians(this.startAngle)):2*Math.PI,i=e+t;return[e,i]}computeRange(){this.range=this.normalizedAngles()}updateSelections(){const e=this.tickData;this.gridLineGroupSelection.update(this.gridLength&&this.gridLine.enabled?e:[]),this.tickLineGroupSelection.update(this.tick.enabled?e:[]),this.tickLabelGroupSelection.update(this.label.enabled?e:[]),this.gridLineGroupSelection.cleanup(),this.tickLineGroupSelection.cleanup(),this.tickLabelGroupSelection.cleanup()}updatePosition(){super.updatePosition();const{translation:e,radiusLineGroup:t}=this,i=Math.floor(e.x),a=Math.floor(e.y);t.translationX=i,t.translationY=a}updateRadiusLine(){const e=this.radiusLine,{path:t}=e;t.clear(!0);const{points:i,closePath:a}=this.getAxisLinePoints();i.forEach(({x:s,y:o,moveTo:r,arc:n,radius:l=0,startAngle:c=0,endAngle:h=0})=>{n?t.arc(s,o,l,c,h):r?t.moveTo(s,o):t.lineTo(s,o)}),a&&t.closePath(),e.visible=this.line.enabled,e.stroke=this.line.stroke,e.strokeWidth=this.line.width,e.fill=void 0}getAxisLinePoints(){const{scale:e,shape:t,gridLength:i}=this,[a,s]=this.range,o=(0,import_ag_charts_core3.isNumberEqual)(s-a,2*Math.PI),r=[];if(t==="circle")o?r.push({x:i,y:0,moveTo:!0},{x:0,y:0,radius:i,startAngle:0,endAngle:2*Math.PI,arc:!0,moveTo:!1}):r.push({x:i*Math.cos(a),y:i*Math.sin(a),moveTo:!0},{x:0,y:0,radius:i,startAngle:normalizeAngle3602(a),endAngle:normalizeAngle3602(s),arc:!0,moveTo:!1});else if(t==="polygon"){const n=e.ticks({nice:this.nice,interval:void 0,tickCount:void 0,minTickCount:0,maxTickCount:1/0})?.ticks?.map(l=>e.convert(l));n&&n.length>2&&n.forEach((l,c)=>{const h=i*Math.cos(l),p=i*Math.sin(l),u=c===0;r.push({x:h,y:p,moveTo:u})})}return{points:r,closePath:o}}updateGridLines(){const{scale:e,gridLength:t,gridLine:{style:i,width:a},innerRadiusRatio:s}=this;if(!(i&&t>0))return;const o=t*s,r=i.length;this.gridLineGroupSelection.each((n,l,c)=>{const{value:h}=l,{stroke:p,lineDash:u}=i[c%r],d=e.convert(h);n.x1=o*Math.cos(d),n.y1=o*Math.sin(d),n.x2=t*Math.cos(d),n.y2=t*Math.sin(d),n.stroke=p,n.strokeWidth=a,n.lineDash=u,n.fill=void 0}),this.gridLineGroupSelection.cleanup()}updateLabels(){const{label:e,tickLabelGroupSelection:t}=this;t.each((i,a,s)=>{const o=this.labelData[s];if(!o||o.hidden){i.visible=!1;return}i.text=o.text,i.setFont(e),i.fill=e.color,i.x=o.x,i.y=o.y,i.textAlign=o.textAlign,i.textBaseline=o.textBaseline,i.visible=!0,o.rotation?(i.rotation=o.rotation,i.rotationCenterX=o.x,i.rotationCenterY=o.y):i.rotation=0})}updateTickLines(){const{scale:e,gridLength:t,tick:i,tickLineGroupSelection:a}=this;a.each((s,o)=>{const{value:r}=o,n=e.convert(r),l=Math.cos(n),c=Math.sin(n);s.x1=t*l,s.y1=t*c,s.x2=(t+i.size)*l,s.y2=(t+i.size)*c,s.stroke=i.stroke,s.strokeWidth=i.width})}createLabelNodeData(e,t,i){const{label:a,gridLength:s,scale:o,tick:r}=this;if(!a.enabled)return[];const n=new RotatableText2,l=i.x-this.translation.x,c=i.x+i.width-this.translation.x,{fractionDigits:h}=this.layout.label,p=this.tickFormatter(this.scale.domain,this.tickData,!1,h),u=e.map((d,y)=>{const{value:g}=d,f=s+a.spacing+r.size,m=o.convert(g),S=Math.cos(m),x=Math.sin(m),b=f*S,D=f*x,{textAlign:N,textBaseline:_}=this.getLabelAlign(m),v=y===e.length-1&&g!==e[0]&&(0,import_ag_charts_core3.isNumberEqual)(normalizeAngle3602(m),normalizeAngle3602(o.convert(e[0]))),M=this.getLabelRotation(m);let k=p(g,y);n.text=k,n.x=b,n.y=D,n.setFont(a),n.textAlign=N,n.textBaseline=_,n.rotation=M,M&&(n.rotationCenterX=b,n.rotationCenterY=D);let A=M?Transformable.toCanvas(n):n.getBBox();if(A&&t.hideWhenNecessary&&!M){const P=l-A.x,C=A.x+A.width-c,I=1;if(P>I||C>I){const R=A.width-Math.max(P,C);k=TextWrapper.wrapText(k,{maxWidth:R,font:a,textWrap:"never"}),k===TextUtils.EllipsisChar&&(k=""),n.text=k,A=n.getBBox()}}return{text:k,x:b,y:D,textAlign:N,textBaseline:_,hidden:k===""||d.hidden||v,rotation:M,box:A}});return a.avoidCollisions&&this.avoidLabelCollisions(u),u}computeLabelsBBox(e,t){this.labelData=this.createLabelNodeData(this.tickData,e,t);const i=this.labelData.map(({box:a})=>a).filter(a=>a!=null);return!this.label.enabled||i.length===0?null:BBox.merge(i)}getLabelOrientation(){const{label:e}=this;return e instanceof AngleAxisLabel?e.orientation:"fixed"}getLabelRotation(e){let t=toRadians(this.label.rotation??0);e=normalizeAngle3602(e);const i=this.getLabelOrientation();return i==="parallel"?(t+=e,e>=0&&e<Math.PI?t-=Math.PI/2:t+=Math.PI/2):i==="perpendicular"&&(t+=e,e>=Math.PI/2&&e<1.5*Math.PI&&(t+=Math.PI)),t}getLabelAlign(e){const t=Math.cos(e),i=Math.sin(e);let a,s;const o=this.getLabelOrientation(),r=(0,import_ag_charts_core3.isNumberEqual)(t,0),n=(0,import_ag_charts_core3.isNumberEqual)(i,0),l=(0,import_ag_charts_core3.isNumberEqual)(t,1),c=(0,import_ag_charts_core3.isNumberEqual)(i,-1),h=t>0&&!r,p=i>0&&!n;return o==="parallel"?(a="center",s=l&&n||p?"top":"bottom"):o==="perpendicular"?(a=c||h?"left":"right",s="middle"):(a="right",r?a="center":h&&(a="left"),s="bottom",n?s="middle":p&&(s="top")),{textAlign:a,textBaseline:s}}updateCrossLines(){const{shape:e,gridLength:t,innerRadiusRatio:i}=this;this.crossLines.forEach(a=>{a instanceof AngleCrossLine&&(a.ticks=this.tickData.map(s=>s.value),a.shape=e,a.axisOuterRadius=t,a.axisInnerRadius=t*i)}),super.updateCrossLines()}};AngleAxis.CrossLineConstructor=AngleCrossLine,__decorateClass([Property3],AngleAxis.prototype,"startAngle",2),__decorateClass([Property3],AngleAxis.prototype,"endAngle",2);var{Property:Property4,CategoryScale}=import_ag_charts_community5._ModuleSupport,AngleCategoryAxis=class extends AngleAxis{constructor(e){super(e,new CategoryScale),this.groupPaddingInner=0,this.paddingInner=0,this.interval=new AngleAxisInterval}generateAngleTicks(e){const{scale:t,gridLength:i}=this,{values:a,minSpacing:s}=this.interval,o={nice:this.nice,interval:void 0,tickCount:void 0,minTickCount:0,maxTickCount:1/0},r=a??t.ticks(o,e)?.ticks??[];if(r.length<2||s==null)return r.map(p=>({value:p,visible:!0}));const n=r[0],l=t.convert(n),c=i*Math.cos(l),h=i*Math.sin(l);for(let p=1;p<r.length-1;p++){const u=r[p],d=t.convert(u);if(d-l>Math.PI)break;const y=i*Math.cos(d),g=i*Math.sin(d);if(Math.sqrt((y-c)**2+(g-h)**2)>s){const m=new Set([n]);return loopSymmetrically(r,p,(S,x)=>{m.add(x)}),r.map(S=>{const x=m.has(S);return{value:S,visible:x}})}}return[{value:n,visible:!0}]}avoidLabelCollisions(e){const{minSpacing:t}=this.label;if(e.length<3)return;const i=(l,c)=>{if(l.hidden||c.hidden)return!1;if(t==null)return l.box.collidesBBox(c.box);const h=l.box.clone().grow(t/2),p=c.box.clone().grow(t/2);return h.collidesBBox(p)},a=e[0],s=e.at(-1),o=new Set([a]),r=(0,import_ag_charts_core4.isNumberEqual)(a.x,s.x)&&(0,import_ag_charts_core4.isNumberEqual)(a.y,s.y),n=Math.floor(e.length/2);for(let l=1;l<=n;l++){const c=r?e.slice(0,-1):e;if(!loopSymmetrically(c,l,i)){loopSymmetrically(c,l,(p,u)=>{o.add(u)});break}}e.forEach(l=>{o.has(l)||(l.hidden=!0,l.box=void 0)})}tickFormatParams(){return{type:"category"}}datumFormatParams(e,t){const{datum:i,seriesId:a,legendItemName:s,key:o,source:r,property:n,domain:l,boundSeries:c}=t;return{type:"category",value:e,datum:i,seriesId:a,legendItemName:s,key:o,source:r,property:n,domain:l,boundSeries:c}}};AngleCategoryAxis.className="AngleCategoryAxis",AngleCategoryAxis.type="angle-category",__decorateClass([Property4],AngleCategoryAxis.prototype,"groupPaddingInner",2),__decorateClass([Property4],AngleCategoryAxis.prototype,"paddingInner",2),__decorateClass([Property4],AngleCategoryAxis.prototype,"interval",2);var import_ag_charts_community7=require("ag-charts-community"),import_ag_charts_core6=require("ag-charts-core"),import_ag_charts_community6=require("ag-charts-community"),import_ag_charts_core5=require("ag-charts-core"),{range,isDenseInterval,LinearScale}=import_ag_charts_community6._ModuleSupport,LinearAngleScale=class pe extends LinearScale{constructor(){super(...arguments),this.arcLength=0}static getNiceStepAndTickCount(t,i){const[a,s]=i;let o=LinearScale.getTickStep(a,s,t);const r=isNaN(t.maxTickCount)?1/0:t.maxTickCount,n=Math.abs(s-a)/o;let l=Math.pow(2,Math.ceil(Math.log(n)/Math.log(2)));return l>r&&(l/=2,o*=2),{count:l,step:o}}ticks(t,i=this.domain){const{arcLength:a}=this;if(!i||i.length<2||i.some(c=>!isFinite(c))||a<=0)return{ticks:[],count:0};const{nice:s,interval:o}=t,[r,n]=i;if(o){const c=Math.abs(o),h=this.getPixelRange();if(!isDenseInterval((n-r)/c,h))return range(r,n,c)}let l;if(s&&this.hasNiceRange()){const c=super.niceDomain(t,i);l=pe.getNiceStepAndTickCount(t,c).step}else l=LinearScale.getTickStep(r,n,t);return range(r,n,l)}hasNiceRange(){const t=this.range.slice().sort((a,s)=>a-s);return[Math.PI,2*Math.PI].some(a=>(0,import_ag_charts_core5.isNumberEqual)(a,t[1]-t[0]))}niceDomain(t,i=this.domain){const a=super.niceDomain(t,i);if(!this.hasNiceRange())return a;const s=a[0]>a[1],o=s?a[1]:a[0],{step:r,count:n}=pe.getNiceStepAndTickCount(t,a),l=1/r,c=r>=1?Math.ceil(o/r+n)*r:Math.ceil((o+n*r)*l)/l;return s?[c,o]:[o,c]}getPixelRange(){return this.arcLength}},{Property:Property5,angleBetween,normalisedExtentWithMetadata,findMinMax}=import_ag_charts_community7._ModuleSupport,AngleNumberAxis=class extends AngleAxis{constructor(e){super(e,new LinearAngleScale),this.shape="circle",this.interval=new AngleAxisInterval}normaliseDataDomain(e){const{min:t,max:i}=this,{extent:a,clipped:s}=normalisedExtentWithMetadata(e,t,i);return{domain:a,clipped:s}}updateScale(){super.updateScale(),this.scale.arcLength=this.getRangeArcLength()}getRangeArcLength(){const{range:e}=this,t=Math.min(...e),i=Math.max(...e),a=angleBetween(t,i)||2*Math.PI,s=this.gridLength;return a*s}generateAngleTicks(e){const{scale:t,range:i,nice:a}=this,{values:s,step:o,minSpacing:r,maxSpacing:n}=this.interval;let l;if(s==null){const{arcLength:c}=t,h=n?Math.floor(c/n):1,p=r?Math.floor(c/r):1/0,u=Math.floor(4/Math.PI*Math.abs(i[0]-i[1])),d=Math.max(h,Math.min(p,u)),y={nice:a,interval:o,tickCount:d,minTickCount:h,maxTickCount:p};l=t.ticks(y,e)?.ticks??[]}else{const[c,h]=findMinMax(e.map(Number));l=s.filter(p=>p>=c&&p<=h).sort((p,u)=>p-u)}return l.map(c=>({value:c,visible:!0}))}avoidLabelCollisions(e){const{minSpacing:t}=this.label,i=(o,r)=>{if(o.hidden||r.hidden)return!1;if(t==null)return o.box.collidesBBox(r.box);const n=o.box.clone().grow(t/2),l=r.box.clone().grow(t/2);return n.collidesBBox(l)},a=e[0],s=e.at(-1);a!==s&&(0,import_ag_charts_core6.isNumberEqual)(a.x,s.x)&&(0,import_ag_charts_core6.isNumberEqual)(a.y,s.y)&&(s.hidden=!0);for(let o=1;o<e.length;o*=2){let r=!1;for(let n=o;n<e.length;n+=o){const l=e[n],c=e[n-o];if(i(c,l)){r=!0;break}}if(!r){e.forEach((n,l)=>{l%o>0&&(n.hidden=!0,n.box=void 0)});return}}e.forEach((o,r)=>{r>0&&(o.hidden=!0,o.box=void 0)})}tickFormatParams(e,t,i){return{type:"number",fractionDigits:i}}datumFormatParams(e,t,i){const{datum:a,seriesId:s,legendItemName:o,key:r,source:n,property:l,domain:c,boundSeries:h}=t;return{type:"number",value:e,datum:a,seriesId:s,legendItemName:o,key:r,source:n,property:l,domain:c,boundSeries:h,fractionDigits:i}}};AngleNumberAxis.className="AngleNumberAxis",AngleNumberAxis.type="angle-number",__decorateClass([Property5],AngleNumberAxis.prototype,"min",2),__decorateClass([Property5],AngleNumberAxis.prototype,"max",2),__decorateClass([Property5],AngleNumberAxis.prototype,"interval",2);var import_ag_charts_community8=require("ag-charts-community"),{OrdinalTimeScale,Property:Property6,TimeAxisParentLevel,lowestGranularityUnitForTicks,lowestGranularityUnitForValue,minimumTimeAxisDatumGranularity,dateTruncationForDomain,intervalUnit,intervalStep,intervalEpoch,intervalMilliseconds}=import_ag_charts_community8._ModuleSupport,OrdinalTimeAxis=class extends import_ag_charts_community8._ModuleSupport.CategoryAxis{constructor(e){super(e,new OrdinalTimeScale),this.parentLevel=new TimeAxisParentLevel,this.minGranularity=void 0}get primaryLabel(){return this.parentLevel.enabled?this.parentLevel.label:void 0}get primaryTick(){return this.parentLevel.enabled?this.parentLevel.tick:void 0}updateScale(){super.updateScale();const{boundSeries:e,direction:t}=this;this.minGranularity=minimumTimeAxisDatumGranularity(e,t,void 0,void 0)}tickFormatParams(e,t,i,a){a??(a=lowestGranularityUnitForTicks(t));const s=dateTruncationForDomain(e),o=intervalUnit(a),r=intervalStep(a),n=intervalEpoch(a);return{type:"date",unit:o,step:r,epoch:n,truncateDate:s}}datumFormatParams(e,t,i,a,s){if(typeof e=="number"&&(e=new Date(e)),a==null){const{minGranularity:f}=this,m=lowestGranularityUnitForValue(e);f!=null&&intervalMilliseconds(f)<intervalMilliseconds(m)?a=f:a=m}const{datum:o,seriesId:r,legendItemName:n,key:l,source:c,property:h,domain:p,boundSeries:u}=t,d=intervalUnit(a),y=intervalStep(a),g=intervalEpoch(a);return{type:"date",value:e,datum:o,seriesId:r,legendItemName:n,key:l,source:c,property:h,domain:p,boundSeries:u,unit:d,step:y,epoch:g,style:s}}};OrdinalTimeAxis.className="OrdinalTimeAxis",OrdinalTimeAxis.type="ordinal-time",__decorateClass([Property6],OrdinalTimeAxis.prototype,"parentLevel",2);var import_ag_charts_community11=require("ag-charts-community"),import_ag_charts_community10=require("ag-charts-community"),import_ag_charts_core8=require("ag-charts-core"),import_ag_charts_community9=require("ag-charts-community"),import_ag_charts_core7=require("ag-charts-core"),{ChartAxisDirection:ChartAxisDirection4,Property:Property7,validateCrossLineValue:validateCrossLineValue2,normalizeAngle360FromDegrees,Group:Group3,Path:Path3,Sector:Sector2,RotatableText:RotatableText3}=import_ag_charts_community9._ModuleSupport,RadiusCrossLineLabel=class extends PolarCrossLineLabel{constructor(){super(...arguments),this.positionAngle=void 0}};__decorateClass([Property7],RadiusCrossLineLabel.prototype,"positionAngle",2);var RadiusCrossLine=class extends PolarCrossLine{constructor(){super(),this.direction=ChartAxisDirection4.Radius,this.label=new RadiusCrossLineLabel,this.polygonNode=new Path3,this.sectorNode=new Sector2,this.crossLineRange=new Group3,this.labelNode=new RotatableText3,this.outerRadius=0,this.innerRadius=0,this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.labelGroup.append(this.labelNode)}update(e){const{scale:t}=this;if(!t||!validateCrossLineValue2(this,t)){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.updateRadii();const{innerRadius:i,outerRadius:a}=this;e&&(e=i>=this.axisInnerRadius&&a<=this.axisOuterRadius),this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e),this.assignCrossLineGroup(this.type==="range",this.crossLineRange)}updateRadii(){const{range:e,scale:t,type:i,axisInnerRadius:a,axisOuterRadius:s}=this;if(!t)return{innerRadius:0,outerRadius:0};const o=l=>s+a-l;let r,n;if(i==="line")r=o(t.convert(this.value)),n=r;else{const l=Math.abs(t?.bandwidth??0),c=e.map(h=>t.convert(h));r=o(Math.max(...c)),n=o(Math.min(...c))+l}this.outerRadius=r,this.innerRadius=n}drawPolygon(e,t,i){t.forEach((a,s)=>{const o=e*Math.cos(a),r=e*Math.sin(a);s===0?i.path.moveTo(o,r):i.path.lineTo(o,r)}),i.path.closePath()}updatePolygonNode(e){const{gridAngles:t,polygonNode:i,scale:a,shape:s,type:o,innerRadius:r,outerRadius:n}=this;if(!e||s!=="polygon"||!a||!t){i.visible=!1;return}i.visible=!0;const l=this.getPadding();i.path.clear(!0),this.drawPolygon(n-l,t,i);const c=t.slice().reverse(),h=o==="line"?n-l:r+l;this.drawPolygon(h,c,i),this.setSectorNodeProps(i)}updateSectorNode(e){const{axisInnerRadius:t,axisOuterRadius:i,scale:a,sectorNode:s,shape:o,innerRadius:r,outerRadius:n}=this;if(!e||o!=="circle"||!a){s.visible=!1;return}s.visible=!0,s.startAngle=0,s.endAngle=2*Math.PI;const l=this.getPadding(),c=(0,import_ag_charts_core7.clamp)(t,r+l,i),h=(0,import_ag_charts_core7.clamp)(t,n-l,i);s.innerRadius=Math.min(c,h),s.outerRadius=Math.max(c,h),this.setSectorNodeProps(s)}updateLabelNode(e){const{innerRadius:t,label:i,labelNode:a,scale:s,shape:o,type:r}=this;if(!e||i.enabled===!1||!i.text||!s){a.visible=!1;return}const n=normalizeAngle360FromDegrees((i.positionAngle??0)-90),l=((0,import_ag_charts_core7.isNumberEqual)(n,0)||n>0)&&n<Math.PI,c=l?n-Math.PI/2:n+Math.PI/2;let h;const p=this.gridAngles??[];r==="line"?h=t+i.padding:o==="circle"||p.length<3?h=t-i.padding:h=t*Math.cos(Math.PI/p.length)-i.padding;const u=h*Math.cos(n),d=h*Math.sin(n);let y;r==="line"?y=l?"top":"bottom":y=l?"bottom":"top",this.setLabelNodeProps(a,u,d,y,c)}getPadding(){const{scale:e}=this;if(!e)return 0;const t=Math.abs(e.bandwidth??0),i=Math.abs(e.step??0);return e instanceof import_ag_charts_community9._ModuleSupport.BandScale?(i-t)/2:0}};RadiusCrossLine.className="RadiusCrossLine";var{ChartAxisDirection:ChartAxisDirection5,ZIndexMap,Property:Property8,normalizeAngle360:normalizeAngle3603,toRadians:toRadians2,Caption,Group:Group4,TransformableGroup,Path:Path4,Line:Line2,Selection:Selection2,AxisTickGenerator,AxisGroupZIndexMap}=import_ag_charts_community10._ModuleSupport,RadiusAxisLabel=class extends import_ag_charts_community10._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.autoRotateAngle=335}};__decorateClass([Property8],RadiusAxisLabel.prototype,"autoRotate",2),__decorateClass([Property8],RadiusAxisLabel.prototype,"autoRotateAngle",2);var RadiusAxis=class extends import_ag_charts_community10._ModuleSupport.PolarAxis{constructor(e,t){super(e,t),this.positionAngle=0,this.gridLineGroupSelection=Selection2.select(this.gridLineGroup,Line2,!1),this.tickGenerator=new AxisTickGenerator(this),this.generatedTicks=void 0,this.headingLabelGroup=this.axisGroup.appendChild(new TransformableGroup({name:`${this.id}-Axis-heading`})),this.lineNodeGroup=this.axisGroup.appendChild(new TransformableGroup({name:`${this.id}-Axis-line`})),this.lineNode=this.lineNodeGroup.appendChild(new Line2({name:`${this.id}-Axis-line`,zIndex:AxisGroupZIndexMap.AxisLine})),this.gridPathGroup=this.gridGroup.appendChild(new Group4({name:`${this.id}-gridPaths`,zIndex:ZIndexMap.AXIS_GRID})),this.gridPathSelection=Selection2.select(this.gridPathGroup,Path4),this.headingLabelGroup.appendChild(this.title.caption.node),this.cleanup.register(this.title.caption.registerInteraction(this.moduleCtx,"afterend"))}get direction(){return ChartAxisDirection5.Radius}getAxisTransform(){const e=this.scale.range[0],{translation:t,positionAngle:i,innerRadiusRatio:a}=this,s=e*a,o=toRadians2(i);return{translationX:t.x,translationY:t.y-e-s,rotation:o,rotationCenterX:0,rotationCenterY:e+s}}update(){super.update(),this.updateTitle(),this.updateGridLines();const{enabled:e,stroke:t,width:i}=this.line;this.lineNode.setProperties({stroke:t,strokeWidth:e?i:0,x1:0,y1:this.range[0],x2:0,y2:this.range[1]})}updatePosition(){super.updatePosition();const e=this.getAxisTransform();this.tickLineGroup.setProperties(e),this.tickLabelGroup.setProperties(e),this.lineNodeGroup.setProperties(e),this.headingLabelGroup.setProperties(e)}calculateRotations(){return{rotation:0,parallelFlipRotation:0,regularFlipRotation:-Math.PI/2}}calculateTickLayout(e,t,i){const s=-Math.PI/2,o=[0,1],r=this.label.getSideFlag(),n=r*(this.getTickSize()+this.label.spacing+this.seriesAreaPadding),{range:l,reverse:c,defaultTickMinSpacing:h}=this,p=this.tickGenerator.generateTicks({domain:e,range:l,reverse:c,niceMode:t,visibleRange:o,primaryTickCount:void 0,defaultTickMinSpacing:h,parallelFlipRotation:0,regularFlipRotation:s,labelX:n,sideFlag:r,removeOverflowLabels:!1}),{tickData:u}=p,{ticks:d,rawTicks:y,rawTickCount:g,tickDomain:f,fractionDigits:m,niceDomain:S=e}=u,x=d.map(b=>this.getTickLabelProps(b,p));return this.generatedTicks={ticks:d,labels:x},{ticks:y,tickDomain:f,niceDomain:S,rawTickCount:g,fractionDigits:m,timeInterval:void 0}}updateSelections(){const{generatedTicks:e}=this;if(!e)return;const{ticks:t,labels:i}=e;this.gridLineGroupSelection.update(this.gridLength?t:[]),this.tickLabelGroupSelection.update(i),this.gridPathSelection.update(this.gridLine.enabled?this.prepareGridPathTickData(t):[]),this.gridLineGroupSelection.cleanup(),this.tickLabelGroupSelection.cleanup(),this.gridPathSelection.cleanup()}updateLabels(){if(!this.label.enabled)return;const e=import_ag_charts_community10._ModuleSupport.resetAxisLabelSelectionFn();this.tickLabelGroupSelection.each((t,i)=>{t.fill=i.fill,t.fontFamily=i.fontFamily,t.fontSize=i.fontSize,t.fontStyle=i.fontStyle,t.fontWeight=i.fontWeight,t.text=i.text,t.textBaseline=i.textBaseline,t.textAlign=i.textAlign??"center",t.setProperties(e(t,i))})}updateGridLines(){const{gridLine:{style:e,width:t},shape:i,generatedTicks:a}=this;if(!e||!a)return;const s=e.length,o=(u,d)=>{const{stroke:y,lineDash:g}=e[d%s];u.stroke=y,u.strokeWidth=t,u.lineDash=g,u.fill=void 0},[r,n]=this.gridRange??[0,2*Math.PI],l=(0,import_ag_charts_core8.isNumberEqual)(n-r,2*Math.PI),p=i==="circle"?(u,d)=>{const{path:y}=u;y.clear(!0);const g=this.getTickRadius(d);l?(y.moveTo(g,0),y.arc(0,0,g,0,2*Math.PI)):(y.moveTo(g*Math.cos(r),g*Math.sin(r)),y.arc(0,0,g,normalizeAngle3603(r),normalizeAngle3603(n))),l&&y.closePath()}:(u,d)=>{const{path:y}=u,g=this.gridAngles;if(y.clear(!0),!g||g.length<3)return;const f=this.getTickRadius(d);g.forEach((m,S)=>{const x=f*Math.cos(m),b=f*Math.sin(m);S===0?y.moveTo(x,b):y.lineTo(x,b),g.forEach((D,N)=>{const _=f*Math.cos(D),v=f*Math.sin(D);N===0?y.moveTo(_,v):y.lineTo(_,v)}),y.closePath()}),y.closePath()};this.gridPathSelection.each((u,d,y)=>{o(u,y),p(u,d)})}updateTitle(){const e=r=>r.defaultValue,{title:t,range:i}=this,{formatter:a=e}=this.title;t.caption.enabled=t.enabled,t.caption.fontFamily=t.fontFamily,t.caption.fontSize=t.fontSize,t.caption.fontStyle=t.fontStyle,t.caption.fontWeight=t.fontWeight,t.caption.color=t.color,t.caption.wrapping=t.wrapping;let s=!1;const o=t.caption.node;t.enabled&&(s=!0,o.rotation=Math.PI/2,o.x=Math.floor((i[0]+i[1])/2),o.y=-Caption.SMALL_PADDING,o.textAlign="center",o.textBaseline="bottom",o.text=this.callWithContext(a,this.getTitleFormatterParams(this.scale.domain))),o.visible=s}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof RadiusCrossLine){const{shape:t,gridAngles:i,range:a,innerRadiusRatio:s}=this,o=a[0];e.shape=t,e.gridAngles=i,e.axisOuterRadius=o,e.axisInnerRadius=o*s}}),super.updateCrossLines()}createLabel(){return new RadiusAxisLabel}getTickLabelProps(e,t){const{label:i}=this,{rotation:a,textBaseline:s,textAlign:o}=t,r=this.scale.range,n=e.tickLabel??"",c=i.getSideFlag()*(this.getTickSize()+i.spacing+this.seriesAreaPadding),h=n!==""&&n!=null,p=a;return{...this.getLabelStyles({value:e.tickLabel}),tickId:e.tickId,rotation:p,text:n,textAlign:o,textBaseline:s,visible:h,x:c,y:e.translation,rotationCenterX:c,rotationCenterY:e.translation,range:r}}};RadiusAxis.CrossLineConstructor=RadiusCrossLine,__decorateClass([Property8],RadiusAxis.prototype,"positionAngle",2);var{ProxyPropertyOnWrite,Property:Property9,CategoryScale:CategoryScale2}=import_ag_charts_community11._ModuleSupport,RadiusCategoryAxis=class extends RadiusAxis{constructor(e){super(e,new CategoryScale2),this.shape="circle",this.groupPaddingInner=0,this.paddingInner=0,this.paddingOuter=0}normaliseDataDomain(e){return{domain:e,clipped:!1}}prepareGridPathTickData(e){return e.slice().reverse()}getTickRadius(e){const{scale:t,innerRadiusRatio:i}=this,a=t.range[0],s=a*i;if(CategoryScale2.is(t)){const o=t.domain,r=o.length-1-o.indexOf(e.tick);return r===0?s:t.inset+t.step*(r-.5)+t.bandwidth/2}else{const o=(a-s)/t.domain.length;return a-e.translation+s-o/2}}tickFormatParams(){return{type:"category"}}datumFormatParams(e,t){const{datum:i,seriesId:a,legendItemName:s,key:o,source:r,property:n,domain:l,boundSeries:c}=t;return{type:"category",value:e,datum:i,seriesId:a,legendItemName:s,key:o,source:r,property:n,domain:l,boundSeries:c}}};RadiusCategoryAxis.className="RadiusCategoryAxis",RadiusCategoryAxis.type="radius-category",__decorateClass([Property9],RadiusCategoryAxis.prototype,"groupPaddingInner",2),__decorateClass([ProxyPropertyOnWrite("scale","paddingInner"),Property9],RadiusCategoryAxis.prototype,"paddingInner",2),__decorateClass([ProxyPropertyOnWrite("scale","paddingOuter"),Property9],RadiusCategoryAxis.prototype,"paddingOuter",2);var import_ag_charts_community12=require("ag-charts-community"),{Property:Property10,normalisedExtentWithMetadata:normalisedExtentWithMetadata2,LinearScale:LinearScale2}=import_ag_charts_community12._ModuleSupport,RadiusNumberAxis=class extends RadiusAxis{constructor(e){super(e,new LinearScale2),this.shape="polygon"}prepareGridPathTickData(e){const{scale:t}=this,i=t.domain[1];return e.filter(({tick:a})=>a!==i).sort((a,s)=>s.tick-a.tick)}getTickRadius(e){const{scale:t}=this,i=t.range[0],a=i*this.innerRadiusRatio;return i-e.translation+a}normaliseDataDomain(e){const{min:t,max:i}=this,{extent:a,clipped:s}=normalisedExtentWithMetadata2(e,t,i);return{domain:a,clipped:s}}tickFormatParams(e,t,i){return{type:"number",fractionDigits:i}}datumFormatParams(e,t,i){const{datum:a,seriesId:s,legendItemName:o,key:r,source:n,property:l,domain:c,boundSeries:h}=t;return{type:"number",value:e,datum:a,seriesId:s,legendItemName:o,key:r,source:n,property:l,domain:c,boundSeries:h,fractionDigits:i}}};RadiusNumberAxis.className="RadiusNumberAxis",RadiusNumberAxis.type="radius-number",__decorateClass([Property10],RadiusNumberAxis.prototype,"min",2),__decorateClass([Property10],RadiusNumberAxis.prototype,"max",2);var{ordinalTimeAxisOptionsDefs,angleNumberAxisOptionsDefs,angleCategoryAxisOptionsDefs,radiusNumberAxisOptionsDefs,radiusCategoryAxisOptionsDefs}=import_ag_charts_community13._ModuleSupport,OrdinalTimeAxisModule={type:"axis",name:"ordinal-time",chartType:"cartesian",enterprise:!0,options:ordinalTimeAxisOptionsDefs,create:e=>new OrdinalTimeAxis(e)},AngleNumberAxisModule={type:"axis",name:"angle-number",chartType:"polar",enterprise:!0,options:angleNumberAxisOptionsDefs,create:e=>new AngleNumberAxis(e)},AngleCategoryAxisModule={type:"axis",name:"angle-category",chartType:"polar",enterprise:!0,options:angleCategoryAxisOptionsDefs,create:e=>new AngleCategoryAxis(e)},RadiusNumberAxisModule={type:"axis",name:"radius-number",chartType:"polar",enterprise:!0,options:radiusNumberAxisOptionsDefs,create:e=>new RadiusNumberAxis(e)},RadiusCategoryAxisModule={type:"axis",name:"radius-category",chartType:"polar",enterprise:!0,options:radiusCategoryAxisOptionsDefs,create:e=>new RadiusCategoryAxis(e)},import_ag_charts_community15=require("ag-charts-community"),import_ag_charts_community14=require("ag-charts-community"),{Chart,Property:Property11}=import_ag_charts_community14._ModuleSupport;function isFlowProportion(e){return e.type==="sankey"||e.type==="chord"}var FlowProportionChart=class extends Chart{getChartType(){return"flow-proportion"}async updateData(){await super.updateData();const e=this.getOptions();this.nodes!==e.nodes&&(this.nodes=e.nodes);const{nodes:t}=this;this.series.forEach(i=>{isFlowProportion(i)&&i.setChartNodes(t)})}performLayout(e){const{seriesRoot:t,annotationRoot:i}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());const s=a.clone();this.seriesRect=s,this.animationRect=s,t.visible=this.series.some(o=>o.visible);for(const o of[t,i])o.translationX=Math.floor(s.x),o.translationY=Math.floor(s.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:s,paddedRect:s}})}};FlowProportionChart.className="FlowProportionChart",FlowProportionChart.type="flow-proportion",__decorateClass([Property11],FlowProportionChart.prototype,"nodes",2);var{isAgFlowProportionChartOptions,flowProportionChartOptionsDefs}=import_ag_charts_community15._ModuleSupport,FlowProportionChartModule={type:"chart",name:"flow-proportion",enterprise:!0,options:flowProportionChartOptionsDefs,detect:isAgFlowProportionChartOptions,create(e,t){return new FlowProportionChart(e,t)}},import_ag_charts_community17=require("ag-charts-community"),import_ag_charts_community16=require("ag-charts-community"),{Chart:Chart2}=import_ag_charts_community16._ModuleSupport,GaugeChart=class extends Chart2{getChartType(){return"gauge"}performLayout(e){const{seriesRoot:t,annotationRoot:i,series:a,seriesArea:s}=this,{layoutBox:o}=e,r=o.clone();o.shrink(s.padding.toJson()),this.seriesRect=r.clone().translate(r.x-o.x,r.y-o.y),this.animationRect=o,t.visible=a.some(n=>n.visible);for(const n of[t,i])n.translationX=Math.floor(o.x),n.translationY=Math.floor(o.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:r,paddedRect:o}})}getAriaLabel(){const e=[],t=this.getCaptionText();t.length!==0&&e.push(t);for(const a of this.series)e.push(a.getCaptionText());const i=e.join(". ");return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:i})}};GaugeChart.className="GaugeChart",GaugeChart.type="gauge";var{isAgGaugeChartOptions,gaugeChartOptionsDefs}=import_ag_charts_community17._ModuleSupport,GaugeChartModule={type:"chart",name:"gauge",enterprise:!0,options:gaugeChartOptionsDefs,detect:isAgGaugeChartOptions,create(e,t){return new GaugeChart(e,t)}},import_ag_charts_community19=require("ag-charts-community"),import_ag_charts_community18=require("ag-charts-community"),{Chart:Chart3}=import_ag_charts_community18._ModuleSupport,HierarchyChart=class extends Chart3{getChartType(){return"hierarchy"}performLayout(e){const{seriesRoot:t,annotationRoot:i}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());const s=a.clone();this.seriesRect=s,this.animationRect=s;for(const o of[t,i])o.translationX=Math.floor(s.x),o.translationY=Math.floor(s.y);t.visible=this.series[0].visible,t.setClipRect(s.clone()),this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:s,paddedRect:s}})}getAriaLabel(){const e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}};HierarchyChart.className="HierarchyChart",HierarchyChart.type="hierarchy";var{isAgHierarchyChartOptions,hierarchyChartOptionsDefs}=import_ag_charts_community19._ModuleSupport,HierarchyChartModule={type:"chart",name:"hierarchy",enterprise:!0,options:hierarchyChartOptionsDefs,detect:isAgHierarchyChartOptions,create(e,t){return new HierarchyChart(e,t)}},import_ag_charts_community21=require("ag-charts-community"),import_ag_charts_community20=require("ag-charts-community"),{Chart:Chart4}=import_ag_charts_community20._ModuleSupport,StandaloneChart=class extends Chart4{getChartType(){return"standalone"}performLayout(e){const{seriesRoot:t,annotationRoot:i}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());const s=a.clone();this.seriesRect=s,this.animationRect=s;for(const o of[t,i])o.translationX=Math.floor(a.x),o.translationY=Math.floor(a.y);t.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:s,paddedRect:a}})}getAriaLabel(){const e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}};StandaloneChart.className="StandaloneChart",StandaloneChart.type="standalone";var{isAgStandaloneChartOptions,standaloneChartOptionsDefs}=import_ag_charts_community21._ModuleSupport,StandaloneChartModule={type:"chart",name:"standalone",enterprise:!0,options:standaloneChartOptionsDefs,detect:isAgStandaloneChartOptions,create(e,t){return new StandaloneChart(e,t)}},import_ag_charts_community23=require("ag-charts-community"),import_ag_charts_community22=require("ag-charts-community"),{Chart:Chart5,MercatorScale,NumberAxis,Property:Property12}=import_ag_charts_community22._ModuleSupport;function isTopologySeries(e){return e.type==="map-shape"||e.type==="map-line"||e.type==="map-marker"||e.type==="map-shape-background"||e.type==="map-line-background"}var TopologyChart=class extends Chart5{constructor(e,t){super(e,t),this.xAxis=new NumberAxis(this.getModuleContext()),this.xAxis.position="bottom",this.yAxis=new NumberAxis(this.getModuleContext()),this.yAxis.position="left",this.ctx.zoomManager.updateAxes([this.xAxis,this.yAxis])}getChartType(){return"topology"}async updateData(){await super.updateData();const e=this.getOptions();this.topology!==e.topology&&(this.topology=e.topology);const{topology:t}=this;this.series.forEach(i=>{isTopologySeries(i)&&i.setChartTopology(t)})}performLayout(e){const{seriesRoot:t,annotationRoot:i}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());const s=a.clone();this.seriesRect=s,this.animationRect=s;const o=this.series.filter(isTopologySeries),r=o.reduce((c,h)=>{if(!h.visible)return c;const p=h.topologyBounds;return p==null?c:c==null?p:c.merge(p)},void 0);let n;if(r!=null){const{lon0:c,lat0:h,lon1:p,lat1:u}=r,d=[[c,h],[p,u]],y=MercatorScale.bounds(d),{width:g,height:f}=s,m=Math.min(g/y.width,f/y.height),S=y.width*m,x=y.height*m,b=(g-S)/2,D=(f-x)/2,N=b,_=D,v=b+S,M=D+x,k=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),A=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),P=(v-N)/(k.max-k.min),C=N-P*k.min,I=(M-_)/(1-A.min-(1-A.max)),R=_-I*(1-A.max);n=new MercatorScale(d,[[C,R],[C+P,R+I]])}o.forEach(c=>{c.scale=n});const l=this.series.some(c=>c.visible);t.visible=l;for(const c of[t,i])c.translationX=Math.floor(s.x),c.translationY=Math.floor(s.y),c.setClipRect(s.clone());this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:l,rect:s,paddedRect:s}})}};TopologyChart.className="TopologyChart",TopologyChart.type="topology",__decorateClass([Property12],TopologyChart.prototype,"topology",2);var{isAgTopologyChartOptions,topologyChartOptionsDefs}=import_ag_charts_community23._ModuleSupport,TopologyChartModule={type:"chart",name:"topology",enterprise:!0,options:topologyChartOptionsDefs,detect:isAgTopologyChartOptions,create(e,t){return new TopologyChart(e,t)}},import_ag_charts_community68=require("ag-charts-community"),import_ag_charts_community24=require("ag-charts-community"),import_ag_charts_core10=require("ag-charts-core"),{annotationCalloutStylesDefs,annotationNoteStylesDefs,annotationTextStylesDef,annotationCommentStylesDefs,annotationMeasurerStylesDefs,annotationShapeStylesDefs,annotationChannelTextDefs,annotationCrossLineStyleDefs,annotationFibonacciStylesDefs,annotationLineStyleDefs,annotationLineTextDefs,annotationDisjointChannelStyleDefs,annotationParallelChannelStyleDefs}=import_ag_charts_community24._ModuleSupport,serializableDate=(0,import_ag_charts_core10.optionsDefs)({__type:(0,import_ag_charts_core10.required)((0,import_ag_charts_core10.constant)("date")),value:(0,import_ag_charts_core10.or)(import_ag_charts_core10.string,import_ag_charts_core10.number)},"a serializable date object"),xValue=(0,import_ag_charts_core10.or)(import_ag_charts_core10.string,import_ag_charts_core10.number,serializableDate),annotationValue=(0,import_ag_charts_core10.or)(xValue,(0,import_ag_charts_core10.optionsDefs)({value:xValue,groupPercentage:(0,import_ag_charts_core10.numberRange)(-1,1)})),channelAnnotationTextOptionsDef={...annotationChannelTextDefs,label:import_ag_charts_core10.string},lineAnnotationTextOptionsDef={...annotationLineTextDefs,label:import_ag_charts_core10.string},annotationPointOptionsDef={x:annotationValue,y:import_ag_charts_core10.number},annotationInitialStateOptionsDef=(0,import_ag_charts_core10.typeUnion)({line:{...annotationLineStyleDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:lineAnnotationTextOptionsDef},"horizontal-line":{...annotationCrossLineStyleDefs,value:annotationValue,text:lineAnnotationTextOptionsDef},"vertical-line":{...annotationCrossLineStyleDefs,value:annotationValue,text:lineAnnotationTextOptionsDef},"disjoint-channel":{...annotationDisjointChannelStyleDefs,startHeight:import_ag_charts_core10.positiveNumber,endHeight:import_ag_charts_core10.positiveNumber,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:channelAnnotationTextOptionsDef},"parallel-channel":{...annotationParallelChannelStyleDefs,height:import_ag_charts_core10.positiveNumber,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:channelAnnotationTextOptionsDef},"fibonacci-retracement":{...annotationFibonacciStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:lineAnnotationTextOptionsDef,reverse:import_ag_charts_core10.boolean},"fibonacci-retracement-trend-based":{...annotationFibonacciStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,endRetracement:annotationPointOptionsDef,text:lineAnnotationTextOptionsDef,reverse:import_ag_charts_core10.boolean},callout:{...annotationCalloutStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:import_ag_charts_core10.string},comment:{...annotationCommentStylesDefs,...annotationPointOptionsDef,text:import_ag_charts_core10.string},note:{...annotationNoteStylesDefs,...annotationPointOptionsDef,text:import_ag_charts_core10.string},text:{...annotationTextStylesDef,...annotationPointOptionsDef,text:import_ag_charts_core10.string},arrow:{...annotationLineStyleDefs,text:lineAnnotationTextOptionsDef,start:annotationPointOptionsDef,end:annotationPointOptionsDef},"arrow-up":{...annotationShapeStylesDefs,...annotationPointOptionsDef},"arrow-down":{...annotationShapeStylesDefs,...annotationPointOptionsDef},"date-range":{...annotationMeasurerStylesDefs,extendAbove:import_ag_charts_core10.boolean,extendBelow:import_ag_charts_core10.bo