UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

1 lines 2.07 MB
(()=>{var e={71993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildAnnotations=void 0;const i=r(40301),a=r(11396),o=r(29371),s=r(89171),n=r(48882),l=r(99060),d=r(96696),h=r(23272),u=r(84736),c=r(28677),p=r(40734),g=r(74370),y=r(26977),f=r(49617),v=r(98409),m=r(11043),S=r(58996),P=r(45921);(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextAxisMarkerAnnotation,(e=>new o.AxisMarkerAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextBoxAnnotation,(e=>new s.BoxAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextHorizontalLineAnnotation,(e=>new d.HorizontalLineAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextLineAnnotation,(e=>new c.LineAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextVerticalLineAnnotation,(e=>new v.VerticalLineAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGTextAnnotation,(e=>new f.TextAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGCustomAnnotation,(e=>new n.CustomAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.SVGPolarPointerAnnotation,(e=>new y.PolarPointerAnnotation(e))),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.HtmlTextAnnotation,(e=>new h.HtmlTextAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextNativeTextAnnotation,(e=>new g.NativeTextAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextArcAnnotation,(e=>new i.ArcAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.HtmlCustomAnnotation,(e=>new l.HtmlCustomAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextLineArrowAnnotation,(e=>new p.LineArrowAnnotation(e)),!0),(0,P.registerType)(m.EBaseType.Annotation,u.EAnnotationType.RenderContextPolarArcAnnotation,(e=>new a.PolarArcAnnotation(e)),!0),t.buildAnnotations=e=>{"string"==typeof e&&(e=JSON.parse(e,S.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push((0,P.createType)(m.EBaseType.Annotation,r.type,null,r.options));else t.push((0,P.createType)(m.EBaseType.Annotation,e.type,null,e.options));return t}},25924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildAxis3D=t.buildAxes=void 0;const i=r(59516),a=r(2296),o=r(78471),s=r(48767),n=r(39920),l=r(92596),d=r(68695),h=r(18184),u=r(51392),c=r(54948),p=r(1370),g=r(63922),y=r(48936),f=r(2192),v=r(11043),m=r(40359),S=r(58996),P=r(45921);(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.Numeric,(e=>new n.NumericLabelProvider(e)),!0),(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.Date,(e=>new o.DateLabelProvider(e)),!0),(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.Logarithmic,(e=>new s.LogarithmicLabelProvider(e)),!0),(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.SmartDate,(e=>new d.SmartDateLabelProvider(e)),!0),(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.Text,(e=>new h.TextLabelProvider(e)),!0),(0,P.registerType)(v.EBaseType.LabelProvider,m.ELabelProviderType.Pie,(e=>new l.PieLabelProvider(e)),!0),t.buildAxes=(e,t)=>{"string"==typeof t&&(t=JSON.parse(t,S.chartReviver));const r=[];if(Array.isArray(t))for(const i of t)r.push(C(e,i));else r.push(C(e,t));return r};const C=(e,t)=>{let r;switch(t.type){case f.EAxisType.CategoryAxis:r=new i.CategoryAxis(e,t.options);break;case f.EAxisType.NumericAxis:r=new c.NumericAxis(e,t.options);break;case f.EAxisType.LogarithmicAxis:r=new u.LogarithmicAxis(e,t.options);break;case f.EAxisType.DateTimeNumericAxis:r=new a.DateTimeNumericAxis(e,t.options);break;case f.EAxisType.PolarNumericAxis:r=new g.PolarNumericAxis(e,t.options);break;case f.EAxisType.PolarCategoryAxis:r=new p.PolarCategoryAxis(e,t.options);break;default:r=new c.NumericAxis(e,{})}return r};t.buildAxis3D=(e,t)=>{let r;return r=t.type===f.EAxisType.NumericAxis3D?new y.NumericAxis3D(e,t.options):new y.NumericAxis3D(e,{}),r}},44544:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDataSeries3D=t.buildDataSeries=void 0;const i=r(57835),a=r(58465),o=r(73165),s=r(26974),n=r(95632),l=r(55007),d=r(39892),h=r(91154),u=r(92475),c=r(22382),p=r(51885),g=r(43427),y=r(35471),f=r(15799),v=r(9682),m=r(38446),S=r(29803),P=r(73016),C=r(19663),b=r(75650),x=r(35508),A=r(23291),T=r(75869),E=r(98102),R=r(51097),D=r(58996);t.buildDataSeries=(e,t,r,i)=>{if(!t)return;let a,o;if("string"==typeof t&&(t=JSON.parse(t,D.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,D.chartReviver)),a=M(e,t,r),"filter"in t.options&&(o=t.options.filter),o&&t.type!==p.EDataSeriesType.HeatmapUniform&&t.type!==p.EDataSeriesType.HeatmapNonUniform&&a){const e=w(null!=i?i:a,o);e&&(a=e)}return a};const w=(e,t)=>{if(t.type===R.EDataFilterType.HlcScaleOffset)return new a.HlcScaleOffsetFilter(e,t.options);if(t.type===R.EDataFilterType.OhlcScaleOffset)return new o.OhlcScaleOffsetFilter(e,t.options);if(t.type===R.EDataFilterType.XyLinearTrend)return new s.XyLinearTrendFilter(e,t.options);if(t.type===R.EDataFilterType.XyMovingAverage)return new n.XyMovingAverageFilter(e,t.options);if(t.type===R.EDataFilterType.XyRatio){const r=t.options;if(Array.isArray(r.divisorSeries)){const i=new Array(e.count()).fill(0);t.options.divisorSeries=new v.XyDataSeries(e.webAssemblyContext,{xValues:i,yValues:r.divisorSeries})}return new l.XyRatioFilter(e,t.options)}return t.type===R.EDataFilterType.XyScaleOffset?new d.XyScaleOffsetFilter(e,t.options):t.type===R.EDataFilterType.XyyScaleOffset?new h.XyyScaleOffsetFilter(e,t.options):t.type===R.EDataFilterType.XyzScaleOffset?new u.XyzScaleOffsetFilter(e,t.options):void 0},M=(e,t,r)=>{const a=Object.assign({},t.options);switch(t.type){case p.EDataSeriesType.Xy:{const t=a;return t.arrayCount=1,r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId]),new v.XyDataSeries(e,t)}case p.EDataSeriesType.Xyy:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.y1Values=r[t.y1DataId]),new b.XyyDataSeries(e,t)}case p.EDataSeriesType.Xyz:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.zValues=r[t.zDataId]),new x.XyzDataSeries(e,t)}case p.EDataSeriesType.Xyxy:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.x1Values=r[t.x1DataId],t.y1Values=r[t.y1DataId]),new C.XyxyDataSeries(e,t)}case p.EDataSeriesType.XyN:{const t=a;return r&&t.xDataId,new m.XyNDataSeries(e,t)}case p.EDataSeriesType.XyText:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId]),new S.XyTextDataSeries(e,t)}case p.EDataSeriesType.Hlc:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.highValues=r[t.highDataId],t.lowValues=r[t.lowDataId],t.yValues=r[t.closeDataId]),new c.HlcDataSeries(e,t)}case p.EDataSeriesType.Ohlc:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.openValues=r[t.openDataId],t.highValues=r[t.highDataId],t.lowValues=r[t.lowDataId],t.closeValues=r[t.closeDataId]),new y.OhlcDataSeries(e,t)}case p.EDataSeriesType.HeatmapUniform:{const t=a;return new f.UniformHeatmapDataSeries(e,t)}case p.EDataSeriesType.HeatmapNonUniform:{const t=a;return new g.NonUniformHeatmapDataSeries(e,t)}case p.EDataSeriesType.XyN:throw new Error("XyN data series is not supported yet!");case p.EDataSeriesType.Xyx:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.x1Values=r[t.x1DataId]),new P.XyxDataSeries(e,t)}case p.EDataSeriesType.X:throw new Error("X data series is not supported yet!");case p.EDataSeriesType.BoxPlot:{const t=a;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.lowerQuartileValues=r[t.lowerDataId],t.upperQuartileValues=r[t.upperDataId],t.maximumValues=r[t.maxDataId],t.minimumValues=r[t.minDataId],t.yValues=r[t.medianDataId],t.medianValues=r[t.medianDataId]),new i.BoxPlotDataSeries(e,t)}default:return(e=>{throw new Error(`Invalid Data Series Type value: "${e}"!`)})(t.type)}};t.buildDataSeries3D=(e,t,r)=>{if(t)return"string"==typeof t&&(t=JSON.parse(t,D.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,D.chartReviver)),L(e,t,r)};const L=(e,t,r)=>{const i=Object.assign({},t.options);switch(t.type){case A.EDataSeriesType3D.Xyz3D:{const t=i;return r&&t.xDataId&&(t.xValues=r[t.xDataId],t.yValues=r[t.yDataId],t.zValues=r[t.zDataId]),new E.XyzDataSeries3D(e,t)}case A.EDataSeriesType3D.UniformGrid3D:{const t=i;return new T.UniformGridDataSeries3D(e,t)}case A.EDataSeriesType3D.NonUniformGrid3D:throw new Error("NonUniformGrid3D data series is not supported yet!");default:return(e=>{throw new Error(`Invalid Data Series Type value: "${e}"!`)})(t.type)}}},96841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildModifiers3D=t.buildModifiers=void 0;const i=r(62773),a=r(71575),o=r(9656),s=r(56985),n=r(55526),l=r(21562),d=r(63903),h=r(96408),u=r(18809),c=r(32545),p=r(9809),g=r(3397),y=r(63407),f=r(64171),v=r(11043),m=r(89955),S=r(58996),P=r(45921),C=r(49975),b=r(95648),x=r(94118),A=r(37221),T=r(22580),E=r(99389),R=r(30580),D=r(36463),w=r(27524),M=r(47737),L=r(73792),O=r(17707),I=r(66477),k=r(68491);(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Cursor,(e=>new i.CursorModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarCursor,(e=>new x.PolarCursorModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.DataPointSelection,(e=>new a.DataPointSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarDataPointSelection,(e=>new A.PolarDataPointSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarSeriesSelection,(e=>new T.PolarSeriesSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.MouseWheelZoom,(e=>new s.MouseWheelZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarMouseWheelZoom,(e=>new R.PolarMouseWheelZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PinchZoom,(e=>new l.PinchZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Rollover,(e=>new d.RolloverModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.VerticalSlice,(e=>new h.VerticalSliceModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.RubberBandXYZoom,(e=>new u.RubberBandXyZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarArcZoom,(e=>new b.PolarArcZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.SeriesSelection,(e=>new c.SeriesSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.AnnotationHover,(e=>new C.AnnotationHoverModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.XAxisDrag,(e=>new p.XAxisDragModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.YAxisDrag,(e=>new g.YAxisDragModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomExtents,(e=>new y.ZoomExtentsModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarZoomExtents,(e=>new D.PolarZoomExtentsModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomPan,(e=>new f.ZoomPanModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarPan,(e=>new w.PolarPanModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.OverviewRangeSelection,(e=>new n.OverviewRangeSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Legend,(e=>new o.LegendModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PolarLegend,(e=>new E.PolarLegendModifier(e)),!0),t.buildModifiers=e=>{"string"==typeof e&&(e=JSON.parse(e,S.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push(_(r));else t.push(_(e));return t};const _=e=>e.type===m.EChart2DModifierType.Custom?(0,P.createType)(v.EBaseType.Chart2DModifier,e.customType,null,e.options):(0,P.createType)(v.EBaseType.Chart2DModifier,e.type,null,e.options);(0,P.registerType)(v.EBaseType.Chart3DModifier,m.EChart3DModifierType.MouseWheelZoom,(e=>new M.MouseWheelZoomModifier3D(e)),!0),(0,P.registerType)(v.EBaseType.Chart3DModifier,m.EChart3DModifierType.Orbit,(e=>new O.OrbitModifier3D(e)),!0),(0,P.registerType)(v.EBaseType.Chart3DModifier,m.EChart3DModifierType.PinchZoom,(e=>new L.PinchZoomModifier3D(e)),!0),(0,P.registerType)(v.EBaseType.Chart3DModifier,m.EChart3DModifierType.Tooltip,(e=>new I.TooltipModifier3D(e)),!0),(0,P.registerType)(v.EBaseType.Chart3DModifier,m.EChart3DModifierType.ZoomExtents,(e=>new k.ResetCamera3DModifier(e)),!0),t.buildModifiers3D=e=>{"string"==typeof e&&(e=JSON.parse(e,S.chartReviver));const t=[];if(Array.isArray(e))for(const r of e)t.push(V(r));else t.push(V(e));return t};const V=e=>e.type===m.EChart3DModifierType.Custom?(0,P.createType)(v.EBaseType.Chart3DModifier,e.customType,null,e.options):(0,P.createType)(v.EBaseType.Chart3DModifier,e.type,null,e.options)},12193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSeries3D=t.buildSeries=void 0;const i=r(75619),a=r(51885),o=r(33906),s=r(52881),n=r(22745),l=r(10749),d=r(21033),h=r(77057),u=r(58229),c=r(61704),p=r(62314),g=r(56705),y=r(592),f=r(56498),v=r(81856),m=r(15273),S=r(1367),P=r(9488),C=r(96852),b=r(75933),x=r(33802),A=r(31544),T=r(1126),E=r(98550),R=r(11555),D=r(12641),w=r(20667),M=r(43852),L=r(93522),O=r(65297),I=r(72362),k=r(95179),_=r(89078),V=r(21037),N=r(50085),B=r(68264),F=r(78146),H=r(32471),j=r(86109),Y=r(56664),z=r(1406),X=r(83262),G=r(71719),W=r(1391),U=r(88189),$=r(70033),q=r(52954),Z=r(10763),K=r(11043),J=r(2963),Q=r(28436),ee=r(30323),te=r(5337),re=r(75323),ie=r(44544),ae=r(58996),oe=r(45921),se=r(30182),ne=r(16098),le=r(4455),de=r(83187),he=r(38831),ue=r(88409),ce=r(38595),pe=r(33236),ge=r(1074),ye=r(69773),fe=r(19963),ve=r(15518),me=r(68584),Se=r(2928),Pe=r(2270),Ce=r(10947),be=r(45265),xe=r(56675),Ae=r(39927),Te=r(72954),Ee=r(10435),Re=r(23291),De=r(56356),we=r(37622),Me=r(70027),Le=r(28009),Oe=r(25889),Ie=r(75616),ke=r(30566),_e=r(93727);function Ve(e,t){return e.hasOwnProperty(t)}(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.Cross,((e,t)=>new n.CrossPointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.Ellipse,((e,t)=>new l.EllipsePointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.Sprite,((e,t)=>new d.SpritePointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.Square,((e,t)=>new h.SquarePointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.Triangle,((e,t)=>new u.TrianglePointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker,ee.EPointMarkerType.X,((e,t)=>new c.XPointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.ShaderEffect,re.EShaderEffectType.Glow,((e,t)=>new V.GlowEffect(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.ShaderEffect,re.EShaderEffectType.Shadow,((e,t)=>new B.ShadowEffect(e,t)),!0),(0,oe.registerType)(K.EBaseType.Animation,Z.EAnimationType.Fade,(e=>new p.FadeAnimation(e)),!0),(0,oe.registerType)(K.EBaseType.Animation,Z.EAnimationType.Scale,(e=>new g.ScaleAnimation(e)),!0),(0,oe.registerType)(K.EBaseType.Animation,Z.EAnimationType.Sweep,(e=>new y.SweepAnimation(e)),!0),(0,oe.registerType)(K.EBaseType.Animation,Z.EAnimationType.Wave,(e=>new f.WaveAnimation(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Default,(e=>new C.DataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Line,(e=>new x.LineSeriesDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Column,(e=>new S.ColumnSeriesDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Rectangle,(e=>new Me.RectangleSeriesDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Text,(e=>new T.TextDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Heatmap,(e=>new b.HeatMapDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.NonUniformHeatmap,(e=>new A.NonUniformHeatMapDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Bubble,(e=>new m.BubbleSeriesDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Band,(e=>new v.BandSeriesDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Contours,(e=>new P.ContoursDataLabelProvider(e)),!0),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.PolarDefault,(e=>new fe.PolarDataLabelProvider(e))),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.PolarColumn,(e=>new ve.PolarColumnSeriesDataLabelProvider(e))),(0,oe.registerType)(K.EBaseType.DataLabelProvider,J.EDataLabelProviderType.PolarText,(e=>new Ie.PolarTextDataLabelProvider(e))),(0,oe.registerType)(K.EBaseType.MetadataGenerator,"Template",(e=>new o.TemplateMetadataGenerator(e)),!0),(0,oe.registerWasmType)(K.EBaseType.PaletteProvider,Q.EPaletteProviderType.Gradient,((e,t)=>s.PaletteFactory.createGradient(e,t)),!0),(0,oe.registerType)(K.EBaseType.PaletteProvider,Q.EPaletteProviderType.DataPointSelection,(e=>new i.DataPointSelectionPaletteProvider(e)),!0),t.buildSeries=(e,r,i)=>{"string"==typeof r&&(r=JSON.parse(r,ae.chartReviver)),"string"==typeof i&&(i=JSON.parse(i,ae.chartReviver));const a=[];Array.isArray(r)||(r=[r]);for(const o of r){let r;if(o.type===te.ESeriesType.BandSeries)r=new E.FastBandRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.BubbleSeries)r=new R.FastBubbleRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.CandlestickSeries)r=new D.FastCandlestickRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.ColumnSeries)r=new w.FastColumnRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.ImpulseSeries)r=new L.FastImpulseRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.LineSeries)r=new O.FastLineRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.LineSegmentSeries)r=new se.FastLineSegmentRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.MountainSeries)r=new I.FastMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.ErrorBarsSeries)r=new M.FastErrorBarsRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.BoxPlotSeries)r=new pe.FastBoxPlotRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.TriangleSeries)r=new ge.FastTriangleRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.RectangleSeries)r=new ne.FastRectangleRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.OhlcSeries)r=new k.FastOhlcRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.ScatterSeries)r=new q.XyScatterRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.SplineBandSeries)r=new F.SplineBandRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.SplineLineSeries)r=new H.SplineLineRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.SplineMountainSeries)r=new j.SplineMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.UniformHeatmapSeries)r=new $.UniformHeatmapRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.NonUniformHeatmapSeries)r=new N.NonUniformHeatmapRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.UniformContoursSeries)r=new U.UniformContoursRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.TextSeries)r=new _.FastTextRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.StackedColumnSeries)r=new X.StackedColumnRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.StackedMountainSeries)r=new W.StackedMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.SmoothStackedMountainSeries)r=new Y.SmoothStackedMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.StackedColumnCollection){const a=new z.StackedColumnCollection(e,o.options);a.add(...(0,t.buildSeries)(e,o.series,i)),r=a}else if(o.type===te.ESeriesType.StackedMountainCollection){const a=new G.StackedMountainCollection(e,o.options);a.add(...(0,t.buildSeries)(e,o.series,i)),r=a}else if(o.type===te.ESeriesType.PolarLineSeries)r=new le.PolarLineRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarScatterSeries)r=new ye.PolarXyScatterRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarBandSeries)r=new de.PolarBandRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarColumnSeries)r=new he.PolarColumnRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarMountainSeries)r=new ue.PolarMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarTriangleSeries)r=new ke.PolarTriangleRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarTextSeries)r=new _e.PolarTextRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarUniformHeatmapSeries)r=new Ce.PolarUniformHeatmapRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarStackedMountainSeries)r=new ce.PolarStackedMountainRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarStackedColumnSeries)r=new Pe.PolarStackedColumnRenderableSeries(e,o.options);else if(o.type===te.ESeriesType.PolarStackedMountainCollection){const a=new me.PolarStackedMountainCollection(e,o.options);a.add(...(0,t.buildSeries)(e,o.series,i)),r=a}else if(o.type===te.ESeriesType.PolarStackedColumnCollection){const a=new Se.PolarStackedColumnCollection(e,o.options);a.add(...(0,t.buildSeries)(e,o.series,i)),r=a}if(r){const t=Ne(e,o,i);t&&(r.dataSeries=t)}r&&a.push(r)}return a};const Ne=(e,t,r)=>{const i=Ve(o=t,"xyData")?{type:a.EDataSeriesType.Xy,options:o.xyData}:Ve(o,"xyyData")?{type:a.EDataSeriesType.Xyy,options:o.xyyData}:Ve(o,"xyzData")?{type:a.EDataSeriesType.Xyz,options:o.xyzData}:Ve(o,"xyxyData")?{type:a.EDataSeriesType.Xyxy,options:o.xyxyData}:Ve(o,"xyxData")?{type:a.EDataSeriesType.Xyx,options:o.xyxData}:Ve(o,"xynData")?{type:a.EDataSeriesType.XyN,options:o.xynData}:Ve(o,"xyTextData")?{type:a.EDataSeriesType.XyText,options:o.xyTextData}:Ve(o,"hlcData")?{type:a.EDataSeriesType.Hlc,options:o.hlcData}:Ve(o,"ohlcData")?{type:a.EDataSeriesType.Ohlc,options:o.ohlcData}:Ve(o,"boxPlotData")?{type:a.EDataSeriesType.BoxPlot,options:o.boxPlotData}:!Ve(o,"heatmapData")||o.type!==te.ESeriesType.UniformHeatmapSeries&&o.type!==te.ESeriesType.UniformContoursSeries&&o.type!==te.ESeriesType.PolarUniformHeatmapSeries?Ve(o,"heatmapData")&&o.type===te.ESeriesType.NonUniformHeatmapSeries?{type:a.EDataSeriesType.HeatmapNonUniform,options:o.heatmapData}:void 0:{type:a.EDataSeriesType.HeatmapUniform,options:o.heatmapData};var o;if(i)return t.options&&"dataSeries"in t.options&&t.options.dataSeries&&i.options&&"filter"in i.options&&i.options.filter?(0,ie.buildDataSeries)(e,i,r,t.options.dataSeries):(0,ie.buildDataSeries)(e,i,r)};(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Sphere,((e,t)=>new we.SpherePointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Cube,((e,t)=>new we.CubePointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Pyramid,((e,t)=>new we.PyramidPointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Cylinder,((e,t)=>new we.CylinderPointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Ellipse,((e,t)=>new we.EllipsePointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Pixel,((e,t)=>new we.PixelPointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Quad,((e,t)=>new we.QuadPointMarker(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PointMarker3D,De.EPointMarker3DType.Triangle,((e,t)=>new we.TrianglePointMarker3D(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PaletteProvider,Q.EPaletteProviderType.Gradient3D,((e,t)=>new Le.GradientColorPalette(e,t)),!0),(0,oe.registerWasmType)(K.EBaseType.PaletteProvider,Q.EPaletteProviderType.Solid3D,((e,t)=>new Oe.SolidColorBrushPalette(e,t)),!0),t.buildSeries3D=(e,t,r)=>{"string"==typeof t&&(t=JSON.parse(t,ae.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,ae.chartReviver));const i=[];Array.isArray(t)||(t=[t]);for(const a of t){let t;switch(a.type){case be.ESeriesType3D.ColumnRenderableSeries3D:t=new xe.ColumnRenderableSeries3D(e,a.options);break;case be.ESeriesType3D.PointLineRenderableSeries3D:t=new Ae.PointLineRenderableSeries3D(e,a.options);break;case be.ESeriesType3D.ScatterRenderableSeries3D:t=new Te.ScatterRenderableSeries3D(e,a.options);break;case be.ESeriesType3D.SurfaceMeshRenderableSeries3D:t=new Ee.SurfaceMeshRenderableSeries3D(e,a.options)}if(t){const i=Be(e,a,r);i&&(t.dataSeries=i)}t&&i.push(t)}return i};const Be=(e,t,r)=>{const i=Fe(t);if(i)return(0,ie.buildDataSeries3D)(e,i,r)},Fe=e=>Ve(e,"xyzData")?{type:Re.EDataSeriesType3D.Xyz3D,options:e.xyzData}:Ve(e,"uniformGridData")?{type:Re.EDataSeriesType3D.UniformGrid3D,options:e.uniformGridData}:void 0},64931:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function n(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,n)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.configure3DSurface=t.configure2DSurface=t.buildSubCharts=t.build3DChart=t.buildPieChart=t.build2DPolarChart=t.build2DChart=void 0;const a=r(60872),o=r(53521),s=r(57384),n=r(70397),l=r(45481),d=r(83638),h=r(6153),u=r(55173),c=r(24478),p=r(27282),g=r(12119),y=r(27194),f=r(73145),v=r(55696),m=r(66010),S=r(99016),P=r(2705),C=r(60819),b=r(54948),x=r(66570),A=r(57419),T=r(79548),E=r(84626),R=r(11043),D=r(883),w=r(73785),M=r(71993),L=r(25924),O=r(96841),I=r(12193),k=r(58996),_=r(45921),V=r(62916),N=r(16602),B=r(25610),F=r(91465),H=r(8320),j=r(94416),Y=r(24696),z=r(63922),X=r(16989),G=r(38215),W=r(52361),U=r(48936);function $(e,t){var r;const i=t.webAssemblyContext2D,a=Array.isArray(e)?e:[e],o=[];for(const e of a)if((null===(r=null==e?void 0:e.surface)||void 0===r?void 0:r.surfaceType)===F.ESciChartSurfaceType.Polar2D){const r=H.SciChartPolarSubSurface.createSubSurface(t,e.surface);q(e,r,i),o.push(r)}else{const r=B.SciChartSubSurface.createSubSurface(t,e.surface);q(e,r,i),o.push(r)}return o}function q(e,t,r){e.xAxes&&t.xAxes.add(...(0,L.buildAxes)(r,e.xAxes)),e.yAxes&&t.yAxes.add(...(0,L.buildAxes)(r,e.yAxes)),t.isPolar?(0!==t.xAxes.size()||e.subCharts||t.xAxes.add(new z.PolarNumericAxis(r,{polarAxisMode:X.EPolarAxisMode.Angular,axisAlignment:G.EAxisAlignment.Top})),0!==t.yAxes.size()||e.subCharts||t.yAxes.add(new z.PolarNumericAxis(r,{polarAxisMode:X.EPolarAxisMode.Radial,axisAlignment:G.EAxisAlignment.Right}))):(0!==t.xAxes.size()||e.subCharts||t.xAxes.add(new b.NumericAxis(r)),0!==t.yAxes.size()||e.subCharts||t.yAxes.add(new b.NumericAxis(r))),e.series&&t.renderableSeries.add(...(0,I.buildSeries)(r,e.series,e.sharedData)),e.modifiers&&t.chartModifiers.add(...(0,O.buildModifiers)(e.modifiers)),e.annotations&&t.annotations.add(...(0,M.buildAnnotations)(e.annotations)),e.subCharts&&!t.isSubSurface&&$(e.subCharts,t)}function Z(e,t,r){e.xAxis?t.xAxis=(0,L.buildAxis3D)(r,e.xAxis):t.xAxis=new U.NumericAxis3D(r),e.yAxis?t.yAxis=(0,L.buildAxis3D)(r,e.yAxis):t.yAxis=new U.NumericAxis3D(r),e.zAxis?t.zAxis=(0,L.buildAxis3D)(r,e.zAxis):t.zAxis=new U.NumericAxis3D(r),e.series&&t.renderableSeries.add(...(0,I.buildSeries3D)(r,e.series,e.sharedData)),e.modifiers&&t.chartModifiers.add(...(0,O.buildModifiers3D)(e.modifiers))}(0,_.registerType)(R.EBaseType.ThemeProvider,V.EThemeProviderType.Light,(()=>new C.SciChartJSLightTheme),!0),(0,_.registerType)(R.EBaseType.ThemeProvider,V.EThemeProviderType.DarkV2,(()=>new P.SciChartJSDarkv2Theme),!0),(0,_.registerType)(R.EBaseType.ThemeProvider,V.EThemeProviderType.Dark,(()=>new S.SciChartJSDarkTheme),!0),(0,_.registerType)(R.EBaseType.ThemeProvider,V.EThemeProviderType.Navy,(()=>new m.SciChartJsNavyTheme),!0),(0,_.registerType)(R.EBaseType.LayoutManager,D.ELayoutManagerType.Default,(e=>new l.LayoutManager(e)),!0),(0,_.registerType)(R.EBaseType.LayoutManager,D.ELayoutManagerType.Polar,(e=>new Y.PolarLayoutManager(e)),!0),(0,_.registerType)(R.EBaseType.LayoutManager,D.ELayoutManagerType.CentralAxes,(e=>new n.CentralAxesLayoutManager(e)),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomInner,(e=>new a.BottomAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomOuter,(e=>new o.BottomAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomStacked,(e=>new s.BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftInner,(e=>new d.LeftAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftOuter,(e=>new h.LeftAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftStacked,(e=>new u.LeftAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightInner,(e=>new c.RightAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightOuter,(e=>new p.RightAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightStacked,(e=>new g.RightAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopInner,(e=>new y.TopAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopOuter,(e=>new f.TopAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopStacked,(e=>new v.TopAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(R.EBaseType.Loader,"Default",(()=>new x.DefaultSciChartLoader),!0),t.build2DChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r;let i;"string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),i=(null==t?void 0:t.createSingle)?yield E.SciChartSurface.createSingle(e,null==t?void 0:t.surface):yield E.SciChartSurface.create(e,null==t?void 0:t.surface);let{wasmContext:a,sciChartSurface:o}=i;const s=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:o.id});return q(t,o,a),t.onCreated&&("string"==typeof t.onCreated&&(o.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(R.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(o)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:o.id,relatedId:null===(r=null==s?void 0:s.detail)||void 0===r?void 0:r.relatedId}),{wasmContext:a,sciChartSurface:o}})),t.build2DPolarChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r;let i;"string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),i=(null==t?void 0:t.createSingle)?yield j.SciChartPolarSurface.createSingle(e,null==t?void 0:t.surface):yield j.SciChartPolarSurface.create(e,null==t?void 0:t.surface);let{wasmContext:a,sciChartSurface:o}=i;const s=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:o.id});return q(t,o,a),t.onCreated&&("string"==typeof t.onCreated&&(o.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(R.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(o)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:o.id,relatedId:null===(r=null==s?void 0:s.detail)||void 0===r?void 0:r.relatedId}),{wasmContext:a,sciChartSurface:o}})),t.buildPieChart=(e,t)=>i(void 0,void 0,void 0,(function*(){"string"==typeof t&&(t=JSON.parse(t,k.chartReviver));const r=yield T.SciChartPieSurface.create(e,null==t?void 0:t.surface);if(null==t?void 0:t.segments)for(const e of null==t?void 0:t.segments){const t=new A.PieSegment(e);r.pieSegments.add(t)}return t.onCreated&&("string"==typeof t.onCreated&&(r.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(R.EBaseType.OnCreateFunction,t.onCreated)),t.onCreated(r)),r})),t.build3DChart=(e,t)=>i(void 0,void 0,void 0,(function*(){var r,i;let a;if("string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),a=(null==t?void 0:t.createSingle)?yield W.SciChart3DSurface.createSingle(e,Object.assign({},null==t?void 0:t.surface)):yield W.SciChart3DSurface.create(e,Object.assign({},null==t?void 0:t.surface)),null===(r=null==t?void 0:t.surface)||void 0===r?void 0:r.theme)if("type"in t.surface.theme){const e=(0,_.getFunction)(R.EBaseType.ThemeProvider,t.surface.theme.type).call(null);e&&a.sciChart3DSurface.applyTheme(e)}else a.sciChart3DSurface.applyTheme(t.surface.theme);let{wasmContext:o,sciChart3DSurface:s}=a;const n=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:s.id});return Z(t,s,o),t.onCreated&&("string"==typeof t.onCreated&&(s.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(R.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(s)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:s.id,relatedId:null===(i=null==n?void 0:n.detail)||void 0===i?void 0:i.relatedId}),{wasmContext:o,sciChart3DSurface:s}})),t.buildSubCharts=$,t.configure2DSurface=q,t.configure3DSurface=Z},58996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chartBuilder=t.ensureRegistrations=t.configureChart=t.buildChart=t.chartReviver=void 0;const i=r(98140),a=r(87108),o=r(91465),s=r(71993),n=r(25924),l=r(44544),d=r(96841),h=r(12193),u=r(64931),c=r(45921);function p(e,t){switch(e){case"visibleRange":case"visibleRangeLimit":case"visibleRangeSizeLimit":case"growBy":return new i.NumberRange(t.min,t.max);case"padding":const e=t;return new a.Thickness(e.top,e.right,e.bottom,e.left);default:return null===t?NaN:t}}t.chartReviver=p;const g=e=>"options"in e?e.options:e;function y(e,t){var r;"string"==typeof t&&(t=JSON.parse(t,p)),t||(t={});const i=null!==(r=null==t?void 0:t.type)&&void 0!==r?r:o.ESciChartSurfaceType.Default2D,a=g(t);if(i===o.ESciChartSurfaceType.Default2D)return(0,u.build2DChart)(e,a);if(i===o.ESciChartSurfaceType.Polar2D)return(0,u.build2DPolarChart)(e,a);if(i===o.ESciChartSurfaceType.Pie2D)return(0,u.buildPieChart)(e,a);if(i===o.ESciChartSurfaceType.Default3D)return(0,u.build3DChart)(e,a);throw new Error(`Surface type: ${i} does not exist. See ESciChartSurfaceType for all available types.`)}t.buildChart=y,t.configureChart=(e,t,r)=>{var i;"string"==typeof r&&(r=JSON.parse(r,p)),r||(r={});const a=null!==(i=null==r?void 0:r.type)&&void 0!==i?i:o.ESciChartSurfaceType.Default2D,s=g(r);if(a===o.ESciChartSurfaceType.Default2D)(0,u.configure2DSurface)(s,e,t);else if(a!==o.ESciChartSurfaceType.Pie2D)throw new Error(`Surface type: ${a} is not yet supported by the builder api`)},t.ensureRegistrations=()=>{},t.chartBuilder={buildChart:y,chartReviver:p,build2DChart:u.build2DChart,build2DPolarChart:u.build2DPolarChart,buildPieChart:u.buildPieChart,configureChart:t.configureChart,buildSeries:h.buildSeries,buildDataSeries:l.buildDataSeries,buildModifiers:d.buildModifiers,buildAxes:n.buildAxes,buildAnnotations:s.buildAnnotations,registerType:c.registerType,registerWasmType:c.registerWasmType,registerFunction:c.registerFunction,build3DChart:u.build3DChart,buildAxis3D:n.buildAxis3D,buildModifiers3D:d.buildModifiers3D,buildSeries3D:h.buildSeries3D,buildDataSeries3D:l.buildDataSeries3D}},45921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubTypes=t.createType=t.getFunction=t.registerFunction=t.registerWasmType=t.registerType=void 0;const r=new Map;t.registerType=(e,t,i,a=!1)=>{const o=e+":"+t;if(r.has(o)&&!a)throw new Error("Type "+o+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(o,{func:i})},t.registerWasmType=(e,t,i,a=!1)=>{const o=e+":"+t;if(r.has(o)&&!a)throw new Error("Type "+o+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(o,{wasm:!0,func:i})},t.registerFunction=(e,t,i,a=!1)=>{const o=e+":"+t;if(r.has(o)&&!a)throw new Error("Function "+o+" is already registered. Call with overWrite: true if you intended to replace it.");r.set(o,{func:i})},t.getFunction=(e,t)=>{const i=e+":"+t,a=r.get(i);if(a)return a.func;throw new Error("Nothing registered for "+i)},t.createType=(e,t,i,a)=>{const o=e+":"+t,s=r.get(o);if(s){const{wasm:e,func:t}=s;return e?t(i,a):t(a)}throw new Error("Nothing registered for "+o)},t.getSubTypes=e=>Array.from(r.keys()).map((e=>e.split(":"))).filter((t=>t[0]===e)).map((e=>e[1]))},3810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CameraController=t.ECameraProjectionMode=void 0;const i=r(3214),a=r(23866),o=r(50605),s=r(16110),n=r(17542);var l;!function(e){e.Perspective="Perspective",e.Orthogonal="Orthogonal"}(l=t.ECameraProjectionMode||(t.ECameraProjectionMode={})),t.CameraController=class{constructor(e,t){var r,a,o,n,d,h,u,c,p;this.aspectRatioProperty=1.5,this.idProperty="Default",this.farClipProperty=4e3,this.fieldOfViewProperty=60,this.isAttachedProperty=!1,this.nearClipProperty=1,this.orbitalPitchProperty=0,this.orbitalYawProperty=0,this.orthoHeightProperty=400,this.orthoWidthProperty=600,this.positionProperty=s.Vector3.zero,this.projectionModeProperty=l.Perspective,this.targetProperty=s.Vector3.zero,this.webAssemblyContext=e,this.propertyChanged=new i.EventHandler,this.resetToDefaults(),this.id=null!==(r=null==t?void 0:t.id)&&void 0!==r?r:this.id,this.farClipProperty=null!==(a=null==t?void 0:t.farClip)&&void 0!==a?a:this.farClip,this.fieldOfViewProperty=null!==(o=null==t?void 0:t.fieldOfView)&&void 0!==o?o:this.fieldOfView,this.nearClipProperty=null!==(n=null==t?void 0:t.nearClip)&&void 0!==n?n:this.nearClip,this.orthoHeightProperty=null!==(d=null==t?void 0:t.orthoHeight)&&void 0!==d?d:this.orthoHeight,this.orthoWidthProperty=null!==(h=null==t?void 0:t.orthoWidth)&&void 0!==h?h:this.orthoWidth,this.projectionModeProperty=null!==(u=null==t?void 0:t.projectionMode)&&void 0!==u?u:this.projectionMode,this.position=(null==t?void 0:t.position)?s.Vector3.hydrate(null==t?void 0:t.position):this.position,this.target=(null==t?void 0:t.target)?s.Vector3.hydrate(null==t?void 0:t.target):this.target,this.id=null!==(c=null==t?void 0:t.id)&&void 0!==c?c:this.id,this.debugPositionsProperty=null!==(p=null==t?void 0:t.debugPositions)&&void 0!==p&&p}get id(){return this.idProperty}set id(e){this.idProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ID)}get orthoHeight(){return this.orthoHeightProperty}set orthoHeight(e){this.orthoHeightProperty!==e&&(this.orthoHeightProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORTHOHEIGHT))}get orthoWidth(){return this.orthoWidthProperty}set orthoWidth(e){this.orthoWidthProperty!==e&&(this.orthoWidthProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORTHOWIDTH))}get projectionMode(){return this.projectionModeProperty}set projectionMode(e){this.projectionModeProperty!==e&&(this.projectionModeProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}get aspectRatio(){return this.aspectRatioProperty}set aspectRatio(e){this.aspectRatioProperty!==e&&(this.aspectRatioProperty=e,this.orthoWidth=this.orthoHeight*this.aspectRatioProperty,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ASPECTRATIO))}get isAttached(){return this.isAttachedProperty}set isAttached(e){this.isAttachedProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ISATTACHED)}get radius(){return this.target.subtract(this.position).length}set radius(e){e<=1&&(e=1),this.radius!==e&&(this.position=this.target.subtract(this.forward.scalarMultiply(e)),this.notifyPropertyChanged(n.PROPERTY.CAMERA_RADIUS))}get orbitalPitch(){return this.orbitalPitchProperty}set orbitalPitch(e){if(this.orbitalPitchProperty===e)return;this.orbitalPitchProperty=e>90?89.9:e<-90?-89.9:e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new s.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORBITALPITCH)}finally{null==t||t.delete()}}get orbitalYaw(){return this.orbitalYawProperty}set orbitalYaw(e){if(this.orbitalYawProperty===e)return;this.orbitalYawProperty=e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new s.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORBITALYAW)}finally{null==t||t.delete()}}get farClip(){return this.farClipProperty}set farClip(e){this.farClipProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_FARCLIP)}get nearClip(){return this.nearClipProperty}set nearClip(e){this.nearClipProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_NEARCLIP)}get fieldOfView(){return this.fieldOfViewProperty}set fieldOfView(e){this.fieldOfViewProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_FIELDOFVIEW)}get upGlobal(){return new s.Vector3(0,1,0)}get side(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e).crossProduct(e);return t.normalize(),t}get forward(){const e=this.target.subtract(this.position);return e.normalize(),e}get up(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e);return t.normalize(),t}get target(){return this.targetProperty}set target(e){if(this.targetProperty===e)return;let t,r;this.targetProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),r=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=r.pitch,this.orbitalYawProperty=r.yaw,this.notifyPropertyChanged(n.PROPERTY.CAMERA_TARGET)}finally{null==t||t.delete(),null==r||r.delete()}}get position(){return this.positionProperty}set position(e){if(this.positionProperty===e)return;let t,r;this.positionProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),r=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=r.pitch,this.orbitalYawProperty=r.yaw,this.notifyPropertyChanged(n.PROPERTY.CAMERA_POSITION)}finally{null==t||t.delete(),null==r||r.delete()}}toOrthogonal(){this.projectionModeProperty!==l.Orthogonal&&(this.projectionModeProperty=l.Orthogonal,this.orthoWidthProperty=this.radius,this.orthoHeightProperty=this.orthoWidth/this.aspectRatio,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}toPerspective(){this.projectionModeProperty!==l.Perspective&&(this.projectionModeProperty=l.Perspective,this.radius=this.orthoWidth,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}resetToDefaults(){let e,t;this.positionProperty=new s.Vector3(-1e3,1e3,-1e3),this.targetProperty=new s.Vector3(0,0,0),this.fieldOfViewProperty=60,this.nearClipProperty=1,this.farClipProperty=4e3,this.projectionModeProperty=l.Perspective,this.aspectRatioProperty=1.5,this.orthoWidthProperty=600,this.orthoHeightProperty=400;try{e=this.forward.toTsrVector3(this.webAssemblyContext),t=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(e),this.orbitalPitch=t.pitch,this.orbitalYaw=t.yaw}finally{null==t||t.delete(),null==e||e.delete()}}updateEngineCamera(e){let t,r,i;a.Guard.notNull(e,"tsrCamera");try{t=this.position.toTsrVector3(this.webAssemblyContext),r=this.target.toTsrVector3(this.webAssemblyContext),i=this.up.toTsrVector3(this.webAssemblyContext),e.SetLoc(t),e.SetAt(r),e.SetFarClip(this.farClip),e.SetNearClip(this.nearClip),e.SetFovAngle(this.webAssemblyContext.Math3D.DegToRad(this.fieldOfView)),e.SetProjectionMode(this.projectionMode===l.Perspective?this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_PERSPECTIVE:this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_ORTHOGONAL),e.SetOrthoWidth(this.orthoWidth),e.SetOrthoHeight(this.orthoHeight),e.SetAspectRatio(this.aspectRatio),e.SetYaw(this.webAssemblyContext.Math3D.DegToRad(this.orbitalYaw)),e.SetPitch(this.webAssemblyContext.Math3D.DegToRad(this.orbitalPitch)),e.SetUp(i)}finally{null==t||t.delete(),null==r||r.delete(),null==i||i.delete()}}notifyPropertyChanged(e){var t;!this.debugPositionsProperty||e!==n.PROPERTY.CAMERA_POSITION&&e!==n.PROPERTY.CAMERA_TARGET||console.log(`SciChart.js Camera P=${this.position.toString()}, T=${this.target.toString()}`),null===(t=this.propertyChanged)||void 0===t||t.raiseEvent(new o.PropertyChangedEventArgs(e))}debugOutput(){const e=[`Camera id='${this.id}': `,` position: ${this.position.toString()}`,` target: ${this.target.toString()}`,` pitch: ${this.orbitalPitch.toFixed(2)} degrees`,` yaw: ${this.orbitalYaw.toFixed(2)} degrees`,` up Vector: ${this.up.toString()}`,` forward Vector: ${this.forward.toString()}`,` projectionMode: ${this.projectionMode}`];return this.projectionMode===l.Orthogonal?(e.push(` orthoWidth: ${this.orthoWidth.toFixed(2)}`),e.push(` orthoHeight: ${this.orthoHeight.toFixed(2)}`)):(e.push(` radius: ${this.radius.toFixed(2)}`),e.push(` fieldOfView: ${this.fieldOfView.toFixed(2)} degrees`)),e.forEach((e=>console.log(e))),e}toJSON(){return{id:this.id,position:this.position,target:this.target,fieldOfView:this.fieldOfView,nearClip:this.nearClip,farClip:this.farClip,projectionMode:this.projectionMode,orthoWidth:this.orthoWidth,orthoHeight:this.orthoHeight}}}},63220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartModifierBase3D=void 0;const i=r(13063),a=r(66405);class o extends i.ChartModifierBase{constructor(e){super(e),this.typeMap=new Map}get modifierType(){return a.EModifierType.Chart3DModifier}toJSON(){const e={id:this.id,executeCondition:this.executeCondition};return{type:this.type,options:e}}}t.ChartModifierBase3D=o},89577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomChartModifier3D=void 0;const i=r(89955),a=r(63220);class o extends a.ChartModifierBase3D{constructor(e){super(e),this.type=i.EChart3DModifierType.Custom}}t.CustomChartModifier3D=o},47737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MouseWheelZoomModifier3D=void 0;const i=r(89955),a=r(3810),o=r(63220);class s extends o.ChartModifierBase3D{constructor(e){super(e),this.type=i.EChart3DModifierType.MouseWheelZoom,this.mouseWheelSensitivity=(null==e?void 0:e.mouseWheelSensitivity)||.1}modifierMouseWheel(e){super.modifierMouseWheel(e);const t=this.parentSurface;if(!t)return;const r=t.camera;if(!r)return;const i=e.mouseWheelDelta,o=r.radius,s=(o+i*this.mouseWheelSensitivity)/o;r.projectionMode===a.ECameraProjectionMode.Perspective?r.radius*=s:(r.orthoWidth*=s,r.orthoHeight*=s),e.handled=!0}toJSON(){const e=super.toJSON(),t={mouseWheelSensitivity:this.mouseWheelSensitivity};return Object.assign(e.options,t),e}}t.MouseWheelZoomModifier3D=s},17707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrbitModifier3D=void 0;const i=r(6859),a=r(89955),o=r(73792);class s extends o.PinchZoomModifier3D{constructor(e){var t,r;super(e),this.type=a.EChart3DModifierType.Orbit,this.enableZoom=!0,this.enableZoom=null!==(t=null==e?void 0:e.enableZoom)&&void 0!==t?t:this.enableZoom,this.executeCondition=null!==(r=null==e?void 0:e.executeCondition)&&void 0!==r?r:{button:i.EExecuteOn.MouseLeftButton}}modifierMouseDown(e){if(!this.isAttached)throw new Error("Should not call OrbitModifier3D.modifierMouseDown if not attached");this.checkExecuteConditions(e).isPrimary&&(super.modifierMouseDown(e),this.activePointerEvents.set(e.pointerId,e))}modifierMouseMove(e){this.updatePointerInfo(e),this.previousPoint&&(this.enableZoom&&super.getIsActionAllowed(e)&&super.performModifierAction(e),this.getIsActionAllowed(e)&&this.performModifierAction(e))}modifierMouseUp(e){if(super.modifierMouseUp(e),this.activePointerEvents.size>0){const t=this.activePointerEvents.values().next().value;e.target.setPointerCapture(t.pointerId)}}toJSON(){const e=super.toJSON(),t={enableZoom:this.enableZoom};return Object.assign(e.options,t),e}performModifierAction(e){const t=this.parentSurface.camera;if(!t)return;const r=e.mousePoint,i=.2*(this.previousPoint.x-r.x),a=.2*(this.previousPoint.y-r.y);t.orbitalYaw+=i,t.orbitalPitch-=a}getIsActionAllowed(e){return!(this.activePointerEvents.values().next().value.pointerId!==e.pointerId||this.activePointerEvents.size>1)}}t.OrbitModifier3D=s},73792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PinchZoomModifier3D=void 0;const i=r(89955),a=r(3810),o=r(63220);class s extends o.ChartModifierBase3D{constructor(e){var t;super(e),this.growFactor=.5,this.type=i.EChart3DModifierType.PinchZoom,this.growFactor=null!==(t=null==e?void 0:e.growFactor)&&void 0!==t?t:this.growFactor}modifierMouseDown(e){if(super.modifierMouseDown(e),!this.isAttached)throw new Error("Should not call PinchZoomModifier3D.modifierMouseDown if not attached");("touch"===e.pointerType||"pen"===e.pointerType)&&this.activePointerEvents.set(e.pointerId,e)}modifierMouseMove(e){var t;super.modifierMouseMove(e),null===(t=this.activePointerEvents.get(e.pointerId))||void 0===t||t.mousePoint,this.activePointerEvents.has(e.pointerId)&&this.activePointerEvents.set(e.pointerId,e),this.getIsActionAllowed(e)&&this.performModifierAction(e)}mo