ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
1 lines • 535 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 o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==i&&__defProp(e,o,{get:()=>t[o],enumerable:!(a=__getOwnPropDesc(t,o))||a.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__decorateClass=(e,t,i,a)=>{for(var o=a>1?void 0:a?__getOwnPropDesc(t,i):t,s=e.length-1,r;s>=0;s--)(r=e[s])&&(o=(a?r(t,i,o):r(o))||o);return a&&o&&__defProp(t,i,o),o},main_modules_exports={};__export(main_modules_exports,{AllCartesianEnterpriseModules:()=>AllCartesianEnterpriseModules,AllEnterpriseModules:()=>AllEnterpriseModules,AllPolarEnterpriseModules:()=>AllPolarEnterpriseModules,AllStandaloneEnterpriseModules:()=>AllStandaloneEnterpriseModules,AllTopologyEnterpriseModules:()=>AllTopologyEnterpriseModules,AngleCategoryAxisModule:()=>AngleCategoryAxisModule,AngleNumberAxisModule:()=>AngleNumberAxisModule,BoxPlotSeriesModule:()=>BoxPlotSeriesModule,CandlestickSeriesModule:()=>CandlestickSeriesModule,ChordSeriesModule:()=>ChordSeriesModule,ConeFunnelSeriesModule:()=>ConeFunnelSeriesModule,FunnelSeriesModule:()=>FunnelSeriesModule,HeatmapSeriesModule:()=>HeatmapSeriesModule,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_community163=require("ag-charts-community"),import_ag_charts_community13=require("ag-charts-community"),import_ag_charts_community5=require("ag-charts-community"),import_ag_charts_core4=require("ag-charts-core");function loopSymmetrically(e,t,i){const a=(s,r,n,l)=>{let c=e[0];for(let h=s;n>0?h<=r:h>r;h+=n){const p=e[h];if(l(c,p))return!0;c=p}return!1},o=Math.floor(e.length/2);return a(t,o,t,i)?!0:a(e.length-t,o,-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,o){const{label:s}=this;e.x=t,e.y=i,e.text=s.text,e.textAlign="center",e.textBaseline=a,e.rotation=o,e.rotationCenterX=t,e.rotationCenterY=i,e.fill=s.color,e.fontFamily=s.fontFamily,e.fontSize=s.fontSize,e.fontStyle=s.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,o]=i;return a>=e&&a<=t&&o>=a&&o<=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:o}=this;if(!e||i!=="line"||!t){o.visible=!1;return}const s=t.convert(a);if(isNaN(s)){o.visible=!1;return}const{axisInnerRadius:r,axisOuterRadius:n}=this;o.visible=!0,o.stroke=this.stroke,o.strokeOpacity=this.strokeOpacity??1,o.strokeWidth=this.strokeWidth??1,o.fill=void 0,o.lineDash=this.lineDash;const l=n*Math.cos(s),c=n*Math.sin(s),h=r*Math.cos(s),p=r*Math.sin(s);o.path.clear(!0),o.path.moveTo(h,p),o.path.lineTo(l,c),this.assignCrossLineGroup(!1,this.crossLineRange)}updatePolygonNode(e){const{polygonNode:t,range:i,scale:a,shape:o,type:s,ticks:r}=this;if(!e||s!=="range"||o!=="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 m=l*Math.cos(y),f=l*Math.sin(y);g===0?d.moveTo(m,f):d.lineTo(m,f)}),n===0?d.lineTo(0,0):u.slice().reverse().forEach(y=>{const g=n*Math.cos(y),m=n*Math.sin(y);d.lineTo(g,m)}),t.path.closePath(),this.assignCrossLineGroup(!0,this.crossLineRange)}updateSectorNode(e){const{sectorNode:t,range:i,scale:a,shape:o,type:s}=this;if(!e||s!=="range"||o!=="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:o,type:s,ticks:r}=this;if(!e||t.enabled===!1||!t.text||!o||s==="range"&&!a){i.visible=!1;return}i.visible=!0;const{axisInnerRadius:n,axisOuterRadius:l}=this;let c,h,p,u;if(s==="line"){const d=normalizeAngle360(o.convert(this.value)),y=1.5*Math.PI,g=(0,import_ag_charts_core2.isNumberEqual)(d,y)||d>y||d<Math.PI/2,m=(n+l)/2*Math.cos(d),f=(n+l)/2*Math.sin(d);c=m+t.padding*Math.cos(d+Math.PI/2),h=f+t.padding*Math.sin(d+Math.PI/2),u=g?"top":"bottom",p=g?d:d-Math.PI}else{const[d,y]=a.map(b=>normalizeAngle360(o.convert(b)));let g=(d+y)/2;d>y&&(g-=Math.PI),g=normalizeAngle360(g);const m=((0,import_ag_charts_core2.isNumberEqual)(g,0)||g>0)&&g<Math.PI;let f;this.shape==="circle"||r.length<3?f=l-t.padding:f=l*Math.cos(Math.PI/r.length)-t.padding,c=f*Math.cos(g),h=f*Math.sin(g),u=m?"bottom":"top",p=m?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},o=t?i.niceDomain(a,e):e,s=this.generateAngleTicks(o);this.tickData=s;const r=s.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:o,tickDomain:o,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:o,y:s,moveTo:r,arc:n,radius:l=0,startAngle:c=0,endAngle:h=0})=>{n?t.arc(o,s,l,c,h):r?t.moveTo(o,s):t.lineTo(o,s)}),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,o]=this.range,s=(0,import_ag_charts_core3.isNumberEqual)(o-a,2*Math.PI),r=[];if(t==="circle")s?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(o),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:s}}updateGridLines(){const{scale:e,gridLength:t,gridLine:{style:i,width:a},innerRadiusRatio:o}=this;if(!(i&&t>0))return;const s=t*o,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=s*Math.cos(d),n.y1=s*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,o)=>{const s=this.labelData[o];if(!s||s.hidden){i.visible=!1;return}i.text=s.text,i.setFont(e),i.fill=e.color,i.x=s.x,i.y=s.y,i.setAlign(s),i.setBoxing(e),i.visible=!0,s.rotation?(i.rotation=s.rotation,i.rotationCenterX=s.x,i.rotationCenterY=s.y):i.rotation=0})}updateTickLines(){const{scale:e,gridLength:t,tick:i,tickLineGroupSelection:a}=this;a.each((o,s)=>{const{value:r}=s,n=e.convert(r),l=Math.cos(n),c=Math.sin(n);o.x1=t*l,o.y1=t*c,o.x2=(t+i.size)*l,o.y2=(t+i.size)*c,o.stroke=i.stroke,o.strokeWidth=i.width})}createLabelNodeData(e,t,i){const{label:a,gridLength:o,scale:s,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,m=o+a.spacing+r.size,f=s.convert(g),b=Math.cos(f),x=Math.sin(f),S=m*b,D=m*x,{textAlign:_,textBaseline:k}=this.getLabelAlign(f),v=y===e.length-1&&g!==e[0]&&(0,import_ag_charts_core3.isNumberEqual)(normalizeAngle3602(f),normalizeAngle3602(s.convert(e[0]))),A=this.getLabelRotation(f);let I=p(g,y);n.text=I,n.x=S,n.y=D,n.setFont(a),n.textAlign=_,n.textBaseline=k,n.rotation=A,A&&(n.rotationCenterX=S,n.rotationCenterY=D);let M=A?Transformable.toCanvas(n):n.getBBox();if(M&&t.hideWhenNecessary&&!A){const L=l-M.x,R=M.x+M.width-c,C=1;if(L>C||R>C){const N=M.width-Math.max(L,R);I=TextWrapper.wrapText(I,{maxWidth:N,font:a,textWrap:"never"}),I===TextUtils.EllipsisChar&&(I=""),n.text=I,M=n.getBBox()}}return{text:I,x:S,y:D,textAlign:_,textBaseline:k,hidden:I===""||d.hidden||v,rotation:A,box:M}});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,o;const s=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 s==="parallel"?(a="center",o=l&&n||p?"top":"bottom"):s==="perpendicular"?(a=c||h?"left":"right",o="middle"):(a="right",r?a="center":h&&(a="left"),o="bottom",n?o="middle":p&&(o="top")),{textAlign:a,textBaseline:o}}updateCrossLines(){const{shape:e,gridLength:t,innerRadiusRatio:i}=this;this.crossLines.forEach(a=>{a instanceof AngleCrossLine&&(a.ticks=this.tickData.map(o=>o.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}hasDefinedDomain(){return!1}generateAngleTicks(e){const{scale:t,gridLength:i}=this,{values:a,minSpacing:o}=this.interval,s={nice:this.nice,interval:void 0,tickCount:void 0,minTickCount:0,maxTickCount:1/0},r=a??t.ticks(s,e)?.ticks??[];if(r.length<2||o==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)>o){const f=new Set([n]);return loopSymmetrically(r,p,(b,x)=>{f.add(x)}),r.map(b=>{const x=f.has(b);return{value:b,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],o=e.at(-1),s=new Set([a]),r=(0,import_ag_charts_core4.isNumberEqual)(a.x,o.x)&&(0,import_ag_charts_core4.isNumberEqual)(a.y,o.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)=>{s.add(u)});break}}e.forEach(l=>{s.has(l)||(l.hidden=!0,l.box=void 0)})}tickFormatParams(){return{type:"category"}}datumFormatParams(e,t){const{datum:i,seriesId:a,legendItemName:o,key:s,source:r,property:n,domain:l,boundSeries:c}=t;return{type:"category",value:e,datum:i,seriesId:a,legendItemName:o,key:s,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,o]=i;let s=LinearScale.getTickStep(a,o,t);const r=isNaN(t.maxTickCount)?1/0:t.maxTickCount,n=Math.abs(o-a)/s;let l=Math.pow(2,Math.ceil(Math.log(n)/Math.log(2)));return l>r&&(l/=2,s*=2),{count:l,step:s}}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:o,interval:s}=t,[r,n]=i;if(s){const c=Math.abs(s),h=this.getPixelRange();if(!isDenseInterval((n-r)/c,h))return range(r,n,c)}let l;if(o&&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,o)=>a-o);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 o=a[0]>a[1],s=o?a[1]:a[0],{step:r,count:n}=pe.getNiceStepAndTickCount(t,a),l=1/r,c=r>=1?Math.ceil(s/r+n)*r:Math.ceil((s+n*r)*l)/l;return o?[c,s]:[s,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}hasDefinedDomain(){const{min:e,max:t}=this;return e!=null&&t!=null&&e<t}normaliseDataDomain(e){const{min:t,max:i}=this,{extent:a,clipped:o}=normalisedExtentWithMetadata(e,t,i);return{domain:a,clipped:o}}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,o=this.gridLength;return a*o}generateAngleTicks(e){const{scale:t,range:i,nice:a}=this,{values:o,step:s,minSpacing:r,maxSpacing:n}=this.interval;let l;if(o==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:s,tickCount:d,minTickCount:h,maxTickCount:p};l=t.ticks(y,e)?.ticks??[]}else{const[c,h]=findMinMax(e.map(Number));l=o.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=(s,r)=>{if(s.hidden||r.hidden)return!1;if(t==null)return s.box.collidesBBox(r.box);const n=s.box.clone().grow(t/2),l=r.box.clone().grow(t/2);return n.collidesBBox(l)},a=e[0],o=e.at(-1);a!==o&&(0,import_ag_charts_core6.isNumberEqual)(a.x,o.x)&&(0,import_ag_charts_core6.isNumberEqual)(a.y,o.y)&&(o.hidden=!0);for(let s=1;s<e.length;s*=2){let r=!1;for(let n=s;n<e.length;n+=s){const l=e[n],c=e[n-s];if(i(c,l)){r=!0;break}}if(!r){e.forEach((n,l)=>{l%s>0&&(n.hidden=!0,n.box=void 0)});return}}e.forEach((s,r)=>{r>0&&(s.hidden=!0,s.box=void 0)})}tickFormatParams(e,t,i){return{type:"number",fractionDigits:i}}datumFormatParams(e,t,i){const{datum:a,seriesId:o,legendItemName:s,key:r,source:n,property:l,domain:c,boundSeries:h}=t;return{type:"number",value:e,datum:a,seriesId:o,legendItemName:s,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.DiscreteTimeAxis{constructor(e){super(e,new OrdinalTimeScale),this.parentLevel=new TimeAxisParentLevel,this.minimumTimeGranularity=void 0}get primaryLabel(){return this.parentLevel.enabled?this.parentLevel.label:void 0}get primaryTick(){return this.parentLevel.enabled?this.parentLevel.tick:void 0}processData(){super.processData();const{boundSeries:e,direction:t}=this;this.minimumTimeGranularity=minimumTimeAxisDatumGranularity(e,t,void 0,void 0)}tickFormatParams(e,t,i,a){a??(a=lowestGranularityUnitForTicks(t));const o=dateTruncationForDomain(e),s=intervalUnit(a),r=intervalStep(a),n=intervalEpoch(a);return{type:"date",unit:s,step:r,epoch:n,truncateDate:o}}datumFormatParams(e,t,i,a,o){if(typeof e=="number"&&(e=new Date(e)),a==null){const{minimumTimeGranularity:m}=this,f=lowestGranularityUnitForValue(e);m!=null&&intervalMilliseconds(m)<intervalMilliseconds(f)?a=m:a=f}const{datum:s,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:s,seriesId:r,legendItemName:n,key:l,source:c,property:h,domain:p,boundSeries:u,unit:d,step:y,epoch:g,style:o}}};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:o}=this;if(!t)return{innerRadius:0,outerRadius:0};const s=l=>o+a-l;let r,n;if(i==="line")r=s(t.convert(this.value)),n=r;else{const l=Math.abs(t?.bandwidth??0),c=e.map(h=>t.convert(h));r=s(Math.max(...c)),n=s(Math.min(...c))+l}this.outerRadius=r,this.innerRadius=n}drawPolygon(e,t,i){t.forEach((a,o)=>{const s=e*Math.cos(a),r=e*Math.sin(a);o===0?i.path.moveTo(s,r):i.path.lineTo(s,r)}),i.path.closePath()}updatePolygonNode(e){const{gridAngles:t,polygonNode:i,scale:a,shape:o,type:s,innerRadius:r,outerRadius:n}=this;if(!e||o!=="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=s==="line"?n-l:r+l;this.drawPolygon(h,c,i),this.setSectorNodeProps(i)}updateSectorNode(e){const{axisInnerRadius:t,axisOuterRadius:i,scale:a,sectorNode:o,shape:s,innerRadius:r,outerRadius:n}=this;if(!e||s!=="circle"||!a){o.visible=!1;return}o.visible=!0,o.startAngle=0,o.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);o.innerRadius=Math.min(c,h),o.outerRadius=Math.max(c,h),this.setSectorNodeProps(o)}updateLabelNode(e){const{innerRadius:t,label:i,labelNode:a,scale:o,shape:s,type:r}=this;if(!e||i.enabled===!1||!i.text||!o){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:s==="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,o=e*a,s=toRadians2(i);return{translationX:t.x,translationY:t.y-e-o,rotation:s,rotationCenterX:0,rotationCenterY:e+o}}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 o=-Math.PI/2,s=[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:s,primaryTickCount:void 0,defaultTickMinSpacing:h,parallelFlipRotation:0,regularFlipRotation:o,labelX:n,sideFlag:r,sizeLimit:void 0,removeOverflowLabels:!1}),{tickData:u}=p,{ticks:d,rawTicks:y,rawTickCount:g,tickDomain:m,fractionDigits:f,niceDomain:b=e}=u,x=d.map(S=>this.getTickLabelProps(S,p));return this.generatedTicks={ticks:d,labels:x},{ticks:y,tickDomain:m,niceDomain:b,rawTickCount:g,fractionDigits:f,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.color,t.text=i.text,t.textBaseline=i.textBaseline,t.textAlign=i.textAlign??"center",t.setFont(i),t.setBoxing(i),t.setProperties(e(t,i))})}updateGridLines(){const{gridLine:{style:e,width:t},shape:i,generatedTicks:a}=this;if(!e||!a)return;const o=e.length,s=(u,d)=>{const{stroke:y,lineDash:g}=e[d%o];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 m=this.getTickRadius(d);g.forEach((f,b)=>{const x=m*Math.cos(f),S=m*Math.sin(f);b===0?y.moveTo(x,S):y.lineTo(x,S),g.forEach((D,_)=>{const k=m*Math.cos(D),v=m*Math.sin(D);_===0?y.moveTo(k,v):y.lineTo(k,v)}),y.closePath()}),y.closePath()};this.gridPathSelection.each((u,d,y)=>{s(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 o=!1;const s=t.caption.node;t.enabled&&(o=!0,s.rotation=Math.PI/2,s.x=Math.floor((i[0]+i[1])/2),s.y=-Caption.SMALL_PADDING,s.textAlign="center",s.textBaseline="bottom",s.text=this.cachedCallWithContext(a,this.getTitleFormatterParams(this.scale.domain))),s.visible=o}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof RadiusCrossLine){const{shape:t,gridAngles:i,range:a,innerRadiusRatio:o}=this,s=a[0];e.shape=t,e.gridAngles=i,e.axisOuterRadius=s,e.axisInnerRadius=s*o}}),super.updateCrossLines()}createLabel(){return new RadiusAxisLabel}getTickLabelProps(e,t){const{label:i}=this,{rotation:a,textBaseline:o,textAlign:s}=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:s,textBaseline:o,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}hasDefinedDomain(){return!1}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],o=a*i;if(CategoryScale2.is(t)){const s=t.domain,r=s.length-1-s.indexOf(e.tick);return r===0?o:t.inset+t.step*(r-.5)+t.bandwidth/2}else{const s=(a-o)/t.domain.length;return a-e.translation+o-s/2}}tickFormatParams(){return{type:"category"}}datumFormatParams(e,t){const{datum:i,seriesId:a,legendItemName:o,key:s,source:r,property:n,domain:l,boundSeries:c}=t;return{type:"category",value:e,datum:i,seriesId:a,legendItemName:o,key:s,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"}hasDefinedDomain(){const{min:e,max:t}=this;return e!=null&&t!=null&&e<t}prepareGridPathTickData(e){const{scale:t}=this,i=t.domain[1];return e.filter(({tick:a})=>a!==i).sort((a,o)=>o.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:o}=normalisedExtentWithMetadata2(e,t,i);return{domain:a,clipped:o}}tickFormatParams(e,t,i){return{type:"number",fractionDigits:i}}datumFormatParams(e,t,i){const{datum:a,seriesId:o,legendItemName:s,key:r,source:n,property:l,domain:c,boundSeries:h}=t;return{type:"number",value:e,datum:a,seriesId:o,legendItemName:s,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}=import_ag_charts_community14._ModuleSupport,StandaloneChart=class extends Chart{getChartType(){return"standalone"}performLayout(e){const{seriesRoot:t,annotationRoot:i}=this,{layoutBox:a}=e,o=a.clone().shrink(this.modulesManager.getModule("seriesArea").getPadding());this.seriesRect=o,this.animationRect=o;for(const s of[t,i])s.translationX=Math.floor(o.x),s.translationY=Math.floor(o.y);t.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:o,paddedRect:a}})}getAriaLabel(){const e=this.series[0]?.type;if(e==null)return"";const t=this.getCaptionText();switch(e){case"radial-gauge":case"linear-gauge":{const i=[];t.length!==0&&i.push(t);for(const a of this.series)i.push(a.getCaptionText());return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:i.join(". ")})}case"treemap":case"sunburst":return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:t});default:return this.ctx.localeManager.t("ariaAnnounceStandaloneChart",{caption:t})}}};StandaloneChart.className="StandaloneChart",StandaloneChart.type="standalone";var{isAgStandaloneChartOptions,standaloneChartOptionsDefs}=import_ag_charts_community15._ModuleSupport,StandaloneChartModule={type:"chart",name:"standalone",enterprise:!0,options:standaloneChartOptionsDefs,detect:isAgStandaloneChartOptions,create(e,t){return new StandaloneChart(e,t)}},import_ag_charts_community17=require("ag-charts-community"),import_ag_charts_community16=require("ag-charts-community"),{Chart:Chart2,MercatorScale,NumberAxis,Property:Property11}=import_ag_charts_community16._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 Chart2{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,o=a.clone().shrink(this.modulesManager.getModule("seriesArea").getPadding());this.seriesRect=o,this.animationRect=o;const s=this.series.filter(isTopologySeries),r=s.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:m}=o,f=Math.min(g/y.width,m/y.height),b=y.width*f,x=y.height*f,S=(g-b)/2,D=(m-x)/2,_=S,k=D,v=S+b,A=D+x,I=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),M=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),L=(v-_)/(I.max-I.min),R=_-L*I.min,C=(A-k)/(1-M.min-(1-M.max)),N=k-C*(1-M.max);n=new MercatorScale(d,[[R,N],[R+L,N+C]])}s.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(o.x),c.translationY=Math.floor(o.y),c.setClipRect(o.clone());this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:l,rect:o,paddedRect:a}})}};TopologyChart.className="TopologyChart",TopologyChart.type="topology",__decorateClass([Property11],TopologyChart.prototype,"topology",2);var{isAgTopologyChartOptions,topologyChartOptionsDefs}=import_ag_charts_community17._ModuleSupport,TopologyChartModule={type:"chart",name:"topology",enterprise:!0,options:topologyChartOptionsDefs,detect:isAgTopologyChartOptions,create(e,t){return new TopologyChart(e,t)}},import_ag_charts_community64=require("ag-charts-community"),import_ag_charts_community18=require("ag-charts-community"),import_ag_charts_core9=require("ag-charts-core"),{annotationCalloutStylesDefs,annotationNoteStylesDefs,annotationTextStylesDef,annotationCommentStylesDefs,annotationMeasurerStylesDefs,annotationShapeStylesDefs,annotationChannelTextDefs,annotationCrossLineStyleDefs,annotationFibonacciStylesDefs,annotationLineStyleDefs,annotationLineTextDefs,annotationDisjointChannelStyleDefs,annotationParallelChannelStyleDefs}=import_ag_charts_community18._ModuleSupport,serializableDate=(0,import_ag_charts_core9.optionsDefs)({__type:(0,import_ag_charts_core9.required)((0,import_ag_charts_core9.constant)("date")),value:(0,import_ag_charts_core9.or)(import_ag_charts_core9.string,import_ag_charts_core9.number)},"a serializable date object"),xValue=(0,import_ag_charts_core9.or)(import_ag_charts_core9.string,import_ag_charts_core9.number,serializableDate),annotationValue=(0,import_ag_charts_core9.or)(xValue,(0,import_ag_charts_core9.optionsDefs)({value:xValue,groupPercentage:(0,import_ag_charts_core9.numberRange)(-1,2)})),channelAnnotationTextOptionsDef={...annotationChannelTextDefs,label:import_ag_charts_core9.string},lineAnnotationTextOptionsDef={...annotationLineTextDefs,label:import_ag_charts_core9.string},annotationPointOptionsDef={x:annotationValue,y:import_ag_charts_core9.number},annotationInitialStateOptionsDef=(0,import_ag_charts_core9.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_core9.number,endHeight:import_ag_charts_core9.number,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:channelAnnotationTextOptionsDef},"parallel-channel":{...annotationParallelChannelStyleDefs,height:import_ag_charts_core9.number,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:channelAnnotationTextOptionsDef},"fibonacci-retracement":{...annotationFibonacciStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:lineAnnotationTextOptionsDef,reverse:import_ag_charts_core9.boolean},"fibonacci-retracement-trend-based":{...annotationFibonacciStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,endRetracement:annotationPointOptionsDef,text:lineAnnotationTextOptionsDef,reverse:import_ag_charts_core9.boolean},callout:{...annotationCalloutStylesDefs,start:annotationPointOptionsDef,end:annotationPointOptionsDef,text:import_ag_charts_core9.string},comment:{...annotationCommentStylesDefs,...annotationPointOptionsDef,text:import_ag_charts_core9.string},note:{...annotationNoteStylesDefs,...annotationPointOptionsDef,text:import_ag_charts_core9.string},text:{...annotationTextStylesDef,...annotationPointOptionsDef,text:import_ag_charts_core9.string},arrow:{...annotationLineStyleDefs,text:lineAnnotationTextOptionsDef,start:annotationPointOptionsDef,end:annotationPointOptionsDef},"arrow-up":{...annotationShapeStylesDefs,...annotationPointOptionsDef},"arrow-down":{...annotationShapeStylesDefs,...annotationPointOptionsDef},"date-range":{...annotationMeasurerStylesDefs,extendAbove:import_ag_charts_core9.boolean,extendBelow:import_ag_charts_core9.boolean,text:lineAnnotationTextOptionsDef,start:annotationPointOptionsDef,end:annotationPointOptionsDef},"price-range":{...annotationMeasurerStylesDefs,extendLeft:import_ag_charts_core9.boolean,extendRight:import_ag_charts_core9.boolean,text:lineAnnotationTextOptionsDef,start:annotationPointOptionsDef,end:annotationPointOptionsDef},"date-price-range":{...annotationMeasurerStylesDefs,text:lineAnnotationTextOptionsDef,start:annotationPointOptionsDef,end:annotationPointOptionsDef}},"an annotation initial state object"),initialStateOptionsDef={chartType:(0,import_ag_charts_core9.union)("candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"),annotations:(0,import_ag_charts_core9.arrayOfDefs)(annotationInitialStateOptionsDef),legend:(0,import_ag_charts_core9.arrayOfDefs)({visible:import_ag_charts_core9.boolean,seriesId:import_ag_charts_core9.string,itemId:import_ag_charts_core9.string,legendItemName:import_ag_charts_core9.string},"legend state array"),zoom:{rangeX:{start:(0,import_ag_charts_core9.or)(import_ag_charts_core9.number,serializableDate),end:(0,import_ag_charts_core9.or)(import_ag_charts_core9.number,serializableDate)},rangeY:{start:(0,import_ag_charts_core9.or)(import_ag_charts_core9.number,serializableDate),end:(0,import_ag_charts_core9.or)(import_ag_charts_core9.number,serializableDate)},ratioX:{start:(0,import_ag_charts_core9.and)(import_ag_charts_core9.ratio,(0,import_ag_charts_core9.lessThan)("end")),end:(0,import_ag_charts_core9.and)(import_ag_charts_core9.ratio,(0,import_ag_charts_core9.greaterThan)("start"))},ratioY:{start:(0,import_ag_charts_core9.and)(import_ag_charts_core9.ratio,(0,import_ag_charts_core9.lessThan)("end")),end:(0,import_ag_charts_core9.and)(import_ag_charts_core9.ratio,(0,import_ag_charts_core9.greaterThan)("start"))},autoScaledAxes:(0,import_ag_charts_core9.arrayOf)((0,import_ag_charts_core9.constant)("y"))}},import_ag_charts_community63=require("ag-charts-community"),import_ag_charts_core21=require("ag-charts-core"),import_ag_charts_community24=require("ag-charts-community"),import_ag_charts_community21=require("ag-charts-community");function prepareBoxPlotFromTo(e){return{from:e?{scalingX:1,scalingY:0}:{scalingX:0,scalingY:1},to:{scalingX:1,scalingY:1}}}function resetBoxPlotSelectionsScalingCenterFn(e){return(t,i)=>e?{scalingCenterY:i.scaledValues.medianValue}:{scalingCenterX:i.scaledValues.medianValue}}var import_ag_charts_community19=require("ag-charts-community"),import_ag_charts_core10=require("ag-charts-core"),{ScalableGroup,Rect,Line:Line3,BBox:BBox2,Selection:Selection3,applyShapeFillBBox}=import_ag_charts_community19._ModuleSupport,BoxPlotGroup=class extends ScalableGroup{constructor(){super(),this.append([new Rect({tag:0}),new Rect({tag:2}),new Rect({tag:1}),new Line3({tag:3}),new Line3({tag:3}),new Line3({tag:4}),new Line3({tag:4})])}updateDatumStyles(e,t,i,a,o){const{bandwidth:s,scaledValues:{xValue:r,medianValue:n}}=e;let{minValue:l,q1Value:c,q3Value:h,maxValue:p}=e.scaledValues;(i&&!a||!i&&a)&&([p,h,c,l]=[l,c,h,p]);const u=(B,G,V,K)=>i?{y:B,x:G,width:K,height:V}:{x:B,y:G,width:V,height:K},d=(B,G,V)=>i?{y1:B,y2:G,x:V}:{x1:B,x2:G,y:V},y=(B,G,V)=>i?{x1:G,x2:V,y:B}:{x:B,y1:G,y2:V},g=(B,G,V,K)=>({x:B,y:G,width:V,height:K}=u(B,G,V,K),new BBox2(B,G,V,K)),{opacity:m,fill:f,fillOpacity:b,stroke:x,strokeWidth:S,strokeOpacity:D,lineDash:_,lineDashOffset:k,cornerRadius:v,cap:A,whisker:I}=t;this.opacity=m??1;const M=Selection3.select(this,Rect),[L]=M.selectByTag(0),[R]=M.selectByTag(2),[C]=M.selectByTag(1),N=M.selectByTag(3),P=M.selectByTag(4);I.strokeWidth>s&&(I.strokeWidth=s);const T